/* =========================================================
   ESDM — Diseño futurista (home)
   Paleta basada en el azul rey del logo ESDM
   ========================================================= */

:root {
    --bg: #04060f;
    --bg-2: #070b1c;
    --surface: rgba(14, 22, 52, 0.55);
    --surface-solid: #0b1230;
    --line: rgba(120, 160, 255, 0.14);
    --line-strong: rgba(120, 170, 255, 0.32);

    --brand: #0433a6;          /* azul del logo */
    --brand-bright: #2f6bff;
    --brand-glow: #4d8dff;
    --cyan: #22d3ee;
    --cyan-soft: rgba(34, 211, 238, 0.14);

    --text: #e8eeff;
    --text-dim: #9aa8d1;
    --text-faint: #8693bf;

    --grad-brand: linear-gradient(120deg, #2f6bff 0%, #22d3ee 100%);
    --grad-text: linear-gradient(180deg, #ffffff 10%, #a9bcf5 100%);

    --font-display: 'Unbounded', 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;

    --radius: 20px;
    --radius-lg: 28px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --nav-h: 76px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; overflow-x: clip; }
body.fx {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.fx.intro-lock { overflow: hidden; }

.fx a { color: inherit; text-decoration: none; }
.fx img { max-width: 100%; display: block; }
.fx h1, .fx h2, .fx h3, .fx h4 { color: var(--text); margin: 0; }
.fx p { margin: 0; }
.fx ::selection { background: var(--brand-bright); color: #fff; }

/* Fondo global: rejilla + ruido de luz */
.fx-bg {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(1200px 700px at 85% -10%, rgba(47, 107, 255, 0.18), transparent 60%),
        radial-gradient(900px 600px at -10% 40%, rgba(34, 211, 238, 0.07), transparent 60%),
        var(--bg);
}
.fx-bg::after {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
    opacity: 0.35;
}

.fx-container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.fx-section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }

/* Etiqueta HUD */
.fx-tag {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--cyan);
    padding: 7px 14px; border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 999px; background: rgba(34, 211, 238, 0.06);
}
.fx-tag::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
    animation: fx-blink 1.6s infinite;
}
@keyframes fx-blink { 50% { opacity: 0.25; } }

.fx-title {
    font-family: var(--font-display); font-weight: 600;
    font-size: clamp(30px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -0.02em;
    margin-top: 20px !important;
}
.fx-title .grad, .grad {
    background: var(--grad-brand); -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.fx-lead { color: var(--text-dim); font-size: clamp(16px, 1.4vw, 19px); max-width: 640px; margin-top: 18px !important; }
.fx-head { margin-bottom: clamp(40px, 6vw, 72px); }
.fx-head.center { text-align: center; }
.fx-head.center .fx-lead { margin-inline: auto; }

/* ---------- Botones ---------- */
.fx-btn {
    position: relative; display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 26px; border-radius: 14px; border: 1px solid transparent;
    font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, border-color .3s;
    white-space: nowrap; font-family: var(--font-body);
}
.fx-btn-primary {
    background: var(--grad-brand); color: #fff !important;
    box-shadow: 0 10px 40px -10px rgba(47, 107, 255, 0.8), inset 0 1px 0 rgba(255,255,255,.3);
}
.fx-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(34, 211, 238, 0.7); }
.fx-btn-ghost {
    background: rgba(255,255,255,0.03); color: var(--text) !important;
    border-color: var(--line-strong); backdrop-filter: blur(10px);
}
.fx-btn-ghost:hover { border-color: var(--cyan); background: var(--cyan-soft); transform: translateY(-2px); }
.fx-btn img { height: 18px; width: auto; }

/* ---------- Tarjeta vidrio ---------- */
.fx-glass {
    position: relative; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.fx-glass::before { /* borde degradado */
    content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
    background: linear-gradient(140deg, rgba(77,141,255,.55), transparent 35%, transparent 65%, rgba(34,211,238,.4));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: .6; pointer-events: none;
}

/* Inclinación 3D (JS añade --rx, --ry, --mx, --my) */
.tilt {
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .5s var(--ease);
    will-change: transform;
}
.tilt.is-tilting { transition: transform .08s linear; }
.tilt .glare {
    position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(120,170,255,.18), transparent 45%);
    opacity: 0; transition: opacity .3s;
}
.tilt:hover .glare { opacity: 1; }
.tilt .pop { transform: translateZ(40px); }

/* =========================================================
   INTRO · estilo portal de acceso (Login)
   ========================================================= */
.boot {
    position: fixed; inset: 0; z-index: 9990; display: grid; place-content: center; justify-items: center; gap: 22px;
    background: radial-gradient(circle, #071430 0%, #02040c 70%);
    transition: opacity .7s ease, visibility .7s;
}
body:not(.arranque) .boot { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-scan { position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }
.boot-logo img { width: 180px; filter: drop-shadow(0 0 24px rgba(34,211,238,.45)); animation: bootLogo 1.4s ease both; }
@keyframes bootLogo { 0% { opacity: 0; transform: scale(.85); filter: blur(8px); } 100% { opacity: 1; transform: none; } }
.boot-lineas { list-style: none; margin: 0; padding: 0; font: 500 12px/2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); min-width: 360px; }
.boot-lineas li { opacity: 0; animation: bootLinea .4s ease forwards; }
.boot-lineas li::before { content: "› "; color: var(--cyan); }
.boot-lineas li::after { content: " · OK"; color: #34d399; opacity: 0; animation: bootOk .2s forwards; }
.boot-lineas li:nth-child(1) { animation-delay: .25s; } .boot-lineas li:nth-child(1)::after { animation-delay: .55s; }
.boot-lineas li:nth-child(2) { animation-delay: .55s; } .boot-lineas li:nth-child(2)::after { animation-delay: .85s; }
.boot-lineas li:nth-child(3) { animation-delay: .85s; } .boot-lineas li:nth-child(3)::after { animation-delay: 1.15s; }
.boot-lineas li:nth-child(4) { animation-delay: 1.15s; color: var(--text); } .boot-lineas li:nth-child(4)::after { animation-delay: 1.4s; }
@keyframes bootLinea { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes bootOk { to { opacity: 1; } }
.boot-barra { width: 360px; height: 2px; background: rgba(34,211,238,.12); overflow: hidden; border-radius: 2px; }
.boot-barra i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-bright), var(--cyan)); box-shadow: 0 0 12px var(--cyan); animation: bootBarra 1.6s cubic-bezier(.6,0,.2,1) forwards .1s; }
@keyframes bootBarra { to { width: 100%; } }
.boot-hint { font: 500 10.5px var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); opacity: 0; animation: bootOk .4s forwards 1.2s; }
@media (max-width: 575px) { .boot-lineas, .boot-barra { min-width: 0; width: 280px; } .boot-lineas { font-size: 10.5px; } .boot-logo img { width: 140px; } }

/* Destello del salto */
.destello { position: fixed; inset: 0; z-index: 9995; pointer-events: none; opacity: 0;
    background: radial-gradient(circle at 70% 50%, #fff, #a5f3fc 30%, transparent 70%); }
body.fx-salto .destello { animation: destello 1.1s ease-in forwards .55s; }
@keyframes destello { 0% { opacity: 0; } 70% { opacity: 1; } 100% { opacity: 1; background: #fff; } }
@media (max-width: 991px) { .destello { background: radial-gradient(circle at 50% 75%, #fff, #a5f3fc 30%, transparent 70%); } }

/* Mientras dura la intro, el contenido del hero espera */
body.intro-lock #mainNav, body.intro-lock .hero-inner, body.intro-lock .fx-marquee,
body.intro-lock .whatsapp-float, body.intro-lock .robot-say, body.intro-lock .robot-stage { opacity: 0; }
#mainNav, .hero-inner, .fx-marquee, .whatsapp-float { transition: opacity .9s ease; }

/* Red neuronal 3D detrás del robot */
.hero-neural { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-neural canvas { display: block; width: 100% !important; height: 100% !important; }
.hero-neural::after { /* viñeta para que el texto se lea */
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(4,6,15,.92) 0%, rgba(4,6,15,.55) 38%, transparent 62%),
        linear-gradient(to bottom, transparent 70%, var(--bg) 100%);
}
@media (max-width: 991px) {
    .hero-neural::after { background: linear-gradient(to bottom, rgba(4,6,15,.88) 0%, rgba(4,6,15,.6) 45%, transparent 70%, var(--bg) 100%); }
}
.hero-neural.activa ~ .hero-floor, .hero-neural.activa ~ .hero-horizon { display: none; }

/* =========================================================
   NAVBAR
   ========================================================= */
#mainNav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 18px 0; transition: padding .4s var(--ease), background .4s, border-color .4s;
    border-bottom: 1px solid transparent;
}
#mainNav.scrolled {
    padding: 10px 0; background: rgba(4, 6, 15, .72);
    backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom-color: var(--line);
}
#mainNav .navbar-brand img { height: 46px; width: auto; transition: height .4s var(--ease); }
#mainNav.scrolled .navbar-brand img { height: 38px; }
#mainNav .nav-link {
    color: var(--text-dim) !important; font-size: 14px; font-weight: 500;
    padding: 8px 14px !important; border-radius: 10px; position: relative; transition: color .25s, background .25s;
}
#mainNav .nav-link:hover, #mainNav .nav-link.active { color: #fff !important; background: rgba(255,255,255,.05); }
#mainNav .nav-link.active::after {
    content: ''; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; border-radius: 50%;
    background: var(--cyan); box-shadow: 0 0 8px var(--cyan); transform: translateX(-50%);
}
#mainNav .nav-cta { margin-left: 10px; }
#mainNav .nav-cta .fx-btn { padding: 11px 18px; font-size: 14px; }
#mainNav .navbar-toggler { border: 1px solid var(--line-strong); padding: 8px 10px; border-radius: 10px; }
#mainNav .navbar-toggler:focus { box-shadow: none; }
#mainNav .navbar-toggler-icon { filter: invert(1); width: 1.2em; height: 1.2em; }
@media (max-width: 991px) {
    #mainNav .navbar-collapse {
        margin-top: 12px; padding: 14px; border-radius: 18px;
        background: rgba(7, 11, 28, .96); border: 1px solid var(--line);
    }
    #mainNav .nav-cta { margin: 10px 0 0; }
    #mainNav .nav-cta .fx-btn { width: 100%; justify-content: center; }
}

/* =========================================================
   HERO
   ========================================================= */
#hero {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center; overflow: hidden;
    padding: calc(var(--nav-h) + 40px) 0 80px;
}
.hero-floor {
    position: absolute; left: -50%; right: -50%; bottom: -10%; height: 55%;
    transform: perspective(600px) rotateX(70deg); transform-origin: bottom;
    background-image:
        linear-gradient(rgba(47,107,255,.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47,107,255,.5) 1px, transparent 1px);
    background-size: 70px 70px;
    animation: grid-run-70 3s linear infinite;
    mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent 85%);
    opacity: .55; pointer-events: none;
}
@keyframes grid-run-70 { to { background-position: 0 70px; } }
.hero-horizon {
    position: absolute; left: 0; right: 0; bottom: 45%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    box-shadow: 0 0 40px 6px rgba(34,211,238,.35); opacity: .6; pointer-events: none;
}
.hero-orb {
    position: absolute; width: 640px; height: 640px; border-radius: 50%;
    right: -120px; top: 6%; filter: blur(90px); pointer-events: none;
    background: radial-gradient(circle, rgba(47,107,255,.45), rgba(4,51,166,.15) 50%, transparent 70%);
}
/* Spotlight que sigue al mouse */
.hero-spot {
    position: absolute; width: 520px; height: 520px; border-radius: 50%; pointer-events: none;
    left: var(--sx, 70%); top: var(--sy, 30%); transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(200,220,255,.10), transparent 65%);
    transition: opacity .3s; z-index: 1;
}

