/* ════════════════════════════════════════════════════════════════════
 * RDG / Kukuri · Design System v1 · Lab rebrand
 * Sistema unificado · Apple + SpaceX cocktail
 * ════════════════════════════════════════════════════════════════════ */

:root {
    --black: #000;
    --white: #fff;
    --gray-50:  #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    --ok: #16a34a;
    --warn: #dc2626;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-cinematic: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --radius-sm: 12px;
    --radius:    20px;
    --radius-lg: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: var(--black); color: var(--white); }

html { scroll-behavior: smooth; }
html, body {
    background: var(--white);
    color: var(--black);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv11', 'ss01';
    overflow-x: hidden;
}
body.is-dark { background: var(--black); color: var(--white); }

a { color: inherit; text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .65; }
button { font-family: inherit; cursor: pointer; }

/* ═════════ MONO TIPO TÉCNICA (datos / specs) ═════════ */
.mono { font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace; font-feature-settings: 'tnum'; }

/* ═════════ CUSTOM CURSOR ═════════ */
@media (hover: hover) and (pointer: fine) {
    body.has-cursor * { cursor: none; }
    body.has-cursor a, body.has-cursor button, body.has-cursor input,
    body.has-cursor textarea, body.has-cursor label, body.has-cursor select { cursor: none; }
    .cursor-dot {
        position: fixed; width: 6px; height: 6px;
        background: var(--white); border-radius: 50%;
        pointer-events: none; z-index: 10000;
        mix-blend-mode: difference;
        transition: transform .15s var(--ease), width .2s var(--ease), height .2s var(--ease);
        will-change: transform;
    }
    .cursor-ring {
        position: fixed; width: 32px; height: 32px;
        border: 1.5px solid rgba(255,255,255,.55); border-radius: 50%;
        pointer-events: none; z-index: 10000;
        mix-blend-mode: difference;
        transition: width .4s var(--ease), height .4s var(--ease), opacity .3s ease;
        will-change: transform;
    }
    .cursor-dot.hovering { width: 14px; height: 14px; transform: translate(-4px, -4px); }
    .cursor-ring.hovering { width: 56px; height: 56px; opacity: .7; }
}
@media (max-width: 900px), (hover: none) {
    .cursor-dot, .cursor-ring { display: none !important; }
}

/* ═════════ PAGE LOADER ═════════ */
#pageLoader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--black);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    transition: opacity .9s var(--ease-cinematic), visibility .9s ease;
}
#pageLoader.hidden { opacity: 0; visibility: hidden; }
.loader-mark {
    color: #fff; font-weight: 800;
    font-size: 36px;
    letter-spacing: -0.06em;
    opacity: .9;
    animation: markPulse 1.4s ease-in-out infinite;
}
@keyframes markPulse {
    0%, 100% { opacity: .55; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.04); }
}
.loader-bar {
    width: 140px; height: 1px;
    background: rgba(255,255,255,.08);
    overflow: hidden; margin-top: 32px;
}
.loader-bar-fill {
    width: 0%; height: 100%; background: #fff;
    transition: width .35s ease;
}

/* ═════════ SCROLL PROGRESS ═════════ */
#scrollProgress {
    position: fixed; top: 0; left: 0; height: 1px;
    background: var(--black);
    z-index: 9998; width: 0%;
    transition: width .05s linear;
}
body.is-dark #scrollProgress { background: var(--white); }

/* ═════════ NAV ═════════ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 90;
    padding: 18px 28px;
    display: flex; align-items: center; justify-content: space-between;
    transition: background .5s var(--ease), border-color .5s, backdrop-filter .5s;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-bottom-color: rgba(0,0,0,.06);
}
body.is-dark .nav.scrolled {
    background: rgba(0,0,0,.7);
    border-bottom-color: rgba(255,255,255,.06);
}
.nav-mark {
    font-weight: 800; font-size: 22px;
    letter-spacing: -.05em;
}
.nav-links {
    display: flex; gap: 36px;
    font-size: 13px; font-weight: 500;
    letter-spacing: -0.005em;
}
.nav-links a {
    color: rgba(0,0,0,.55);
    position: relative;
}
.nav-links a:hover { color: var(--black); opacity: 1; }
body.is-dark .nav-links a { color: rgba(255,255,255,.5); }
body.is-dark .nav-links a:hover { color: var(--white); }

.nav-cta {
    padding: 10px 20px; border-radius: 999px;
    font-size: 13px; font-weight: 500;
    background: var(--black); color: var(--white);
    transition: transform .25s var(--ease), background .25s, box-shadow .25s;
}
body.is-dark .nav-cta { background: var(--white); color: var(--black); }
.nav-cta:hover { transform: scale(1.02); opacity: 1; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav { padding: 14px 20px; }
}

/* ═════════ TIPOGRAFÍA HEROICA ═════════ */
.eye {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .3em;
    color: rgba(0,0,0,.5);
    font-family: 'JetBrains Mono', monospace;
}
body.is-dark .eye { color: rgba(255,255,255,.5); }

.h-display {
    font-size: clamp(48px, 11vw, 168px);
    font-weight: 700;
    line-height: .92;
    letter-spacing: -.055em;
}
.h-hero {
    font-size: clamp(40px, 8.5vw, 124px);
    font-weight: 700;
    line-height: .95;
    letter-spacing: -.05em;
}
.h-section {
    font-size: clamp(36px, 5.5vw, 80px);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1;
}
.h-card {
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.1;
}
.lead {
    font-size: clamp(17px, 1.4vw, 21px);
    font-weight: 300;
    line-height: 1.55;
    color: rgba(0,0,0,.65);
    max-width: 640px;
}
body.is-dark .lead { color: rgba(255,255,255,.6); }

/* ═════════ WORD REVEAL (hero) ═════════ */
.word-wrap { overflow: hidden; display: inline-block; vertical-align: bottom; padding-right: 0.16em; }
.word-wrap:last-child { padding-right: 0; }
.word-line { overflow: hidden; }
.word {
    display: inline-block;
    transform: translateY(110%);
    transition: transform .9s var(--ease-cinematic);
}
.word.in { transform: translateY(0); }

/* ═════════ SECTION DIVIDER LINE ═════════ */
.section-line {
    width: 0; height: 1px; background: var(--black);
    display: block;
    transition: width 1.1s var(--ease-cinematic);
}
.section-line.visible { width: 80px; }
body.is-dark .section-line { background: var(--white); }

/* ═════════ FADE UP (entrada de elementos al scroll) ═════════ */
.fade-up {
    opacity: 0; transform: translateY(40px);
    transition: opacity 1.1s var(--ease-cinematic), transform 1.1s var(--ease-cinematic);
}
.fade-up.in { opacity: 1; transform: translateY(0); }
.del-1 { transition-delay: .08s; }
.del-2 { transition-delay: .16s; }
.del-3 { transition-delay: .24s; }
.del-4 { transition-delay: .32s; }
.del-5 { transition-delay: .4s; }

/* Scale reveal */
.scale-in {
    opacity: 0; transform: scale(.93);
    transition: opacity 1.2s var(--ease-cinematic), transform 1.2s var(--ease-cinematic);
}
.scale-in.in { opacity: 1; transform: scale(1); }

/* ═════════ BOTONES ═════════ */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 28px; border-radius: 999px;
    font-size: 14px; font-weight: 500;
    border: 1px solid transparent;
    transition: transform .3s var(--ease), background .3s, box-shadow .3s, opacity .2s;
    letter-spacing: -.005em;
    white-space: nowrap;
}
.btn:hover { opacity: 1; }
.btn:active { transform: scale(.97); }
.btn-arrow svg { transition: transform .3s var(--ease); }
.btn-arrow:hover svg { transform: translateX(4px); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #1a1a1a; box-shadow: 0 14px 38px rgba(0,0,0,.18); }
.btn-light { background: var(--white); color: var(--black); }
.btn-light:hover { background: var(--gray-100); box-shadow: 0 14px 38px rgba(255,255,255,.08); }
.btn-outline {
    background: transparent; color: var(--black);
    border-color: rgba(0,0,0,.18);
}
.btn-outline:hover { border-color: var(--black); }
body.is-dark .btn-outline { color: var(--white); border-color: rgba(255,255,255,.2); }
body.is-dark .btn-outline:hover { border-color: var(--white); }

/* ═════════ HERO BADGE PULSANTE ═════════ */
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 18px 7px 12px;
    border-radius: 100px;
    border: 1px solid rgba(0,0,0,.1);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; font-weight: 500;
    color: rgba(0,0,0,.6);
    letter-spacing: .04em;
}
body.is-dark .hero-badge { border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.7); background: rgba(255,255,255,.04); backdrop-filter: blur(12px); }
.hero-badge::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--ok);
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(22,163,74,.5); }
    50% { opacity: .65; box-shadow: 0 0 0 6px rgba(22,163,74,0); }
}

