/* ================================================================
   OPTIMA · NEON COMMAND DESIGN SYSTEM
   Neón azul (OPTIMA Blue) + Verde menta (OPTIMA Green)
   Glassmorphism · 3D Tilt · Partículas · Motion
================================================================ */
@property --beam-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

:root {
    /* Fondos profundos */
    --bg-deep: #04060D;
    --bg-surface: #080D1A;
    --bg-card: rgba(12, 19, 36, 0.62);
    --bg-card-solid: #0C1324;
    --bg-card-hover: rgba(18, 29, 54, 0.85);
    --border-dim: rgba(122, 162, 247, 0.16);
    --border-neon: rgba(0, 209, 255, 0.38);

    /* Neones OPTIMA */
    --neon-blue: #00D1FF;
    --blue: #2563EB;
    --blue-soft: #60A5FA;
    --neon-green: #00FFA3;
    --green: #10B981;
    --violet: #8B5CF6;
    --amber: #FFB020;
    --danger: #FF4D6D;

    /* Texto */
    --text-main: #EAF2FF;
    --text-muted: #8CA3C7;
    --text-bright: #FFFFFF;

    /* Glows */
    --glow-blue: rgba(0, 209, 255, 0.45);
    --glow-green: rgba(0, 255, 163, 0.35);

    /* Tipografía */
    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    --radius-md: 14px;
    --radius-lg: 22px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

::selection {
    background: rgba(0, 209, 255, 0.32);
    color: #FFFFFF;
}

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #05080F; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-blue), var(--blue) 60%, var(--neon-green));
    border-radius: 8px;
    border: 3px solid #05080F;
}

:focus-visible {
    outline: 2px solid var(--neon-blue);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.text-center { text-align: center; }

/* ---------- Capas de fondo global ---------- */
#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.aurora {
    position: fixed;
    border-radius: 50%;
    filter: blur(95px);
    pointer-events: none;
    z-index: 0;
}

.aurora-a {
    width: 620px; height: 620px;
    top: -180px; left: -160px;
    background: radial-gradient(circle, rgba(0, 209, 255, 0.20), transparent 65%);
    animation: driftA 22s ease-in-out infinite alternate;
}

.aurora-b {
    width: 560px; height: 560px;
    top: 16%; right: -200px;
    background: radial-gradient(circle, rgba(0, 255, 163, 0.13), transparent 65%);
    animation: driftB 26s ease-in-out infinite alternate;
}

.aurora-c {
    width: 700px; height: 700px;
    bottom: -300px; left: 28%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 65%);
    animation: driftA 30s ease-in-out infinite alternate-reverse;
}

@keyframes driftA {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(70px, 50px, 0) scale(1.12); }
}
@keyframes driftB {
    from { transform: translate3d(0, 0, 0) scale(1.05); }
    to { transform: translate3d(-60px, 70px, 0) scale(0.95); }
}

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 2600;
    pointer-events: none;
    opacity: 0.032;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ---------- Barra de progreso de scroll ---------- */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 2px;
    z-index: 1500;
    background: linear-gradient(90deg, var(--neon-blue), var(--blue), var(--neon-green));
    transform-origin: left center;
    transform: scaleX(0);
    box-shadow: 0 0 12px var(--glow-blue);
}

/* ---------- Botones neón ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.85rem;
    border-radius: 12px;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.97rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #00D1FF 0%, #2563EB 58%, #00C88F 145%);
    color: #FFFFFF;
    box-shadow: 0 0 22px rgba(0, 209, 255, 0.35), 0 10px 32px rgba(0, 0, 0, 0.45);
    text-shadow: 0 1px 2px rgba(0, 20, 40, 0.35);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 45%;
    left: -70%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent);
    transform: skewX(-18deg);
    transition: left 0.65s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 42px rgba(0, 209, 255, 0.55), 0 14px 38px rgba(0, 0, 0, 0.5);
}

.btn-primary:hover::after { left: 135%; }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
    background: rgba(0, 209, 255, 0.04);
    color: var(--text-main);
    border: 1px solid var(--border-neon);
}

.btn-outline:hover {
    border-color: var(--neon-blue);
    background: rgba(0, 209, 255, 0.1);
    box-shadow: 0 0 26px -6px var(--glow-blue), inset 0 0 18px -10px var(--glow-blue);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.62rem 1.25rem;
    font-size: 0.88rem;
    border-radius: 10px;
}

/* ---------- Navegación ---------- */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1400;
    background: rgba(4, 6, 13, 0.62);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    padding: 0.95rem 0;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

nav.scrolled {
    background: rgba(4, 6, 13, 0.88);
    border-bottom-color: var(--border-dim);
    box-shadow: 0 12px 40px -18px rgba(0, 0, 0, 0.85);
    padding: 0.7rem 0;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.42rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #FFFFFF;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.logo-mark {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 8px rgba(0, 209, 255, 0.55));
    animation: logoFloat 5s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2.5px); }
}

.logo-core {
    animation: corePulse 2.2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes corePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.logo-text { text-shadow: 0 0 18px rgba(0, 209, 255, 0.35); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.7rem;
    list-style: none;
}

.nav-link {
    position: relative;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.3rem 0;
    transition: color 0.25s;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
    box-shadow: 0 0 10px var(--glow-blue);
}

.nav-link:hover { color: #FFFFFF; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: #FFFFFF; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: rgba(0, 209, 255, 0.05);
    border: 1px solid var(--border-neon);
    border-radius: 10px;
    cursor: pointer;
    padding: 10px 9px;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--neon-blue);
    box-shadow: 0 0 8px var(--glow-blue);
    transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

.mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
    position: relative;
    padding: 8.8rem 0 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Piso de rejilla en perspectiva 3D */
.hero-floor {
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 170%;
    height: 44%;
    transform: translateX(-50%) perspective(640px) rotateX(63deg);
    transform-origin: top center;
    background-image:
        linear-gradient(rgba(0, 209, 255, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 209, 255, 0.16) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, transparent 94%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 22%, transparent 94%);
    animation: floorFlow 2.8s linear infinite;
}

@keyframes floorFlow {
    to { background-position-y: 48px; }
}

.hero-horizon {
    position: absolute;
    bottom: 44%;
    left: 6%;
    right: 6%;
    height: 1px;
    background: linear-gradient(90deg, transparent 4%, rgba(0, 209, 255, 0.75) 32%, rgba(0, 255, 163, 0.65) 68%, transparent 96%);
    filter: drop-shadow(0 0 8px rgba(0, 209, 255, 0.7));
    opacity: 0.85;
}

.hero-spot {
    position: absolute;
    top: 8%;
    right: 4%;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(0, 209, 255, 0.13), transparent 62%);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 3.4rem;
    align-items: center;
    padding-bottom: 5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.15rem;
    background: rgba(0, 209, 255, 0.08);
    border: 1px solid var(--border-neon);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #9BDCFF;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 22px -8px var(--glow-blue), inset 0 0 16px -12px var(--glow-blue);
}

