/* =========================================================
   RESET + BASE
========================================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #08090c;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* =========================================================
   HEADER + NAV
========================================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 20px;
    transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(8, 9, 12, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -0.5px;
}

.logo-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 12px rgba(88, 101, 242, 0.6));
}

.logo-text {
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Nav escritorio */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #b0b4bf;
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-ghost {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #d4d4d8;
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease;
}

.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.btn-primary {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #5865f2, #7c3aed);
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.3);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary:hover { box-shadow: 0 8px 28px rgba(88, 101, 242, 0.5); }
.btn-primary:active { transform: scale(0.97); }

/* =========================================================
   HAMBURGUESA
========================================================= */
.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    position: relative;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.hamburger:hover { background: rgba(255, 255, 255, 0.08); }

.hamburger span {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1),
                opacity 0.25s ease,
                top 0.35s cubic-bezier(0.65, 0, 0.35, 1),
                width 0.35s ease;
}

.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 27px; width: 14px; }

.hamburger.active { background: rgba(88, 101, 242, 0.15); border-color: rgba(88, 101, 242, 0.4); }

.hamburger.active span:nth-child(1) {
    top: 21px;
    transform: translateX(-50%) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-50%) scaleX(0);
}

.hamburger.active span:nth-child(3) {
    top: 21px;
    width: 20px;
    transform: translateX(-50%) rotate(-45deg);
}

/* Responsive */
@media (max-width: 900px) {
    .desktop-nav, .desktop-only { display: none; }
    .hamburger { display: block; }
}

/* =========================================================
   MENÚ MÓVIL
========================================================= */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    visibility: hidden;
}

.mobile-menu.open {
    pointer-events: auto;
    visibility: visible;
}

.mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-menu.open .mobile-menu-backdrop { opacity: 1; }

.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background: linear-gradient(160deg, #0d0f16 0%, #12141c 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    padding: calc(20px + env(safe-area-inset-top)) 24px calc(20px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
    overflow-y: auto;
    box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5);
}

.mobile-menu.open .mobile-menu-panel { transform: translateX(0); }

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.4px;
    background: linear-gradient(135deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-menu-brand .logo-icon {
    -webkit-text-fill-color: initial;
    color: initial;
}

.menu-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
    display: grid;
    place-items: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.menu-close:hover { background: rgba(255, 255, 255, 0.12); transform: rotate(90deg); }

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 14px;
    border-radius: 14px;
    transition: background 0.25s ease, transform 0.25s ease;
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.10s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.16s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.22s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.28s; }

.mobile-link:hover { background: rgba(88, 101, 242, 0.10); }
.mobile-link:hover .mobile-link-arrow { transform: translateX(4px); color: #a5b4fc; }

.mobile-link-index {
    font-size: 12px;
    font-weight: 700;
    color: #5865f2;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    width: 22px;
}

.mobile-link-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    line-height: 1.35;
}