/* ═════════ HERO GRID + SPOTLIGHT ═════════ */
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px);
    background-size: 88px 88px;
    mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, black 30%, transparent 100%);
    pointer-events: none;
    animation: gridDrift 28s linear infinite;
}
body.is-dark .hero-grid {
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
}
@keyframes gridDrift {
    0% { background-position: 0 0; }
    100% { background-position: 88px 88px; }
}

.hero-spotlight {
    position: absolute; width: 1100px; height: 1100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,0,0,.05) 0%, transparent 60%);
    pointer-events: none;
    transition: left .9s var(--ease-cinematic), top .9s var(--ease-cinematic);
    transform: translate(-50%, -50%);
    opacity: .8;
}
body.is-dark .hero-spotlight {
    background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 60%);
}

/* Scanline para vibe técnica (sutil, solo dark) */
body.is-dark::after {
    content: ''; position: fixed; inset: 0;
    background: repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0, rgba(255,255,255,.012) 1px, transparent 1px, transparent 3px);
    pointer-events: none; z-index: 9997;
}

/* Noise sutilísimo */
body::before {
    content: ''; position: fixed; inset: 0; z-index: 9000;
    pointer-events: none; opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}

/* ═════════ SECCIONES BASE ═════════ */
.section {
    padding: 140px 28px;
    position: relative;
}
.section-tight { padding: 80px 28px; }
.container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.container-narrow { max-width: 980px; margin: 0 auto; position: relative; z-index: 2; }

.section-head { margin-bottom: 80px; }
.section-head .eye { display: block; margin-bottom: 22px; }
.section-head .h-section { margin-bottom: 22px; }
.section-head .lead { margin-top: 0; }

/* ═════════ DEVICE MOCKUPS (3D) ═════════ */
.device-stage {
    perspective: 1800px;
    perspective-origin: 50% 30%;
    position: relative;
    padding: 80px 0;
}
.device {
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 1.5s var(--ease-cinematic);
}

/* MacBook */
.device-mac {
    width: min(1000px, 100%);
    margin: 0 auto;
    aspect-ratio: 1.5 / 1;
    position: relative;
}
.device-mac .screen {
    position: absolute; inset: 0;
    background: var(--black);
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 14px;
    box-shadow:
        0 1px 0 rgba(255,255,255,.08) inset,
        0 50px 100px -20px rgba(0,0,0,.3),
        0 30px 60px -30px rgba(0,0,0,.4);
    overflow: hidden;
    transform-origin: bottom center;
}
.device-mac .screen .bezel {
    position: absolute; inset: 0;
    border-radius: 14px;
    border: 8px solid #0a0a0a;
    pointer-events: none;
    z-index: 3;
}
.device-mac .notch {
    position: absolute; top: 0; left: 50%;
    transform: translateX(-50%);
    width: 110px; height: 14px;
    background: #000;
    border-radius: 0 0 8px 8px;
    z-index: 4;
}
.device-mac .base {
    position: absolute;
    bottom: -14px; left: -2%;
    width: 104%; height: 14px;
    background: linear-gradient(180deg, #d4d4d4 0%, #888 100%);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 30px 60px rgba(0,0,0,.2);
}
.device-mac .base::after {
    content: ''; position: absolute;
    bottom: 1px; left: 50%; transform: translateX(-50%);
    width: 80px; height: 4px;
    background: #555;
    border-radius: 0 0 4px 4px;
}

/* iPhone */
.device-iphone {
    width: 280px;
    aspect-ratio: 9 / 19.5;
    position: relative;
    background: #0a0a0a;
    border-radius: 42px;
    padding: 8px;
    box-shadow:
        0 0 0 2px #1a1a1a,
        0 50px 100px -20px rgba(0,0,0,.3);
}
.device-iphone .screen {
    width: 100%; height: 100%;
    background: var(--black);
    border-radius: 34px;
    overflow: hidden;
    position: relative;
}
.device-iphone .dynamic-island {
    position: absolute; top: 12px; left: 50%;
    transform: translateX(-50%);
    width: 110px; height: 32px;
    background: #000;
    border-radius: 999px;
    z-index: 4;
}

/* Cinematic visual ratio container (21:9) */
.cinema {
    aspect-ratio: 21 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

/* ═════════ STATS · SPECS GRID (SpaceX-style) ═════════ */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    border-top: 1px solid rgba(0,0,0,.1);
    border-bottom: 1px solid rgba(0,0,0,.1);
}
body.is-dark .specs-grid {
    border-top-color: rgba(255,255,255,.1);
    border-bottom-color: rgba(255,255,255,.1);
}
.specs-grid .spec {
    padding: 48px 32px;
    border-right: 1px solid rgba(0,0,0,.06);
}
body.is-dark .specs-grid .spec { border-right-color: rgba(255,255,255,.08); }
.specs-grid .spec:last-child { border-right: 0; }
.spec-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; font-weight: 600;
    letter-spacing: .26em; text-transform: uppercase;
    color: rgba(0,0,0,.45);
    margin-bottom: 20px;
}
body.is-dark .spec-label { color: rgba(255,255,255,.4); }
.spec-value {
    font-size: clamp(40px, 5.5vw, 76px);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.spec-unit {
    font-size: 14px; font-weight: 500;
    letter-spacing: .04em;
    color: rgba(0,0,0,.5);
    margin-top: 14px;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
}
body.is-dark .spec-unit { color: rgba(255,255,255,.45); }

/* ═════════ FEATURE CARDS ═════════ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.feature-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--radius);
    padding: 44px 36px;
    position: relative;
    overflow: hidden;
    transition: border-color .4s, transform .4s var(--ease);
    min-height: 320px;
    display: flex; flex-direction: column;
}
body.is-dark .feature-card {
    background: var(--gray-900);
    border-color: rgba(255,255,255,.08);
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,0,0,.2);
}
body.is-dark .feature-card:hover {
    border-color: rgba(255,255,255,.2);
    box-shadow: 0 30px 60px rgba(0,0,0,.5);
}
.feature-card .num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; font-weight: 700;
    letter-spacing: .26em; text-transform: uppercase;
    color: rgba(0,0,0,.4);
    margin-bottom: 28px;
}
body.is-dark .feature-card .num { color: rgba(255,255,255,.4); }
.feature-card h3 {
    font-size: 24px; font-weight: 600;
    letter-spacing: -.025em; margin-bottom: 12px;
    line-height: 1.15;
}
.feature-card p {
    font-size: 15px; line-height: 1.6;
    font-weight: 300;
    color: rgba(0,0,0,.62);
}
body.is-dark .feature-card p { color: rgba(255,255,255,.55); }

@media (max-width: 900px) {
    .feature-grid { grid-template-columns: 1fr; }
}

/* ═════════ TIERS / PRICING ═════════ */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
@media (max-width: 900px) { .tier-grid { grid-template-columns: 1fr; } }
.tier {
    border: 1px solid rgba(0,0,0,.1);
    border-radius: var(--radius);
    padding: 44px 36px;
    display: flex; flex-direction: column;
    position: relative;
    transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
    min-height: 480px;
}
body.is-dark .tier {
    border-color: rgba(255,255,255,.1);
    background: var(--gray-900);
}
.tier:hover {
    transform: translateY(-6px);
    border-color: var(--black);
}
body.is-dark .tier:hover { border-color: var(--white); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.tier.featured { background: var(--black); color: var(--white); border-color: var(--black); }
body.is-dark .tier.featured { background: var(--white); color: var(--black); border-color: var(--white); }
.tier .tier-eye {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; font-weight: 700;
    letter-spacing: .28em; text-transform: uppercase;
    color: rgba(0,0,0,.45);
    margin-bottom: 16px;
}
body.is-dark .tier .tier-eye { color: rgba(255,255,255,.45); }
.tier.featured .tier-eye { color: rgba(255,255,255,.65); }
body.is-dark .tier.featured .tier-eye { color: rgba(0,0,0,.6); }

.tier .tier-price {
    font-size: 64px; font-weight: 700;
    letter-spacing: -.05em; line-height: .95;
    font-variant-numeric: tabular-nums;
    margin-bottom: 6px;
}
.tier .tier-price .currency { font-size: 28px; vertical-align: top; font-weight: 600; }
.tier .tier-tagline {
    font-size: 15px; font-weight: 300;
    line-height: 1.5;
    margin-bottom: 32px;
    color: rgba(0,0,0,.6);
}
body.is-dark .tier .tier-tagline { color: rgba(255,255,255,.55); }
.tier.featured .tier-tagline { color: rgba(255,255,255,.65); }
body.is-dark .tier.featured .tier-tagline { color: rgba(0,0,0,.65); }

.tier ul {
    list-style: none;
    flex: 1;
    margin-bottom: 36px;
}
.tier li {
    padding: 14px 0;
    font-size: 14px; line-height: 1.5;
    font-weight: 400;
    border-top: 1px solid rgba(0,0,0,.06);
    display: flex; gap: 12px; align-items: flex-start;
}
.tier li:first-child { border-top: 0; }
body.is-dark .tier li { border-top-color: rgba(255,255,255,.06); }
.tier.featured li { border-top-color: rgba(255,255,255,.1); }
body.is-dark .tier.featured li { border-top-color: rgba(0,0,0,.08); }
.tier li::before {
    content: ''; width: 14px; height: 14px;
    flex-shrink: 0; margin-top: 4px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><path d='M5 12.5l4.5 4.5L19 7' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-size: contain; background-repeat: no-repeat;
}
body.is-dark .tier li::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><path d='M5 12.5l4.5 4.5L19 7' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.tier.featured li::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><path d='M5 12.5l4.5 4.5L19 7' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
body.is-dark .tier.featured li::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><path d='M5 12.5l4.5 4.5L19 7' stroke='%23000000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.tier .tier-cta {
    display: block; text-align: center;
    background: var(--black); color: var(--white);
    padding: 16px 24px; border-radius: 999px;
    font-size: 14px; font-weight: 500;
    transition: transform .25s var(--ease), background .25s, box-shadow .25s;
}
.tier .tier-cta:hover {
    background: #1a1a1a;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    opacity: 1;
}
.tier.featured .tier-cta { background: var(--white); color: var(--black); }
.tier.featured .tier-cta:hover { background: var(--gray-100); }
body.is-dark .tier:not(.featured) .tier-cta { background: var(--white); color: var(--black); }
body.is-dark .tier:not(.featured) .tier-cta:hover { background: var(--gray-100); }
body.is-dark .tier.featured .tier-cta { background: var(--black); color: var(--white); }

/* ═════════ MARQUEE de "logos" ═════════ */
.marquee {
    overflow: hidden;
    border-top: 1px solid rgba(0,0,0,.06);
    border-bottom: 1px solid rgba(0,0,0,.06);
    padding: 28px 0;
}
body.is-dark .marquee { border-color: rgba(255,255,255,.06); }
.marquee-track {
    display: flex; gap: 80px;
    width: max-content;
    animation: marquee 40s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-item {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    color: rgba(0,0,0,.5);
    white-space: nowrap;
    display: flex; align-items: center; gap: 14px;
}
body.is-dark .marquee-item { color: rgba(255,255,255,.45); }
.marquee-item::after {
    content: '·'; font-size: 22px; color: inherit; opacity: .4;
}

/* ═════════ TIMELINE / PROCESO ═════════ */
.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    position: relative;
}
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr; gap: 32px; } }
.timeline::before {
    content: ''; position: absolute;
    top: 22px; left: 12%; right: 12%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,.2) 20%, rgba(0,0,0,.2) 80%, transparent);
}
body.is-dark .timeline::before {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.2) 20%, rgba(255,255,255,.2) 80%, transparent);
}
@media (max-width: 900px) { .timeline::before { display: none; } }
.step {
    position: relative;
    text-align: left;
}
.step .num {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--black);
    color: var(--black);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    margin-bottom: 22px;
    font-family: 'JetBrains Mono', monospace;
    position: relative; z-index: 2;
    transition: transform .3s var(--ease);
}
body.is-dark .step .num { background: var(--black); border-color: var(--white); color: var(--white); }
.step:hover .num { transform: scale(1.1); }
.step h4 {
    font-size: 18px; font-weight: 600;
    letter-spacing: -.02em; margin-bottom: 8px;
}
.step p {
    font-size: 14px; line-height: 1.55;
    font-weight: 300;
    color: rgba(0,0,0,.6);
}
body.is-dark .step p { color: rgba(255,255,255,.55); }

