/* ═══════════════════════════════════════════════
   BI CÓDIGO VISUAL — PREMIUM UI v7
   Mesh Gradient · Minimalist Nav · Bigger Cards
   ═══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Apple Clean Palette - base tokens */
    --pure-white: #ffffff;
    --pure-black: #000000;

    /* Dynamic Theme Variables (Default Light Mode - "Versión Blanco con Morado") */
    --bg: #ffffff;
    --bg-surface: #f7f7f9;
    --text-primary: #121214;
    /* Negro intenso para legibilidad máxima */
    --text-secondary: #424245;
    /* Gris oscuro profundo para alto contraste */
    --glass: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(0, 0, 0, 0.1);

    /* Brand Accent: Bi Código Visual Purple */
    --purple: #7c3aed;
    --purple-deep: #5b21b6;
    /* Morado más oscuro para mejor contraste en texto/iconos */
    --purple-light: #a78bfa;
    --purple-bright: #8b5cf6;
    --grad: linear-gradient(135deg, #7c3aed, #5b21b6);
    --title-grad: linear-gradient(135deg, #7c3aed 0%, #121214 100%);
    --agent-grad: linear-gradient(135deg, #7c3aed 0%, #000000 100%);

    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --blur: blur(24px);

    --white: #ffffff;
    --gray: #424245;
    /* Oscurecido para legibilidad */
    --muted: #1d1d1f;

    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 20px;
    --radius-sm: 14px;
    --tr: .4s cubic-bezier(.4, 0, .2, 1);

    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Night Mode Overrides (Negro con Morado) */
body.dark-mode {
    --bg: #050505;
    --bg-surface: #0a0a0a;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --glass: rgba(10, 10, 10, 0.8);
    --glass-border: rgba(255, 255, 255, 0.12);
    --title-grad: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.9);
    --gray: #a1a1a6;
    --muted: #5c6080;
    --purple-deep: #a78bfa;
    --title-grad: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    transition: background-color 0.5s ease, color 0.5s ease;
}

::-webkit-scrollbar {
    width: 4px
}

::-webkit-scrollbar-track {
    background: var(--bg)
}

::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 2px
}

img {
    max-width: 100%;
    display: block
}

a {
    text-decoration: none;
    color: inherit
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 3
}

section {
    padding: 120px 0;
    position: relative;
    overflow: hidden
}

/* ══════════ BACKGROUND LIQUID MESH ══════════ */
.liquid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background: var(--bg);
    overflow: hidden;
    transition: background-color 0.5s ease;
}

.liquid-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: floating 25s infinite alternate ease-in-out;
}

body.dark-mode .liquid-circle {
    opacity: 0.55;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.9) 0%, rgba(124, 58, 237, 0.6) 40%, rgba(0, 0, 0, 0) 70%);
    filter: blur(60px);
    mix-blend-mode: screen;
}

.c1 {
    width: 600px;
    height: 600px;
    background: var(--purple);
    top: -150px;
    right: -100px;
}

.c2 {
    width: 500px;
    height: 500px;
    background: var(--purple);
    bottom: -100px;
    left: -100px;
    animation-duration: 30s;
}

.c3 {
    width: 400px;
    height: 400px;
    background: var(--purple-light);
    top: 30%;
    left: 10%;
    animation-duration: 35s;
}

@keyframes floating {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* ══════════ BACKGROUND ══════════ */
#stellar-canvas,
.aurora,
.tech-grid {
    display: none;
    /* Reemplazados por Liquid Mesh */
}

#stellar-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none
}

.aurora {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    display: none
}

.tech-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(124, 58, 237, .015) 1px, transparent 1px), linear-gradient(90deg, rgba(124, 58, 237, .015) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 70%)
}

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px;
    opacity: .45
}

/* ══════════ GLASSMORPHISM ══════════ */
.glass {
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    transition: all var(--tr)
}

.glass::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, .03) 0%, transparent 50%, rgba(139, 92, 246, .015) 100%);
    pointer-events: none
}

.glass:hover {
    border-color: var(--purple);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px)
}

.glass-lit::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(165, 180, 252, .2), transparent);
    pointer-events: none
}

/* Title Gradient */
.title-gradient {
    background: var(--title-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent
}

.text-gradient {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent
}

body:not(.dark-mode) footer p,
body:not(.dark-mode) footer a {
    color: var(--text-secondary) !important;
}

body:not(.dark-mode) footer p[style*="rgba(255,255,255,.2)"] {
    color: var(--text-secondary) !important;
    opacity: 0.6;
}

.text-center {
    text-align: center
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: .68rem;
    font-weight: 700;
    /* Más peso para legibilidad */
    text-transform: uppercase;
    letter-spacing: 3.5px;
    color: var(--purple);
    /* Morado principal para iconos/etiquetas */
    margin-bottom: 16px
}

.section-label::before,
.section-label::after {
    content: '';
    width: 24px;
    height: 1px;
    background: rgba(167, 139, 250, .3)
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -.03em;
    color: var(--text-primary);
}

.section-sub {
    color: var(--text-secondary);
    max-width: 580px;
    font-size: 1rem;
    margin-bottom: 64px;
    line-height: 1.7;
    font-weight: 500;
}

.section-sub.center {
    margin-left: auto;
    margin-right: auto
}

/* Reveals */
.reveal {
    opacity: 0;
    transform: translateY(45px);
    transition: all .9s cubic-bezier(.16, 1, .3, 1)
}

.reveal.visible {
    opacity: 1;
    transform: none
}

.reveal-left {
    opacity: 0;
    transform: translateX(-45px);
    transition: all .9s cubic-bezier(.16, 1, .3, 1)
}

.reveal-left.visible {
    opacity: 1;
    transform: none
}

.reveal-right {
    opacity: 0;
    transform: translateX(45px);
    transition: all .9s cubic-bezier(.16, 1, .3, 1)
}

.reveal-right.visible {
    opacity: 1;
    transform: none
}

.reveal-scale {
    opacity: 0;
    transform: scale(.88);
    transition: all .9s cubic-bezier(.16, 1, .3, 1)
}

.reveal-scale.visible {
    opacity: 1;
    transform: none
}

.s1 {
    transition-delay: .05s
}

.s2 {
    transition-delay: .1s
}

.s3 {
    transition-delay: .15s
}

.s4 {
    transition-delay: .2s
}

.s5 {
    transition-delay: .25s
}

.s6 {
    transition-delay: .3s
}

/* Icon Box — bigger, glowing */
.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(124, 58, 237, .08);
    border: 1px solid rgba(124, 58, 237, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
    animation: iconFloat 3s ease-in-out infinite;
    transition: all .4s ease
}

.icon-box svg {
    width: 26px;
    height: 26px;
    stroke: var(--purple);
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all .4s ease
}

.glass:hover .icon-box {
    background: rgba(124, 58, 237, .2);
    border-color: rgba(124, 58, 237, .4);
    box-shadow: 0 0 25px rgba(124, 58, 237, .25);
    transform: scale(1.08)
}

.glass:hover .icon-box svg {
    stroke: var(--pure-white);
    filter: drop-shadow(0 0 6px rgba(167, 139, 250, .6))
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-6px)
    }
}

.s1 .icon-box {
    animation-delay: 0s
}

.s2 .icon-box {
    animation-delay: .3s
}

.s3 .icon-box {
    animation-delay: .6s
}

.s4 .icon-box {
    animation-delay: .9s
}

.s5 .icon-box {
    animation-delay: 1.2s
}

.s6 .icon-box {
    animation-delay: 1.5s
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--tr);
    border: none;
    letter-spacing: .02em
}

.btn-primary {
    background: var(--grad);
    color: #ffffff !important;
    box-shadow: 0 0 30px rgba(124, 58, 237, .3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 60px rgba(124, 58, 237, .4)
}

.top-bar-toggle {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 2000;
}

.btn-theme-text {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: all var(--tr);
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

/* Ensure text is always readable regardless of parent color context */
.btn-theme-text,
.btn-theme-text * {
    color: var(--text);
}

.btn-theme-text:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--purple);
    color: var(--purple);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
}