.pulse-dot {
    width: 9px;
    height: 9px;
    flex: none;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--glow-green);
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 163, 0.65); }
    70% { box-shadow: 0 0 0 9px rgba(0, 255, 163, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 163, 0); }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4.6vw, 3.7rem);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.4rem;
}

.gradient-text {
    background: linear-gradient(95deg, #7BE9FF 0%, #00D1FF 34%, #00FFA3 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 22px rgba(0, 209, 255, 0.35));
    animation: gradientShift 7s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
}

.uline {
    position: relative;
    white-space: nowrap;
}

.uline-svg {
    position: absolute;
    left: -2%;
    bottom: -0.14em;
    width: 104%;
    height: 0.24em;
    overflow: visible;
    filter: drop-shadow(0 0 6px rgba(0, 255, 163, 0.55));
}

.uline-svg path {
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
    animation: drawUline 1.4s 0.9s var(--ease-out) forwards;
}

@keyframes drawUline {
    to { stroke-dashoffset: 0; }
}

.hero p.lead {
    font-size: 1.13rem;
    color: var(--text-muted);
    margin-bottom: 2.3rem;
    max-width: 640px;
}

.hero p.lead strong { color: #C9DEFF; font-weight: 600; }

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.1rem;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

/* ---------- Tilt 3D genérico ---------- */
[data-tilt] {
    transform: perspective(950px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
    transition: transform 0.18s ease-out, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
    will-change: transform;
}

[data-tilt]:hover { --lift: -5px; }

.tilt-glare {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
    background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.075), transparent 42%);
    z-index: 3;
}

[data-tilt]:hover .tilt-glare { opacity: 1; }

/* ---------- Mockup: Centro de Mando en vivo ---------- */
.hero-visual {
    position: relative;
    z-index: 2;
}

.command-mockup {
    position: relative;
    background: linear-gradient(160deg, rgba(13, 21, 40, 0.92), rgba(6, 10, 20, 0.96));
    border: 1px solid rgba(0, 209, 255, 0.25);
    border-radius: 20px;
    padding: 1.15rem;
    backdrop-filter: blur(12px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 34px 90px -24px rgba(0, 0, 0, 0.85),
        0 0 70px -22px rgba(0, 209, 255, 0.4);
}

.command-mockup::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image:
        linear-gradient(rgba(0, 209, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 209, 255, 0.045) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
}

.mockup-header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 0.9rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(122, 162, 247, 0.14);
}

.window-dots { display: flex; gap: 6px; }

.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.window-dots span:nth-child(1) { background: #FF4D6D; box-shadow: 0 0 8px rgba(255, 77, 109, 0.7); }
.window-dots span:nth-child(2) { background: #FFB020; box-shadow: 0 0 8px rgba(255, 176, 32, 0.7); }
.window-dots span:nth-child(3) { background: #00FFA3; box-shadow: 0 0 8px var(--glow-green); }

.mockup-title {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 163, 0.35);
    background: rgba(0, 255, 163, 0.07);
    padding: 0.24rem 0.62rem;
    border-radius: 99px;
    flex: none;
}

.live-chip i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--glow-green);
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

.chat-stream {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    font-size: 0.86rem;
    min-height: 428px;
    padding: 0.3rem 0.15rem 0.2rem;
    transition: opacity 0.5s ease;
}

.chat-stream.chat-fading { opacity: 0; }

.msg {
    max-width: 88%;
    padding: 0.82rem 1.02rem;
    border-radius: 12px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(12px) scale(0.97);
    animation: msgIn 0.5s var(--ease-out) forwards;
}

@keyframes msgIn {
    to { opacity: 1; transform: none; }
}

.msg-user {
    align-self: flex-start;
    background: rgba(124, 148, 190, 0.1);
    border: 1px solid rgba(124, 148, 190, 0.24);
    color: #DCE6F7;
    border-bottom-left-radius: 4px;
}

.msg-ai {
    align-self: flex-end;
    background: linear-gradient(150deg, rgba(0, 209, 255, 0.15), rgba(37, 99, 235, 0.1));
    border: 1px solid rgba(0, 209, 255, 0.36);
    color: #F2F8FF;
    border-bottom-right-radius: 4px;
    box-shadow: 0 0 26px -8px var(--glow-blue);
}

.msg-ai strong { color: #9BE8FF; }

.msg-system, .msg-capi {
    align-self: stretch;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.78rem;
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
}

.msg-system {
    background: rgba(0, 255, 163, 0.07);
    border: 1px solid rgba(0, 255, 163, 0.3);
    color: #B8FFDF;
    box-shadow: 0 0 22px -10px var(--glow-green);
}

.msg-capi {
    background: rgba(0, 209, 255, 0.08);
    border: 1px solid rgba(0, 209, 255, 0.34);
    color: #CFF3FF;
    box-shadow: 0 0 22px -10px var(--glow-blue);
}

.msg-system strong { color: var(--neon-green); white-space: nowrap; }
.msg-capi strong { color: var(--neon-blue); white-space: nowrap; }

.typing { padding: 0.85rem 1.05rem; display: inline-flex; gap: 6px; }

.typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--neon-blue);
    animation: typingBlink 1.05s ease-in-out infinite;
}

.typing span:nth-child(2) { animation-delay: 0.18s; }
.typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes typingBlink {
    0%, 100% { opacity: 0.25; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-3px); box-shadow: 0 0 8px var(--glow-blue); }
}

.mockup-status {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.95rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(122, 162, 247, 0.14);
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

.status-dot {
    width: 7px;
    height: 7px;
    flex: none;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--glow-green);
    animation: blink 1.8s infinite;
}

.caret {
    width: 7px;
    height: 12px;
    background: var(--neon-blue);
    box-shadow: 0 0 8px var(--glow-blue);
    animation: blink 1s steps(1) infinite;
    margin-left: auto;
}

.mockup-scan {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.mockup-scan::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 26%;
    background: linear-gradient(180deg, transparent, rgba(0, 209, 255, 0.06), transparent);
    transform: translateY(-130%);
    animation: scanY 5.2s linear infinite;
}