.hero-inner { position: relative; z-index: 3; }
.hero-copy { max-width: 620px; }
.hero-title {
    font-family: var(--font-display); font-weight: 600;
    font-size: clamp(36px, 5vw, 68px); line-height: 1.04; letter-spacing: -0.035em;
    margin-top: 26px !important;
    background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title .grad { display: inline-block; }
.hero-desc { color: var(--text-dim); font-size: clamp(16px, 1.35vw, 19px); margin-top: 24px !important; max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-stats {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
    margin-top: 56px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
    background: var(--line); max-width: 620px;
}
.hero-stat { background: rgba(4,6,15,.75); padding: 18px 16px; backdrop-filter: blur(8px); }
.hero-stat b { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); color: #fff; }
.hero-stat span { font-size: 12px; color: var(--text-faint); font-family: var(--font-mono); letter-spacing: .04em; }
@media (max-width: 575px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

/* Escenario del robot 3D */
.robot-stage {
    position: fixed; top: 0; right: 0; width: 52vw; height: 100vh; z-index: 2;
    transform-origin: bottom left;
    transition: transform .9s var(--ease), border-radius .9s var(--ease), background .6s, box-shadow .6s, opacity .5s;
    border-radius: 0; overflow: hidden;
}
.robot-stage spline-viewer { width: 100%; height: 100%; display: block; }
.robot-stage .robot-fallback {
    position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-faint);
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em;
}
.robot-stage .loader-ring {
    width: 64px; height: 64px; border-radius: 50%;
    border: 2px solid rgba(77,141,255,.2); border-top-color: var(--cyan);
    animation: spin 1s linear infinite; margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.robot-stage.loaded .robot-fallback { display: none; }

/* Burbuja de diálogo del robot en el hero */
.robot-say {
    position: absolute; z-index: 4; right: clamp(20px, 30vw, 440px); top: 26%;
    max-width: 280px; padding: 16px 18px; font-size: 14px; color: var(--text);
    border-radius: 18px 18px 4px 18px; pointer-events: none;
    opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .5s, transform .5s var(--ease);
}
.robot-say.show { opacity: 1; transform: none; }
.robot-say .who { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--cyan); text-transform: uppercase; display: block; margin-bottom: 6px; }

/* Robot acoplado (al hacer scroll) — solo escritorio */
body.robot-docked .robot-stage {
    transform: translate(calc(-48vw + 20px), -20px) scale(.24);
    border-radius: 120px;
    background: radial-gradient(circle at 50% 40%, #0d1b4a, #03050d 75%);
    box-shadow: 0 0 0 6px rgba(34,211,238,.25), 0 0 120px rgba(47,107,255,.6);
}
body.robot-docked .robot-stage,
body.robot-hidden .robot-stage { pointer-events: none; }
body.robot-hidden.robot-docked .robot-stage { opacity: 0; transform: translate(calc(-48vw + 20px), 40px) scale(.2); }

@media (max-width: 991px) {
    #hero { padding-bottom: 0; flex-direction: column; }
    .hero-inner { order: 1; }
    .robot-stage {
        position: relative; width: 100%; height: 440px; order: 2; margin-top: 10px;
        transform: none !important; border-radius: 0 !important; box-shadow: none !important; background: none !important;
    }
    .robot-say { display: none; }
    .hero-orb { right: -300px; top: 40%; }
}

/* =========================================================
   GUÍA (asistente que narra cada sección)
   ========================================================= */
.guide {
    position: fixed; z-index: 900; left: calc(12.5vw + 40px); bottom: 34px;
    width: min(320px, calc(100vw - 32px));
    padding: 16px 18px 14px; border-radius: 18px 18px 18px 4px;
    opacity: 0; transform: translateY(16px); pointer-events: none;
    transition: opacity .5s, transform .6s var(--ease);
}
body.robot-docked .guide { opacity: 1; transform: none; pointer-events: auto; }
body.robot-hidden .guide { opacity: 0; transform: translateY(16px); pointer-events: none; }
.guide-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.guide-name { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--cyan); text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.guide-name::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; }
.guide-ctrls { display: flex; gap: 6px; }
.guide-ctrls button {
    width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.03);
    color: var(--text-dim); display: grid; place-items: center; font-size: 12px; cursor: pointer; transition: all .2s;
}
.guide-ctrls button:hover, .guide-ctrls button[aria-pressed="true"] { color: #fff; border-color: var(--cyan); background: var(--cyan-soft); }
.guide-text { font-size: 13.5px; line-height: 1.55; color: var(--text); min-height: 42px; }
.guide-text .caret { display: inline-block; width: 7px; height: 15px; background: var(--cyan); vertical-align: -2px; margin-left: 2px; animation: fx-blink 1s infinite; }
.guide-step { margin-top: 10px; display: flex; gap: 4px; }
.guide-step i { flex: 1; height: 2px; border-radius: 2px; background: rgba(255,255,255,.08); transition: background .4s; }
.guide-step i.on { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }

.guide-reopen {
    position: fixed; z-index: 900; left: 20px; bottom: 24px;
    display: none; align-items: center; gap: 10px; padding: 10px 14px 10px 10px;
    border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(7,11,28,.9);
    color: var(--text); font-size: 13px; cursor: pointer; backdrop-filter: blur(10px);
}
.guide-reopen .orb-mini { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4d8dff, var(--brand)); box-shadow: 0 0 14px rgba(47,107,255,.9); }
body.robot-hidden.robot-docked .guide-reopen { display: inline-flex; }

/* Móvil: la guía es una píldora compacta */
@media (max-width: 991px) {
    .guide { left: 16px; bottom: 16px; width: calc(100vw - 104px); padding: 12px 14px; border-radius: 16px; }
    .guide-text { font-size: 13.5px; min-height: 0; }
    .guide-step { display: none; }
    .guide-reopen { left: 16px; bottom: 16px; }
    body.robot-docked.guide-idle .guide { opacity: 0; transform: translateY(16px); pointer-events: none; }
}

/* =========================================================
   MARQUESINA
   ========================================================= */
.fx-marquee { border-block: 1px solid var(--line); background: rgba(7,11,28,.6); overflow: hidden; padding: 18px 0; position: relative; z-index: 3; }
.fx-marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.fx-marquee span { font-family: var(--font-display); font-size: 15px; color: var(--text-dim); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.fx-marquee span::after { content: '✦'; color: var(--brand-glow); font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   ESDM IA
   ========================================================= */
#ia .ia-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (max-width: 991px) { #ia .ia-wrap { grid-template-columns: 1fr; } }

/* Cubo holográfico 3D */
.holo-scene { position: relative; height: 420px; display: grid; place-items: center; perspective: 1100px; }
.holo-cube { position: relative; width: 210px; height: 210px; transform-style: preserve-3d; animation: cube-spin 18s linear infinite; }
.holo-scene:hover .holo-cube { animation-play-state: paused; }
@keyframes cube-spin { from { transform: rotateX(-22deg) rotateY(0); } to { transform: rotateX(-22deg) rotateY(360deg); } }
.holo-face {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    border: 1px solid rgba(77,141,255,.55); background: rgba(10, 24, 70, .35);
    box-shadow: inset 0 0 40px rgba(47,107,255,.35), 0 0 30px rgba(47,107,255,.2);
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text);
    backface-visibility: visible;
}
.holo-face i { font-size: 38px; color: var(--cyan); text-shadow: 0 0 20px var(--cyan); }
.holo-face:nth-child(1) { transform: translateZ(105px); }
.holo-face:nth-child(2) { transform: rotateY(90deg) translateZ(105px); }
.holo-face:nth-child(3) { transform: rotateY(180deg) translateZ(105px); }
.holo-face:nth-child(4) { transform: rotateY(-90deg) translateZ(105px); }
.holo-face:nth-child(5) { transform: rotateX(90deg) translateZ(105px); }
.holo-face:nth-child(6) { transform: rotateX(-90deg) translateZ(105px); }
.holo-base {
    position: absolute; bottom: 30px; width: 300px; height: 300px; border-radius: 50%;
    transform: rotateX(78deg); border: 1px solid rgba(34,211,238,.45);
    box-shadow: 0 0 60px rgba(34,211,238,.25), inset 0 0 60px rgba(34,211,238,.2);
    background: repeating-radial-gradient(circle, transparent 0 22px, rgba(34,211,238,.12) 23px 24px);
    animation: base-spin 10s linear infinite;
}
@keyframes base-spin { to { transform: rotateX(78deg) rotateZ(360deg); } }
.holo-beam { position: absolute; bottom: 60px; width: 220px; height: 260px; background: linear-gradient(to top, rgba(34,211,238,.18), transparent); clip-path: polygon(15% 100%, 85% 100%, 100% 0, 0 0); filter: blur(2px); pointer-events: none; }

.ia-points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
@media (max-width: 575px) { .ia-points { grid-template-columns: 1fr; } }
.ia-point { padding: 18px; border-radius: 16px; }
.ia-point i { color: var(--cyan); font-size: 18px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--cyan-soft); margin-bottom: 12px; }
.ia-point h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px !important; }
.ia-point p { font-size: 13.5px; color: var(--text-dim); }

