:root {
    --green: #0D1220;
    /* Neural Dark — texto principal */
    --green-2: #1A4ED0;
    /* Neural Blue dark — hover states */
    --lime: #60A5FA;
    /* Accent claro — highlights */
    --mint: #E4EBF7;
    /* Neural Light — fondo secciones */
    --mint-2: #D5E3F5;
    /* Neural Pale */
    --cyan: #DDE8F7;
    /* Cloud — fondo testimonials */
    --cream: #F5F8FD;
    /* Paper — fondo cards */
    --ink: #0D1220;
    /* Neural Dark — texto principal */
    --muted: #6B7FA3;
    /* Neural Gray — textos secundarios */
}

* {
    -webkit-font-smoothing: antialiased;
}

html,
body {
    background: #fff;
    color: var(--ink);
    font-family: 'Google Sans Flex', system-ui, sans-serif;
    overflow-x: clip;
}

/* Soporte oficial para Lenis Smooth Scroll */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: .05;
    mix-blend-mode: multiply;
    /* Se le aplicará una textura de ruido estática generada por Canvas en main.js para evitar lag de repintado */
}

/* NAV */
.navbar {
    background: transparent;
    transition: all .35s ease;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, .7);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
}

.brand-mark {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    color: var(--green);
    font-size: 1.1rem;
}

.brand-name {
    color: var(--ink);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -.01em;
}

.btn-primary-green {
    background: var(--green);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: .55rem 1rem;
    font-weight: 600;
    transition: transform .25s ease, box-shadow .25s ease, background .25s;
}

.btn-primary-green:hover {
    background: #1A4ED0;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, .25);
}

.btn-sm-pill {
    font-size: .9rem;
}

/* HERO */
.hero {
    padding: 140px 0 80px;
}

.display-hero {
    font-family: 'Zilla Slab', serif;
    color: var(--green);
    font-weight: 400;
    font-size: clamp(2.8rem, 8.5vw, 7rem);
    line-height: .92;
    letter-spacing: -.01em;
    text-transform: uppercase;
}

.hero-sub {
    max-width: 480px;
    color: #2D3A52;
    margin-top: 1.25rem;
    font-size: 1rem;
    line-height: 1.55;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: #0D1220;
    color: #fff;
    padding: .65rem 1.1rem;
    border-radius: 12px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.store-btn span {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    text-align: left;
}

.store-btn small {
    font-size: .62rem;
    opacity: .85;
    letter-spacing: .04em;
}

.store-btn strong {
    font-size: .95rem;
    font-weight: 600;
}

.store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
    color: #fff;
}

.store-btn.dark {
    background: #0D1220;
}

.hero-stage {
    position: relative;
    width: 90vw;
    /* Toma todo el ancho disponible */
    max-width: 1600px;
    min-height: 80vh;
    /* Fuerza que el texto quede abajo, fuera del viewport inicial */
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    /* Permite que la laptop crezca desde arriba */
    justify-content: center;
    /* Evita el scroll horizontal si la imagen se sale un poco */
    left: 50%;
    transform: translateX(-50%);
}

.app-hero {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .25));
    will-change: transform;
}

.notif-card {
    position: absolute;
    top: 5%;
    left: 80%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    padding: .75rem 1rem;
    z-index: 3;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
    font-size: .85rem;
    max-width: 280px;
    text-align: left;
}

.notif-card .dot {
    width: 8px;
    height: 8px;
    background: var(--lime);
    border-radius: 50%;
    margin-top: 6px;
    display: inline-block;
    flex-shrink: 0;
}

.notif-card p {
    color: #6B7FA3;
    font-size: .75rem;
}

/* El texto principal de Hero ahora va debajo y necesita espaciado */
.hero-copy {
    position: relative;
    z-index: 4;
}

/* SECTION TITLES */
.section-title {
    font-family: 'Zilla Slab', serif;
    color: var(--green);
    text-transform: uppercase;
    font-size: clamp(2rem, 5.5vw, 4.4rem);
    line-height: .95;
    letter-spacing: -.01em;
}

/* FEATURES */
.features {
    background: var(--mint);
    margin: 60px 16px;
    border-radius: 32px;
    padding: 90px 0;
}

.feature-card {
    position: relative;
    background: var(--cream);
    border: 1.5px solid #1E3480;
    border-radius: 22px;
    padding: 0;
    overflow: hidden;
    min-height: 580px;
    display: flex;
    flex-direction: column;
    transition: transform .4s ease, box-shadow .4s ease;
}

.feature-content {
    background: #e6d9d4;
    padding: 32px 28px;
    position: relative;
    z-index: 1;
}

.feature-card h3 {
    font-family: 'Zilla Slab', serif;
    color: #000;
    font-size: 1.6rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .01em;
}