/* ═════════ FOOTER MINIMAL ═════════ */
.foot {
    padding: 80px 28px 40px;
    border-top: 1px solid rgba(0,0,0,.08);
}
body.is-dark .foot { border-top-color: rgba(255,255,255,.08); }
.foot-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    gap: 22px; flex-wrap: wrap;
}
.foot-mark {
    font-size: 22px; font-weight: 800;
    letter-spacing: -.05em;
}
.foot-meta {
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    color: rgba(0,0,0,.45);
    letter-spacing: .04em;
}
body.is-dark .foot-meta { color: rgba(255,255,255,.4); }

/* ════════════════════════════════════════════════════════════════
 * BRAND LOGOS REALES
 * ════════════════════════════════════════════════════════════════ */
.logo-rdg {
    height: 38px; width: auto;
    display: block;
}
.logo-rdg img { height: 100%; width: auto; display: block; }
.logo-kukuri {
    display: flex; align-items: center; gap: 12px;
}
.logo-kukuri-symbol { height: 32px; width: auto; }
.logo-kukuri-word { height: 22px; width: auto; }
body.is-dark .logo-rdg img { filter: invert(1) brightness(2); }
body.is-dark .logo-kukuri img { filter: invert(1) brightness(2); }

/* ════════════════════════════════════════════════════════════════
 * ORBITAL SYSTEM 3D (Kukuri hero)
 * Cubo central + 3 satélites · CSS 3D transforms reales
 * ════════════════════════════════════════════════════════════════ */
.orbit-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 560px;
    margin: 0 auto;
    perspective: 2000px;
    perspective-origin: 50% 35%;
}
.orbit-scene {
    position: absolute; inset: 0;
    transform-style: preserve-3d;
    animation: orbit-spin 50s linear infinite;
}
@keyframes orbit-spin {
    0%   { transform: rotateY(0deg) rotateX(8deg); }
    100% { transform: rotateY(360deg) rotateX(8deg); }
}

/* Anillos orbitales */
.orbit-ring {
    position: absolute; top: 50%; left: 50%;
    transform-style: preserve-3d;
    transform-origin: center;
}
.orbit-ring-1 {
    width: 86%; height: 86%;
    transform: translate(-50%, -50%) rotateX(72deg);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
}
.orbit-ring-2 {
    width: 64%; height: 64%;
    transform: translate(-50%, -50%) rotateX(72deg) rotateZ(45deg);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 50%;
}
.orbit-ring-3 {
    width: 100%; height: 100%;
    transform: translate(-50%, -50%) rotateX(78deg) rotateZ(-30deg);
    border: 1px dashed rgba(255,255,255,.1);
    border-radius: 50%;
}

/* Cubo central · Kukuri OS */
.orbit-core {
    position: absolute;
    top: 50%; left: 50%;
    width: 130px; height: 130px;
    margin: -65px 0 0 -65px;
    transform-style: preserve-3d;
    animation: core-spin 22s linear infinite;
}
@keyframes core-spin {
    0%   { transform: rotateY(0) rotateX(-15deg); }
    100% { transform: rotateY(360deg) rotateX(-15deg); }
}
.orbit-core .face {
    position: absolute;
    width: 130px; height: 130px;
    background: linear-gradient(135deg, #1f1f1f 0%, #0a0a0a 100%);
    border: 1px solid rgba(255,255,255,.1);
    box-shadow:
        inset 0 0 40px rgba(255,255,255,.04),
        0 0 60px rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.85);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.orbit-core .face img {
    width: 64px; height: auto;
    filter: invert(1) brightness(2);
    opacity: .92;
}
.orbit-core .face.front  { transform: translateZ(65px); }
.orbit-core .face.back   { transform: rotateY(180deg) translateZ(65px); }
.orbit-core .face.right  { transform: rotateY(90deg) translateZ(65px); }
.orbit-core .face.left   { transform: rotateY(-90deg) translateZ(65px); }
.orbit-core .face.top    { transform: rotateX(90deg) translateZ(65px); }
.orbit-core .face.bottom { transform: rotateX(-90deg) translateZ(65px); }
.orbit-core .face .glow {
    position: absolute; inset: -2px;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.06), transparent 60%);
    pointer-events: none;
}

/* Satélites en órbita */
.orbit-sat {
    position: absolute;
    top: 50%; left: 50%;
    width: 60px; height: 60px;
    margin: -30px 0 0 -30px;
    transform-style: preserve-3d;
}
.orbit-sat-orbit {
    position: absolute; inset: 0;
    transform-style: preserve-3d;
    animation: sat-orbit 18s linear infinite;
}
.orbit-sat-1 { animation-duration: 14s; }
.orbit-sat-2 { animation-duration: 22s; animation-delay: -7s; }
.orbit-sat-3 { animation-duration: 18s; animation-delay: -12s; }

@keyframes sat-orbit {
    0%   { transform: rotateY(0) rotateX(72deg) translateX(220px) rotateX(-72deg); }
    100% { transform: rotateY(360deg) rotateX(72deg) translateX(220px) rotateX(-72deg); }
}
.orbit-sat .body {
    width: 60px; height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2a2a2a 0%, #0e0e0e 100%);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow:
        inset 0 0 20px rgba(255,255,255,.04),
        0 0 30px rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.95);
    transform-style: preserve-3d;
    animation: sat-counter 14s linear infinite reverse;
}
.orbit-sat-2 .body { animation-duration: 22s; }
.orbit-sat-3 .body { animation-duration: 18s; }
@keyframes sat-counter {
    0%   { transform: rotateY(0); }
    100% { transform: rotateY(-360deg); }
}
.orbit-sat svg { width: 28px; height: 28px; }