body.dark-mode .btn-theme-text {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

body.dark-mode .btn-theme-text:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--purple-deep);
    color: #fff;
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.3);
}


.theme-cta-hint {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    background: #c084fc;
    color: #000;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    white-space: nowrap;
    animation: bounceTooltip 2s infinite;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    z-index: 100;
}

body.dark-mode .theme-cta-hint {
    background: var(--purple-deep);
    color: #fff;
    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.4);
}

.theme-cta-hint::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #c084fc;
}

body.dark-mode .theme-cta-hint::after {
    border-color: transparent transparent transparent var(--purple-deep);
}

@keyframes bounceTooltip {

    0%,
    100% {
        transform: translateY(-50%) translateX(0);
    }

    50% {
        transform: translateY(-50%) translateX(-6px);
    }
}

.btn-glass {
    background: rgba(124, 58, 237, .06);
    color: var(--text-secondary);
    /* Changed from rgba(255,255,255,.8) for legibility */
    border: 1px solid rgba(124, 58, 237, .15);
    backdrop-filter: blur(12px)
}

.btn-glass:hover {
    border-color: rgba(124, 58, 237, .35);
    color: #fff;
    box-shadow: 0 0 25px rgba(124, 58, 237, .08)
}

.btn-sm {
    padding: 10px 20px;
    font-size: .8rem;
    border-radius: 10px
}

/* ══════════ LOGO — PARTICLES ONLY ══════════ */
.hero-logo-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 40px
}

/* No pseudo-element effects */
.hero-logo-wrap::before,
.hero-logo-wrap::after {
    display: none
}

/* ── Orbiting Particles ── */
.logo-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 4
}

/* White particles */
.logo-particle.p1 {
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, .8);
    box-shadow: 0 0 6px rgba(255, 255, 255, .5);
    animation: orbit1 5s linear infinite
}

.logo-particle.p2 {
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, .6);
    box-shadow: 0 0 4px rgba(255, 255, 255, .3);
    animation: orbit2 7s linear infinite
}

.logo-particle.p3 {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, .5);
    box-shadow: 0 0 8px rgba(255, 255, 255, .3);
    animation: orbit3 9s linear infinite
}

.logo-particle.p4 {
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, .7);
    box-shadow: 0 0 5px rgba(255, 255, 255, .4);
    animation: orbit4 6s linear infinite
}

/* Purple particles */
.logo-particle.p5 {
    width: 3px;
    height: 3px;
    background: rgba(167, 139, 250, .8);
    box-shadow: 0 0 6px rgba(167, 139, 250, .5);
    animation: orbit5 8s linear infinite
}

.logo-particle.p6 {
    width: 2px;
    height: 2px;
    background: rgba(124, 58, 237, .7);
    box-shadow: 0 0 5px rgba(124, 58, 237, .4);
    animation: orbit6 6.5s linear infinite
}

.logo-particle.p7 {
    width: 3px;
    height: 3px;
    background: rgba(167, 139, 250, .6);
    box-shadow: 0 0 7px rgba(167, 139, 250, .3);
    animation: orbit7 10s linear infinite
}

.logo-particle.p8 {
    width: 2px;
    height: 2px;
    background: rgba(124, 58, 237, .8);
    box-shadow: 0 0 4px rgba(124, 58, 237, .5);
    animation: orbit8 5.5s linear infinite
}

/* Orbit keyframes — each particle has unique radius and offset */
@keyframes orbit1 {
    0% {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(0deg) translateX(75px) rotate(0deg)
    }

    100% {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(360deg) translateX(75px) rotate(-360deg)
    }
}

@keyframes orbit2 {
    0% {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(45deg) translateX(90px) rotate(-45deg)
    }

    100% {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(405deg) translateX(90px) rotate(-405deg)
    }
}

@keyframes orbit3 {
    0% {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(120deg) translateX(100px) rotate(-120deg)
    }

    100% {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(480deg) translateX(100px) rotate(-480deg)
    }
}

@keyframes orbit4 {
    0% {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(200deg) translateX(70px) rotate(-200deg)
    }

    100% {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(560deg) translateX(70px) rotate(-560deg)
    }
}

@keyframes orbit5 {
    0% {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(160deg) translateX(85px) rotate(-160deg)
    }

    100% {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(520deg) translateX(85px) rotate(-520deg)
    }
}

@keyframes orbit6 {
    0% {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(280deg) translateX(95px) rotate(-280deg)
    }

    100% {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(640deg) translateX(95px) rotate(-640deg)
    }
}

@keyframes orbit7 {
    0% {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(60deg) translateX(110px) rotate(-60deg)
    }

    100% {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(420deg) translateX(110px) rotate(-420deg)
    }
}

@keyframes orbit8 {
    0% {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(320deg) translateX(80px) rotate(-320deg)
    }

    100% {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(680deg) translateX(80px) rotate(-680deg)
    }
}

.hero-logo {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(167, 139, 250, .15));
    animation: logoFloat 7s ease-in-out infinite
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-4px)
    }
}

/* ══════════ NAV — Minimalist Elegance (Sin Hamburguesa) ══════════ */
.nav {
    position: fixed;
    top: 24px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    transition: all var(--tr)
}

.nav .container {
    max-width: 900px;
    /* Más compacto y centrado */
    margin: 0 auto;
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 8px 12px 8px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.nav.scrolled .container {
    box-shadow: var(--shadow-md);
    transform: scale(0.98);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    /* Más presencia */
    font-size: 0.85rem;
    letter-spacing: .02em;
    color: var(--text-primary);
}

.nav-brand img {
    height: 24px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0 20px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .01em;
    transition: all var(--tr);
    padding: 6px 10px;
    border-radius: 20px;
}

.nav-links a:hover {
    color: var(--purple);
    background: var(--bg-surface);
}

.nav-cta {
    display: flex;
    gap: 12px;
    align-items: center
}

/* Theme Toggle Minimalista */
#theme-toggle {
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--tr);
    position: relative;
}

#theme-toggle i {
    color: var(--purple);
    font-size: 1rem;
    transition: transform 0.5s ease;
}

#theme-toggle::after {
    display: none;
}

#theme-toggle:hover {
    background: var(--bg-surface);
    border-color: var(--purple-light);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

#theme-toggle:hover i {
    transform: rotate(15deg);
}

body.dark-mode #theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode #theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--purple-light);
}

.nav .btn-primary {
    border-radius: 30px;
    padding: 10px 20px;
    color: #ffffff !important;
}

.hamburger {
    display: none !important;
    /* Eliminamos hamburguesa */
}

.hamburger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--purple-light);
    border-radius: 1px;
    transition: all .3s cubic-bezier(.4, 0, .2, 1)
}

.hamburger:hover {
    background: rgba(124, 58, 237, .12);
    border-color: rgba(124, 58, 237, .25)
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4.5px, 4.5px)
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0)
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4.5px, -4.5px)
}

/* ══════════ GLASSMORPHISM MENU PANEL ══════════ */
.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 210;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto
}

.menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 380px;
    max-width: 85vw;
    z-index: 220;
    transform: translateX(-100%);
    transition: transform .5s cubic-bezier(.16, 1, .3, 1);
    display: flex
}

.menu-panel.active {
    transform: translateX(0)
}

/* Vertical light bar */
.menu-light-bar {
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, transparent 5%, rgba(255, 255, 255, .4) 20%, rgba(167, 139, 250, .6) 50%, rgba(124, 58, 237, .4) 80%, transparent 95%);
    flex-shrink: 0;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(167, 139, 250, .3), 0 0 40px rgba(124, 58, 237, .15)
}

/* Multi-layer glass panel */
.menu-glass {
    flex: 1;
    background: rgba(8, 4, 25, .65);
    backdrop-filter: blur(40px) saturate(1.3);
    -webkit-backdrop-filter: blur(40px) saturate(1.3);
    border-right: 1px solid rgba(140, 120, 255, .08);
    border-left: 1px solid rgba(140, 120, 255, .06);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden
}