.mobile-link-text strong { font-size: 15.5px; font-weight: 600; color: #fff; }
.mobile-link-text small  { font-size: 12.5px; color: #8b8f9a; }

.mobile-link-arrow {
    color: #4b5563;
    font-size: 18px;
    transition: transform 0.25s ease, color 0.25s ease;
    flex-shrink: 0;
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-menu-primary, .btn-menu-secondary {
    width: 100%;
    padding: 15px 20px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-menu-primary {
    color: #fff;
    background: linear-gradient(135deg, #5865f2, #7c3aed);
    box-shadow: 0 10px 24px rgba(88, 101, 242, 0.3);
}

.btn-menu-primary:active { transform: scale(0.98); }

.btn-menu-secondary {
    color: #d4d4d8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-menu-secondary:hover { background: rgba(255, 255, 255, 0.1); }

.mobile-menu-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #4b5563;
    padding-top: 12px;
}

/* =========================================================
   HERO
========================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 140px 24px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.45;
    animation: orbFloat 12s ease-in-out infinite;
}

.orb-1 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, #5865f2, transparent 70%);
    top: -180px; left: -120px;
}

.orb-2 {
    width: 460px; height: 460px;
    background: radial-gradient(circle, #ec4899, transparent 70%);
    bottom: -160px; right: -120px;
    animation-delay: -4s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(40px, -30px) scale(1.1); }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
}

/* ====== TEXTOS DEL HERO ====== */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(88, 101, 242, 0.10);
    border: 1px solid rgba(88, 101, 242, 0.25);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: #c7d2fe;
    margin-bottom: 24px;
    animation: fadeUp 0.8s ease;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulseDot 1.8s infinite;
    flex-shrink: 0;
}

.pulse-dot.small { width: 6px; height: 6px; }

@keyframes pulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
    70%  { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-title {
    font-size: clamp(34px, 5.5vw, 68px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1.6px;
    margin-bottom: 22px;
    animation: fadeUp 0.8s ease 0.1s backwards;
}

.gradient-text {
    background: linear-gradient(135deg, #5865f2 0%, #a5b4fc 40%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(15px, 1.6vw, 18px);
    color: #a1a1aa;
    line-height: 1.6;
    max-width: 560px;
    margin-bottom: 34px;
    animation: fadeUp 0.8s ease 0.2s backwards;
}

.hero-subtitle em {
    color: #c7d2fe;
    font-style: normal;
    font-weight: 600;
    padding: 2px 8px;
    background: rgba(88, 101, 242, 0.12);
    border-radius: 6px;
    white-space: nowrap;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    animation: fadeUp 0.8s ease 0.3s backwards;
}

.btn-hero-primary, .btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 30px;
    border-radius: 14px;
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
    white-space: nowrap;
}

.btn-hero-primary {
    color: #fff;
    background: linear-gradient(135deg, #5865f2, #7c3aed);
    box-shadow: 0 12px 34px rgba(88, 101, 242, 0.4);
}

.btn-hero-primary:hover {
    box-shadow: 0 16px 42px rgba(88, 101, 242, 0.55);
    transform: translateY(-2px);
}

.btn-hero-primary:active { transform: scale(0.98); }

.btn-arrow {
    font-size: 18px;
    transition: transform 0.25s ease;
}

.btn-hero-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-hero-secondary {
    color: #d4d4d8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.10);
    transform: translateY(-2px);
}

.hero-features {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    animation: fadeUp 0.8s ease 0.4s backwards;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #8b8f9a;
}

.feature-check {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    background: rgba(34, 197, 94, 0.15);
    border-radius: 50%;
    color: #22c55e;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   MOCKUP DEL TELÉFONO
========================================================= */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeUp 0.9s ease 0.3s backwards;
}

.phone-mockup {
    position: relative;
    width: 300px;
    height: 610px;
    background: linear-gradient(145deg, #1a1c23, #0f1117);
    border-radius: 42px;
    padding: 12px;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-14px) rotate(-2deg); }
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 22px;
    background: #000;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    background: #000;
    display: flex;
    flex-direction: column;
}

.demo-video {
    flex: 1;
    position: relative;
    background: linear-gradient(160deg, #1a1d27, #0d0f16);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.demo-video::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 40%, rgba(88, 101, 242, 0.35), transparent 60%),
        radial-gradient(circle at 50% 90%, rgba(236, 72, 153, 0.2), transparent 55%);
}

.demo-face {
    position: relative;
    font-size: 110px;
    line-height: 1;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    animation: facePulse 2.4s ease-in-out infinite;
}

@keyframes facePulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}

.demo-caption {
    position: absolute;
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 18px;
    background: rgba(88, 101, 242, 0.9);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.5);
    animation: captionBlink 2.4s ease-in-out infinite;
}

@keyframes captionBlink {
    0%, 100% { opacity: 1; }
    85%      { opacity: 1; }
    90%      { opacity: 0.7; }
}

.demo-hud {
    position: absolute;
    top: 42px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: flex-start;
    pointer-events: none;
}

.demo-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 600;
    color: #fff;
}

.demo-commands {
    padding: 14px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-cmd {
    padding: 5px 11px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    font-size: 10.5px;
    font-weight: 500;
    color: #8b8f9a;
    transition: all 0.3s ease;
}

.demo-cmd.active {
    background: rgba(88, 101, 242, 0.25);
    border-color: rgba(88, 101, 242, 0.6);
    color: #c7d2fe;
    font-weight: 700;
}

/* =========================================================
   HERO RESPONSIVE — PUNTO CLAVE DE LA CORRECCIÓN
========================================================= */

/* Tablet y móvil: una sola columna, todo centrado */
@media (max-width: 968px) {
    .hero {
        padding: 120px 24px 70px;
        text-align: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 56px;
        max-width: 640px;      /* CLAVE: limita el ancho y centra */
        margin: 0 auto;        /* CLAVE: centrado horizontal real */
    }

    /* Forzar centrado de TODOS los hijos del bloque de texto */
    .hero-content > * {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-title {
        letter-spacing: -1.2px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        max-width: 520px;
    }

    .hero-cta {
        justify-content: center;
        gap: 12px;
    }

    .hero-features {
        justify-content: center;
        gap: 18px;
    }

    .hero-visual {
        width: 100%;
        justify-content: center;
    }

    .phone-mockup {
        width: 270px;
        height: 550px;
        margin: 0 auto;        /* CLAVE: centra el mockup */
    }

    .demo-face { font-size: 96px; }
}

/* Móvil pequeño: reducir más */
@media (max-width: 480px) {
    .hero {
        padding: 105px 18px 50px;
    }

    .hero-content {
        gap: 46px;
    }

    .hero-title {
        font-size: clamp(30px, 8vw, 40px);
        letter-spacing: -1px;
        margin-bottom: 18px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 26px;
        padding: 0 4px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 32px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        padding: 15px 22px;
        font-size: 15px;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .phone-mockup {
        width: 240px;
        height: 490px;
        border-radius: 36px;
    }

    .demo-face { font-size: 84px; }
    .demo-caption { font-size: 12px; padding: 7px 14px; }
    .demo-cmd { font-size: 10px; padding: 4px 9px; }
}

/* =========================================================
   SECCIONES
========================================================= */
.section {
    padding: 100px 24px;
    position: relative;
}

.section-alt {
    background: linear-gradient(180deg, transparent, rgba(88, 101, 242, 0.04) 50%, transparent);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(88, 101, 242, 0.10);
    border: 1px solid rgba(88, 101, 242, 0.25);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #a5b4fc;
    margin-bottom: 18px;
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -1.4px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: clamp(14.5px, 1.5vw, 17px);
    color: #a1a1aa;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

/* =========================================================
   PASOS
========================================================= */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 860px) {
    .steps-grid { grid-template-columns: 1fr; }
}

.step-card {
    position: relative;
    padding: 36px 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    border-color: rgba(88, 101, 242, 0.4);
    background: rgba(88, 101, 242, 0.04);
}

.step-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #5865f2, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-card:hover::before { opacity: 1; }

.step-card-number {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 60px;
    font-weight: 900;
    color: rgba(88, 101, 242, 0.10);
    letter-spacing: -3px;
    line-height: 1;
    pointer-events: none;
}

.step-card-icon {
    font-size: 44px;
    line-height: 1;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.4px;
}

.step-card p {
    font-size: 14.5px;
    color: #a1a1aa;
    line-height: 1.6;
}

/* =========================================================
   USOS
========================================================= */
.uses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.use-card {
    padding: 28px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.use-card:hover {
    transform: translateY(-4px);
    border-color: rgba(88, 101, 242, 0.35);
    background: rgba(88, 101, 242, 0.04);
}

.use-icon {
    font-size: 34px;
    line-height: 1;
    margin-bottom: 16px;
}

.use-card h3 {
    font-size: 16.5px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.use-card p {
    font-size: 14px;
    color: #a1a1aa;
    line-height: 1.6;
}

/* =========================================================
   COMANDOS
========================================================= */
.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.command-card {
    padding: 24px 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.command-card:hover {
    transform: translateY(-4px);
    border-color: rgba(88, 101, 242, 0.5);
    background: rgba(88, 101, 242, 0.06);
    box-shadow: 0 12px 32px rgba(88, 101, 242, 0.15);
}

.command-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.command-icon {
    font-size: 28px;
    line-height: 1;
}

.command-category {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.command-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.command-list li {
    font-size: 13.5px;
    color: #a1a1aa;
    padding-left: 16px;
    position: relative;
    font-style: italic;
}

.command-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #5865f2;
    font-style: normal;
    font-weight: 700;
}

.commands-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(88, 101, 242, 0.06);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 14px;
    max-width: 720px;
    margin: 0 auto;
}

.note-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.commands-note p {
    font-size: 13.5px;
    color: #c7d2fe;
    line-height: 1.5;
}

.commands-note strong { color: #fff; }

/* =========================================================
   CTA FINAL
========================================================= */
.cta-section {
    position: relative;
    padding: 110px 24px;
    text-align: center;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.25), transparent 60%);
    filter: blur(80px);
    animation: ctaOrb 8s ease-in-out infinite;
}

@keyframes ctaOrb {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50%      { transform: translate(-50%, -50%) scale(1.15); opacity: 0.9; }
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -1.4px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.cta-content > p {
    font-size: clamp(14.5px, 1.5vw, 17px);
    color: #a1a1aa;
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
    padding: 40px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.3);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    background: linear-gradient(135deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand .logo-icon {
    -webkit-text-fill-color: initial;
    color: initial;
}

.footer-copy {
    font-size: 13px;
    color: #6b7280;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 13.5px;
    color: #8b8f9a;
    transition: color 0.2s ease;
}

.footer-links a:hover { color: #fff; }

@media (max-width: 640px) {
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}

/* =========================================================
   MODAL DE AUTENTICACIÓN
========================================================= */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
    visibility: hidden;
}

.auth-modal.open {
    pointer-events: auto;
    visibility: visible;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.auth-modal.open .auth-modal-backdrop { opacity: 1; }

.auth-modal-box {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: linear-gradient(160deg, #14161d 0%, #0f1117 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 32px 28px 28px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    transform: scale(0.92) translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    max-height: 92vh;
    overflow-y: auto;
    animation: none;
}

.auth-modal.open .auth-modal-box {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
    display: grid;
    place-items: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.auth-modal-close:hover { background: rgba(255, 255, 255, 0.12); transform: rotate(90deg); }

.auth-modal-brand {
    text-align: center;
    margin-bottom: 24px;
}

.auth-modal-logo {
    font-size: 42px;
    display: inline-block;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 20px rgba(88, 101, 242, 0.5));
}

.auth-modal-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.auth-modal-sub {
    font-size: 13.5px;
    color: #8b8f9a;
}

/* Tabs del modal */
.auth-tabs {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 22px;
}

.auth-tab {
    flex: 1;
    padding: 10px 0;
    background: transparent;
    color: #a1a1aa;
    font-size: 14px;
    font-weight: 600;
    border-radius: 9px;
    position: relative;
    z-index: 2;
    transition: color 0.25s ease;
}

.auth-tab.active { color: #fff; }

.auth-tab-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(135deg, #5865f2, #7c3aed);
    border-radius: 9px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 18px rgba(88, 101, 242, 0.4);
    z-index: 1;
}

.auth-tab-indicator.right { transform: translateX(100%); }

/* Formularios del modal */
.auth-form {
    display: none;
    flex-direction: column;
    gap: 14px;
}

.auth-form.active { display: flex; animation: fadeSlide 0.35s ease; }

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.auth-field > span {
    font-size: 12.5px;
    font-weight: 600;
    color: #b0b4bf;
    letter-spacing: 0.2px;
}

.auth-field input {
    width: 100%;
    padding: 13px 15px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 11px;
    color: #fff;
    font-size: 14.5px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input::placeholder { color: #555b68; }

.auth-field input:focus {
    border-color: #5865f2;
    background: rgba(88, 101, 242, 0.06);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.15);
}

.btn-auth-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 22px;
    margin-top: 6px;
    background: linear-gradient(135deg, #5865f2, #7c3aed);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 26px rgba(88, 101, 242, 0.32);
    font-family: inherit;
}

.btn-auth-primary:hover:not(:disabled) { box-shadow: 0 12px 32px rgba(88, 101, 242, 0.5); }
.btn-auth-primary:active:not(:disabled) { transform: scale(0.98); }
.btn-auth-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-auth-primary.loading::after {
    content: "";
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.auth-message {
    margin-top: 16px;
    padding: 12px 15px;
    border-radius: 11px;
    font-size: 13px;
    line-height: 1.5;
    display: none;
    animation: fadeSlide 0.3s ease;
}

.auth-message.show { display: block; }

.auth-message.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.auth-message.success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

/* =========================================================
   RESPONSIVE GENERAL
========================================================= */
@media (max-width: 640px) {
    .section { padding: 70px 20px; }
    .site-header { padding: 12px 16px; }
    .header-inner { gap: 12px; }
    .mobile-menu-panel { max-width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
/* Fix para navegadores móviles con barra dinámica (Chrome Android, Samsung) */
@supports (height: 100dvh) {
    .hero {
        min-height: 100dvh;
    }
}

/* Evitar que la barra de dirección del navegador móvil corte el header */
.site-header {
    padding-top: calc(16px + env(safe-area-inset-top));
}

/* Mejor legibilidad en pantallas pequeñas con alto DPI */
@media (max-width: 480px) {
    .hero-title,
    .section-title,
    .cta-content h2 {
        text-wrap: balance;
    }
    .hero-subtitle,
    .section-subtitle {
        text-wrap: pretty;
    }
}
/* =========================================================
   FIX RESPONSIVE MÓVIL — VOXFACE
   Pegar al FINAL de landing.css para garantizar prioridad
========================================================= */

/* Contenedor raíz: nunca desbordar horizontalmente */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    position: relative;
}

/* =========================================================
   HEADER: altura cómoda con safe-area
========================================================= */
.site-header {
    padding: calc(14px + env(safe-area-inset-top, 0px)) 18px 14px;
}

.header-inner {
    width: 100%;
    max-width: 1200px;
}

/* =========================================================
   HERO — PANTALLAS <= 968px (tablet y móvil)
========================================================= */
@media (max-width: 968px) {
    .hero {
        padding: 110px 20px 60px !important;
        min-height: auto !important;
        display: block !important;
    }

    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 44px !important;
        width: 100% !important;
        max-width: 560px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        text-align: center !important;
        align-items: center !important;
    }

    /* Todos los hijos del hero-content se centran al 100% */
    .hero-content > * {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-badge {
        margin-left: auto !important;
        margin-right: auto !important;
        align-self: center !important;
    }

    .hero-title {
        font-size: clamp(32px, 8.5vw, 48px) !important;
        letter-spacing: -1.2px !important;
        line-height: 1.1 !important;
        margin-bottom: 18px !important;
        width: 100% !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 15px !important;
        max-width: 460px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 28px !important;
        padding: 0 !important;
        line-height: 1.55 !important;
    }

    .hero-subtitle em {
        white-space: nowrap;
    }

    .hero-cta {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto 30px !important;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100% !important;
        padding: 15px 22px !important;
        font-size: 15px !important;
        justify-content: center !important;
    }

    .hero-features {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .hero-feature {
        justify-content: center !important;
    }

    /* Mockup centrado */
    .hero-visual {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin: 0 auto !important;
    }

    .phone-mockup {
        width: 260px !important;
        height: 530px !important;
        margin: 0 auto !important;
    }

    .demo-face { font-size: 92px !important; }
}

/* =========================================================
   HERO — PANTALLAS <= 480px (móvil pequeño)
========================================================= */
@media (max-width: 480px) {
    .hero {
        padding: 100px 16px 50px !important;
    }

    .hero-content {
        max-width: 100% !important;
        gap: 36px !important;
    }

    .hero-title {
        font-size: clamp(28px, 9vw, 38px) !important;
        letter-spacing: -0.8px !important;
    }

    .hero-subtitle {
        font-size: 14.5px !important;
        padding: 0 4px !important;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 14px 20px !important;
        font-size: 14.5px !important;
    }

    .phone-mockup {
        width: 230px !important;
        height: 470px !important;
        border-radius: 34px !important;
    }

    .demo-face { font-size: 78px !important; }
    .demo-caption { font-size: 12px !important; padding: 7px 14px !important; }
    .demo-cmd { font-size: 10px !important; padding: 4px 9px !important; }
}

/* =========================================================
   FIX DEL MENÚ HAMBURGUESA EN MÓVIL
========================================================= */
@media (max-width: 900px) {
    /* Asegurar que el botón hamburguesa siempre sea clicable */
    .hamburger {
        display: block !important;
        position: relative !important;
        z-index: 210 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
    }

    .desktop-nav,
    .desktop-only {
        display: none !important;
    }

    /* Backdrop del menú: siempre por debajo del panel */
    .mobile-menu-backdrop {
        z-index: 1 !important;
    }

    .mobile-menu-panel {
        z-index: 2 !important;
        position: absolute !important;
        top: 0;
        right: 0;
        bottom: 0;
    }

    /* Panel oculto: no bloquea clicks */
    .mobile-menu:not(.open) {
        pointer-events: none !important;
        visibility: hidden !important;
    }

    .mobile-menu:not(.open) .mobile-menu-panel {
        transform: translateX(100%) !important;
    }

    .mobile-menu.open {
        pointer-events: auto !important;
        visibility: visible !important;
    }

    .mobile-menu.open .mobile-menu-panel {
        transform: translateX(0) !important;
    }
}

/* =========================================================
   FALLBACK: si JS falla, aún así mostramos el menú con :target
========================================================= */
.mobile-menu.open .mobile-link {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* =========================================================
   MEJORAS DE LEGIBILIDAD
========================================================= */
.hero-title,
.section-title,
.cta-content h2 {
    text-wrap: balance;
}

.hero-subtitle,
.section-subtitle {
    text-wrap: pretty;
}