/* ===========================================================================
   FilaGo — landing / marketing
   Marca: azul→índigo→violeta + verde "Go". Display Poppins, cuerpo Inter.
   =========================================================================== */

:root {
    --azul: #2563EB;
    --azul-600: #1D4ED8;
    --indigo: #4338CA;
    --violeta: #6D28D9;
    --verde: #22C55E;
    --verde-600: #16A34A;
    --verde-700: #15803D;

    --tinta: #0F172A;
    --tinta-2: #334155;
    --gris: #64748B;
    --gris-2: #94A3B8;

    --nube: #F8FAFC;
    --nube-2: #EEF2FF;
    --borde: #E2E8F0;
    --blanco: #FFFFFF;

    --grad-marca: linear-gradient(135deg, #2563EB 0%, #4338CA 55%, #6D28D9 100%);
    --grad-go: linear-gradient(120deg, #22C55E 0%, #16A34A 100%);

    --radio: 16px;
    --radio-sm: 12px;
    --sombra: 0 12px 32px rgba(15, 23, 42, .10);
    --sombra-lg: 0 24px 60px rgba(15, 23, 42, .18);
    --ancho: 1140px;

    --f-display: "Poppins", -apple-system, system-ui, "Segoe UI", sans-serif;
    --f-body: "Inter", -apple-system, system-ui, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--f-body);
    color: var(--tinta);
    background: var(--blanco);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: 22px; }
.container-narrow { max-width: 760px; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 100;
    background: var(--tinta); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------- Botones */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4em;
    font-family: var(--f-display); font-weight: 600; font-size: .98rem;
    padding: 11px 20px; border-radius: 999px; border: 1.5px solid transparent;
    cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { font-size: 1.06rem; padding: 15px 28px; }
.btn-block { display: flex; width: 100%; }

.btn-go { background: var(--grad-go); color: #fff; box-shadow: 0 8px 20px rgba(22, 197, 94, .32); }
.btn-go:hover { box-shadow: 0 12px 26px rgba(22, 197, 94, .42); transform: translateY(-1px); }

.btn-ghost { color: var(--tinta); }
.btn-ghost:hover { background: var(--nube-2); }

.btn-outline { border-color: var(--borde); color: var(--tinta); background: #fff; }
.btn-outline:hover { border-color: var(--azul); color: var(--azul); }

.btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* --------------------------------------------------------------- Nav */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.scrolled { border-bottom-color: var(--borde); box-shadow: 0 6px 20px rgba(15,23,42,.06); }
.nav-inner { display: flex; align-items: center; gap: 18px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-text { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; color: var(--tinta); }
.brand-go { color: var(--verde-600); }

.nav-links { display: flex; gap: 26px; margin-left: 14px; }
.nav-links a { font-weight: 500; color: var(--tinta-2); font-size: .96rem; }
.nav-links a:hover { color: var(--azul); }

.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.4px; background: var(--tinta); border-radius: 2px; margin: 5px 0; transition: .25s; }
.nav-mobile { display: none; flex-direction: column; gap: 4px; padding: 12px 22px 20px; background: #fff; border-bottom: 1px solid var(--borde); }
.nav-mobile a { padding: 12px 6px; font-weight: 600; color: var(--tinta); border-bottom: 1px solid var(--nube); }
.nav-mobile a.btn { border-bottom: 0; margin-top: 8px; }

/* --------------------------------------------------------------- Hero */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background: var(--grad-marca);
    padding: clamp(56px, 8vw, 104px) 0 clamp(90px, 12vw, 150px);
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(680px 380px at 88% 8%, rgba(255,255,255,.16), transparent 60%),
        radial-gradient(520px 320px at 6% 96%, rgba(109,40,217,.35), transparent 60%);
    pointer-events: none;
}
.hero-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero-title { font-size: clamp(2.35rem, 5.4vw, 4rem); font-weight: 800; margin: 18px 0 20px; }
.hero-title .acc { color: #4ADE80; }
.hero-sub { font-size: clamp(1.05rem, 1.8vw, 1.28rem); color: rgba(255,255,255,.9); max-width: 33ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 18px; }
.hero-trust { font-size: .92rem; color: rgba(255,255,255,.78); }

.eyebrow {
    display: inline-block; font-family: var(--f-display); font-weight: 600;
    font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--azul); margin-bottom: 14px;
}
.eyebrow-light {
    color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24);
    padding: 7px 14px; border-radius: 999px; letter-spacing: .06em;
}

/* Firma: teléfono en vivo */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
    width: min(320px, 82vw); background: #fff; color: var(--tinta);
    border-radius: 30px; padding: 16px; box-shadow: var(--sombra-lg);
    border: 1px solid rgba(255,255,255,.5);
    transform: rotate(1.5deg);
}
.phone-brand {
    display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; color: var(--tinta-2);
    padding: 6px 6px 14px; border-bottom: 1px solid var(--borde);
}
.brand-avatar {
    width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
    background: var(--grad-marca); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: .95rem;
}
.phone-body { padding: 20px 8px 8px; text-align: center; }
.phone-label { font-size: .82rem; color: var(--gris); letter-spacing: .04em; text-transform: uppercase; }
.phone-num {
    font-family: var(--f-display); font-weight: 800; letter-spacing: -.03em;
    font-size: 4rem; line-height: 1; margin: 6px 0 14px;
    background: var(--grad-marca); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.phone-pos { font-size: .96rem; color: var(--tinta-2); display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.phone-pos strong { color: var(--tinta); }
.live { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--verde-700); font-size: .82rem; background: #ECFDF5; padding: 3px 9px; border-radius: 999px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulso 1.8s infinite; }
.phone-bar { height: 8px; border-radius: 999px; background: var(--nube-2); overflow: hidden; margin: 18px 0; }
.phone-bar span { display: block; height: 100%; background: var(--grad-go); border-radius: 999px; }
.phone-cta { width: 100%; border: 0; background: var(--tinta); color: #fff; font-family: var(--f-body); font-weight: 600; font-size: .92rem; padding: 12px; border-radius: 12px; cursor: pointer; }

.screen-chip {
    position: absolute; bottom: -18px; left: 50%; transform: translateX(-58%);
    background: #fff; color: var(--tinta-2); font-size: .82rem; font-weight: 500;
    padding: 9px 14px; border-radius: 12px; box-shadow: var(--sombra); border: 1px solid var(--borde);
    display: flex; align-items: center; gap: 7px; white-space: nowrap;
}
.screen-chip strong { color: var(--tinta); }

@keyframes pulso {
    0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
    70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* --------------------------------------------------------------- Strip */
.strip { background: var(--nube); border-bottom: 1px solid var(--borde); }
.strip-text { text-align: center; color: var(--gris); font-size: .95rem; padding: 22px 0; font-weight: 500; }

/* --------------------------------------------------------------- Secciones */
.section { padding: clamp(64px, 9vw, 108px) 0; }
.section-soft { background: var(--nube); }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; max-width: 20ch; }
.section-lead { color: var(--gris); font-size: 1.1rem; margin-top: 14px; max-width: 52ch; }

/* Problema */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 42px; }
.pain { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 28px; }
.pain-emoji { font-size: 1.9rem; }
.pain h3 { font-size: 1.18rem; margin: 14px 0 8px; }
.pain p { color: var(--gris); }

/* Pasos */
.pasos { list-style: none; padding: 0; margin: 46px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.paso { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 30px 28px; position: relative; }
.paso-num {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
    background: var(--grad-marca); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 1.25rem;
    margin-bottom: 18px; box-shadow: 0 8px 18px rgba(67,56,202,.28);
}
.paso h3 { font-size: 1.2rem; margin-bottom: 8px; }
.paso p { color: var(--gris); }

/* Capacidades */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.feature { padding: 28px; border-radius: var(--radio); border: 1px solid var(--borde); background: #fff; transition: transform .15s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.feat-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; font-size: 1.4rem; margin-bottom: 16px; }
.ico-blue { background: #EFF6FF; }
.ico-green { background: #ECFDF5; }
.ico-violet { background: #F5F3FF; }
.feature h3 { font-size: 1.16rem; margin-bottom: 7px; }
.feature p { color: var(--gris); }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--violeta); background: #F5F3FF; padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 4px; font-family: var(--f-display); }

/* Planes */
.planes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; align-items: start; }
.plan { background: #fff; border: 1px solid var(--borde); border-radius: 20px; padding: 30px 26px; position: relative; }
.plan-pop { border: 2px solid var(--verde); box-shadow: 0 20px 50px rgba(22,197,94,.16); transform: translateY(-8px); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad-go); color: #fff; font-family: var(--f-display); font-weight: 600; font-size: .76rem; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.plan-name { font-size: 1.3rem; font-weight: 700; }
.plan-price { margin: 12px 0 4px; }
.plan-price .money { font-family: var(--f-display); font-weight: 800; font-size: 2.5rem; letter-spacing: -.03em; }
.plan-price .per { color: var(--gris); font-weight: 500; }
.plan-tag { color: var(--gris); margin-bottom: 20px; }
.plan-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 11px; }
.plan-list li { position: relative; padding-left: 28px; color: var(--tinta-2); }
.plan-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--verde-600); font-weight: 800; }
.planes-note { text-align: center; color: var(--gris-2); font-size: .88rem; margin-top: 26px; }

/* FAQ */
.faq { margin-top: 36px; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio-sm); padding: 4px 22px; }
.faq summary { font-family: var(--f-display); font-weight: 600; font-size: 1.06rem; padding: 18px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--azul); font-weight: 400; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--gris); padding: 0 0 20px; }

/* CTA final */
.cta-band { background: var(--grad-marca); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 300px at 85% 20%, rgba(255,255,255,.16), transparent 60%); }
.cta-inner { position: relative; text-align: center; padding: clamp(60px, 9vw, 96px) 0; }
.cta-inner h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; }
.cta-inner p { color: rgba(255,255,255,.9); font-size: 1.15rem; margin: 14px 0 30px; }

/* --------------------------------------------------------------- Footer */
.footer { background: var(--tinta); color: #CBD5E1; padding: 64px 0 32px; }
.footer .brand-text { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: 16px; color: var(--gris-2); max-width: 34ch; font-size: .95rem; }
.footer-col h3 { font-family: var(--f-display); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; color: #94A3B8; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 44px; padding-top: 24px; border-top: 1px solid #1E293B; color: var(--gris-2); font-size: .88rem; flex-wrap: wrap; }

/* --------------------------------------------------------------- Foco accesible */
a:focus-visible, .btn:focus-visible, summary:focus-visible, button:focus-visible {
    outline: 3px solid #4ADE80; outline-offset: 2px; border-radius: 8px;
}

/* --------------------------------------------------------------- Responsive */
@media (max-width: 900px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: block; }
    .nav.open .nav-mobile { display: flex; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-sub { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { margin-top: 30px; }
    .cards-3, .pasos, .features, .planes, .footer-grid { grid-template-columns: 1fr; }
    .plan-pop { transform: none; }
    .footer-grid { gap: 28px; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .hero-title { font-size: 2.3rem; }
}

/* --------------------------------------------------------------- Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .live-dot { animation: none; }
    * { transition: none !important; }
}