.menu-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(124, 58, 237, .06) 0%, transparent 30%, rgba(124, 58, 237, .03) 100%);
    pointer-events: none
}

.menu-glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(167, 139, 250, .3), rgba(255, 255, 255, .1), rgba(167, 139, 250, .3));
    pointer-events: none
}

/* Menu header */
.menu-header {
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(124, 58, 237, .06)
}

.menu-header img {
    height: 32px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(124, 58, 237, .3))
}

.menu-header span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .95rem
}

/* Menu items */
.menu-items {
    flex: 1;
    padding: 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(124, 58, 237, .03);
    border: 1px solid rgba(124, 58, 237, .06);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: all .3s;
    text-decoration: none;
    color: var(--white);
    font-size: .9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden
}

.menu-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(167, 139, 250, .04) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s
}

.menu-item:hover {
    background: rgba(124, 58, 237, .08);
    border-color: rgba(140, 120, 255, .2);
    box-shadow: 0 0 20px rgba(124, 58, 237, .08), inset 0 0 20px rgba(124, 58, 237, .03);
    transform: translateX(4px)
}

.menu-item:hover::before {
    opacity: 1
}

.menu-item svg {
    width: 20px;
    height: 20px;
    stroke: var(--purple-light);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0
}

.menu-item .arrow {
    margin-left: auto;
    opacity: .3;
    transition: all .3s
}

.menu-item:hover .arrow {
    opacity: .7;
    transform: translateX(3px)
}

.menu-item .arrow svg {
    width: 14px;
    height: 14px
}

/* Menu footer */
.menu-footer {
    padding: 20px 20px;
    border-top: 1px solid rgba(124, 58, 237, .06)
}

.menu-footer .menu-item {
    background: rgba(255, 255, 255, .02);
    border-color: rgba(255, 255, 255, .04)
}

.menu-footer .menu-item svg {
    stroke: rgba(255, 255, 255, .3)
}

/* ══════════ HERO ══════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 130px;
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 720px
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 20px;
    border-radius: 30px;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .5px;
    background: rgba(124, 58, 237, .05);
    border: 1px solid rgba(124, 58, 237, .1);
    color: var(--purple-light);
    margin-bottom: 30px;
    backdrop-filter: blur(10px)
}

.hero-badge .dot {
    width: 7px;
    height: 7px;
    background: var(--purple);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 8px rgba(124, 58, 237, .6)
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .4;
        transform: scale(1.5)
    }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.04;
    margin-bottom: 26px;
    letter-spacing: -.04em;
    text-wrap: balance;
}

.hero p {
    color: var(--gray);
    font-size: 1.02rem;
    max-width: 480px;
    margin: 0 auto 44px;
    line-height: 1.75
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap
}

/* Hero Staggered Entrance — Apple Keynote style */
.hero-stagger {
    opacity: 0;
    transform: translateY(30px) scale(.96);
    animation: heroEntrance .9s cubic-bezier(.16, 1, .3, 1) forwards
}

.hero-stagger-1 {
    animation-delay: .2s
}

.hero-stagger-2 {
    animation-delay: .5s
}

.hero-stagger-3 {
    animation-delay: .8s
}

.hero-stagger-4 {
    animation-delay: 1.1s
}

.hero-stagger-5 {
    animation-delay: 1.4s
}

@keyframes heroEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(.96)
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

/* ══════════ BENTO GRID ══════════ */
.bento {
    display: grid;
    gap: 14px
}

.bento-2x2 {
    grid-template-columns: 1fr 1fr
}

.bento-3 {
    grid-template-columns: repeat(3, 1fr)
}

.bento-4 {
    grid-template-columns: repeat(4, 1fr)
}

.bento-card {
    padding: 36px;
    position: relative
}

.bento-card h3 {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 10px
}

.bento-card p {
    color: var(--text-secondary);
    font-size: .94rem;
    line-height: 1.6;
    font-weight: 500;
}

.bento-card .diff {
    margin-top: 16px;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    background: rgba(124, 58, 237, .03);
    border: 1px solid rgba(124, 58, 237, .04);
    font-size: .78rem;
    font-style: italic;
    color: var(--purple-light)
}

.bento-card .diff strong {
    color: var(--purple);
    font-style: normal;
    display: block;
    margin-bottom: 4px;
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: 2px
}

/* Pilares */
.pilar {
    padding: 44px 32px;
    text-align: center
}

.pilar .num {
    font-family: var(--font-display);
    font-size: 3.8rem;
    font-weight: 900;
    /* Light Mode: Purple to Dark */
    background: linear-gradient(135deg, var(--purple) 0%, #111 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    line-height: 1;
    opacity: 1;
}

body.dark-mode .pilar .num {
    /* Dark Mode: White to Purple */
    background: linear-gradient(135deg, #ffffff 0%, var(--purple-light) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pilar h3 {
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 10px
}

.pilar p {
    color: var(--text-secondary);
    font-size: .94rem;
    line-height: 1.6;
    font-weight: 500;
}

.pilar .icon-box {
    margin: 0 auto 16px
}

.pilar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .5s
}

.pilar:hover::before {
    transform: scaleX(1)
}

/* Servicios */
.servicio {
    padding: 34px
}

.servicio h3 {
    font-family: var(--font-display);
    font-size: .98rem;
    font-weight: 700;
    margin-bottom: 8px
}

.servicio p {
    color: var(--text-secondary);
    font-size: .94rem;
    line-height: 1.6;
    font-weight: 500;
}

/* ══════════ DEMO IA ══════════ */
.demo-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start
}

.phone-frame {
    width: 330px;
    justify-self: center;
    background: rgba(5, 2, 20, .7);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 40px 100px rgba(0, 0, 0, .8), 0 0 50px rgba(124, 58, 237, .04);
    overflow: hidden
}

.phone-notch {
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5)
}

.phone-notch-inner {
    width: 90px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .03)
}

.wa-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(5, 2, 25, .8);
    border-bottom: 1px solid rgba(124, 58, 237, .04)
}

.wa-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700
}

.wa-header-info h4 {
    font-size: .82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .85)
}

.wa-header-info span {
    font-size: .68rem;
    color: var(--purple-light)
}

.wa-chat {
    height: 400px;
    overflow-y: auto;
    padding: 14px;
    background: rgba(0, 0, 0, .9);
    display: flex;
    flex-direction: column;
    gap: 5px
}

.wa-chat::-webkit-scrollbar {
    width: 3px
}

.wa-chat::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, .1);
    border-radius: 2px
}

.chat-msg {
    max-width: 82%;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: .82rem;
    line-height: 1.5;
    animation: msgSlide .5s cubic-bezier(.16, 1, .3, 1)
}

@keyframes msgSlide {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.96)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.chat-msg.bot {
    background: rgba(124, 58, 237, .05);
    border: 1px solid rgba(124, 58, 237, .06);
    color: rgba(255, 255, 255, .8);
    align-self: flex-start;
    border-top-left-radius: 2px
}

.chat-msg.user {
    background: rgba(124, 58, 237, .08);
    border: 1px solid rgba(124, 58, 237, .06);
    color: rgba(255, 255, 255, .85);
    align-self: flex-end;
    border-top-right-radius: 2px
}

.chat-msg .time {
    display: block;
    text-align: right;
    font-size: .56rem;
    color: rgba(255, 255, 255, .12);
    margin-top: 4px
}

.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 10px 14px;
    background: rgba(124, 58, 237, .04);
    border-radius: 10px;
    align-self: flex-start;
    border-top-left-radius: 2px
}

.typing-dot {
    width: 5px;
    height: 5px;
    background: var(--purple);
    border-radius: 50%;
    animation: typingBounce 1.2s ease-in-out infinite
}

.typing-dot:nth-child(2) {
    animation-delay: .2s
}

.typing-dot:nth-child(3) {
    animation-delay: .4s
}