@keyframes scanY {
    to { transform: translateY(500%); }
}

/* Esquinas HUD */
.hud-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 0 solid var(--neon-blue);
    opacity: 0.9;
    filter: drop-shadow(0 0 5px var(--glow-blue));
    z-index: 4;
}

.hud-corner.tl { top: -8px; left: -8px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 6px; }
.hud-corner.tr { top: -8px; right: -8px; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 6px; }
.hud-corner.bl { bottom: -8px; left: -8px; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 6px; }
.hud-corner.br { bottom: -8px; right: -8px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 6px; }

/* Anillos orbitales 3D */
.orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.orbit-1 {
    width: 560px;
    height: 560px;
    margin: -280px 0 0 -280px;
    border: 1px dashed rgba(0, 209, 255, 0.22);
    animation: spinCW 30s linear infinite;
}

.orbit-2 {
    width: 660px;
    height: 660px;
    margin: -330px 0 0 -330px;
    border: 1px dashed rgba(0, 255, 163, 0.15);
    animation: spinCCW 46s linear infinite;
}

.orbit-dot {
    position: absolute;
    top: -4.5px;
    left: 50%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.orbit-1 .orbit-dot {
    background: var(--neon-blue);
    box-shadow: 0 0 14px 3px var(--glow-blue);
}

.orbit-2 .orbit-dot {
    background: var(--neon-green);
    box-shadow: 0 0 14px 3px var(--glow-green);
}

@keyframes spinCW {
    to { transform: rotate(360deg); }
}
@keyframes spinCCW {
    to { transform: rotate(-360deg); }
}

/* Chips flotantes */
.float-chip {
    position: absolute;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: #C9DEFF;
    padding: 0.55rem 0.9rem;
    border-radius: 12px;
    background: rgba(8, 13, 26, 0.85);
    border: 1px solid var(--border-neon);
    backdrop-filter: blur(8px);
    box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.8), 0 0 24px -10px var(--glow-blue);
    animation: chipFloat 6s ease-in-out infinite;
    white-space: nowrap;
}

.float-chip b { color: var(--neon-green); font-weight: 700; }

.chip-a { top: -22px; right: -18px; animation-delay: -1.2s; }
.chip-b { top: 44%; left: -40px; animation-delay: -3.1s; animation-duration: 7s; }
.chip-c { bottom: -20px; right: -8px; animation-delay: -4.6s; animation-duration: 6.6s; }

@keyframes chipFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-11px); }
}

/* ---------- Ticker tecnológico ---------- */
.ticker {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border-dim);
    border-bottom: 1px solid var(--border-dim);
    background: rgba(5, 9, 18, 0.55);
    backdrop-filter: blur(6px);
    overflow: hidden;
    padding: 0.85rem 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: tickerMove 30s linear infinite;
}

.ticker-group {
    display: flex;
    align-items: center;
    gap: 2.8rem;
    padding-right: 2.8rem;
}

.ticker-group span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.ticker-group b {
    color: var(--neon-blue);
    font-weight: 400;
    text-shadow: 0 0 12px var(--glow-blue);
}

@keyframes tickerMove {
    to { transform: translateX(-50%); }
}

/* ---------- KPI Strip con contadores ---------- */
.kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
    margin: 3.2rem auto 0;
}

.kpi-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-md);
    padding: 1.7rem 1.2rem 1.5rem;
    text-align: center;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}

.kpi-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-neon);
    box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.7), 0 0 34px -14px var(--glow-blue);
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 14%;
    right: 14%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), var(--neon-green), transparent);
    opacity: 0.75;
}

.kpi-value {
    font-family: var(--font-display);
    font-size: 2.15rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-shadow: 0 0 24px rgba(0, 209, 255, 0.4);
}

.kpi-value.glow-green {
    text-shadow: 0 0 24px rgba(0, 255, 163, 0.45);
}

.kpi-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    line-height: 1.45;
}

/* ---------- Encabezados de sección ---------- */
.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 3.2rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--neon-blue);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    margin-bottom: 1rem;
    text-shadow: 0 0 14px var(--glow-blue);
}

.section-tag::before,
.section-tag::after {
    content: '';
    height: 1px;
    width: 38px;
    background: linear-gradient(90deg, transparent, var(--neon-blue));
}

.section-tag::after {
    background: linear-gradient(90deg, var(--neon-blue), transparent);
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.4vw, 2.55rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.9rem;
    color: #FFFFFF;
    text-shadow: 0 0 40px rgba(0, 209, 255, 0.22);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.04rem;
}

main { position: relative; z-index: 2; }

/* ---------- Banner estratégico Meta CAPI ---------- */
.capi-section { padding: 2.5rem 0 4.5rem; }

.capi-banner {
    position: relative;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 2.6rem;
    align-items: center;
    padding: 2.7rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(115deg, rgba(10, 22, 48, 0.75), rgba(6, 10, 20, 0.85) 55%, rgba(4, 34, 28, 0.75));
    border: 1px solid rgba(0, 209, 255, 0.22);
    backdrop-filter: blur(12px);
    overflow: hidden;
    box-shadow: 0 28px 70px -30px rgba(0, 0, 0, 0.8), 0 0 60px -30px var(--glow-blue);
}

.capi-banner::before {
    content: '';
    position: absolute;
    top: -45%;
    right: -8%;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(0, 255, 163, 0.13), transparent 65%);
    pointer-events: none;
}

.capi-banner::after {
    content: '';
    position: absolute;
    left: 0;
    top: 16%;
    bottom: 16%;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--neon-blue), var(--neon-green));
    box-shadow: 0 0 16px var(--glow-green);
}

.capi-copy h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    color: #FFFFFF;
    letter-spacing: -0.01em;
    margin-bottom: 0.9rem;
}

.capi-copy p {
    color: #B9CBE8;
    font-size: 1rem;
}

.capi-copy p strong { color: #FFFFFF; }

.pulse-line {
    width: 100%;
    max-width: 340px;
    height: 42px;
    margin-top: 1.5rem;
    overflow: visible;
}

.pulse-line path {
    stroke-dasharray: 9 6;
    animation: dashFlow 1.1s linear infinite;
    filter: drop-shadow(0 0 6px rgba(0, 209, 255, 0.55));
}

@keyframes dashFlow {
    to { stroke-dashoffset: -30; }
}

/* Pipeline de señal CAPI */
.capi-pipeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    background: rgba(4, 7, 14, 0.72);
    border: 1px solid var(--border-dim);
    padding: 1.35rem 1.2rem;
    border-radius: var(--radius-md);
}