/* Sat label */
.orbit-sat .label {
    position: absolute;
    top: calc(100% + 10px); left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px; font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255,255,255,.6);
    white-space: nowrap;
}

/* Particles flotantes alrededor */
.orbit-particle {
    position: absolute;
    width: 3px; height: 3px;
    background: rgba(255,255,255,.4);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255,255,255,.6);
}
.orbit-particle:nth-child(1) { top: 12%; left: 18%; animation: float 8s ease-in-out infinite; }
.orbit-particle:nth-child(2) { top: 28%; right: 14%; animation: float 11s ease-in-out infinite; animation-delay: -3s; }
.orbit-particle:nth-child(3) { bottom: 22%; left: 26%; animation: float 9s ease-in-out infinite; animation-delay: -5s; }
.orbit-particle:nth-child(4) { bottom: 14%; right: 22%; animation: float 13s ease-in-out infinite; animation-delay: -7s; }
.orbit-particle:nth-child(5) { top: 50%; left: 8%; animation: float 10s ease-in-out infinite; animation-delay: -2s; width: 2px; height: 2px; }
.orbit-particle:nth-child(6) { top: 60%; right: 9%; animation: float 12s ease-in-out infinite; animation-delay: -8s; width: 2px; height: 2px; }
@keyframes float {
    0%, 100% { transform: translate(0, 0); opacity: .4; }
    50% { transform: translate(20px, -25px); opacity: 1; }
}

/* Halo principal central · glow */
.orbit-halo {
    position: absolute;
    top: 50%; left: 50%;
    width: 320px; height: 320px;
    margin: -160px 0 0 -160px;
    background: radial-gradient(circle, rgba(255,255,255,.14) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    animation: halo-pulse 4s ease-in-out infinite;
}
@keyframes halo-pulse {
    0%, 100% { opacity: .55; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* ════════════════════════════════════════════════════════════════
 * NEW · Cinematic letterbox (barras negras arriba/abajo en heroes)
 * ════════════════════════════════════════════════════════════════ */
.cinematic-bars::before,
.cinematic-bars::after {
    content: '';
    position: absolute; left: 0; right: 0;
    height: 22px;
    background: #000;
    z-index: 8;
    pointer-events: none;
}
.cinematic-bars::before { top: 0; }
.cinematic-bars::after { bottom: 0; }

/* ════════════════════════════════════════════════════════════════
 * NEW · Cómo piensa Kukuri · 3 fases con visualizaciones
 * ════════════════════════════════════════════════════════════════ */
.thinks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
@media (max-width: 1024px) { .thinks-grid { grid-template-columns: 1fr; } }

.thinks-cell {
    background: #050505;
    padding: 56px 44px 48px;
    position: relative;
    min-height: 480px;
    display: flex; flex-direction: column;
    overflow: hidden;
}
.thinks-cell .num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; font-weight: 700;
    letter-spacing: .3em; text-transform: uppercase;
    color: rgba(140, 200, 255, .7);
    margin-bottom: 24px;
    display: flex; align-items: center; gap: 14px;
}
.thinks-cell .num::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: #8cc8ff;
    box-shadow: 0 0 12px #8cc8ff;
    animation: dotPulse 2s ease-in-out infinite;
}
.thinks-cell h3 {
    font-size: 28px; font-weight: 700;
    letter-spacing: -.03em;
    margin-bottom: 14px;
    line-height: 1.1;
}
.thinks-cell p {
    font-size: 15px; line-height: 1.6;
    font-weight: 300;
    color: rgba(255,255,255,.65);
    max-width: 320px;
    margin-bottom: 32px;
}
.thinks-viz {
    flex: 1;
    position: relative;
    margin: 0 -24px -24px;
    border-top: 1px solid rgba(255,255,255,.05);
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,.02) 100%);
    min-height: 200px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.thinks-cell .meta {
    position: absolute; top: 18px; right: 18px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px; letter-spacing: .2em;
    color: rgba(255,255,255,.3);
    text-transform: uppercase;
}