@keyframes typingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0)
    }

    30% {
        transform: translateY(-5px)
    }
}

.wa-footer {
    padding: 10px 12px;
    background: rgba(5, 2, 25, .8);
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(124, 58, 237, .04)
}

.wa-footer input {
    flex: 1;
    background: rgba(124, 58, 237, .02);
    border: 1px solid rgba(124, 58, 237, .05);
    border-radius: 18px;
    padding: 7px 14px;
    color: rgba(255, 255, 255, .5);
    font-family: var(--font-body);
    font-size: .78rem;
    outline: none
}

.wa-footer button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: var(--purple);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center
}

.demo-info {
    display: flex;
    flex-direction: column;
    gap: 18px
}

.demo-info h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700
}

.demo-info>p {
    color: var(--gray);
    font-size: .9rem
}

.data-extract {
    padding: 20px
}

.data-extract h4 {
    font-size: .8rem;
    font-weight: 600;
    color: var(--purple-light);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(124, 58, 237, .03);
    font-size: .78rem
}

.data-row:last-child {
    border-bottom: none
}

.data-row .label {
    color: var(--muted)
}

.data-row .value {
    font-weight: 600
}

.data-row .value.pending {
    color: var(--muted);
    font-style: italic;
    font-weight: 400
}

.data-row .value.extracted {
    color: var(--purple-light);
    animation: flash .6s
}

@keyframes flash {
    0% {
        color: #fff;
        text-shadow: 0 0 8px var(--purple-light)
    }

    100% {
        color: var(--purple-light);
        text-shadow: none
    }
}

/* FLOW — Centered */
.flow-wrapper {
    position: relative;
    padding: 30px 0;
    display: flex;
    justify-content: center;
    overflow-x: auto
}

.flow-pipeline {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 20px 40px
}

.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0
}

.flow-node-icon {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-sm);
    background: rgba(124, 58, 237, .03);
    border: 1.5px solid rgba(124, 58, 237, .08);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .5s;
    position: relative
}

.flow-node-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--purple-light);
    fill: none;
    stroke-width: 2;
    transition: all .3s;
    stroke-linecap: round;
    stroke-linejoin: round
}

body:not(.dark-mode) .flow-node-icon {
    background: #000;
    border: 2px solid var(--purple);
    box-shadow: 0 0 15px rgba(124, 58, 237, .3);
}

body:not(.dark-mode) .flow-node-icon svg {
    stroke: #fff;
    stroke-width: 2.5;
}

body:not(.dark-mode) .flow-node-label {
    color: #000;
    font-weight: 800;
}

.flow-node-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 18px;
    border: 1.5px solid transparent;
    transition: all .5s
}

.flow-node.active .flow-node-icon {
    border-color: var(--purple);
    box-shadow: 0 0 40px rgba(124, 58, 237, .3);
    transform: scale(1.12);
    background: rgba(124, 58, 237, .08)
}

.flow-node.active .flow-node-icon::after {
    border-color: var(--purple);
    animation: nodeRing 1.5s ease infinite
}

@keyframes nodeRing {
    0% {
        transform: scale(1);
        opacity: .5
    }

    100% {
        transform: scale(1.35);
        opacity: 0
    }
}

.flow-node.completed .flow-node-icon {
    border-color: rgba(167, 139, 250, .25);
    background: rgba(124, 58, 237, .04)
}

.flow-node.completed .flow-node-icon svg {
    stroke: var(--white)
}

.flow-node-label {
    font-size: .66rem;
    font-weight: 500;
    color: var(--muted);
    text-align: center;
    max-width: 80px;
    transition: color .3s
}

.flow-node.active .flow-node-label {
    color: var(--purple-light)
}

.flow-node.completed .flow-node-label {
    color: rgba(255, 255, 255, .6)
}

.flow-connector {
    width: 40px;
    height: 1.5px;
    background: rgba(124, 58, 237, .04);
    position: relative;
    flex-shrink: 0
}

.flow-connector-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--grad);
    transition: width .6s;
    border-radius: 1px
}

.flow-connector.active .flow-connector-fill {
    width: 100%
}

.flow-connector-dot {
    position: absolute;
    top: -3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--purple);
    opacity: 0;
    box-shadow: 0 0 8px rgba(124, 58, 237, .5)
}

.flow-connector.active .flow-connector-dot {
    animation: dotTravel .8s ease forwards
}

@keyframes dotTravel {
    0% {
        left: 0;
        opacity: 1
    }

    100% {
        left: calc(100% - 7px);
        opacity: 0
    }
}

/* Metrics */
.metric {
    padding: 32px;
    text-align: center
}

.metric .metric-icon {
    margin-bottom: 10px;
    animation: iconFloat 3.5s ease-in-out infinite
}

.metric .metric-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--purple);
    fill: none;
    stroke-width: 2.2;
    margin: 0 auto
}

.metric .number {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--title-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1
}

.metric .label {
    color: var(--text-primary);
    font-size: .85rem;
    font-weight: 700;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .68rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    margin-top: 10px;
    color: var(--purple-light);
    background: rgba(124, 58, 237, .05);
    border: 1px solid rgba(124, 58, 237, .06)
}

/* Testimonials Premium Redesign */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

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

.testimonial {
    padding: 35px;
    background: rgba(20, 10, 30, 0.4);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(16px);
}

.testimonial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--purple-light), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.testimonial:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(124, 58, 237, 0.25);
    border-color: rgba(124, 58, 237, 0.4);
    background: rgba(30, 15, 45, 0.6);
}

body:not(.dark-mode) .testimonial {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(124, 58, 237, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

body:not(.dark-mode) .testimonial:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.3);
}

.testimonial:hover::before {
    opacity: 1;
}

.testimonial .stars {
    color: var(--purple-light);
    font-size: .95rem;
    margin-bottom: 18px;
    letter-spacing: 4px;
    filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.5));
}

body:not(.dark-mode) .testimonial .stars {
    color: var(--purple);
    filter: none;
}

.testimonial blockquote {
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 400;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.testimonial .author {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

body:not(.dark-mode) .testimonial .author {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial .avatar-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-light);
    transition: all 0.4s ease;
}

.testimonial:hover .avatar-icon {
    background: var(--purple);
    color: #fff;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
    transform: scale(1.05);
}

.testimonial .avatar-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.testimonial .author-info .name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .95rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.badge-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: var(--purple);
    border-radius: 50%;
    color: #fff;
}

.badge-verified svg {
    width: 10px;
    height: 10px;
    stroke: currentColor;
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.testimonial .author-info .role {
    color: var(--text-secondary);
    font-size: .8rem;
    font-weight: 500;
    margin-top: 2px;
    opacity: 0.8;
}

/* Filosofia */
.filosofia-header {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -.03em;
    margin-bottom: 50px
}

.filosofia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px
}

.filosofia-col {
    position: relative;
    border-radius: 20px;
    padding: 32px;
    overflow: hidden
}

/* SI column — Purple glow with gradient border */
.filosofia-col.si {
    background: rgba(124, 58, 237, .06);
    border: 1px solid rgba(124, 58, 237, .2);
    box-shadow: 0 0 40px rgba(124, 58, 237, .08), inset 0 0 30px rgba(124, 58, 237, .03)
}

.filosofia-col.si::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, .5), rgba(124, 58, 237, .8), rgba(167, 139, 250, .5), transparent)
}

/* NO column — Dynamic animated border */
.filosofia-col.no {
    background: rgba(255, 255, 255, .01);
    border: 1px solid rgba(255, 255, 255, .05);
    position: relative
}

.filosofia-col.no::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    padding: 1px;
    background: conic-gradient(from var(--angle, 0deg), transparent 0%, rgba(255, 255, 255, .08) 10%, transparent 20%, rgba(255, 255, 255, .04) 40%, transparent 60%, rgba(255, 255, 255, .08) 80%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotateBorder 6s linear infinite;
    pointer-events: none
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false
}