.pipe-title {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pipe-title::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-blue);
    box-shadow: 0 0 8px var(--glow-blue);
    animation: blink 1.6s infinite;
}

.pipe-node {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 0.95rem;
    background: rgba(10, 16, 32, 0.7);
    border: 1px solid var(--border-dim);
    border-radius: 12px;
    transition: border-color 0.45s ease, box-shadow 0.45s ease, background 0.45s ease;
}

.pipe-node.lit {
    border-color: rgba(0, 255, 163, 0.55);
    background: rgba(0, 255, 163, 0.05);
    box-shadow: 0 0 28px -8px var(--glow-green), inset 0 0 20px -14px var(--glow-green);
}

.pipe-num {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--neon-blue);
    border: 1px solid rgba(0, 209, 255, 0.35);
    border-radius: 8px;
    padding: 0.22rem 0.5rem;
    background: rgba(0, 209, 255, 0.07);
    flex: none;
}

.pipe-node strong {
    display: block;
    font-size: 0.88rem;
    color: #FFFFFF;
    line-height: 1.3;
}

.pipe-status {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    white-space: nowrap;
    text-align: right;
}

.s-blue { color: #93C5FD; }
.s-amber { color: #FFC95C; }
.s-green { color: var(--neon-green); text-shadow: 0 0 10px var(--glow-green); }

.pipe-link {
    position: relative;
    width: 2px;
    height: 26px;
    margin-left: 34px;
    background: linear-gradient(180deg, rgba(0, 209, 255, 0.4), rgba(0, 255, 163, 0.4));
    border-radius: 2px;
    overflow: hidden;
}

.pipe-link i {
    position: absolute;
    left: -2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--glow-green);
    animation: dotFlow 1.35s linear infinite;
}

.pipe-link i:nth-child(2) { animation-delay: 0.45s; }
.pipe-link i:nth-child(3) { animation-delay: 0.9s; }

@keyframes dotFlow {
    0% { top: -8px; opacity: 0; }
    18% { opacity: 1; }
    82% { opacity: 1; }
    100% { top: 27px; opacity: 0; }
}

/* ---------- Bento Grid: 4 Escudos con tilt 3D ---------- */
.bento-section { padding: 3rem 0 4.5rem; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.bento-box {
    --c: var(--neon-blue);
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-md);
    padding: 2.1rem 2rem;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.bento-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--c), transparent);
    filter: drop-shadow(0 0 6px var(--c));
    opacity: 0.9;
}

.bento-box::after {
    content: '';
    position: absolute;
    left: 0;
    top: -70%;
    width: 100%;
    height: 70%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
}

.bento-box:hover {
    border-color: var(--c);
    box-shadow: 0 26px 60px -24px rgba(0, 0, 0, 0.8), 0 0 44px -16px var(--c);
}

.bento-box:hover::after {
    opacity: 1;
    transform: translateY(320%);
    transition: transform 1.1s ease, opacity 0.25s ease;
}

.b-red { --c: #FF4D6D; }
.b-green { --c: #00FFA3; }
.b-blue { --c: #00D1FF; }
.b-amber { --c: #FFB020; }

.bento-icon {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.01)), rgba(3, 6, 13, 0.5);
    border: 1px solid var(--border-dim);
    box-shadow: 0 0 26px -8px var(--c);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.bento-box:hover .bento-icon {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 0 34px -6px var(--c);
}

.bento-box h3 {
    font-family: var(--font-display);
    font-size: 1.32rem;
    margin-bottom: 0.8rem;
    color: #FFFFFF;
    letter-spacing: -0.01em;
}

.bento-box p {
    color: var(--text-muted);
    font-size: 0.97rem;
    margin-bottom: 1.3rem;
}

.bento-metric {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-dim);
    border-left: 2px solid var(--c);
    color: #D7E4FA;
}

/* ---------- Pestañas por industria ---------- */
.industries-section { padding: 3rem 0 4.5rem; }

.tabs-container {
    display: flex;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-dim);
    background: rgba(8, 13, 26, 0.6);
    backdrop-filter: blur(12px);
    min-height: 400px;
    box-shadow: 0 28px 70px -34px rgba(0, 0, 0, 0.85);
}

.tabs-menu {
    width: 350px;
    background: rgba(4, 7, 15, 0.55);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-dim);
}

.tab-btn {
    position: relative;
    padding: 1.4rem 1.5rem;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(122, 162, 247, 0.09);
    color: var(--text-muted);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.96rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: color 0.25s, background 0.25s;
}

.tab-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: -1px;
    width: 3px;
    background: linear-gradient(180deg, var(--neon-blue), var(--neon-green));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s var(--ease-out);
    box-shadow: 0 0 14px var(--glow-blue);
}

.tab-btn:hover {
    color: #FFFFFF;
    background: rgba(0, 209, 255, 0.05);
}

.tab-btn.active {
    color: #FFFFFF;
    background: linear-gradient(90deg, rgba(0, 209, 255, 0.13), rgba(0, 209, 255, 0.02));
}

.tab-btn.active::before { transform: scaleY(1); }

.tab-content {
    padding: 2.7rem;
    flex: 1;
    display: none;
}

.tab-content.active {
    display: block;
    animation: tabIn 0.45s var(--ease-out);
}

@keyframes tabIn {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: none; }
}

.tab-content h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: #FFFFFF;
    letter-spacing: -0.01em;
    margin-bottom: 0.85rem;
}

.tab-content > p {
    color: var(--text-muted);
    font-size: 1.02rem;
}

.feature-list {
    color: var(--text-muted);
    line-height: 1.7;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.6rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    color: #DCE6F7;
    font-size: 0.97rem;
}

.feature-list li::before {
    content: '✓';
    color: var(--neon-green);
    font-weight: 700;
    background: rgba(0, 255, 163, 0.1);
    border: 1px solid rgba(0, 255, 163, 0.32);
    box-shadow: 0 0 12px -4px var(--glow-green);
    min-width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-top: 2px;
    flex: none;
}

/* ---------- Calculadora ROI ---------- */
.roi-section { padding: 3.5rem 0 5rem; }

.roi-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.8rem;
    padding: 2.7rem;
    border-radius: var(--radius-lg);
    background: rgba(8, 13, 26, 0.55);
    border: 1px solid var(--border-dim);
    backdrop-filter: blur(12px);
    overflow: hidden;
    box-shadow: 0 30px 80px -36px rgba(0, 0, 0, 0.85);
}