/* Visualización 1 · INPUT (estímulo entrando) */
.viz-input {
    width: 100%; height: 100%;
    position: relative;
}
.viz-input .target-circle {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; height: 80px;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 50%;
}
.viz-input .target-circle::before,
.viz-input .target-circle::after {
    content: ''; position: absolute; inset: -10px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    animation: target-pulse 2.4s ease-out infinite;
}
.viz-input .target-circle::after { animation-delay: 1.2s; }
@keyframes target-pulse {
    0% { transform: scale(.8); opacity: .9; }
    100% { transform: scale(1.6); opacity: 0; }
}
.viz-input .arrow {
    position: absolute;
    top: 50%; left: 0;
    transform: translateY(-50%);
    width: 48%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #8cc8ff 60%, #fff 100%);
}
.viz-input .arrow::before {
    content: ''; position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 8px; height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 12px #8cc8ff;
    animation: arrow-fly 2s linear infinite;
}
@keyframes arrow-fly {
    0% { right: 100%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { right: 0%; opacity: 0; }
}
.viz-input .label-l, .viz-input .label-r {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; letter-spacing: .2em;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    top: 50%; transform: translateY(-50%);
}
.viz-input .label-l { left: 12px; }
.viz-input .label-r { right: 12px; }

/* Visualización 2 · PROCESS (cerebro procesando) */
.viz-process {
    position: relative;
    width: 100%; height: 100%;
}
.viz-process canvas { width: 100%; height: 100%; }

/* Visualización 3 · OUTPUT (acción saliendo) */
.viz-output {
    position: relative;
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 8px;
}
.viz-output .out-row {
    display: flex; align-items: center; gap: 14px;
    padding: 9px 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: rgba(255,255,255,.75);
    letter-spacing: .1em;
    width: 84%;
    animation: out-flash 4s ease-in-out infinite;
}
.viz-output .out-row:nth-child(1) { animation-delay: 0s; }
.viz-output .out-row:nth-child(2) { animation-delay: .8s; }
.viz-output .out-row:nth-child(3) { animation-delay: 1.6s; }
.viz-output .out-row:nth-child(4) { animation-delay: 2.4s; }
@keyframes out-flash {
    0%, 70%, 100% { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
    8% { background: rgba(140,200,255,.12); border-color: rgba(140,200,255,.4); }
}
.viz-output .out-row .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,.4);
}
.viz-output .out-row.flash .dot { background: #8cc8ff; box-shadow: 0 0 8px #8cc8ff; }
.viz-output .out-row .key { color: rgba(255,255,255,.45); }

/* ════════════════════════════════════════════════════════════════
 * NEW · Mini-brain (versión pequeña en feature cards)
 * ════════════════════════════════════════════════════════════════ */
.mini-brain-wrap {
    width: 100%;
    aspect-ratio: 1;
    max-width: 200px;
    margin: 24px auto 0;
    position: relative;
}
.mini-brain-wrap canvas { width: 100%; height: 100%; }

/* ════════════════════════════════════════════════════════════════
 * NEW · Engine glow (CTA launch)
 * ════════════════════════════════════════════════════════════════ */
.engine-glow {
    position: absolute;
    bottom: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 380px;
    height: 380px;
    background: radial-gradient(ellipse at center,
        rgba(255,255,255,.4) 0%,
        rgba(140,200,255,.18) 25%,
        rgba(255,255,255,.05) 60%,
        transparent 80%);
    filter: blur(40px);
    pointer-events: none;
    animation: engine-pulse 3s ease-in-out infinite;
}
@keyframes engine-pulse {
    0%, 100% { opacity: .55; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}
.engine-particles {
    position: absolute;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 200px; height: 200px;
    pointer-events: none;
}
.engine-particles span {
    position: absolute;
    bottom: 0;
    width: 1px; height: 1px;
    background: rgba(255,255,255,.6);
    border-radius: 50%;
    animation: engine-rise 2.5s linear infinite;
}
@keyframes engine-rise {
    0% { transform: translate(var(--x, 0), 0) scale(1); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translate(var(--x, 0), -200px) scale(0); opacity: 0; }
}
.engine-particles span:nth-child(1)  { left: 10%; --x: -8px; animation-delay: 0s; }
.engine-particles span:nth-child(2)  { left: 25%; --x: 6px; animation-delay: .3s; }
.engine-particles span:nth-child(3)  { left: 40%; --x: -4px; animation-delay: .6s; }
.engine-particles span:nth-child(4)  { left: 55%; --x: 8px; animation-delay: .1s; }
.engine-particles span:nth-child(5)  { left: 70%; --x: -6px; animation-delay: .9s; }
.engine-particles span:nth-child(6)  { left: 85%; --x: 4px; animation-delay: .4s; }
.engine-particles span:nth-child(7)  { left: 18%; --x: 5px; animation-delay: 1.2s; }
.engine-particles span:nth-child(8)  { left: 65%; --x: -7px; animation-delay: 1.5s; }
.engine-particles span:nth-child(9)  { left: 32%; --x: 3px; animation-delay: 1.8s; }
.engine-particles span:nth-child(10) { left: 78%; --x: -3px; animation-delay: 2.1s; }

/* ════════════════════════════════════════════════════════════════
 * NEW · Section transition (cinematic fade-to-black sutil)
 * ════════════════════════════════════════════════════════════════ */
.section-transition {
    height: 100px;
    background: linear-gradient(180deg, transparent 0%, #000 100%);
    margin-top: -100px;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

/* ════════════════════════════════════════════════════════════════
 * BRAIN STAGE · cerebro neuronal cibernético
 * Canvas con esfera de neuronas + sinapsis + pulsos
 * ════════════════════════════════════════════════════════════════ */
.brain-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 640px;
    margin: 0 auto;
}
.brain-stage canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    z-index: 3;
}
.brain-halo {
    position: absolute;
    top: 50%; left: 50%;
    width: 120%; height: 120%;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(circle, rgba(255,255,255,.18) 0%, transparent 45%),
        radial-gradient(circle, rgba(180,200,255,.06) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
    animation: brain-halo-breathe 4s ease-in-out infinite;
}
@keyframes brain-halo-breathe {
    0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}
.brain-coords {
    position: absolute;
    inset: 0;
    pointer-events: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: rgba(255,255,255,.32);
    letter-spacing: .14em;
    text-transform: uppercase;
    z-index: 5;
}
.brain-coords .lbl-tl { position: absolute; top: 2%; left: 0; }
.brain-coords .lbl-tr { position: absolute; top: 2%; right: 0; text-align: right; }
.brain-coords .lbl-bl { position: absolute; bottom: 2%; left: 0; }
.brain-coords .lbl-br { position: absolute; bottom: 2%; right: 0; text-align: right; }
.brain-tag {
    position: absolute;
    bottom: -8%; left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: .26em;
    color: rgba(255,255,255,.45);
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 5;
}

/* ════════════════════════════════════════════════════════════════
 * PARTICLES CANVAS · hero background
 * ════════════════════════════════════════════════════════════════ */
#particlesCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: .85;
}

/* ════════════════════════════════════════════════════════════════
 * HUD CORNERS · brackets cinematográficos
 * ════════════════════════════════════════════════════════════════ */
.hud-corner {
    position: absolute;
    width: 32px; height: 32px;
    border: 1px solid rgba(255,255,255,.35);
    pointer-events: none;
    z-index: 5;
}
.hud-corner.tl { top: 100px; left: 28px; border-right: 0; border-bottom: 0; }
.hud-corner.tr { top: 100px; right: 28px; border-left: 0; border-bottom: 0; }
.hud-corner.bl { bottom: 28px; left: 28px; border-right: 0; border-top: 0; }
.hud-corner.br { bottom: 28px; right: 28px; border-left: 0; border-top: 0; }
body.is-dark .hud-corner { border-color: rgba(255,255,255,.25); }
.hud-corner::before, .hud-corner::after {
    content: ''; position: absolute;
    background: rgba(255,255,255,.6);
}
.hud-corner.tl::before { top: -1px; left: -1px; width: 4px; height: 4px; border-radius: 50%; }
.hud-corner.tr::before { top: -1px; right: -1px; width: 4px; height: 4px; border-radius: 50%; }
.hud-corner.bl::before { bottom: -1px; left: -1px; width: 4px; height: 4px; border-radius: 50%; }
.hud-corner.br::before { bottom: -1px; right: -1px; width: 4px; height: 4px; border-radius: 50%; }

/* HUD ticker top (barra técnica superior estilo cockpit) */
.hud-ticker {
    position: absolute;
    top: 92px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 24px;
    padding: 8px 24px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(20px);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: .14em;
    color: rgba(255,255,255,.55);
    text-transform: uppercase;
    z-index: 5;
}
.hud-ticker .item { display: flex; gap: 8px; align-items: center; }
.hud-ticker .item::before {
    content: ''; width: 5px; height: 5px; border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 8px var(--ok);
    animation: dotPulse 2s ease-in-out infinite;
}
.hud-ticker .item.warn::before { background: #FFB800; box-shadow: 0 0 8px #FFB800; }
.hud-ticker .item .v { color: rgba(255,255,255,.85); font-weight: 600; }

/* LIGHT BEAM vertical · pasando ocasionalmente */
.light-beam {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 2px; height: 100%;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(255,255,255,.4) 30%,
        rgba(255,255,255,.8) 50%,
        rgba(255,255,255,.4) 70%,
        transparent 100%);
    opacity: 0;
    pointer-events: none;
    animation: beam-pass 12s ease-in-out infinite;
    z-index: 1;
    filter: blur(.4px);
}
@keyframes beam-pass {
    0%, 65%, 100% { opacity: 0; transform: translateX(-50%) translateY(-100%); }
    72% { opacity: .7; transform: translateX(-50%) translateY(0); }
    80% { opacity: 0; transform: translateX(-50%) translateY(100%); }
}
.light-beam:nth-of-type(2) { left: 22%; animation-delay: -3s; opacity: .5; }
.light-beam:nth-of-type(3) { left: 78%; animation-delay: -7s; opacity: .5; }

/* ════════════════════════════════════════════════════════════════
 * LIVE PANEL · datos en directo simulados (estilo SpaceX mission control)
 * ════════════════════════════════════════════════════════════════ */
.live-panel {
    background: #050505;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    position: relative;
}
.live-panel::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
.live-panel-header {
    background: rgba(255,255,255,.025);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 16px 28px;
    display: flex; justify-content: space-between; align-items: center;
    position: relative;
    z-index: 2;
}
.live-panel-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; font-weight: 700;
    letter-spacing: .26em; text-transform: uppercase;
    color: rgba(255,255,255,.85);
    display: flex; align-items: center; gap: 12px;
}
.live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 12px var(--ok);
    animation: dotPulse 1.4s ease-in-out infinite;
}
.live-panel-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: rgba(255,255,255,.45);
    letter-spacing: .14em;
}

.live-panel-body {
    padding: 32px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    background: rgba(255,255,255,.06);
    position: relative;
    z-index: 2;
}
@media (max-width: 1100px) { .live-panel-body { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .live-panel-body { grid-template-columns: repeat(2, 1fr); } }

.live-cell {
    background: #050505;
    padding: 24px 22px;
    display: flex; flex-direction: column; gap: 8px;
    position: relative;
}
.live-cell-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px; font-weight: 600;
    letter-spacing: .22em;
    color: rgba(255,255,255,.45);
    text-transform: uppercase;
}
.live-cell-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 26px; font-weight: 700;
    letter-spacing: -.02em;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.live-cell-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px; color: rgba(255,255,255,.4);
    letter-spacing: .14em; text-transform: uppercase;
    margin-top: 2px;
}
.live-cell-meta.ok { color: var(--ok); }
.live-cell-meta.warn { color: #FFB800; }

/* Mini chart inline en celda */
.live-cell-spark {
    height: 28px;
    margin-top: 6px;
    width: 100%;
    opacity: .7;
}

.live-panel-footer {
    background: rgba(255,255,255,.025);
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 14px 28px;
    display: flex; justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: rgba(255,255,255,.4);
    letter-spacing: .14em;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}
.live-panel-footer .blink { animation: blink 1.4s ease-in-out infinite; color: var(--ok); }
@keyframes blink { 0%, 60%, 100% { opacity: 1; } 30% { opacity: .3; } }

/* ════════════════════════════════════════════════════════════════
 * CONSTELLATION · red de nodos verticales conectados al núcleo
 * ════════════════════════════════════════════════════════════════ */
.constellation {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    max-width: 1100px;
    margin: 0 auto;
}
.constellation svg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    z-index: 1;
}
.constellation .node {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 2;
}
.constellation .node-core {
    width: 110px; height: 110px;
    background: linear-gradient(160deg, #2a2a2a 0%, #050505 100%);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow:
        inset 0 0 30px rgba(255,255,255,.05),
        0 0 60px rgba(255,255,255,.12);
    animation: core-breath 3s ease-in-out infinite;
}
.constellation .node-core img {
    width: 56px; height: auto;
    filter: invert(1) brightness(2);
}
@keyframes core-breath {
    0%, 100% { box-shadow: inset 0 0 30px rgba(255,255,255,.05), 0 0 60px rgba(255,255,255,.12); }
    50% { box-shadow: inset 0 0 30px rgba(255,255,255,.08), 0 0 90px rgba(255,255,255,.2); }
}

.constellation .node-vert {
    width: 56px; height: 56px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.85);
    transition: transform .4s var(--ease), border-color .3s, background .3s;
    cursor: pointer;
    backdrop-filter: blur(8px);
}
.constellation .node-vert:hover {
    transform: translate(-50%, -50%) scale(1.18);
    border-color: rgba(255,255,255,.6);
    background: rgba(255,255,255,.1);
}
.constellation .node-vert.live { border-color: rgba(22,163,74,.5); }
.constellation .node-vert.live::after {
    content: ''; position: absolute;
    top: -4px; right: -4px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 8px var(--ok);
    animation: dotPulse 2s ease-in-out infinite;
}
.constellation .node-vert svg { width: 24px; height: 24px; }
.constellation .node-label {
    position: absolute;
    top: calc(100% + 14px); left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px; font-weight: 600;
    letter-spacing: .22em;
    color: rgba(255,255,255,.55);
    text-transform: uppercase;
    white-space: nowrap;
}
.constellation .node-vert:hover + .node-label,
.constellation .node-vert:hover .node-label { color: #fff; }

/* Líneas SVG (gradient + animación dash) */
.constellation .conn {
    stroke: url(#connGrad);
    stroke-width: 1;
    fill: none;
    stroke-dasharray: 4 6;
    animation: dash-flow 8s linear infinite;
}
.constellation .conn.live {
    stroke: rgba(22,163,74,.5);
    stroke-dasharray: 0;
    animation: none;
}
@keyframes dash-flow {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -100; }
}

/* ════════════════════════════════════════════════════════════════
 * GLOBE WIREFRAME · puntos LIVE
 * ════════════════════════════════════════════════════════════════ */
.globe-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 480px;
    margin: 0 auto;
    perspective: 1200px;
}
.globe {
    position: absolute; inset: 0;
    transform-style: preserve-3d;
    animation: globe-spin 60s linear infinite;
}
@keyframes globe-spin {
    0%   { transform: rotateY(0) rotateX(-15deg); }
    100% { transform: rotateY(360deg) rotateX(-15deg); }
}
.globe-ring {
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    margin: -50% 0 0 -50%;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    transform-style: preserve-3d;
}
.globe-ring.h1 { transform: rotateY(0deg); }
.globe-ring.h2 { transform: rotateY(30deg); border-color: rgba(255,255,255,.06); }
.globe-ring.h3 { transform: rotateY(60deg); border-color: rgba(255,255,255,.04); }
.globe-ring.h4 { transform: rotateY(90deg); border-color: rgba(255,255,255,.06); }
.globe-ring.h5 { transform: rotateY(120deg); border-color: rgba(255,255,255,.04); }
.globe-ring.h6 { transform: rotateY(150deg); border-color: rgba(255,255,255,.06); }
.globe-ring.v1 { transform: rotateX(90deg); border-color: rgba(255,255,255,.08); }
.globe-ring.v2 { transform: rotateX(60deg); border-color: rgba(255,255,255,.04); }
.globe-ring.v3 { transform: rotateX(30deg); border-color: rgba(255,255,255,.04); }
.globe-ring.v4 { transform: rotateX(-30deg); border-color: rgba(255,255,255,.04); }
.globe-ring.v5 { transform: rotateX(-60deg); border-color: rgba(255,255,255,.04); }