@keyframes rotateBorder {
    to {
        --angle: 360deg
    }
}

.filosofia-col h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px
}

.filosofia-col.si h3 {
    color: var(--purple-light)
}

.filosofia-col.no h3 {
    color: rgba(255, 255, 255, .35)
}

.filosofia-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px
}

.filosofia-list li {
    padding: 13px 16px;
    border-radius: 12px;
    font-size: .86rem;
    color: var(--gray);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: all var(--tr)
}

.filosofia-col.si .filosofia-list li {
    background: rgba(124, 58, 237, .06);
    border: 1px solid rgba(124, 58, 237, .1);
    color: rgba(255, 255, 255, .75)
}

.filosofia-col.si .filosofia-list li:hover {
    border-color: rgba(167, 139, 250, .3);
    background: rgba(124, 58, 237, .1);
    box-shadow: 0 0 15px rgba(124, 58, 237, .08)
}

.filosofia-col.no .filosofia-list li {
    background: rgba(255, 255, 255, .01);
    border: 1px solid rgba(255, 255, 255, .03)
}

.filosofia-col.no .filosofia-list li:hover {
    border-color: rgba(255, 255, 255, .08)
}

.filosofia-list .icon {
    flex-shrink: 0
}

.filosofia-list .icon svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none
}

.filosofia-col.si .icon svg {
    stroke: var(--purple-light);
    filter: drop-shadow(0 0 4px rgba(167, 139, 250, .4))
}

.filosofia-col.no .icon svg {
    stroke: var(--text-secondary);
    opacity: 0.4;
}

body:not(.dark-mode) .filosofia-col.no h3 {
    color: var(--text-secondary);
}

body:not(.dark-mode) .filosofia-col.si .filosofia-list li {
    color: var(--text-primary);
    font-weight: 500;
}

/* FAQ */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.faq-item {
    overflow: hidden;
    transition: border-color var(--tr)
}

.faq-item.open {
    border-color: rgba(140, 120, 255, .2)
}

.faq-q {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    font-size: .9rem;
    transition: color var(--tr)
}

.faq-q:hover {
    color: var(--purple-light)
}

.faq-q .arrow {
    width: 16px;
    height: 16px;
    transition: transform var(--tr)
}

.faq-q .arrow svg {
    width: 16px;
    height: 16px;
    stroke: var(--purple-light);
    fill: none;
    stroke-width: 2
}

.faq-item.open .faq-q .arrow {
    transform: rotate(180deg)
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s cubic-bezier(.16, 1, .3, 1), padding .4s;
    padding: 0 22px
}

.faq-item.open .faq-a {
    max-height: 800px;
    padding: 0 22px 20px
}

.faq-a p {
    color: var(--text-secondary);
    font-size: .85rem;
    line-height: 1.78
}

/* Diagnostico */
/* ══════════ DIAGNOSTICO — MAXIMUM IMPACT ══════════ */
.diagnostico {
    position: relative;
    padding: 160px 0 120px;
    overflow: visible
}

.diagnostico-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(124, 58, 237, .2) 0%, rgba(124, 58, 237, .05) 40%, transparent 65%);
    pointer-events: none;
    z-index: 0;
    animation: diagnosticoGlow 5s ease-in-out infinite alternate
}

.diagnostico-glow-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(167, 139, 250, .08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: diagnosticoGlow 7s ease-in-out infinite alternate-reverse
}

@keyframes diagnosticoGlow {
    0% {
        opacity: .6;
        transform: translate(-50%, -50%) scale(.9)
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1)
    }
}

.diagnostico-alert {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 40px;
    background: rgba(124, 58, 237, .08);
    border: 1px solid rgba(124, 58, 237, .15);
    color: var(--purple-light);
    font-family: var(--font-body);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 28px;
    animation: alertPulse 2.5s ease-in-out infinite
}

.diagnostico-alert svg {
    stroke: var(--purple-light);
    animation: alertIcon 2.5s ease-in-out infinite
}

@keyframes alertPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, .15)
    }

    50% {
        box-shadow: 0 0 20px 4px rgba(124, 58, 237, .15)
    }
}

@keyframes alertIcon {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .5
    }
}

.diagnostico-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.02;
    margin-bottom: 20px;
    letter-spacing: -.04em
}

.diagnostico-subtitle {
    background: linear-gradient(135deg, rgba(167, 139, 250, .5), rgba(124, 58, 237, .3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: .65em;
    font-weight: 700
}

.diagnostico-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 480px;
    margin: 0 auto 50px
}

body:not(.dark-mode) .diagnostico-title {
    background: var(--title-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Form — floating glass with glow border */
.diagnostico-form-wrap {
    position: relative;
    max-width: 540px;
    margin: 0 auto;
    padding: 2px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(124, 58, 237, .4), rgba(167, 139, 250, .15), rgba(124, 58, 237, .35));
    animation: formBorderGlow 4s ease-in-out infinite alternate
}

.diagnostico-form-wrap form {
    background: rgba(8, 4, 20, .92);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 22px;
    padding: 40px 36px;
    position: relative;
    overflow: hidden;
}

.diagnostico-form-glow {
    position: absolute;
    inset: -40px;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, .12) 0%, transparent 60%);
    pointer-events: none;
    filter: blur(30px)
}

@keyframes formBorderGlow {
    0% {
        box-shadow: 0 0 30px rgba(124, 58, 237, .1), 0 0 60px rgba(124, 58, 237, .03)
    }

    100% {
        box-shadow: 0 0 40px rgba(124, 58, 237, .2), 0 0 80px rgba(124, 58, 237, .06)
    }
}

.form-group {
    margin-bottom: 18px
}

.form-group label {
    display: block;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 7px;
    color: var(--purple-light)
}

.form-group input {
    width: 100%;
    padding: 15px 18px;
    border-radius: 14px;
    border: 1px solid rgba(124, 58, 237, .2);
    background: rgba(124, 58, 237, .08);
    color: #fff;
    font-family: var(--font-body);
    font-size: .88rem;
    outline: none;
    transition: all var(--tr)
}

.form-group input::placeholder {
    color: rgba(167, 139, 250, .25)
}

.form-group input:focus {
    border-color: var(--purple-light);
    box-shadow: 0 0 30px rgba(124, 58, 237, .15);
    background: rgba(124, 58, 237, .12)
}

.form-submit {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: none;
    background: var(--grad);
    color: #fff;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--tr);
    box-shadow: 0 0 40px rgba(124, 58, 237, .4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px
}

.form-submit svg {
    stroke: #fff;
    flex-shrink: 0
}

.form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 60px rgba(124, 58, 237, .45)
}

/* ── Multi-Step Form ── */
.diagnostico-form-wrap {
    max-width: 620px
}

.form-progress {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 8px
}

.form-progress-bar {
    position: absolute;
    top: 15px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: rgba(124, 58, 237, .15);
    border-radius: 2px;
    z-index: 0
}

.form-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--grad);
    border-radius: 2px;
    transition: width .5s ease
}

.form-progress-bar[data-step="1"]::after {
    width: 0%
}

.form-progress-bar[data-step="2"]::after {
    width: 50%
}

.form-progress-bar[data-step="3"]::after {
    width: 100%
}

.form-steps-indicator {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(124, 58, 237, .15);
    border: 2px solid rgba(124, 58, 237, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .4s ease
}

.step-dot span {
    font-size: .7rem;
    font-weight: 700;
    color: rgba(167, 139, 250, .5)
}

.step-dot.active {
    background: var(--grad);
    border-color: var(--purple-light);
    box-shadow: 0 0 20px rgba(124, 58, 237, .4)
}

.step-dot.active span {
    color: #fff
}

.step-dot.completed {
    background: rgba(124, 58, 237, .4);
    border-color: var(--purple-light)
}

.step-dot.completed span {
    color: #fff
}

/* Step Content */
.form-step {
    display: none;
    animation: stepFadeIn .4s ease forwards
}

.form-step.active {
    display: block
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.step-header {
    margin-bottom: 22px;
    text-align: left
}

.step-label {
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--purple-light);
    opacity: .6
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-top: 4px
}

/* Form rows */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr
    }
}