.roi-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 209, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 209, 255, 0.045) 1px, transparent 1px);
    background-size: 36px 36px;
    -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
    pointer-events: none;
}

.slider-group {
    position: relative;
    margin-bottom: 1.9rem;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.93rem;
    color: #D5E3F8;
}

.slider-header .val {
    color: var(--neon-blue);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.88rem;
    text-shadow: 0 0 12px var(--glow-blue);
    white-space: nowrap;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--neon-blue) 0%, var(--neon-green) var(--fill, 50%), #131C33 var(--fill, 50%), #131C33 100%);
    outline: none;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 14px -6px var(--glow-blue);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0A1120;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 0 4px rgba(0, 209, 255, 0.16), 0 0 18px var(--glow-blue);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    cursor: grab;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.18);
    box-shadow: 0 0 0 7px rgba(0, 209, 255, 0.22), 0 0 28px var(--glow-blue);
}

input[type="range"]::-webkit-slider-thumb:active { cursor: grabbing; }

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0A1120;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 0 4px rgba(0, 209, 255, 0.16), 0 0 18px var(--glow-blue);
    cursor: grab;
}

input[type="range"]::-moz-range-track {
    background: transparent;
}

.roi-result-card {
    position: relative;
    background: rgba(4, 8, 17, 0.88);
    border: 1px solid rgba(0, 255, 163, 0.28);
    border-radius: var(--radius-md);
    padding: 2.2rem 2rem;
    text-align: center;
    overflow: hidden;
}

/* Haz de luz girando el borde */
.beam::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(from var(--beam-angle),
        rgba(0, 209, 255, 0) 0deg,
        rgba(0, 209, 255, 0.95) 42deg,
        rgba(0, 255, 163, 0.95) 84deg,
        rgba(0, 255, 163, 0) 135deg,
        rgba(0, 209, 255, 0) 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: beamSpin 4.5s linear infinite;
    pointer-events: none;
}

@keyframes beamSpin {
    to { --beam-angle: 360deg; }
}

.roi-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.roi-label::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--glow-green);
    animation: blink 1.8s infinite;
}

.roi-amount {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 3.6vw, 2.9rem);
    font-weight: 700;
    color: var(--neon-green);
    letter-spacing: -0.02em;
    margin: 0.7rem 0;
    text-shadow: 0 0 20px rgba(0, 255, 163, 0.45), 0 0 60px rgba(0, 255, 163, 0.2);
}

.roi-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin: 1.3rem 0 1.6rem;
    text-align: left;
    font-size: 0.82rem;
}

.roi-mini-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-dim);
    padding: 0.8rem 0.9rem;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.roi-mini-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--neon-blue);
    box-shadow: 0 0 8px var(--glow-blue);
}

.roi-mini-box:last-child::before {
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--glow-green);
}

.roi-mini-box div { color: var(--text-muted); font-size: 0.76rem; }

.roi-mini-box strong {
    color: #FFFFFF;
    font-size: 1.02rem;
    display: inline-block;
    margin-top: 0.2rem;
}

/* ---------- FAQ ---------- */
.faq-section { padding: 3rem 0 5rem; }

.faq-list {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(10, 16, 32, 0.6);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-md);
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item.open {
    border-color: rgba(0, 209, 255, 0.4);
    box-shadow: 0 0 38px -14px var(--glow-blue);
}

.faq-question {
    width: 100%;
    padding: 1.3rem 1.5rem;
    background: none;
    border: none;
    color: #FFFFFF;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1.01rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.1rem;
    cursor: pointer;
}

.faq-icon {
    flex: none;
    width: 27px;
    height: 27px;
    border-radius: 9px;
    border: 1px solid rgba(0, 209, 255, 0.42);
    color: var(--neon-blue);
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    font-weight: 400;
    transition: transform 0.35s var(--ease-out), background 0.3s, box-shadow 0.3s;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: rgba(0, 209, 255, 0.14);
    box-shadow: 0 0 16px -3px var(--glow-blue);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease-out), padding-bottom 0.45s var(--ease-out);
    padding: 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.faq-item.open .faq-answer { padding-bottom: 1.4rem; }

/* ---------- Contacto ---------- */
.contact-section { padding: 3rem 0 5.5rem; }

.contact-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.2rem;
    padding: 3rem;
    border-radius: var(--radius-lg);
    background: rgba(8, 13, 26, 0.55);
    border: 1px solid var(--border-dim);
    backdrop-filter: blur(12px);
    overflow: hidden;
    box-shadow: 0 30px 80px -36px rgba(0, 0, 0, 0.85);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), var(--neon-green), transparent);
    opacity: 0.8;
}

.contact-copy h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.contact-copy > p { color: var(--text-muted); margin-bottom: 0.6rem; }
.contact-copy .section-tag { margin-bottom: 1.2rem; }
.contact-copy .feature-list { margin-top: 1.6rem; }

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
}

.form-control {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
}

.form-control label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #C4D5EF;
    letter-spacing: 0.02em;
}

.form-control input,
.form-control select,
.form-control textarea {
    padding: 0.9rem 1.05rem;
    border-radius: 11px;
    border: 1px solid var(--border-dim);
    background: rgba(4, 8, 16, 0.75);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 0.94rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-control select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2300D1FF' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
}

.form-control select option { background: #0A1120; color: #EAF2FF; }

.form-control input::placeholder,
.form-control textarea::placeholder { color: #55688C; }

.form-control input:focus,
.form-control select:focus,
.form-control textarea:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 3px rgba(0, 209, 255, 0.16), 0 0 26px -8px var(--glow-blue);
}

/* ---------- Footer ---------- */
footer {
    position: relative;
    border-top: 1px solid var(--border-dim);
    padding: 2.5rem 0;
    background: rgba(3, 5, 10, 0.85);
    font-size: 0.87rem;
    color: var(--text-muted);
    z-index: 2;
}

footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 18%;
    right: 18%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 209, 255, 0.55), rgba(0, 255, 163, 0.55), transparent);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-inner .logo { font-size: 1.15rem; }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
    position: fixed;
    bottom: 26px;
    right: 26px;
    z-index: 1300;
    background: linear-gradient(135deg, #00FFA3, #00D890);
    color: #04301F;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 0.92rem;
    padding: 0.95rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 0 32px rgba(0, 255, 163, 0.5), 0 16px 34px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s var(--ease-out), box-shadow 0.3s ease;
}