.globe-pin {
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 12px var(--ok);
    transform-style: preserve-3d;
}
.globe-pin::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 1px solid rgba(22,163,74,.6);
    border-radius: 50%;
    animation: pin-pulse 2s ease-out infinite;
}
@keyframes pin-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.4); opacity: 0; }
}
/* Posiciones de pins (sobre la esfera 3D) */
.globe-pin.p1 { top: 38%; left: 48%; transform: translate3d(0, 0, 230px); }
.globe-pin.p2 { top: 42%; left: 45%; transform: translate3d(0, 0, 220px); }
.globe-pin.p3 { top: 44%; left: 51%; transform: translate3d(0, 0, 220px); }
.globe-pin.p4 { top: 35%; left: 50%; transform: translate3d(0, 0, 225px); }

.globe-stage .globe-axis-label {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; font-weight: 600;
    letter-spacing: .2em; text-transform: uppercase;
    color: rgba(255,255,255,.4);
}
.globe-stage .globe-axis-label.tl { top: 0; left: 0; }
.globe-stage .globe-axis-label.tr { top: 0; right: 0; text-align: right; }
.globe-stage .globe-axis-label.bl { bottom: 0; left: 0; }
.globe-stage .globe-axis-label.br { bottom: 0; right: 0; text-align: right; }

/* ════════════════════════════════════════════════════════════════
 * CODE STREAM · snippets pasando suave
 * ════════════════════════════════════════════════════════════════ */
.code-stream {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #050505;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.7;
}
.code-stream::before, .code-stream::after {
    content: ''; position: absolute; left: 0; right: 0;
    height: 100px; z-index: 2; pointer-events: none;
}
.code-stream::before {
    top: 0;
    background: linear-gradient(180deg, #050505 0%, transparent 100%);
}
.code-stream::after {
    bottom: 0;
    background: linear-gradient(0deg, #050505 0%, transparent 100%);
}
.code-stream-track {
    padding: 32px 36px;
    animation: code-scroll 38s linear infinite;
}
@keyframes code-scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}
.code-line { color: rgba(255,255,255,.55); white-space: pre; }
.code-line .kw { color: #ff7ab6; }
.code-line .fn { color: #82c4ff; }
.code-line .str { color: #b5e09b; }
.code-line .com { color: rgba(255,255,255,.3); }
.code-line .num { color: #f0c674; }
.code-line.hl { background: rgba(255,255,255,.04); padding-left: 14px; margin-left: -14px; border-left: 2px solid rgba(255,255,255,.4); }

/* ════════════════════════════════════════════════════════════════
 * LAUNCH COUNTDOWN CTA
 * ════════════════════════════════════════════════════════════════ */
.launch-stage {
    position: relative;
    padding: 200px 28px;
    background: #000;
    overflow: hidden;
    text-align: center;
}
.launch-stage::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 50% 80%, rgba(255,255,255,.08) 0%, transparent 50%),
        linear-gradient(180deg, transparent 0%, rgba(0,0,0,.6) 100%);
    pointer-events: none;
}
.launch-stage::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 100%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 100%, black 30%, transparent 100%);
    pointer-events: none;
}
.launch-stage > * { position: relative; z-index: 2; }
.launch-countdown {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px; font-weight: 600;
    letter-spacing: .3em;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    margin-bottom: 32px;
    display: inline-flex; gap: 18px;
}
.launch-countdown .seg::after {
    content: '·'; margin-left: 18px; color: rgba(255,255,255,.2);
}
.launch-countdown .seg:last-child::after { display: none; }
.launch-countdown .seg .v { color: var(--ok); font-weight: 700; }

.launch-mark {
    margin: 60px auto 0;
    width: 200px; height: auto;
    opacity: .04;
    filter: invert(1) brightness(2);
    animation: mark-spin 80s linear infinite;
}
@keyframes mark-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ════════════════════════════════════════════════════════════════
 * METAL LOGO · el símbolo Kukuri como pieza tratada (cromo, brillo)
 * Una sola pieza, hecha bien. Mask + gradients animados.
 * ════════════════════════════════════════════════════════════════ */
.metal-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* La joya: símbolo Kukuri en SVG nativo · chrome pulido + bloom */
.metal-svg {
    position: relative;
    width: 88%;
    height: auto;
    z-index: 5;
    filter: drop-shadow(0 50px 60px rgba(0,0,0,.6)) drop-shadow(0 0 60px rgba(255,255,255,.08));
    animation: metal-float 6s ease-in-out infinite;
}
@keyframes metal-float {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

/* La joya legacy (mask-based, conservada por si la usas con HTTP server) */
.metal-piece {
    position: relative;
    width: 78%;
    aspect-ratio: 1.24 / 1;
    --kk-mask: url('assets/kukuri-symbol.png');
}

/* Layer 1 · sombra dramática proyectada */
.metal-piece .ml-shadow {
    position: absolute;
    inset: 0;
    background: #000;
    -webkit-mask-image: var(--kk-mask);
    mask-image: var(--kk-mask);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transform: translate(0, 36px) scale(1.02);
    filter: blur(28px);
    opacity: .65;
    z-index: 0;
}

/* Layer 2 · base oscura sólida (relleno del símbolo) */
.metal-piece .ml-base {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
        #2a2a2a 0%,
        #050505 40%,
        #1a1a1a 75%,
        #000 100%);
    -webkit-mask-image: var(--kk-mask);
    mask-image: var(--kk-mask);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    z-index: 1;
}

/* Layer 3 · CHROME shimmer · gradiente metalico animado */
.metal-piece .ml-chrome {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255,255,255,0)   0%,
        rgba(255,255,255,.08) 18%,
        rgba(255,255,255,.55) 38%,
        rgba(255,255,255,.95) 50%,
        rgba(255,255,255,.55) 62%,
        rgba(255,255,255,.08) 82%,
        rgba(255,255,255,0)   100%);
    background-size: 240% 240%;
    -webkit-mask-image: var(--kk-mask);
    mask-image: var(--kk-mask);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    mix-blend-mode: screen;
    animation: chrome-shimmer 6s ease-in-out infinite;
    z-index: 2;
}
@keyframes chrome-shimmer {
    0%   { background-position: 0%   100%; }
    50%  { background-position: 100% 0%; }
    100% { background-position: 0%   100%; }
}