.ia-principle {
    margin-top: 22px; padding: 14px 18px; border-radius: 14px; display: flex; align-items: center; gap: 12px;
    font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); border: 1px dashed var(--line-strong);
}
.ia-principle b { color: #fff; font-weight: 500; }


/* =========================================================
   SERVICIOS
   ========================================================= */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 991px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .svc-grid { grid-template-columns: 1fr; } }
.svc { display: block; border-radius: var(--radius); overflow: hidden; }
.svc-media { position: relative; aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.75); transition: transform .8s var(--ease), filter .5s; }
.svc:hover .svc-media img { transform: scale(1.08); filter: saturate(1.1) brightness(.9); }
.svc-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,6,15,.95), transparent 60%); }
.svc-num { position: absolute; z-index: 2; top: 14px; left: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--cyan); letter-spacing: .1em; }
.svc-body { padding: 4px 22px 24px; position: relative; }
.svc-body h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin: -6px 0 8px !important; }
.svc-body p { color: var(--text-dim); font-size: 14px; }
.svc-go { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--cyan); font-weight: 600; }
.svc-go i { transition: transform .3s var(--ease); }
.svc:hover .svc-go i { transform: translateX(5px); }

/* =========================================================
   PRODUCTOS (bento)
   ========================================================= */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento > * { padding: clamp(24px, 3vw, 34px); border-radius: var(--radius-lg); overflow: hidden; }