.wa-float:hover {
    transform: scale(1.06);
    box-shadow: 0 0 48px rgba(0, 255, 163, 0.7), 0 18px 40px rgba(0, 0, 0, 0.55);
}

.wa-float::before,
.wa-float::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    border: 2px solid rgba(0, 255, 163, 0.65);
    animation: waPulse 2.6s ease-out infinite;
    pointer-events: none;
}

.wa-float::after { animation-delay: 1.3s; }

@keyframes waPulse {
    0% { transform: scale(1); opacity: 0.85; }
    100% { transform: scale(1.55); opacity: 0; }
}

.wa-bolt {
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 0 4px rgba(0, 60, 35, 0.6));
}

/* ---------- Animaciones de aparición ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
    transition-delay: var(--d, 0s);
}

.reveal.in-view {
    opacity: 1;
    transform: none;
}

.reveal-fade {
    opacity: 0;
    transition: opacity 0.9s ease;
    transition-delay: var(--d, 0s);
}

.reveal-fade.in-view { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 4.5rem;
        padding-bottom: 5.5rem;
    }
    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
    .hero p.lead { max-width: 100%; }
}

@media (max-width: 960px) {
    .capi-banner,
    .roi-wrapper,
    .contact-card {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    .kpi-strip { grid-template-columns: repeat(2, 1fr); }
    .bento-grid { grid-template-columns: 1fr; }
    .tabs-container { flex-direction: column; }
    .tabs-menu {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-dim);
    }
    .tab-btn { border-bottom: 1px solid rgba(122, 162, 247, 0.09); }
    .tab-btn::before { bottom: 0; top: auto; left: 0; right: 0; width: auto; height: 3px; transform: scaleX(0); transform-origin: left; }
    .tab-btn.active::before { transform: scaleX(1); }
    .tab-content { padding: 2rem 1.6rem; }
}

@media (max-width: 880px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(5, 9, 18, 0.97);
        backdrop-filter: blur(18px);
        flex-direction: column;
        align-items: stretch;
        padding: 1.2rem 1.5rem 1.5rem;
        gap: 0.3rem;
        border-bottom: 1px solid var(--border-dim);
        box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.8);
    }
    .nav-links.show {
        display: flex;
        animation: menuIn 0.3s var(--ease-out);
    }
    .nav-links a {
        padding: 0.85rem 0.6rem;
        border-radius: 10px;
        font-size: 1rem;
    }
    .nav-links a:hover { background: rgba(0, 209, 255, 0.07); }
    .mobile-toggle { display: flex; }
    .nav-actions .btn { display: none; }
}

@keyframes menuIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
    .hero { padding-top: 7.2rem; }
    .orbit, .float-chip { display: none; }
    .chat-stream { min-height: 460px; }
    .hero h1 { font-size: clamp(2rem, 8.5vw, 2.6rem); }
    .section-header { margin-bottom: 2.4rem; }
    .capi-banner, .roi-wrapper, .contact-card { padding: 1.6rem; }
    .contact-card { gap: 2.2rem; }
    .roi-breakdown { grid-template-columns: 1fr; }
    .kpi-strip { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
    .kpi-card { padding: 1.3rem 0.9rem 1.2rem; }
    .kpi-value { font-size: 1.7rem; }
    .kpi-label { font-size: 0.72rem; }
    .footer-inner { justify-content: center; text-align: center; }
    .wa-float { padding: 0.85rem 1.2rem; font-size: 0.85rem; }
    .mockup-title { display: none; }
}

/* ---------- Accesibilidad: reducir movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero-floor, .ticker-track, .orbit, .float-chip { animation: none !important; }
    .reveal, .reveal-fade { opacity: 1; transform: none; }
}

/* ================================================================
   OPTIMA · EXTENSIONES MULTI-PÁGINA (PMO W01–W11)
   Página-hero, breadcrumb, footer corporativo, documentos legales,
   pasos, tablas, callouts, centro de ayuda y canales de contacto
================================================================ */

/* ---------- Pie de página corporativo (4 columnas legales) ---------- */
footer { padding: 3rem 0 1.9rem; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr 0.95fr 1.15fr;
    gap: 2.4rem;
    padding-bottom: 2.1rem;
    border-bottom: 1px solid var(--border-dim);
}

.footer-brand .logo { font-size: 1.2rem; }

.footer-desc {
    color: var(--text-muted);
    font-size: 0.87rem;
    line-height: 1.65;
    margin: 0.95rem 0 1.15rem;
    max-width: 310px;
}

.footer-desc strong { color: #C9DEFF; }

.footer-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.footer-chips span {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    color: #9BDCFF;
    padding: 0.32rem 0.7rem;
    border-radius: 99px;
    border: 1px solid rgba(0, 209, 255, 0.26);
    background: rgba(0, 209, 255, 0.05);
    white-space: nowrap;
}

.footer-title {
    font-family: var(--font-mono);
    font-size: 0.67rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #9BDCFF;
    margin-bottom: 1rem;
    text-shadow: 0 0 12px var(--glow-blue);
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.22s ease;
}

.footer-links a:hover { color: #FFFFFF; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.9rem;
    padding-top: 1.5rem;
    font-size: 0.78rem;
    color: #55688C;
    line-height: 1.6;
}

.footer-disclaimer { max-width: 580px; }

/* ---------- Hero de páginas internas ---------- */
.page-hero {
    position: relative;
    padding: 8.6rem 0 3.4rem;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: -140px;
    right: -90px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 209, 255, 0.12), transparent 65%);
    pointer-events: none;
}

.page-hero .badge { margin-bottom: 1.2rem; }

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.2vw, 3.05rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    margin-bottom: 1.1rem;
    text-shadow: 0 0 40px rgba(0, 209, 255, 0.2);
}

.page-lead {
    color: var(--text-muted);
    font-size: 1.08rem;
    max-width: 780px;
    margin-bottom: 1.6rem;
}

.page-lead strong { color: #C9DEFF; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    color: #C9DEFF;
    padding: 0.42rem 0.9rem;
    border-radius: 99px;
    border: 1px solid rgba(0, 209, 255, 0.28);
    background: rgba(0, 209, 255, 0.05);
    white-space: nowrap;
}

.chip.ok {
    color: #B8FFDF;
    border-color: rgba(0, 255, 163, 0.32);
    background: rgba(0, 255, 163, 0.06);
}

.chip.amber {
    color: #FFE3B0;
    border-color: rgba(255, 176, 32, 0.32);
    background: rgba(255, 176, 32, 0.06);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 1.7rem;
}