/* Select styling */
.form-group select {
    width: 100%;
    padding: 15px 18px;
    border-radius: 14px;
    border: 1px solid rgba(124, 58, 237, .2);
    background: rgba(124, 58, 237, .08);
    color: #fff;
    font-family: var(--font-body);
    font-size: .88rem;
    outline: none;
    transition: all var(--tr);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center
}

.form-group select option {
    background: #0a0520;
    color: #fff
}

.form-group select:focus {
    border-color: var(--purple-light);
    box-shadow: 0 0 30px rgba(124, 58, 237, .15);
    background-color: rgba(124, 58, 237, .12)
}

/* Checkbox Cards */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px
}

@media (max-width: 600px) {
    .checkbox-grid {
        grid-template-columns: 1fr
    }
}

.check-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, .15);
    background: rgba(124, 58, 237, .06);
    cursor: pointer;
    transition: all .3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.check-card:hover {
    border-color: rgba(124, 58, 237, .4);
    background: rgba(124, 58, 237, .15);
}

.check-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Custom Checkmark Box */
.custom-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid rgba(124, 58, 237, 0.4);
    background: rgba(10, 5, 32, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.custom-check svg {
    width: 14px;
    height: 14px;
    stroke: #ffffff;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.check-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(124, 58, 237, .12);
    transition: all .3s ease;
}

.check-icon svg {
    transition: all .3s ease;
}

/* Active State (Checked) */
.check-card:has(input:checked) {
    border-color: var(--purple-light);
    background: rgba(124, 58, 237, .2);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.15);
}

.check-card:has(input:checked) .custom-check {
    background: var(--purple-light);
    border-color: var(--purple-light);
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

.check-card:has(input:checked) .custom-check svg {
    opacity: 1;
    transform: scale(1);
}

.check-card:has(input:checked) .check-icon {
    background: rgba(124, 58, 237, .4);
}

.check-card:has(input:checked) .check-icon svg {
    stroke: #fff;
}

.check-card:has(input:checked) .check-label {
    color: #fff
}

.check-label {
    font-size: .78rem;
    color: rgba(255, 255, 255, .6);
    transition: color .3s ease;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0
}

/* Urgency Pills */
.urgency-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.urgency-pill {
    flex: 1;
    min-width: 120px
}

.urgency-pill input {
    display: none
}

.urgency-pill span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 10px;
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, .15);
    background: rgba(124, 58, 237, .06);
    text-align: center;
    font-size: .78rem;
    color: rgba(255, 255, 255, .5);
    cursor: pointer;
    transition: all .3s ease;
    text-transform: none;
    letter-spacing: 0
}

.urgency-pill span svg {
    flex-shrink: 0;
    transition: stroke .3s ease
}

.urgency-pill span:hover {
    border-color: rgba(124, 58, 237, .3)
}

.urgency-pill input:checked+span {
    border-color: var(--purple-light);
    background: rgba(124, 58, 237, .2);
    color: #fff;
    box-shadow: 0 0 20px rgba(124, 58, 237, .12)
}

.urgency-pill input:checked+span svg {
    stroke: #fff
}

.urgency-pill.urgency-urgent input:checked+span {
    border-color: #c084fc;
    background: linear-gradient(135deg, rgba(124, 58, 237, .25), rgba(192, 132, 252, .15));
    box-shadow: 0 0 24px rgba(192, 132, 252, .2)
}


/* Navigation Buttons */
.form-nav-row {
    display: flex;
    gap: 12px;
    margin-top: 8px
}

.form-prev {
    flex: 0 0 auto;
    padding: 14px 24px;
    border-radius: 14px;
    border: 1px solid rgba(124, 58, 237, .2);
    background: transparent;
    color: var(--purple-light);
    font-family: var(--font-body);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--tr)
}

.form-prev:hover {
    border-color: var(--purple-light);
    background: rgba(124, 58, 237, .08)
}

.form-next {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: none;
    background: var(--grad);
    color: #fff;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--tr);
    box-shadow: 0 0 40px rgba(124, 58, 237, .3)
}

.form-next:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 60px rgba(124, 58, 237, .4)
}

.form-nav-row .form-submit {
    flex: 1
}

/* Status Messages */
.form-status {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: .85rem;
    text-align: center;
    animation: stepFadeIn .4s ease
}

.form-status.sending {
    background: rgba(124, 58, 237, .15);
    border: 1px solid rgba(124, 58, 237, .3);
    color: var(--purple-light)
}

.form-status.success {
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .3);
    color: #4ade80
}

.form-status.error {
    background: rgba(239, 68, 68, .12);
    border: 1px solid rgba(239, 68, 68, .3);
    color: #f87171
}

/* ══════════ FOOTER MINIMALISTA ══════════ */
.footer-minimal {
    padding: 60px 0 100px;
    background: transparent;
    border-top: 1px solid rgba(124, 58, 237, 0.08);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-brand-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    width: 100px;
    opacity: 0.9;
    transition: opacity var(--tr);
}

.footer-logo:hover {
    opacity: 1;
}

.footer-motto {
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-left: 1px solid rgba(124, 58, 237, 0.2);
    padding-left: 16px;
    font-style: italic;
    opacity: 0.8;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 32px;
}

.footer-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
    border-radius: 8px;
    font-weight: 500;
    color: #ffffff !important;
}

body:not(.dark-mode) .footer-btn,
body:not(.dark-mode) a.footer-btn {
    color: #ffffff !important;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(124, 58, 237, 0.08);
}

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--tr);
}

.footer-nav a:hover {
    color: var(--purple-light);
}

.footer-bottom p {
    color: var(--muted);
    font-size: 0.8rem;
    margin: 0;
}

body:not(.dark-mode) .footer-bottom p {
    color: rgba(0, 0, 0, 0.4);
}

.footer-minimal .social-icons {
    display: flex;
    gap: 16px;
}

.footer-minimal .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.1);
    transition: all var(--tr);
}

.footer-minimal .social-icons a svg {
    width: 14px;
    height: 14px;
    fill: var(--text-secondary);
    transition: fill var(--tr);
}

.footer-minimal .social-icons a:hover {
    background: var(--purple);
    border-color: var(--purple);
    transform: translateY(-2px);
}

.footer-minimal .social-icons a:hover svg {
    fill: #fff;
}

@media (max-width: 1024px) {
    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .footer-brand-group {
        flex-direction: column;
        gap: 12px;
    }

    .footer-motto {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(124, 58, 237, 0.2);
        padding-top: 12px;
    }

    .footer-actions {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        gap: 20px;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}



/* ══════════ MODERN FLOATING WHATSAPP ══════════ */
.float-wa {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 150;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(124, 58, 237, .35), 0 0 0 1px rgba(167, 139, 250, .15);
    cursor: pointer;
    transition: all .4s cubic-bezier(.16, 1, .3, 1);
    border: none;
    text-decoration: none;
    animation: waFloat 3s ease-in-out infinite
}

.float-wa svg {
    width: 26px;
    height: 26px;
    fill: #fff;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, .3))
}

.float-wa:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 50px rgba(124, 58, 237, .45), 0 0 0 1px rgba(167, 139, 250, .25), 0 0 60px rgba(124, 58, 237, .15);
    border-radius: 18px
}

.float-wa::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 19px;
    background: conic-gradient(from 0deg, transparent, rgba(167, 139, 250, .3), transparent, rgba(255, 255, 255, .1), transparent);
    animation: logoSpin 4s linear infinite;
    z-index: -1;
    opacity: .6
}

.float-wa::after {
    content: '¿Hablamos?';
    position: absolute;
    right: calc(100% + 16px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(8, 4, 25, .8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(124, 58, 237, .12);
    color: #fff;
    font-size: .75rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 1;
    /* Made persistently visible as a CTA */
    pointer-events: none;
    transition: all .3s;
    font-family: var(--font-body);
    animation: waTooltipPulse 2s infinite;
}

@keyframes waTooltipPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(124, 58, 237, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
    }
}

.float-wa:hover::after {
    background: var(--purple);
    border-color: var(--purple-light);
}

@keyframes waFloat {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-4px)
    }
}