/* Layer 4 · highlight rim (borde superior plata) */
.metal-piece .ml-rim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(255,255,255,.85) 0%,
        rgba(255,255,255,.25) 8%,
        rgba(255,255,255,0) 22%);
    -webkit-mask-image: var(--kk-mask);
    mask-image: var(--kk-mask);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    mix-blend-mode: screen;
    z-index: 3;
}

/* Layer 5 · spotlight rotating · luz que pasa por la superficie */
.metal-piece .ml-spot {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 30% 25%,
        rgba(255,255,255,.5) 0%,
        rgba(255,255,255,.15) 18%,
        rgba(255,255,255,0) 40%);
    -webkit-mask-image: var(--kk-mask);
    mask-image: var(--kk-mask);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    mix-blend-mode: screen;
    animation: spot-orbit 8s ease-in-out infinite;
    z-index: 4;
}
@keyframes spot-orbit {
    0%, 100% { transform: translate(0, 0); opacity: 1; }
    25% { transform: translate(8%, -4%); opacity: .85; }
    50% { transform: translate(20%, 8%); opacity: .65; }
    75% { transform: translate(8%, 12%); opacity: .85; }
}

/* Halo radial detrás · respiración */
.metal-stage::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 110%; height: 110%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 55%);
    border-radius: 50%;
    pointer-events: none;
    animation: halo-breathe-2 6s ease-in-out infinite;
    z-index: 0;
}
@keyframes halo-breathe-2 {
    0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Anillo orbital sutil */
.metal-stage::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 95%; height: 95%;
    transform: translate(-50%, -50%) rotateX(74deg);
    border: 1px dashed rgba(255,255,255,.1);
    border-radius: 50%;
    pointer-events: none;
    animation: ring-rotation 60s linear infinite;
    z-index: 0;
}
@keyframes ring-rotation {
    0% { transform: translate(-50%, -50%) rotateX(74deg) rotate(0); }
    100% { transform: translate(-50%, -50%) rotateX(74deg) rotate(360deg); }
}

/* Tag técnico debajo */
.metal-tag {
    position: absolute;
    bottom: 4%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: .26em;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 6;
}
.metal-coords {
    position: absolute;
    inset: 0;
    pointer-events: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: rgba(255,255,255,.28);
    letter-spacing: .14em;
    text-transform: uppercase;
    z-index: 6;
}
.metal-coords .lbl-tl { position: absolute; top: 5%; left: 0; }
.metal-coords .lbl-tr { position: absolute; top: 5%; right: 0; text-align: right; }

/* Variante GOLD (para usos especiales) */
.metal-piece.is-gold .ml-base {
    background: linear-gradient(160deg, #6b5421 0%, #1a1306 40%, #4a3915 75%, #0f0a02 100%);
}
.metal-piece.is-gold .ml-chrome {
    background: linear-gradient(135deg,
        rgba(255,200,80,0)    0%,
        rgba(255,210,90,.18)  18%,
        rgba(255,220,120,.7)  38%,
        rgba(255,235,180,1)   50%,
        rgba(255,220,120,.7)  62%,
        rgba(255,210,90,.18)  82%,
        rgba(255,200,80,0)    100%);
    background-size: 240% 240%;
}

/* ════════════════════════════════════════════════════════════════
 * MONOLITH · Logo Kukuri extruido en 3D
 * 18 capas del símbolo apiladas en Z + rotación + iluminación
 * ════════════════════════════════════════════════════════════════ */
.monolith-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 600px;
    margin: 0 auto;
    perspective: 2400px;
    perspective-origin: 50% 40%;
}
.monolith {
    position: absolute; inset: 0;
    transform-style: preserve-3d;
    animation: monolith-spin 24s linear infinite;
}
@keyframes monolith-spin {
    0%   { transform: rotateY(-15deg) rotateX(8deg); }
    50%  { transform: rotateY(195deg) rotateX(8deg); }
    100% { transform: rotateY(345deg) rotateX(8deg); }
}
.monolith-layer {
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
}
.monolith-layer img {
    width: 64%; height: auto;
    filter: invert(1) brightness(2);
    will-change: filter;
}
/* 18 capas apiladas con desfase en Z */
.monolith-layer:nth-child(1)  { transform: translateZ(-85px); }
.monolith-layer:nth-child(2)  { transform: translateZ(-75px); }
.monolith-layer:nth-child(3)  { transform: translateZ(-65px); }
.monolith-layer:nth-child(4)  { transform: translateZ(-55px); }
.monolith-layer:nth-child(5)  { transform: translateZ(-45px); }
.monolith-layer:nth-child(6)  { transform: translateZ(-35px); }
.monolith-layer:nth-child(7)  { transform: translateZ(-25px); }
.monolith-layer:nth-child(8)  { transform: translateZ(-15px); }
.monolith-layer:nth-child(9)  { transform: translateZ(-5px); }
.monolith-layer:nth-child(10) { transform: translateZ(5px); }
.monolith-layer:nth-child(11) { transform: translateZ(15px); }
.monolith-layer:nth-child(12) { transform: translateZ(25px); }
.monolith-layer:nth-child(13) { transform: translateZ(35px); }
.monolith-layer:nth-child(14) { transform: translateZ(45px); }
.monolith-layer:nth-child(15) { transform: translateZ(55px); }
.monolith-layer:nth-child(16) { transform: translateZ(65px); }
.monolith-layer:nth-child(17) { transform: translateZ(75px); }
.monolith-layer:nth-child(18) { transform: translateZ(85px); }
/* Las del medio más sólidas (efecto extrusión) */
.monolith-layer:nth-child(1)  img { opacity: .15; filter: invert(1) brightness(2) blur(.5px); }
.monolith-layer:nth-child(2)  img { opacity: .22; }
.monolith-layer:nth-child(3)  img { opacity: .3; }
.monolith-layer:nth-child(4)  img { opacity: .4; }
.monolith-layer:nth-child(5)  img { opacity: .55; }
.monolith-layer:nth-child(6)  img { opacity: .7; }
.monolith-layer:nth-child(7)  img { opacity: .85; }
.monolith-layer:nth-child(8)  img { opacity: .92; }
.monolith-layer:nth-child(9)  img { opacity: 1; }
.monolith-layer:nth-child(10) img { opacity: 1; }
.monolith-layer:nth-child(11) img { opacity: .92; }
.monolith-layer:nth-child(12) img { opacity: .85; }
.monolith-layer:nth-child(13) img { opacity: .7; }
.monolith-layer:nth-child(14) img { opacity: .55; }
.monolith-layer:nth-child(15) img { opacity: .4; }
.monolith-layer:nth-child(16) img { opacity: .3; }
.monolith-layer:nth-child(17) img { opacity: .22; }
.monolith-layer:nth-child(18) img { opacity: .15; filter: invert(1) brightness(2) blur(.5px); }