.breadcrumb a { color: #9BDCFF; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.crumb-sep { opacity: 0.55; }

/* ---------- Ritmo de secciones internas ---------- */
.page-section { padding: 3rem 0; }

.page-section-tint {
    padding: 3rem 0;
    background: rgba(5, 9, 18, 0.45);
    border-top: 1px solid var(--border-dim);
    border-bottom: 1px solid var(--border-dim);
}

.section-body { max-width: 880px; }
.section-body p { color: var(--text-muted); font-size: 1rem; margin-bottom: 1rem; }

/* ---------- Pasos numerados ---------- */
.steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    margin: 1.6rem 0 0;
    counter-reset: step;
}

.steps li {
    position: relative;
    padding: 1.25rem 1.4rem 1.25rem 4.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.steps li::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 1.15rem;
    top: 1.25rem;
    width: 2.2rem;
    height: 2.2rem;
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--neon-blue);
    border: 1px solid rgba(0, 209, 255, 0.35);
    background: rgba(0, 209, 255, 0.07);
    border-radius: 10px;
    box-shadow: 0 0 14px -4px var(--glow-blue);
}

.steps li strong { display: block; color: #FFFFFF; margin-bottom: 0.3rem; font-size: 0.99rem; }
.steps li p { color: var(--text-muted); font-size: 0.92rem; margin: 0; line-height: 1.6; }
.steps li code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #9BE8FF;
    background: rgba(0, 209, 255, 0.08);
    border: 1px solid rgba(0, 209, 255, 0.22);
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
}

/* ---------- Tablas (SLA, permisos, comparativas) ---------- */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-md);
    background: rgba(6, 10, 20, 0.6);
    margin-top: 1.6rem;
    backdrop-filter: blur(8px);
}

table.opt-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }

.opt-table th {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 500;
    color: #9BDCFF;
    text-align: left;
    padding: 0.95rem 1.1rem;
    border-bottom: 1px solid rgba(0, 209, 255, 0.25);
    background: rgba(0, 209, 255, 0.05);
    white-space: nowrap;
}

.opt-table td {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid rgba(122, 162, 247, 0.09);
    color: #D5E3F8;
    vertical-align: top;
    line-height: 1.55;
}