/* Scroll-top centered */
.float-top {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 150;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(124, 58, 237, .06);
    border: 1px solid rgba(124, 58, 237, .1);
    color: var(--purple-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--tr);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(10px)
}

.float-top svg {
    width: 15px;
    height: 15px;
    stroke: var(--purple-light);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round
}

.float-top.show {
    opacity: 1;
    pointer-events: auto
}

.float-top:hover {
    background: var(--purple);
    border-color: var(--purple)
}

.float-top:hover svg {
    stroke: #fff
}

/* ══════════ AGENTS PAGE ══════════ */
.agent-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0
}

.agent-row:nth-child(even) {
    direction: rtl
}

.agent-row:nth-child(even)>* {
    direction: ltr
}

.agent-row+.agent-row {
    border-top: 1px solid rgba(124, 58, 237, .04)
}

/* Agent visual — glass card with orb */
.agent-visual {
    display: flex;
    justify-content: center;
    align-items: center
}

.agent-card-visual {
    width: 300px;
    height: 380px;
    border-radius: 28px;
    background: var(--agent-grad);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(140, 120, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    transition: all .5s cubic-bezier(.16, 1, .3, 1);
    box-shadow: 0 0 60px rgba(124, 58, 237, .08), 0 20px 60px rgba(0, 0, 0, .3)
}

.agent-card-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(124, 58, 237, .1) 0%, rgba(20, 10, 60, .2) 30%, rgba(20, 10, 60, .1) 70%, rgba(124, 58, 237, .08) 100%);
    pointer-events: none
}

.agent-card-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 10%, rgba(167, 139, 250, .4) 30%, rgba(255, 255, 255, .3) 50%, rgba(167, 139, 250, .4) 70%, transparent 90%);
    pointer-events: none
}

.agent-card-visual:hover {
    border-color: rgba(167, 139, 250, .3);
    box-shadow: 0 0 80px rgba(124, 58, 237, .2), 0 0 120px rgba(124, 58, 237, .06), 0 30px 80px rgba(0, 0, 0, .4);
    transform: translateY(-8px)
}

/* ── Energy Beams — top & bottom ── */
.agent-energy-beam {
    position: absolute;
    left: 50%;
    width: 4px;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0
}

.agent-beam-top {
    bottom: 100%;
    height: 120px;
    background: linear-gradient(to top,
            rgba(255, 255, 255, .7) 0%,
            rgba(167, 139, 250, .5) 20%,
            rgba(124, 58, 237, .3) 50%,
            transparent 100%);
    box-shadow: 0 0 15px rgba(167, 139, 250, .4), 0 0 40px rgba(124, 58, 237, .15);
    border-radius: 4px 4px 0 0;
    animation: beamPulse 3s ease-in-out infinite alternate
}

.agent-beam-bottom {
    top: 100%;
    height: 120px;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, .7) 0%,
            rgba(167, 139, 250, .5) 20%,
            rgba(124, 58, 237, .3) 50%,
            transparent 100%);
    box-shadow: 0 0 15px rgba(167, 139, 250, .4), 0 0 40px rgba(124, 58, 237, .15);
    border-radius: 0 0 4px 4px;
    animation: beamPulse 3s ease-in-out infinite alternate-reverse
}

@keyframes beamPulse {
    0% {
        opacity: .5;
        height: 100px
    }

    100% {
        opacity: 1;
        height: 140px
    }
}

/* ── Circuit Lines — left & right ── */
.agent-circuit {
    position: absolute;
    top: 50%;
    height: 1px;
    width: 100px;
    pointer-events: none;
    z-index: 0
}

.agent-circuit-left {
    right: 100%;
    background: linear-gradient(to left,
            rgba(167, 139, 250, .35) 0%,
            rgba(124, 58, 237, .15) 40%,
            transparent 100%);
    transform: translateY(-50%)
}

.agent-circuit-left::before {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(167, 139, 250, .5);
    box-shadow: 0 0 10px rgba(167, 139, 250, .4);
    animation: circuitDot 2s ease-in-out infinite
}

.agent-circuit-left::after {
    content: '';
    position: absolute;
    left: 0;
    top: -1px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(124, 58, 237, .3)
}

.agent-circuit-right {
    left: 100%;
    background: linear-gradient(to right,
            rgba(167, 139, 250, .35) 0%,
            rgba(124, 58, 237, .15) 40%,
            transparent 100%);
    transform: translateY(-50%)
}

.agent-circuit-right::before {
    content: '';
    position: absolute;
    left: 0;
    top: -3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(167, 139, 250, .5);
    box-shadow: 0 0 10px rgba(167, 139, 250, .4);
    animation: circuitDot 2s ease-in-out infinite .5s
}

.agent-circuit-right::after {
    content: '';
    position: absolute;
    right: 0;
    top: -1px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(124, 58, 237, .3)
}

@keyframes circuitDot {

    0%,
    100% {
        opacity: .3;
        transform: scale(.8)
    }

    50% {
        opacity: 1;
        transform: scale(1.3)
    }
}

/* ── Card Number Label ── */
.agent-card-number {
    position: absolute;
    top: 24px;
    left: 28px;
    font-family: var(--font-display);
    font-size: .65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .7);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    z-index: 3
}

/* ── Orb — Enhanced ── */
.agent-orb {
    width: 140px;
    height: 140px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center
}

.agent-orb::before {
    content: '';
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, .3) 0%, rgba(167, 139, 250, .1) 35%, transparent 65%);
    animation: auraBreath 4s ease-in-out infinite alternate
}

.agent-orb::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
            transparent 0%,
            rgba(167, 139, 250, .2) 10%,
            rgba(124, 58, 237, .35) 15%,
            transparent 25%,
            rgba(255, 255, 255, .04) 45%,
            transparent 55%,
            rgba(167, 139, 250, .15) 70%,
            rgba(124, 58, 237, .25) 75%,
            transparent 85%);
    filter: blur(5px);
    animation: logoSpin 6s linear infinite
}

.agent-orb-icon {
    position: relative;
    z-index: 2
}

.agent-orb-icon svg {
    width: 60px;
    height: 60px;
    stroke: var(--purple-light);
    fill: none;
    stroke-width: 1.2;
    filter: drop-shadow(0 0 8px rgba(167, 139, 250, .5));
    animation: iconFloat 3s ease-in-out infinite
}

/* Agent info — enhanced */
.agent-info h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px
}

.agent-info .agent-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 8px;
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(124, 58, 237, .05);
    border: 1px solid rgba(124, 58, 237, .08);
    color: var(--purple-light);
    margin-bottom: 16px
}

.agent-info>h3 .title-gradient {
    background: linear-gradient(135deg, #7c3aed 0%, #121214 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.dark-mode .agent-info>h3 .title-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.agent-info>p {
    color: var(--text-secondary);
    font-size: .92rem;
    line-height: 1.75;
    margin-bottom: 24px
}

.agent-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 28px
}

.agent-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .86rem;
    color: var(--gray);
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(124, 58, 237, .02);
    border: 1px solid rgba(124, 58, 237, .04);
    transition: all .3s
}

.agent-features li:hover {
    border-color: rgba(124, 58, 237, .12);
    background: rgba(124, 58, 237, .04)
}

.agent-features li svg {
    width: 16px;
    height: 16px;
    stroke: var(--purple-light);
    fill: none;
    stroke-width: 2.5;
    flex-shrink: 0
}

.btn-wa {
    background: var(--grad);
    color: #fff;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 0 30px rgba(124, 58, 237, .3);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all var(--tr);
    font-size: .88rem
}

.btn-wa:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 60px rgba(124, 58, 237, .4)
}

.btn-wa svg {
    width: 20px;
    height: 20px;
    fill: #fff
}