.b-almacen { grid-column: span 4; grid-row: span 2; }
.b-transporte { grid-column: span 2; }
.b-guia { grid-column: span 2; }
.b-distri { grid-column: span 6; }
@media (max-width: 991px) {
    .bento { grid-template-columns: 1fr; }
    .bento > * { grid-column: auto !important; grid-row: auto !important; }
}
.prod-ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 22px; color: #fff; background: var(--grad-brand); box-shadow: 0 10px 30px -8px rgba(47,107,255,.8); }
.prod-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--cyan); text-transform: uppercase; margin-top: 22px; display: block; }
.bento h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); margin: 8px 0 10px !important; }
.bento p { color: var(--text-dim); font-size: 15px; max-width: 560px; }
.prod-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.prod-list li { font-size: 14px; color: var(--text); display: flex; gap: 10px; align-items: flex-start; }
.prod-list li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
@media (max-width: 575px) { .prod-list { grid-template-columns: 1fr; } }
.prod-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.badge-demo { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #34d399; border: 1px solid rgba(52,211,153,.35); background: rgba(52,211,153,.08); padding: 6px 12px; border-radius: 999px; margin-left: 10px; vertical-align: middle; }

/* Visual QR 3D en Almacén */
.b-almacen { position: relative; }
.qr-stack { position: absolute; right: -30px; bottom: -30px; width: 280px; height: 280px; perspective: 900px; pointer-events: none; opacity: .9; }
.qr-box {
    position: absolute; width: 130px; height: 130px; border-radius: 14px;
    border: 1px solid rgba(77,141,255,.6); background: rgba(10,24,70,.6);
    box-shadow: 0 0 40px rgba(47,107,255,.35);
    background-image:
        linear-gradient(90deg, rgba(232,238,255,.85) 50%, transparent 50%),
        linear-gradient(rgba(232,238,255,.85) 50%, transparent 50%);
    background-size: 26px 26px; background-blend-mode: difference;
    transform: rotateX(55deg) rotateZ(-35deg);
    animation: qr-float 6s ease-in-out infinite;
}
.qr-box:nth-child(1) { left: 20px; top: 110px; }
.qr-box:nth-child(2) { left: 100px; top: 60px; animation-delay: -2s; opacity: .7; }
.qr-box:nth-child(3) { left: 60px; top: 0; animation-delay: -4s; opacity: .45; }
@keyframes qr-float { 50% { transform: rotateX(55deg) rotateZ(-35deg) translateZ(24px); } }
@media (max-width: 991px) { .qr-stack { display: none; } }

/* =========================================================
   CONTPAQi — órbita 3D
   ========================================================= */
.cq-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
@media (max-width: 991px) { .cq-wrap { grid-template-columns: 1fr; } }
.orbit-scene { position: relative; height: 460px; perspective: 1200px; display: grid; place-items: center; }
.orbit-core {
    position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%;
    display: grid; place-items: center; text-align: center;
    background: radial-gradient(circle at 35% 30%, #2f6bff, var(--brand) 65%, #021a5a);
    box-shadow: 0 0 80px rgba(47,107,255,.7), inset 0 0 30px rgba(255,255,255,.15);
    font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.2; color: #fff;
}
.orbit-core small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 9px; letter-spacing: .14em; color: #bcd0ff; margin-top: 6px; }
.orbit-ring { position: absolute; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(-14deg); }
.orbit-spin { position: absolute; inset: 0; transform-style: preserve-3d; animation: orbit 30s linear infinite; }
.orbit-scene:hover .orbit-spin { animation-play-state: paused; }
@keyframes orbit { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
.orbit-item {
    position: absolute; left: 50%; top: 50%; width: 118px; height: 118px; margin: -59px 0 0 -59px;
    transform: rotateY(calc(var(--i) * 45deg)) translateZ(210px);
    transform-style: preserve-3d;
}
.orbit-card {
    width: 100%; height: 100%; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    background: rgba(12, 22, 58, .78); border: 1px solid var(--line-strong);
    box-shadow: 0 0 30px rgba(47,107,255,.25);
    transform: rotateY(calc(var(--i) * -45deg));
    animation: counter 30s linear infinite; /* mantiene la tarjeta de frente */
    font-size: 12px; font-weight: 600; text-align: center; padding: 8px; color: var(--text);
}
.orbit-scene:hover .orbit-card { animation-play-state: paused; }
@keyframes counter { from { transform: rotateY(calc(var(--i) * -45deg)); } to { transform: rotateY(calc(var(--i) * -45deg - 360deg)); } }
.orbit-card img { width: 40px; height: 40px; filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(77,141,255,.8)); }
.orbit-floor { position: absolute; bottom: 30px; width: 520px; height: 520px; border-radius: 50%; transform: rotateX(80deg); border: 1px solid rgba(77,141,255,.3); box-shadow: 0 0 80px rgba(47,107,255,.2); pointer-events: none; }
@media (max-width: 575px) {
    .orbit-scene { height: 340px; overflow: hidden; }
    .orbit-item { width: 76px; height: 76px; margin: -38px 0 0 -38px; transform: rotateY(calc(var(--i) * 45deg)) translateZ(128px); }
    .orbit-card { font-size: 10px; border-radius: 16px; }
    .orbit-card img { width: 28px; height: 28px; }
    .orbit-core { width: 96px; height: 96px; margin: -48px 0 0 -48px; font-size: 12px; }
    .orbit-core small { display: none; }
    .orbit-floor { width: 340px; height: 340px; }
}
.cq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
@media (max-width: 575px) { .cq-list { grid-template-columns: 1fr; } }
.cq-item { padding: 16px 18px; border-radius: 14px; }
.cq-item h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px !important; }
.cq-item p { font-size: 13px; color: var(--text-dim); }

/* =========================================================
   SISTEMAS
   ========================================================= */
.sys-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (max-width: 991px) { .sys-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .sys-grid { grid-template-columns: 1fr; } }
.sys { position: relative; padding: 28px 24px; background: rgba(5,8,20,.92); transition: background .4s; display: block; }
.sys:hover { background: rgba(14, 26, 66, .95); }
.sys::after { content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--grad-brand); transition: width .5s var(--ease); }
.sys:hover::after { width: 100%; }
.sys i.ico { font-size: 22px; color: var(--brand-glow); margin-bottom: 18px; display: block; transition: color .3s, text-shadow .3s; }
.sys:hover i.ico { color: var(--cyan); text-shadow: 0 0 16px var(--cyan); }
.sys .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--text-faint); text-transform: uppercase; }
.sys h3 { font-size: 16.5px; font-weight: 600; margin: 6px 0 8px !important; }
.sys p { font-size: 13.5px; color: var(--text-dim); }
.sys-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 22px; padding: 26px 30px; border-radius: var(--radius-lg); }
.sys-cta h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.sys-cta p { color: var(--text-dim); font-size: 14px; margin-top: 4px !important; }

/* =========================================================
   METODOLOGÍA
   ========================================================= */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps::before { content: ''; position: absolute; left: 6%; right: 6%; top: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--brand-glow), var(--cyan), transparent); }
@media (max-width: 991px) { .steps { grid-template-columns: 1fr 1fr; } .steps::before { display: none; } }
@media (max-width: 575px) { .steps { grid-template-columns: 1fr; } }
.step { text-align: center; padding: 0 10px; }
.step-n {
    width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; position: relative;
    font-family: var(--font-display); font-weight: 600; font-size: 20px; color: #fff;
    background: var(--bg); border: 1px solid var(--line-strong); box-shadow: 0 0 0 6px var(--bg), 0 0 30px rgba(47,107,255,.4);
}
.step-n::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px dashed rgba(34,211,238,.4); animation: spin 14s linear infinite; }
.step h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 8px !important; }
.step p { color: var(--text-dim); font-size: 14px; }

/* =========================================================
   NOSOTROS
   ========================================================= */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 991px) { .about { grid-template-columns: 1fr; } }