.opt-table tbody tr:last-child td { border-bottom: none; }
.opt-table tbody tr:hover { background: rgba(0, 209, 255, 0.035); }
.opt-table .td-strong { color: #FFFFFF; font-weight: 600; }

.pill {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.22rem 0.6rem;
    border-radius: 99px;
    border: 1px solid;
    white-space: nowrap;
}

.pill-green { color: #7CFFD1; border-color: rgba(0, 255, 163, 0.4); background: rgba(0, 255, 163, 0.07); }
.pill-blue { color: #9BE8FF; border-color: rgba(0, 209, 255, 0.4); background: rgba(0, 209, 255, 0.07); }
.pill-amber { color: #FFD98F; border-color: rgba(255, 176, 32, 0.4); background: rgba(255, 176, 32, 0.07); }
.pill-red { color: #FFAEBE; border-color: rgba(255, 77, 109, 0.4); background: rgba(255, 77, 109, 0.07); }

/* ---------- Callouts ---------- */
.callout {
    display: flex;
    gap: 0.9rem;
    padding: 1.1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid;
    margin: 1.5rem 0;
    font-size: 0.92rem;
    line-height: 1.65;
    backdrop-filter: blur(8px);
}

.callout .co-icon { flex: none; font-size: 1.05rem; line-height: 1.5; }
.callout p { margin: 0; color: #D5E3F8; }
.callout strong { color: #FFFFFF; }
.callout a { color: #9BDCFF; }

.callout-info { border-color: rgba(0, 209, 255, 0.3); background: rgba(0, 209, 255, 0.055); }
.callout-ok { border-color: rgba(0, 255, 163, 0.32); background: rgba(0, 255, 163, 0.05); }
.callout-warn { border-color: rgba(255, 176, 32, 0.32); background: rgba(255, 176, 32, 0.05); }
.callout-danger { border-color: rgba(255, 77, 109, 0.32); background: rgba(255, 77, 109, 0.05); }

/* ---------- Documentos legales (TOC + cuerpo) ---------- */
.doc-layout {
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    gap: 2.6rem;
    align-items: start;
}

.doc-toc {
    position: sticky;
    top: 108px;
    background: rgba(6, 10, 20, 0.72);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.05rem;
    backdrop-filter: blur(10px);
}

.doc-toc .toc-title {
    font-family: var(--font-mono);
    font-size: 0.63rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.doc-toc ol { list-style: none; display: flex; flex-direction: column; gap: 0.12rem; margin: 0; padding: 0; }

.doc-toc a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    line-height: 1.45;
    padding: 0.42rem 0.55rem;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.doc-toc a:hover { color: #FFFFFF; background: rgba(0, 209, 255, 0.07); }
.doc-toc a .tnum { font-family: var(--font-mono); font-size: 0.7rem; color: var(--neon-blue); margin-right: 0.45rem; }

.doc-body { min-width: 0; }

.doc-body h2 {
    font-family: var(--font-display);
    font-size: 1.34rem;
    color: #FFFFFF;
    letter-spacing: -0.01em;
    margin: 2.7rem 0 1rem;
    padding-top: 1.3rem;
    border-top: 1px solid var(--border-dim);
    scroll-margin-top: 122px;
}

.doc-body h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.doc-body h2 .sec-num { font-family: var(--font-mono); color: var(--neon-blue); font-size: 0.98rem; margin-right: 0.6rem; }

.doc-body h3 {
    font-family: var(--font-display);
    font-size: 1.06rem;
    color: #EAF2FF;
    margin: 1.8rem 0 0.7rem;
    scroll-margin-top: 122px;
}

.doc-body p { color: #B9CBE8; margin: 0.8rem 0; font-size: 0.95rem; line-height: 1.7; }
.doc-body ul, .doc-body ol { color: #B9CBE8; margin: 0.8rem 0 0.8rem 1.25rem; font-size: 0.93rem; line-height: 1.7; }
.doc-body li { margin: 0.42rem 0; }
.doc-body li::marker { color: var(--neon-blue); }
.doc-body strong { color: #FFFFFF; }
.doc-body a { color: #9BDCFF; }

.legal-meta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 2.2rem; }

/* ---------- Tarjetas de enlace rápido ---------- */
.link-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 1.6rem; }

.link-card {
    display: block;
    text-decoration: none;
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-md);
    padding: 1.35rem 1.45rem;
    transition: transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.link-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-neon);
    box-shadow: 0 22px 48px -20px rgba(0, 0, 0, 0.75), 0 0 34px -14px var(--glow-blue);
}

.link-card .lc-icon { font-size: 1.45rem; margin-bottom: 0.7rem; }
.link-card h3 { font-family: var(--font-display); font-size: 1.04rem; color: #FFFFFF; margin-bottom: 0.4rem; }
.link-card p { color: var(--text-muted); font-size: 0.87rem; margin: 0 0 0.7rem; line-height: 1.55; }
.link-card .lc-arrow { font-family: var(--font-mono); font-size: 0.74rem; color: var(--neon-blue); letter-spacing: 0.06em; }

/* ---------- Centro de ayuda ---------- */
.search-box { position: relative; max-width: 580px; margin: 1.7rem auto 0; }

.search-box input {
    width: 100%;
    padding: 1rem 1.2rem 1rem 3.1rem;
    border-radius: 12px;
    border: 1px solid var(--border-dim);
    background: rgba(4, 8, 16, 0.8);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-box::before {
    content: '⌕';
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-54%);
    font-size: 1.35rem;
    color: var(--neon-blue);
    pointer-events: none;
}

.search-box input::placeholder { color: #55688C; }

.search-box input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 3px rgba(0, 209, 255, 0.16), 0 0 26px -8px var(--glow-blue);
}

.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.8rem; }

.guide-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-md);
    padding: 1.45rem;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    transition: transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-neon);
    box-shadow: 0 22px 48px -20px rgba(0, 0, 0, 0.75), 0 0 34px -14px var(--glow-blue);
}

.g-cat {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #9BDCFF;
    border: 1px solid rgba(0, 209, 255, 0.3);
    background: rgba(0, 209, 255, 0.06);
    padding: 0.26rem 0.6rem;
    border-radius: 99px;
    margin-bottom: 0.85rem;
}

.guide-card h3 { font-family: var(--font-display); font-size: 1.02rem; color: #FFFFFF; margin-bottom: 0.45rem; line-height: 1.35; }
.guide-card p { color: var(--text-muted); font-size: 0.86rem; margin: 0 0 0.9rem; line-height: 1.55; flex: 1; }
.g-link { font-family: var(--font-mono); font-size: 0.74rem; color: var(--neon-green); letter-spacing: 0.05em; text-decoration: none; }
.guide-card:hover .g-link { text-shadow: 0 0 12px var(--glow-green); }

.guide-empty {
    display: none;
    text-align: center;
    color: var(--text-muted);
    padding: 2.2rem 1rem;
    border: 1px dashed var(--border-dim);
    border-radius: var(--radius-md);
    margin-top: 1.4rem;
    font-size: 0.92rem;
}

/* ---------- Canales de contacto ---------- */
.contact-channels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 1.6rem; }

.channel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.channel-card:hover { border-color: var(--border-neon); box-shadow: 0 0 30px -12px var(--glow-blue); }

.ch-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    border-radius: 11px;
    margin-bottom: 0.85rem;
    background: rgba(0, 209, 255, 0.08);
    border: 1px solid rgba(0, 209, 255, 0.28);
    box-shadow: 0 0 18px -6px var(--glow-blue);
}

.channel-card.accent-green .ch-icon {
    background: rgba(0, 255, 163, 0.08);
    border-color: rgba(0, 255, 163, 0.3);
    box-shadow: 0 0 18px -6px var(--glow-green);
}

.ch-label {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.ch-value { color: #FFFFFF; font-weight: 600; font-size: 0.98rem; word-break: break-word; }
.ch-value a { color: #9BE8FF; text-decoration: none; }
.ch-value a:hover { text-decoration: underline; }
.ch-note { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.35rem; line-height: 1.5; }

/* ---------- Formularios: mejoras ---------- */
.form-check {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: var(--neon-blue);
    flex: none;
    cursor: pointer;
}

.form-check a { color: #9BDCFF; }

.form-hint { font-size: 0.76rem; color: #55688C; margin-top: 0.3rem; }

.form-banner {
    margin-top: 0.9rem;
    padding: 1rem 1.1rem;
    border-radius: 10px;
    background: rgba(0, 255, 163, 0.1);
    border: 1px solid rgba(0, 255, 163, 0.45);
    box-shadow: 0 0 26px -10px var(--glow-green);
    color: #B8FFDF;
    font-size: 0.9rem;
    line-height: 1.6;
}

.form-banner.err {
    background: rgba(255, 77, 109, 0.09);
    border-color: rgba(255, 77, 109, 0.45);
    box-shadow: 0 0 26px -10px rgba(255, 77, 109, 0.35);
    color: #FFD3DC;
}

.form-banner[hidden] { display: none; }
.form-banner strong { color: #FFFFFF; }
.form-banner-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.85rem; }

.input-invalid {
    border-color: rgba(255, 77, 109, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.12) !important;
}

/* ---------- Rejillas de valores / pilares ---------- */
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 1.8rem; }

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.55rem;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-out);
}

.value-card:hover { border-color: var(--border-neon); transform: translateY(-3px); box-shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.7); }
.value-card .v-icon { font-size: 1.4rem; margin-bottom: 0.7rem; }
.value-card h3 { font-family: var(--font-display); font-size: 1.05rem; color: #FFFFFF; margin-bottom: 0.45rem; }
.value-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; line-height: 1.6; }

/* ---------- Responsive de extensiones ---------- */
/* Fix: .feature-list li usa display:flex en el sistema base; los <a>/<strong>
   internos se convertirían en flex-items separados. Reemplazo por bloque con
   icono posicionado para conservar el diseño y el flujo del texto. */
.feature-list li { display: block; position: relative; padding-left: 2.4rem; }
.feature-list li::before {
    position: absolute;
    left: 0;
    top: 2px;
    margin-top: 0;
    width: 25px;
}
.feature-list li > * { display: inline; }

@media (max-width: 960px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
    .doc-layout { grid-template-columns: 1fr; gap: 1.6rem; }
    .doc-toc { position: static; }
    .guide-grid { grid-template-columns: repeat(2, 1fr); }
    .link-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
    .footer-bottom { flex-direction: column; }
    .page-hero { padding: 7.4rem 0 2.6rem; }
    .guide-grid { grid-template-columns: 1fr; }
    .contact-channels { grid-template-columns: 1fr; }
    .value-grid { grid-template-columns: 1fr; }
    .steps li { padding-left: 4rem; }
}