.feature-card p {
    color: #111;
    font-size: .92rem;
    margin-top: .8rem;
    max-width: 100%;
}

/* Imagen ocupa la parte de arriba */
.feature-img {
    flex-grow: 1;
    position: relative;
    min-height: 480px;
    overflow: hidden;
}

.feature-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left;
    display: block;
    transition: transform .6s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 50px rgba(37, 99, 235, .15);
}

.feature-card:hover .feature-img img {
    transform: scale(1.07);
}

/* HOW */
.how {
    padding: 120px 0;
}

.muted {
    color: var(--muted);
}

.steps {
    position: relative;
    margin-top: 60px;
}

.step {
    position: relative;
}

.badge-blob {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 24px;
    display: grid;
    place-items: center;
    font-family: 'Zilla Slab', serif;
    font-size: 1.4rem;
    color: #fff;
}

.badge-blob svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.step h4 {
    font-family: 'Zilla Slab', serif;
    color: var(--green);
    text-transform: uppercase;
    font-size: 1.4rem;
    line-height: 1.05;
}

.step p {
    color: var(--muted);
    font-size: .92rem;
    max-width: 260px;
    margin: .6rem auto 0;
}

.steps .col-md-4 {
    position: relative;
}

.steps .col-md-4:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 44px;
    right: -10%;
    width: 80%;
    height: 2px;
    background-image: linear-gradient(to right, #1E3480 50%, transparent 50%);
    background-size: 14px 2px;
    background-repeat: repeat-x;
}

@media (max-width:767px) {
    .steps .col-md-4::after {
        display: none;
    }
}

/* TESTIMONIALS */
.testimonials {
    background: var(--cyan);
    margin: 60px 16px;
    border-radius: 32px;
    padding: 90px 0;
}

.t-card {
    background: var(--cream);
    border: 1.5px solid #1E3480;
    border-radius: 22px;
    padding: 34px;
    transition: transform .35s ease, box-shadow .35s ease;
}

.t-card:hover {
    transform: scale(1.015);
    box-shadow: 0 30px 50px rgba(0, 0, 0, .1);
}

.stars {
    color: #f3c11b;
    font-size: 1.1rem;
    letter-spacing: .2rem;
}

.t-card h5 {
    font-family: 'Zilla Slab', serif;
    text-transform: uppercase;
    font-size: 1.25rem;
    margin-top: 1.25rem;
    color: #0D1220;
    line-height: 1.1;
}

.t-card p {
    color: #4A5A78;
    margin-top: 1rem;
    font-size: .95rem;
    line-height: 1.55;
}

.t-card .name {
    display: block;
    margin-top: 1.5rem;
    font-weight: 700;
    color: #1E2D4A;
    letter-spacing: .06em;
    font-size: .85rem;
}

/* CTA */
.cta-section {
    padding: 40px 0 80px;
}

.cta-banner {
    background: var(--green);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    min-height: 340px;
    padding: 48px 48px;
}

.cta-copy h2 {
    font-family: 'Zilla Slab', serif;
    color: #fff;
    text-transform: capitalize;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: .95;
    letter-spacing: -.01em;
}

.cta-app-wrap {
    position: relative;
    min-height: 340px;
}

.cta-blob {
    position: absolute;
    inset: -20% -20% -20% 0;
    width: 140%;
    height: 140%;
    z-index: 0;
}

.cta-app {
    position: absolute;
    right: 0;
    bottom: -40px;
    height: 120%;
    width: auto;
    z-index: 1;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .3));
}

/* FOOTER */
.site-footer {
    padding: 30px 0 50px;
}

.footer-links a {
    color: #4A5A78;
    font-size: .9rem;
}

.footer-links a:hover {
    color: var(--green);
}

/* RESPONSIVE */
@media (max-width:992px) {
    .cta-banner {
        padding: 36px;
        text-align: center;
    }

    .cta-banner .cta-copy .d-flex {
        justify-content: center;
    }

    .cta-app-wrap {
        min-height: 300px;
        margin-top: 30px;
    }

    .cta-app {
        position: relative;
        right: auto;
        bottom: auto;
        margin: 0 auto;
    }

    .hero-stage {
        min-height: 80vh;
        /* Asegura espacio para scroll en tablet */
    }

    .notif-card {
        left: auto;
        right: 0;
        transform: translateX(0);
        top: 2%;
    }
}

@media (max-width:767px) {
    .hero {
        padding: 120px 0 40px;
    }

    .hero-stage {
        min-height: 70vh;
        height: auto;
        width: 100vw;
    }

    .notif-card {
        left: 50%;
        transform: translateX(-50%);
        top: -15px;
        /* Sube la tarjeta sobre la laptop en móviles */
        width: 90%;
        max-width: 320px;
    }

    .features,
    .testimonials {
        margin: 30px 12px;
        padding: 60px 0;
        border-radius: 24px;
    }
}