/* ══════════ RESPONSIVE ══════════ */
@media(max-width:1024px) {
    .nav .container {
        max-width: 95%;
    }

    .bento-2x2,
    .filosofia-grid {
        grid-template-columns: 1fr
    }

    .bento-3 {
        grid-template-columns: repeat(2, 1fr)
    }

    .bento-4 {
        grid-template-columns: repeat(2, 1fr)
    }

    .demo-layout {
        grid-template-columns: 1fr;
        justify-items: center
    }

    .demo-info {
        text-align: center;
        align-items: center
    }

    .agent-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px
    }

    .agent-row:nth-child(even) {
        direction: ltr
    }

    .agent-visual {
        order: -1
    }

    .agent-info {
        display: flex;
        flex-direction: column;
        align-items: center
    }

    .agent-features li {
        justify-content: center
    }
}

@media(max-width:768px) {
    section {
        padding: 100px 0
    }

    .hero {
        padding-top: 170px;
    }

    .hero-badge,
    .agent-tag {
        margin-bottom: 35px !important;
    }

    .bento-3,
    .bento-4 {
        grid-template-columns: 1fr
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.25;
        margin-bottom: 25px;
    }

    .hero p {
        font-size: 0.98rem;
        line-height: 1.8;
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 1.95rem;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 14px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-glass {
        width: 92%;
        max-width: 340px;
        justify-content: center;
    }

    .phone-frame {
        width: 300px
    }

    .wa-chat {
        height: 340px
    }

    .form-card {
        padding: 24px
    }

    .hero-logo-wrap {
        width: 90px;
        height: 90px
    }

    .agent-card-visual {
        width: 240px;
        height: 270px
    }

    .agent-orb {
        width: 110px;
        height: 110px
    }

    .agent-orb-icon svg {
        width: 45px;
        height: 45px
    }

    .agent-info h3 {
        font-size: 1.7rem;
        line-height: 1.25;
        margin-top: 15px;
        margin-bottom: 15px;
        text-align: center;
    }

    .agent-info>p {
        font-size: 0.98rem;
        line-height: 1.75;
        margin-bottom: 30px;
    }

    .filosofia-header {
        font-size: 2.2rem
    }

    .menu-panel {
        width: 320px
    }

    .float-wa {
        width: 50px;
        height: 50px;
        border-radius: 14px;
        bottom: 20px;
        right: 20px
    }

    .float-wa svg {
        width: 22px;
        height: 22px
    }

    .float-wa::after {
        display: none
    }

    .flow-pipeline {
        padding: 20px 16px;
        max-width: 100%;
        overflow-x: auto
    }

    .flow-node-icon {
        width: 46px;
        height: 46px
    }

    .flow-node-icon svg {
        width: 20px;
        height: 20px
    }

    .flow-connector {
        width: 24px
    }

    .nav .container {
        padding: 8px 14px;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 12px;
        border-radius: 22px;
        position: relative;
    }

    /* Indicador Visual de Scroll para 'Agentes' */
    .nav .container::after {
        content: '›';
        position: absolute;
        bottom: 10px;
        right: 14px;
        width: 45px;
        height: 26px;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.95) 55%);
        color: var(--purple);
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-right: 4px;
        font-size: 1.5rem;
        font-weight: 300;
        pointer-events: none;
        border-radius: 0 14px 14px 0;
        animation: pulseSwipe 2s infinite;
        z-index: 10;
    }

    body.dark-mode .nav .container::after {
        background: linear-gradient(to right, transparent, rgba(10, 10, 10, 0.95) 55%);
        color: var(--purple-light);
    }

    @keyframes pulseSwipe {

        0%,
        100% {
            transform: translateX(0);
            opacity: 0.8;
        }

        50% {
            transform: translateX(3px);
            opacity: 1;
        }
    }

    .nav-links {
        display: flex;
        gap: 8px;
        margin: 4px 0 0 0;
        order: 3;
        /* Enlaces abajo en móvil con scroll horizontal para mejor UX */
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
        padding-right: 32px;
        /* Espacio extra para que no quede debajo de la flecha al final */
        scrollbar-width: none;
        /* Firefox */
    }

    .nav-links::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .nav-links a {
        white-space: nowrap;
        background: rgba(124, 58, 237, 0.05);
        border: 1px solid rgba(124, 58, 237, 0.1);
        padding: 6px 14px;
        border-radius: 20px;
    }

    .nav-brand {
        order: 1;
    }

    .nav-cta {
        display: flex;
        order: 2;
        gap: 10px;
    }

    #theme-toggle::after {
        display: none;
        /* Ocultar texto CTA en móvil para ahorrar espacio */
    }

    #theme-toggle {
        padding: 8px;
    }

    /* Multi-step form mobile */
    .diagnostico-form-wrap {
        max-width: 100%
    }

    .diagnostico-form-wrap form {
        padding: 28px 20px
    }

    .step-title {
        font-size: 1.1rem
    }

    .form-row {
        grid-template-columns: 1fr
    }

    .checkbox-grid {
        grid-template-columns: 1fr
    }

    .check-card {
        padding: 10px 12px
    }

    .urgency-row {
        flex-direction: column
    }

    .urgency-pill {
        min-width: unset
    }

    .form-nav-row {
        flex-direction: column
    }

    .form-prev {
        order: 2;
        width: 100%;
        text-align: center
    }

    .form-next,
    .form-nav-row .form-submit {
        order: 1;
        width: 100%
    }

    .diagnostico-title {
        font-size: 1.8rem
    }

    .diagnostico-desc {
        font-size: .82rem
    }

    .nav-cta .btn-primary {
        padding: 8px 14px;
        font-size: .7rem
    }
}

@media(max-width:480px) {
    .container {
        padding: 0 16px
    }

    section {
        padding: 60px 0
    }

    .hero h1 {
        font-size: 2.1rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    .section-title {
        font-size: 1.6rem
    }

    .bento-card {
        padding: 24px
    }

    .pilar {
        padding: 30px 20px
    }

    .pilar .num {
        font-size: 2.8rem
    }

    .phone-frame {
        width: 280px
    }

    .wa-chat {
        height: 300px
    }

    .nav-cta .btn-glass {
        display: none;
    }

    .nav-cta .btn-primary {
        padding: 6px 10px;
        font-size: 0.75rem;
        margin-left: 5px;
    }

    .agent-card-visual {
        width: 200px;
        height: 240px
    }

    .agent-orb {
        width: 90px;
        height: 90px
    }

    .agent-orb-icon svg {
        width: 36px;
        height: 36px
    }

    .agent-info h3 {
        font-size: 1.3rem
    }

    .agent-features li {
        font-size: .8rem;
        padding: 6px 10px
    }

    .btn-wa {
        padding: 12px 22px;
        font-size: .82rem
    }

    .metric .number {
        font-size: 2.2rem
    }

    .testimonial {
        padding: 22px
    }

    .testimonial blockquote {
        font-size: .8rem
    }

    .footer-socials {
        gap: 12px
    }

    .footer-socials a {
        width: 34px;
        height: 34px
    }

    /* Multi-step form xtra small */
    .diagnostico-form-wrap form {
        padding: 22px 14px
    }

    .step-dot {
        width: 26px;
        height: 26px
    }

    .step-dot span {
        font-size: .6rem
    }

    .step-title {
        font-size: 1rem
    }

    .form-group input,
    .form-group select {
        padding: 12px 14px;
        font-size: .82rem
    }

    .check-icon {
        width: 24px;
        height: 24px
    }

    .check-label {
        font-size: .72rem
    }

    .urgency-pill span {
        font-size: .72rem;
        padding: 10px 8px
    }

    .form-submit {
        font-size: .85rem;
        padding: 14px
    }

    .form-next {
        font-size: .85rem;
        padding: 14px
    }

    .diagnostico-title {
        font-size: 1.5rem
    }

    .diagnostico-alert {
        font-size: .65rem;
        padding: 8px 14px
    }
}