.about-card { padding: clamp(26px, 3vw, 36px); border-radius: var(--radius-lg); }
.about-card .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--cyan); text-transform: uppercase; }
.about-card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 10px 0 12px !important; }
.about-card p { color: var(--text-dim); font-size: 15px; }
.values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; justify-content: center; }
.value {
    display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px;
    border: 1px solid var(--line); background: rgba(255,255,255,.02); font-size: 14px; transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.value:hover { border-color: var(--cyan); background: var(--cyan-soft); transform: translateY(-3px); }
.value img { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.9); padding: 3px; }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 70px); }
@media (max-width: 991px) { .contact { grid-template-columns: 1fr; } }
.contact-lines { margin-top: 34px; display: grid; gap: 12px; }
.c-line { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; transition: border-color .3s; }
.c-line:hover { border-color: var(--line-strong); }
.c-line i { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--cyan-soft); color: var(--cyan); font-size: 17px; }
.c-line small { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--text-faint); text-transform: uppercase; }
.c-line span { font-size: 15px; color: var(--text); }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--text-dim); transition: all .3s; }
.socials a:hover { color: #fff; border-color: var(--cyan); background: var(--cyan-soft); transform: translateY(-3px); }

.form-panel { padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius-lg); }
.form-panel .hud { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--text-faint); margin-bottom: 22px; text-transform: uppercase; }
.form-panel .hud b { color: #34d399; font-weight: 400; }
.fx-field { margin-bottom: 16px; }
.fx-field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 7px; font-weight: 500; }
.fx .fx-field .form-control, .fx .fx-field .form-select {
    background-color: rgba(4,6,15,.6); border: 1px solid var(--line); color: var(--text);
    border-radius: 12px; padding: 13px 15px; font-size: 15px; transition: border-color .25s, box-shadow .25s;
}
.fx .fx-field .form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239aa8d1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.fx .fx-field .form-select option { background: var(--surface-solid); color: var(--text); }
.fx .fx-field .form-control:focus, .fx .fx-field .form-select:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34,211,238,.12); background-color: rgba(4,6,15,.8); color: var(--text); }
.fx-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 575px) { .fx-row-2 { grid-template-columns: 1fr; } }
.form-panel .fx-btn { width: 100%; justify-content: center; padding: 17px; font-size: 16px; }
.form-panel .alert { border-radius: 12px; font-size: 14px; }

/* =========================================================
   FOOTER
   ========================================================= */