/* Halo radial detrás */
.monolith-halo {
    position: absolute;
    top: 50%; left: 50%;
    width: 130%; height: 130%;
    margin-top: -65%; margin-left: -65%;
    background: radial-gradient(circle, rgba(255,255,255,.18) 0%, transparent 55%);
    border-radius: 50%;
    pointer-events: none;
    animation: halo-breathe 5s ease-in-out infinite;
    z-index: -1;
}
@keyframes halo-breathe {
    0%, 100% { opacity: .55; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

/* Reflexión proyectada debajo */
.monolith-reflection {
    position: absolute;
    bottom: -8%; left: 50%;
    transform: translateX(-50%) scaleY(.18);
    width: 60%; height: 90%;
    background: radial-gradient(ellipse at 50% 30%, rgba(255,255,255,.18) 0%, transparent 65%);
    filter: blur(20px);
    opacity: .8;
    pointer-events: none;
}

/* Anillo orbital sutil */
.monolith-ring {
    position: absolute;
    top: 50%; left: 50%;
    width: 90%; height: 90%;
    margin-top: -45%; margin-left: -45%;
    border: 1px dashed rgba(255,255,255,.08);
    border-radius: 50%;
    transform: rotateX(72deg);
    animation: ring-rot 80s linear infinite;
    pointer-events: none;
}
@keyframes ring-rot {
    0% { transform: rotateX(72deg) rotate(0); }
    100% { transform: rotateX(72deg) rotate(360deg); }
}
.monolith-ring-2 {
    width: 105%; height: 105%;
    margin-top: -52.5%; margin-left: -52.5%;
    transform: rotateX(72deg) rotateZ(45deg);
    animation: ring-rot-2 100s linear infinite reverse;
    border-style: solid;
    border-color: rgba(255,255,255,.04);
}
@keyframes ring-rot-2 {
    0% { transform: rotateX(72deg) rotateZ(45deg) rotate(0); }
    100% { transform: rotateX(72deg) rotateZ(45deg) rotate(-360deg); }
}

/* Coordinate labels técnicas */
.monolith-coords {
    position: absolute;
    inset: 0;
    pointer-events: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: rgba(255,255,255,.3);
    letter-spacing: .14em;
    text-transform: uppercase;
}
.monolith-coords::before,
.monolith-coords::after {
    content: '';
    position: absolute;
    background: rgba(255,255,255,.2);
}
.monolith-coords::before { top: 50%; left: 0; width: 32px; height: 1px; }
.monolith-coords::after { top: 50%; right: 0; width: 32px; height: 1px; }
.monolith-coords .lbl-tl { position: absolute; top: 12%; left: 4%; }
.monolith-coords .lbl-tr { position: absolute; top: 12%; right: 4%; text-align: right; }
.monolith-coords .lbl-bl { position: absolute; bottom: 12%; left: 4%; }
.monolith-coords .lbl-br { position: absolute; bottom: 12%; right: 4%; text-align: right; }

/* ════════════════════════════════════════════════════════════════
 * BLUEPRINT VIEWS · 3 vistas ortográficas del logo
 * ════════════════════════════════════════════════════════════════ */
.blueprint-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}
@media (max-width: 800px) { .blueprint-trio { grid-template-columns: 1fr; } }
.bp-view {
    aspect-ratio: 1;
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 36px;
    position: relative;
    overflow: hidden;
}
.bp-view::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
.bp-view-inner {
    position: relative; z-index: 2;
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.bp-view-inner img {
    width: 65%;
    filter: invert(1) brightness(2);
}
.bp-view.iso .bp-view-inner img {
    transform: rotateX(60deg) rotateZ(-45deg);
    filter: invert(1) brightness(2) drop-shadow(0 20px 30px rgba(255,255,255,.15));
}
.bp-view.side .bp-view-inner img {
    transform: rotateY(75deg);
    width: 30%;
    filter: invert(1) brightness(2) blur(.5px);
    opacity: .8;
}
.bp-view-label {
    position: absolute; top: 16px; left: 18px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; font-weight: 700;
    letter-spacing: .26em; text-transform: uppercase;
    color: rgba(255,255,255,.5);
}
.bp-view-meta {
    position: absolute; bottom: 16px; right: 18px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px; letter-spacing: .14em;
    color: rgba(255,255,255,.3);
    text-transform: uppercase;
}
.bp-view-cross {
    position: absolute;
    color: rgba(255,255,255,.25);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
}
.bp-view-cross.tl { top: 14px; right: 14px; }
.bp-view-cross.bl { bottom: 14px; left: 14px; }

/* ════════════════════════════════════════════════════════════════
 * EXPLODED LOGO · descomposición de partes
 * ════════════════════════════════════════════════════════════════ */
.explode-logo-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    max-width: 1100px;
    margin: 60px auto 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.04) 0%, transparent 60%);
    overflow: hidden;
}
.explode-logo-piece {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 1.4s var(--ease-cinematic);
}
.explode-logo-piece img {
    height: 240px; width: auto;
    filter: invert(1) brightness(2);
}
.explode-logo-piece .label {
    position: absolute;
    bottom: -28px; left: 50%;
    transform: translateX(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; font-weight: 600;
    letter-spacing: .26em; text-transform: uppercase;
    color: rgba(255,255,255,.5);
    white-space: nowrap;
}
.explode-logo-piece.p1 { transform: translate(calc(-50% - 280px), -50%) scale(.6); opacity: .35; }
.explode-logo-piece.p2 { transform: translate(calc(-50% - 140px), -50%) scale(.8); opacity: .65; }
.explode-logo-piece.p3 { z-index: 2; }
.explode-logo-piece.p4 { transform: translate(calc(-50% + 140px), -50%) scale(.8); opacity: .65; }
.explode-logo-piece.p5 { transform: translate(calc(-50% + 280px), -50%) scale(.6); opacity: .35; }
/* Connecting line */
.explode-logo-stage::after {
    content: '';
    position: absolute;
    top: 50%; left: 8%; right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15) 30%, rgba(255,255,255,.3) 50%, rgba(255,255,255,.15) 70%, transparent);
}

/* ════════════════════════════════════════════════════════════════
 * GIANT BG LOGO · marca de agua decorativa
 * ════════════════════════════════════════════════════════════════ */
.giant-logo-bg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 140vh; height: auto;
    opacity: .025;
    pointer-events: none;
    filter: invert(1) brightness(2);
    z-index: 0;
    animation: giant-rot 240s linear infinite;
}
@keyframes giant-rot {
    0%   { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ════════════════════════════════════════════════════════════════
 * EXPLODED MAC ISOMÉTRICO (RDG hero)
 * 5 capas verticalmente separadas con perspectiva 3D
 * ════════════════════════════════════════════════════════════════ */
.exploded-stage {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1.1 / 1;
    margin: 0 auto;
    perspective: 2400px;
    perspective-origin: 50% 50%;
}
.exploded-scene {
    position: absolute; inset: 0;
    transform-style: preserve-3d;
    transform: rotateX(58deg) rotateZ(-28deg);
    animation: explode-tilt 14s ease-in-out infinite;
}
@keyframes explode-tilt {
    0%, 100% { transform: rotateX(58deg) rotateZ(-28deg); }
    50%      { transform: rotateX(58deg) rotateZ(-22deg); }
}
.exploded-layer {
    position: absolute;
    top: 50%; left: 50%;
    width: 78%; aspect-ratio: 1.55 / 1;
    margin-left: -39%;
    margin-top: -25%;
    border-radius: 14px;
    transform-style: preserve-3d;
}

/* Capa 1: pantalla con UI */
.exploded-screen {
    background: #fff;
    border: 1px solid rgba(0,0,0,.12);
    box-shadow:
        0 1px 0 rgba(255,255,255,.5) inset,
        0 0 0 8px #0a0a0a,
        0 40px 80px -20px rgba(0,0,0,.3);
    transform: translateZ(160px);
    overflow: hidden;
    padding: 24px;
}
.exploded-screen .ui-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 14px;
    height: 100%;
}
.exploded-screen .ui-side {
    background: #fafafa;
    border-radius: 6px;
    padding: 12px 8px;
    display: flex; flex-direction: column; gap: 6px;
}
.exploded-screen .ui-side-row {
    height: 8px;
    background: rgba(0,0,0,.08);
    border-radius: 3px;
}
.exploded-screen .ui-side-row.active { background: #000; }
.exploded-screen .ui-main { display: flex; flex-direction: column; gap: 8px; }
.exploded-screen .ui-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px; font-weight: 700;
    letter-spacing: -.025em;
    color: #000;
    margin-bottom: 4px;
}
.exploded-screen .ui-kpis {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
.exploded-screen .ui-kpi {
    background: #fff;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 6px;
    padding: 8px 6px;
    font-size: 8px; color: rgba(0,0,0,.5);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.exploded-screen .ui-kpi strong {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 14px; font-weight: 700;
    color: #000;
    letter-spacing: -.02em;
    margin-top: 4px;
    text-transform: none;
}
.exploded-screen .ui-chart {
    flex: 1;
    background: #fafafa;
    border-radius: 6px;
    padding: 10px;
    overflow: hidden;
}
.exploded-screen .ui-chart svg { width: 100%; height: 100%; }

/* Capa 2: glass / panel intermedio */
.exploded-glass {
    background: rgba(255,255,255,.65);
    border: 1px solid rgba(0,0,0,.08);
    backdrop-filter: blur(10px);
    transform: translateZ(96px);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.18);
}

/* Capa 3: keyboard */
.exploded-keyboard {
    background: linear-gradient(180deg, #f8f8f8 0%, #ededed 100%);
    border: 1px solid rgba(0,0,0,.08);
    transform: translateZ(48px);
    box-shadow: 0 20px 50px -20px rgba(0,0,0,.18);
    padding: 18px;
}
.exploded-keyboard .kb-grid {
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    gap: 4px;
    height: 65%;
}
.exploded-keyboard .kb-key {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 3px;
    box-shadow: 0 1px 0 rgba(0,0,0,.05);
}
.exploded-keyboard .kb-trackpad {
    margin-top: 10px;
    width: 50%;
    height: 25%;
    margin-left: auto; margin-right: auto;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 6px;
}

/* Capa 4: base/chasis */
.exploded-base {
    background: linear-gradient(135deg, #d4d4d4 0%, #999 100%);
    border-radius: 14px;
    transform: translateZ(0);
    box-shadow: 0 30px 80px rgba(0,0,0,.25);
}

/* Capa 5: shadow */
.exploded-shadow {
    background: radial-gradient(ellipse, rgba(0,0,0,.35) 0%, transparent 60%);
    transform: translateZ(-80px);
    border-radius: 50%;
    height: 60%;
    margin-top: -15%;
    filter: blur(20px);
}

/* ════════════════════════════════════════════════════════════════ */

/* ═════════ HELPERS ═════════ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-10 { margin-top: 40px; } .mt-14 { margin-top: 56px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; } .mb-10 { margin-bottom: 40px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