#footer { position: relative; border-top: 1px solid var(--line); padding: 70px 0 30px; background: linear-gradient(to bottom, transparent, rgba(4,51,166,.08)); overflow: hidden; }
.foot-big {
    font-family: var(--font-display); font-weight: 700; font-size: clamp(60px, 16vw, 240px); line-height: .8; letter-spacing: -.04em;
    text-align: center; margin-top: 50px; user-select: none;
    background: linear-gradient(to bottom, rgba(77,141,255,.35), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
@media (max-width: 991px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-logo { height: 52px; width: auto; }
.foot-desc { color: var(--text-dim); font-size: 14px; margin-top: 18px !important; max-width: 320px; }
.foot-h { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--text-faint); text-transform: uppercase; margin-bottom: 16px; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-links a, .foot-links li { color: var(--text-dim); font-size: 14px; transition: color .2s; }
.foot-links a:hover { color: #fff; }
.foot-links i { color: var(--cyan); width: 18px; margin-right: 8px; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; border-top: 1px solid var(--line); margin-top: 30px; padding-top: 24px; font-size: 13px; color: var(--text-faint); }
.foot-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-bottom a:hover { color: #fff; }

/* =========================================================
   Flotantes (WhatsApp / subir)
   ========================================================= */
.whatsapp-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 950; width: 58px; height: 58px; border-radius: 18px;
    display: grid; place-items: center; font-size: 28px; color: #fff !important;
    background: linear-gradient(140deg, #25d366, #128c7e); box-shadow: 0 10px 30px -6px rgba(37,211,102,.6);
    transition: transform .3s var(--ease);
}
.whatsapp-float:hover { transform: translateY(-4px) scale(1.04); }
.scroll-to-top {
    position: fixed; right: 30px; bottom: 96px; z-index: 950; width: 42px; height: 42px; border-radius: 12px;
    border: 1px solid var(--line-strong); background: rgba(7,11,28,.85); color: var(--text); cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease); backdrop-filter: blur(10px);
}
.scroll-to-top.show { opacity: 1; visibility: visible; transform: none; }
.scroll-to-top:hover { border-color: var(--cyan); color: var(--cyan); }

/* Modal ONE Line */
.oneline-modal-dialog .modal-content { background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: 20px; overflow: hidden; color: var(--text); }
.oneline-modal-dialog .modal-header { border-bottom: 1px solid var(--line); gap: 12px; }
.modal-oneline-logo { height: 26px; width: auto; }
.oneline-tracking-iframe { width: 100%; height: min(75vh, 760px); border: 0; display: block; background: #fff; }

/* Aparición al hacer scroll (sin librería) */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }

/* Accesibilidad: menos movimiento */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   RED NEURONAL PERSISTENTE (fondo tenue al bajar)
   ========================================================= */
body.robot-docked .hero-neural.persistente { position: fixed; inset: 0; z-index: -1; opacity: .3; transition: opacity .8s ease; }
body.robot-docked .hero-neural.persistente::after { background: rgba(4,6,15,.35); }
.robot-stage.sin-robot { pointer-events: none; }
@media (max-width: 991px) { .robot-stage.sin-robot { height: 300px; } }

.fx-btn-voz i { color: var(--cyan); animation: fx-blink 1.8s infinite; }

/* =========================================================
   PERSONALIZACIÓN POR GIRO
   ========================================================= */
.giro-strip { position: relative; z-index: 3; padding: 26px 0; border-bottom: 1px solid var(--line); background: rgba(7,11,28,.55); backdrop-filter: blur(10px); }
.giro-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.giro-label { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.giro-pregunta { font-family: var(--font-display); font-size: 16px; font-weight: 500; }
.giro-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.giro-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
    border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); color: var(--text-dim);
    font-size: 13.5px; font-weight: 500; cursor: pointer; transition: all .25s var(--ease);
}
.giro-chip i { color: var(--brand-glow); transition: color .25s; }
.giro-chip:hover { color: #fff; border-color: var(--cyan); transform: translateY(-2px); }
.giro-chip[aria-checked="true"] { background: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: 0 8px 26px -8px rgba(47,107,255,.8); }
.giro-chip[aria-checked="true"] i { color: #fff; }
.giro-frase { flex-basis: 100%; color: var(--text-dim); font-size: 14.5px; min-height: 1.5em; }
.giro-frase:empty { display: none; }

/* Producto recomendado para el giro */
[data-prod].recomendado { box-shadow: 0 0 0 1px rgba(34,211,238,.7), 0 0 60px -10px rgba(34,211,238,.45); }
[data-prod].recomendado::after {
    content: "Recomendado para tu giro"; position: absolute; top: 16px; right: 16px; z-index: 3;
    font: 600 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
    color: #04060f; background: var(--cyan); padding: 6px 10px; border-radius: 999px; box-shadow: 0 0 18px rgba(34,211,238,.6);
}
.destello-card { animation: destello-card 1.6s var(--ease); }
@keyframes destello-card { 0%, 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); } 30% { box-shadow: 0 0 0 2px var(--cyan), 0 0 80px rgba(34,211,238,.55); } }

/* =========================================================
   DIAGNÓSTICO
   ========================================================= */
.diag { max-width: 880px; margin: 0 auto; padding: clamp(22px, 4vw, 42px); border-radius: var(--radius-lg); }
.diag-top { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.diag-paso { font: 500 12px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); white-space: nowrap; }
.diag-barra { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
.diag-barra i { display: block; height: 100%; width: 0; background: var(--grad-brand); box-shadow: 0 0 10px var(--cyan); transition: width .5s var(--ease); }
.diag-q { border: 0; padding: 0; margin: 0; min-width: 0; }
.diag-q legend { font-family: var(--font-display); font-weight: 600; font-size: clamp(19px, 2.2vw, 24px); margin-bottom: 18px; float: none; width: auto; }
.diag-q legend small { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--text-faint); margin-top: 4px; }
.diag-ops { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.diag-op { position: relative; cursor: pointer; margin: 0; }
.diag-op input { position: absolute; opacity: 0; pointer-events: none; }
.diag-op span {
    display: flex; align-items: center; gap: 12px; height: 100%; padding: 15px 16px; border-radius: 14px;
    border: 1px solid var(--line-strong); background: rgba(4,6,15,.5); font-size: 14.5px; font-weight: 500;
    transition: all .25s var(--ease);
}
.diag-op span i { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(47,107,255,.15); color: var(--brand-glow); }
.diag-op:hover span { border-color: var(--cyan); transform: translateY(-2px); }
.diag-op input:checked + span { border-color: var(--cyan); background: var(--cyan-soft); box-shadow: 0 0 0 1px var(--cyan) inset, 0 10px 30px -12px rgba(34,211,238,.6); }
.diag-op input:checked + span i { background: var(--cyan); color: #04060f; }
.diag-op input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.diag-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.diag-nav .fx-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.diag-res-t { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.8vw, 30px); margin: 14px 0 20px !important; }
.diag-recs { display: grid; gap: 12px; }
.diag-rec { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: rgba(4,6,15,.45); }
.diag-rec.principal { border-color: rgba(34,211,238,.6); background: linear-gradient(140deg, rgba(47,107,255,.2), rgba(4,6,15,.5) 70%); }
.diag-rank { font: 500 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.diag-rec.principal .diag-rank { color: var(--cyan); }
.diag-rec h4 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin: 6px 0 4px !important; }
.diag-rec h4 .badge-demo { margin-left: 8px; font-family: var(--font-body); }
.diag-rec p { color: var(--text-dim); font-size: 14px; }
.diag-rec ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.diag-rec li { font-size: 14px; display: flex; gap: 10px; }
.diag-rec li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 2px; background: var(--cyan); }
.diag-caso { margin-top: 10px !important; font-size: 13.5px !important; color: var(--text) !important; }
.diag-caso i { color: var(--cyan); margin-right: 6px; }
.diag-nota { margin-top: 16px !important; font-size: 13px; color: var(--text-faint); }
.diag-nota i { color: var(--cyan); margin-right: 6px; }
.diag-acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* =========================================================
   DEMOS
   ========================================================= */
.demo-tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 16px; border: 1px solid var(--line); background: rgba(7,11,28,.6); margin-bottom: 18px; flex-wrap: wrap; }
.demo-tab { border: 0; background: transparent; color: var(--text-dim); padding: 11px 16px; border-radius: 11px; font-weight: 600; font-size: 14px; cursor: pointer; transition: all .25s; }
.demo-tab i { margin-right: 6px; }
.demo-tab:hover { color: #fff; }
.demo-tab.activo { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 24px -10px rgba(47,107,255,.9); }
.demo-hud { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font: 500 11.5px var(--font-mono); letter-spacing: .08em; color: var(--text-faint); margin-bottom: 12px; }
.demo-ej { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.chip-btn { border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); color: var(--text-dim); font: 500 12.5px var(--font-body); padding: 6px 11px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.chip-btn:hover { color: #fff; border-color: var(--cyan); }
.chip-btn.activo { color: #04060f; background: var(--cyan); border-color: var(--cyan); }
.demo-nota { margin-top: 14px !important; font-size: 13px; color: var(--text-faint); }
.demo-nota i { color: var(--cyan); margin-right: 6px; }
.demo-nota a { color: var(--cyan) !important; text-decoration: underline !important; }

.cfdi-wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 16px; }
@media (max-width: 991px) { .cfdi-wrap { grid-template-columns: 1fr; } }
.cfdi-in, .cfdi-out, .wh-stage, .wh-panel { padding: 20px; border-radius: var(--radius); min-width: 0; }
.cfdi-in textarea {
    width: 100%; min-height: 330px; resize: vertical; border-radius: 12px; border: 1px solid var(--line); padding: 14px;
    background: rgba(2,4,10,.75); color: #9fd8ff; font: 12px/1.6 var(--font-mono); margin-bottom: 14px; white-space: pre; overflow: auto;
}
.cfdi-in textarea:focus { outline: none; border-color: var(--cyan); }
.cfdi-in .fx-btn { width: 100%; justify-content: center; }
.cfdi-vacio { height: 100%; min-height: 260px; display: grid; place-content: center; text-align: center; gap: 10px; color: var(--text-faint); font-size: 14px; }
.cfdi-vacio i { font-size: 34px; color: var(--brand-glow); }
.cfdi-vacio.error i { color: #fbbf24; }
.cfdi-out.leido { animation: leido .6s var(--ease); }
@keyframes leido { from { opacity: .3; transform: translateY(8px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.cfdi-cab { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cfdi-folio { font: 600 14px var(--font-mono); color: var(--text-dim); }
.cfdi-partes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
@media (max-width: 575px) { .cfdi-partes { grid-template-columns: 1fr; } }
.cfdi-partes > div { padding: 12px; border-radius: 12px; background: rgba(4,6,15,.5); border: 1px solid var(--line); min-width: 0; }
.cfdi-partes small, .cfdi-tabla small, .wh-datos dt { display: block; font: 500 10.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.cfdi-partes b { display: block; font-size: 13px; margin: 4px 0 2px; overflow-wrap: anywhere; }
.cfdi-partes span { font: 12px var(--font-mono); color: var(--text-dim); }
.cfdi-tabla { width: 100%; border-collapse: collapse; font-size: 13.5px; color: var(--text); }
.cfdi-tabla th { font: 500 10.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.cfdi-tabla td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cfdi-tabla td small { text-transform: none; letter-spacing: 0; margin-top: 3px; }
.cfdi-tabla .num { text-align: right; white-space: nowrap; font-family: var(--font-mono); }
.clasif { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--cyan); background: var(--cyan-soft); border: 1px solid rgba(34,211,238,.35); padding: 3px 9px; border-radius: 999px; }
.clasif.sin { color: #fbbf24; background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.35); }
.cfdi-totales { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; margin: 14px 0; font-size: 13px; color: var(--text-dim); }
.cfdi-totales b { color: var(--text); font-family: var(--font-mono); margin-left: 4px; }
.cfdi-totales .tot b { color: #fff; font-size: 16px; }
.cfdi-alertas { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.cfdi-alertas li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(4,6,15,.4); }
.cfdi-alertas li i { margin-top: 3px; }
.cfdi-alertas .ok i { color: #34d399; } .cfdi-alertas .aviso i { color: #fbbf24; } .cfdi-alertas .info i { color: var(--cyan); } .cfdi-alertas .error i { color: #f87171; }
.cfdi-pie { margin-top: 12px !important; font: 500 12px var(--font-mono); color: var(--text-faint); }
.cfdi-pie i { color: var(--cyan); margin-right: 6px; }

/* Almacén 3D */
.wh-wrap { display: grid; grid-template-columns: 1.25fr .9fr; gap: 16px; }
@media (max-width: 991px) { .wh-wrap { grid-template-columns: 1fr; } }
.wh-scene { position: relative; height: 400px; perspective: 1200px; display: grid; place-items: center; overflow: hidden; border-radius: 14px;
    background: radial-gradient(ellipse at 50% 60%, rgba(47,107,255,.14), transparent 70%); }
.wh-world { position: relative; width: 184px; height: 280px; transform-style: preserve-3d; transform: rotateX(57deg) rotateZ(-38deg) translateY(-10px); }
.wh-floor { position: absolute; inset: -40px; transform: translateZ(-1px); border: 1px solid rgba(77,141,255,.35);
    background-image: linear-gradient(rgba(77,141,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(77,141,255,.18) 1px, transparent 1px); background-size: 23px 23px; }
.wh-rack { position: absolute; left: -6px; top: calc(var(--ri) * 120px - 6px); width: 190px; height: 52px; border: 1px solid rgba(34,211,238,.5); border-radius: 4px; background: rgba(34,211,238,.06); }
.wh-rack-l { position: absolute; left: 0; top: 56px; font: 600 10px var(--font-mono); letter-spacing: .14em; color: var(--cyan); text-transform: uppercase; white-space: nowrap; }
.wh-box { position: absolute; left: calc(var(--p) * 46px); top: calc(var(--ri) * 120px); width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer;
    transform-style: preserve-3d; transform: translateZ(calc(var(--n) * 42px)); transition: transform .35s var(--ease), opacity .35s; }
.wh-box i { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.18); transition: background .3s, box-shadow .3s; }
.wh-box .f-top { transform: translateZ(40px); background: #3a6dff; }
.wh-box .f-front { transform-origin: bottom; transform: rotateX(-90deg); background: #2350d9; }
.wh-box .f-side { transform-origin: right; transform: rotateY(90deg); background: #183aa8; }
.wh-box .f-top::after { content: ""; position: absolute; inset: 11px; opacity: .5; background:
    linear-gradient(90deg, rgba(255,255,255,.75) 50%, transparent 50%) 0 0 / 6px 6px, linear-gradient(rgba(255,255,255,.75) 50%, transparent 50%) 0 0 / 6px 6px; background-blend-mode: difference; }
.wh-box:hover, .wh-box:focus-visible { transform: translateZ(calc(var(--n) * 42px + 8px)); outline: none; }
.wh-box:hover .f-top, .wh-box:focus-visible .f-top { background: #5b8cff; }
.wh-box.match .f-top { background: #22d3ee; } .wh-box.match .f-front { background: #10a5bd; } .wh-box.match .f-side { background: #0b7f92; }
.wh-box.pick .f-top { background: #fbbf24; } .wh-box.pick .f-front { background: #d99a0b; } .wh-box.pick .f-side { background: #a87406; }
.wh-box.sel { transform: translateZ(calc(var(--n) * 42px + 14px)); }
.wh-box.sel .f-top { background: #fff; box-shadow: 0 0 30px rgba(34,211,238,.9); }
.wh-box.sel .f-front { background: #9fd8ff; } .wh-box.sel .f-side { background: #6fb8e8; }
.wh-box.dim { opacity: .18; }
.wh-num { position: absolute; left: 0; top: 0; width: 40px; height: 40px; display: grid; place-items: center; transform: translateZ(41px); font: 700 16px var(--font-display); color: #04060f; pointer-events: none; }
.wh-tools { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.wh-tools input { flex: 1 1 200px; min-width: 0; border-radius: 12px; border: 1px solid var(--line); background: rgba(4,6,15,.6); color: var(--text); padding: 12px 14px; font-size: 14px; }
.wh-tools input:focus { outline: none; border-color: var(--cyan); }
@media (max-width: 575px) { .wh-scene { height: 330px; } .wh-world { transform: rotateX(57deg) rotateZ(-38deg) scale(.78); } }
.wh-cab { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.wh-qr { width: 84px; height: 84px; border-radius: 8px; image-rendering: pixelated; border: 4px solid #fff; flex: none; }
.wh-cab h4 { font: 600 20px var(--font-mono); margin: 6px 0 2px !important; }
.wh-cab small { color: var(--text-faint); font-size: 11.5px; }
.wh-datos { display: grid; gap: 10px; margin: 0 0 14px; }
.wh-datos > div { padding: 10px 12px; border-radius: 12px; background: rgba(4,6,15,.45); border: 1px solid var(--line); }
.wh-datos dd { margin: 3px 0 0; font-size: 14px; }
.wh-h { font: 500 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 8px; }
.wh-hist { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line-strong); }
.wh-hist li { position: relative; padding: 0 0 12px 16px; display: grid; grid-template-columns: auto 1fr; gap: 0 10px; font-size: 13.5px; }
.wh-hist li::before { content: ""; position: absolute; left: -4px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.wh-hist span { font: 12px var(--font-mono); color: var(--text-faint); }
.wh-hist small { grid-column: 2; color: var(--text-dim); }
.wh-ped-t { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin: 12px 0 14px !important; }
.wh-pick { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.wh-pick li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(4,6,15,.45); font-size: 14px; }
.wh-pick small { display: block; color: var(--text-dim); font-size: 12.5px; margin-top: 2px; }
.wh-paso { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px; background: #fbbf24; color: #04060f; font: 700 14px var(--font-display); }
.wh-paso.otro { background: var(--cyan); }
.wh-ped-n { margin-top: 12px !important; font-size: 13px; color: var(--text-dim); }
.wh-ped-n i { color: var(--cyan); margin-right: 6px; }

/* =========================================================
   CHAT CON EL ASISTENTE
   ========================================================= */
.guide-ask {
    margin-top: 10px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 9px 12px; border-radius: 11px; border: 1px dashed rgba(34,211,238,.45); background: rgba(34,211,238,.06);
    color: var(--cyan); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.guide-ask:hover { background: var(--cyan-soft); color: #fff; }
body.chat-open .guide { opacity: 1; transform: none; pointer-events: auto; width: min(390px, calc(100vw - 32px)); }
body.chat-open .guide-narra { display: none; }
@media (min-width: 992px) { body.chat-open:not(.robot-docked) .guide { left: auto; right: 100px; bottom: 26px; } }
.chat-log { max-height: min(46vh, 340px); overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 2px 4px 2px 0; overscroll-behavior: contain; }
.burbuja { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.55; }
.burbuja p { margin: 0; }
.burbuja.yo { align-self: flex-end; background: var(--grad-brand); color: #fff; border-bottom-right-radius: 4px; }
.burbuja.bot { align-self: flex-start; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.burbuja.pensando { display: inline-flex; gap: 5px; padding: 14px; }
.burbuja.pensando span { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: puntos 1s infinite; }
.burbuja.pensando span:nth-child(2) { animation-delay: .15s; } .burbuja.pensando span:nth-child(3) { animation-delay: .3s; }
@keyframes puntos { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.burbuja-accion { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(34,211,238,.5);
    background: var(--cyan-soft); color: var(--cyan) !important; font-size: 13px; font-weight: 600; cursor: pointer; }
.burbuja-accion:hover { background: var(--cyan); color: #04060f !important; }
.chat-sug { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chat-form { display: flex; gap: 6px; margin-top: 10px; }
.chat-form input { flex: 1; min-width: 0; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(4,6,15,.7); color: var(--text); padding: 11px 13px; font-size: 14px; }
.chat-form input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.12); }
.chat-form button { width: 42px; flex: none; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); color: var(--text); cursor: pointer; transition: all .2s; }
.chat-form .chat-send { background: var(--grad-brand); border-color: transparent; color: #fff; }
.chat-mic.escuchando { color: #fff; background: #ef4444; border-color: #ef4444; animation: mic 1.2s infinite; }
@keyframes mic { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,.6); } 100% { box-shadow: 0 0 0 12px rgba(239,68,68,0); } }
.chat-nota { display: block; margin-top: 8px; font-size: 11px; color: var(--text-faint); line-height: 1.4; }
@media (max-width: 991px) {
    body.chat-open .guide { left: 8px; right: 8px; bottom: 8px; width: auto; border-radius: 18px; }
    body.chat-open .whatsapp-float, body.chat-open .scroll-to-top { opacity: 0; pointer-events: none; }
    .chat-log { max-height: 42vh; }
}

/* =========================================================
   CARRUSEL 360 (componente reutilizable: assets/js/carrusel360.js)
   Uso: <div class="c360" data-c360 data-autoplay="2600"> con hijos .c360-item
   (data-img, data-titulo, data-texto, data-enlace, data-etiqueta)
   ========================================================= */
.c360 { position: relative; width: 100%; user-select: none; }
.c360-escena { position: relative; width: 100%; aspect-ratio: 5 / 3; max-width: 620px; margin: 0 auto; }
.c360-anillo { position: absolute; inset: 0; }
.c360-eje { position: absolute; inset: 0; display: grid; place-items: center; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
.c360-mini {
    width: clamp(48px, 7vw, 92px); aspect-ratio: 1; border-radius: 12px; overflow: hidden; pointer-events: auto; cursor: pointer;
    border: 1px solid var(--line-strong); box-shadow: 0 8px 24px rgba(0,0,0,.45), 0 0 18px rgba(47,107,255,.25);
    transform-style: preserve-3d; transition: transform .9s cubic-bezier(.22, 1, .36, 1), opacity .4s, box-shadow .3s; background: var(--surface-solid);
    padding: 0;
}
.c360-mini img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s; }
.c360-mini:hover img, .c360-mini.activo img { opacity: 1; }
.c360-mini.activo { box-shadow: 0 0 0 2px var(--cyan), 0 0 26px rgba(34,211,238,.6); }
.c360-centro { position: absolute; inset: 0; display: grid; place-items: center; z-index: 5; pointer-events: none; }
.c360-foto {
    position: relative; width: clamp(170px, 30vw, 320px); aspect-ratio: 1; border-radius: 22px; overflow: hidden;
    border: 1px solid rgba(120,170,255,.45); box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 60px rgba(47,107,255,.35);
    background: var(--surface-solid);
}
.c360-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .5s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1); }
.c360-foto img.visible { opacity: 1; transform: none; }
.c360-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,6,15,.55), transparent 50%); pointer-events: none; }
.c360-foto .c360-etq { position: absolute; left: 12px; bottom: 12px; z-index: 2; font: 600 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.c360-nav { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 18px; }
.c360-btn {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255,255,255,.05);
    color: var(--text); display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(10px); transition: all .2s;
}
.c360-btn:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-soft); }
.c360-btn:active { transform: scale(.92); }
.c360-puntos { display: flex; gap: 6px; }
.c360-puntos i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.18); transition: all .3s; }
.c360-puntos i.on { width: 18px; border-radius: 3px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.c360-detalle { min-height: 220px; }
.c360-detalle .c360-num { font: 500 12px var(--font-mono); letter-spacing: .14em; color: var(--cyan); }
.c360-detalle h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); margin: 10px 0 12px !important; }
.c360-detalle p { color: var(--text-dim); font-size: 16px; max-width: 460px; }
.c360-detalle .fx-btn { margin-top: 22px; }
.c360-detalle.cambia > * { animation: c360-txt .55s cubic-bezier(.22, 1, .36, 1) both; }
.c360-detalle.cambia > *:nth-child(2) { animation-delay: .05s; } .c360-detalle.cambia > *:nth-child(3) { animation-delay: .1s; } .c360-detalle.cambia > *:nth-child(4) { animation-delay: .15s; }
@keyframes c360-txt { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.svc-360 { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 991px) { .svc-360 { grid-template-columns: 1fr; } .c360-detalle { min-height: 0; text-align: center; } .c360-detalle p { margin-inline: auto; } }

/* =========================================================
   TEXTOS EN MOVIMIENTO (assets/js/textos.js)
   ========================================================= */
/* Los textos animados por palabra/enfoque no usan el .reveal genérico */
.mt-on .mt-split.reveal, .mt-on .mt-par.reveal, .mt-on .mt-tag.reveal { opacity: 1; transform: none; transition: none; }

/* Títulos: cada palabra sube desde una máscara, gira y se enfoca */
.mt-split { perspective: 600px; }
.mt-w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .14em; margin: 0 -.02em -.14em; }
.mt-wi {
    display: inline-block; transform-origin: 0 100%;
    transform: translateY(105%) rotate(7deg); opacity: 0; filter: blur(6px);
    transition: transform 1s var(--ease), opacity .7s ease, filter .9s ease;
    transition-delay: calc(var(--i, 0) * 55ms + 80ms);
}
.mt-in .mt-wi { transform: none; opacity: 1; filter: none; }
/* Degradado de marca aplicado por palabra (el contenedor .grad deja de pintar) */
.mt-grad-host { background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; color: inherit !important; }
.mt-grad {
    background: linear-gradient(100deg, var(--brand-glow, #2f6bff) 0%, var(--cyan, #22d3ee) 45%, #fff 50%, var(--cyan, #22d3ee) 55%, var(--brand-glow, #2f6bff) 100%);
    background-size: 250% 100%; background-position: 100% 0;
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mt-in .mt-grad { animation: mt-brillo 2.4s var(--ease) calc(var(--n, 4) * 55ms + 500ms) both; }
@keyframes mt-brillo { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* Etiquetas: aparecen con un barrido de luz mientras se decodifican */
.mt-tag { opacity: 0; transform: translateX(-14px); transition: opacity .6s ease, transform .8s var(--ease); position: relative; overflow: hidden; }
.mt-tag.mt-in { opacity: 1; transform: none; }
.mt-tag::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(34,211,238,.35), transparent);
    transform: translateX(-100%);
}
.mt-tag.mt-in::after { animation: mt-barrido 1.2s var(--ease) .1s; }
@keyframes mt-barrido { to { transform: translateX(100%); } }

/* Párrafos: suben y pasan de borroso a nítido */
.mt-par { opacity: 0; transform: translateY(22px); filter: blur(8px); transition: opacity 1s ease .5s, transform 1.1s var(--ease) .5s, filter 1.1s ease .5s; }
.mt-par.mt-in { opacity: 1; transform: none; filter: none; }

/* Elementos de páginas internas */
.mt-up { opacity: 0; transform: translateY(36px) scale(.98); transition: opacity .9s ease var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.mt-up.mt-in { opacity: 1; transform: none; }

/* Bloques genéricos con más profundidad */
.mt-on .reveal:not(.mt-split):not(.mt-par):not(.mt-tag) { transform: translateY(44px) scale(.97); }
.mt-on .reveal.in:not(.mt-split):not(.mt-par):not(.mt-tag) { transform: none; }

/* Paralaje de encabezados */
.fx-head, .pag-hero .container { transform: translate3d(0, var(--py, 0), 0); will-change: transform; }

@media (prefers-reduced-motion: reduce) {
    .mt-wi, .mt-tag, .mt-par, .mt-up { opacity: 1 !important; transform: none !important; filter: none !important; }
    .fx-head, .pag-hero .container { transform: none; }
}

/* =========================================================
   TELÉFONOS Y TABLETAS: versión ligera (body.fx-movil, lo pone futuro.js)
   ========================================================= */
/* Robot 3D a petición: en su lugar, un botón compacto */
.robot-stage.robot-opcional { pointer-events: auto; }
@media (max-width: 991px) {
    .robot-stage.robot-opcional { height: auto !important; padding: 8px 16px 28px; display: flex; justify-content: center; }
}
.robot-activar {
    display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
    border: 1px solid rgba(34,211,238,.4); background: rgba(34,211,238,.08); color: var(--text);
    font: 600 14px var(--font-body, inherit); cursor: pointer;
}
.robot-activar i { color: var(--cyan); }
@media (min-width: 992px) { .robot-opcional .robot-activar { position: absolute; right: 12vw; bottom: 18vh; } }

/* El vidrio esmerilado (backdrop-filter) es lo más costoso en GPU móvil: fondo sólido */
body.fx-movil * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
body.fx-movil .fx-glass, body.fx-movil #mainNav, body.fx-movil .hero-stat, body.fx-movil .giro-strip { background-color: rgba(8,12,30,.94); }

/* Animaciones de texto sin desenfoque (el blur por palabra es caro en teléfonos) */
body.fx-movil .mt-wi, body.fx-movil .mt-par, body.fx-movil .reveal { filter: none !important; }
body.fx-movil .mt-wi { transition-duration: .7s, .5s, 0s; transition-delay: calc(var(--i, 0) * 40ms + 60ms); }
body.fx-movil .mt-split { perspective: none; }
body.fx-movil .fx-head, body.fx-movil .pag-hero .container { transform: none; will-change: auto; }

/* Sin inclinación 3D ni sombras gigantes animadas */
body.fx-movil .tilt { transform: none !important; }
