/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --acento:    #2563eb;
    --acento-hov:#1d4ed8;
    --verde:     #16a34a;
    --texto:     #0f172a;
    --texto-sub: #475569;
    --borde:     #e2e8f0;
    --fondo:     #f8fafc;
    --blanco:    #ffffff;
    --radio:     10px;
    --sombra:    0 4px 24px rgba(15,23,42,.08);
    --sombra-lg: 0 16px 48px rgba(15,23,42,.14);
    --fuente:    'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--fuente); color: var(--texto); background: var(--blanco); line-height: 1.6; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Utilidades ── */
.contenedor { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.texto-acento { color: var(--acento); }
.texto-verde  { color: var(--verde); }

/* ── Nav ── */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--borde);
}
.nav__inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; gap: 1rem;
}
.nav__logo {
    font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em;
    color: var(--texto);
}
.nav__logo span { color: var(--acento); }
.nav__links {
    display: flex; align-items: center; gap: 2rem;
    list-style: none;
}
.nav__links a {
    font-size: .9rem; font-weight: 500; color: var(--texto-sub);
    transition: color .2s;
}
.nav__links a:hover { color: var(--acento); }
.nav__cta {
    display: flex; gap: .75rem; align-items: center;
}

/* ── Botones ── */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .6rem 1.25rem; border-radius: var(--radio);
    font-size: .9rem; font-weight: 600; cursor: pointer;
    border: none; transition: all .2s; white-space: nowrap;
}
.btn--primario {
    background: var(--acento); color: var(--blanco);
    box-shadow: 0 2px 8px rgba(37,99,235,.35);
}
.btn--primario:hover { background: var(--acento-hov); box-shadow: 0 4px 16px rgba(37,99,235,.45); transform: translateY(-1px); }
.btn--secundario {
    background: var(--blanco); color: var(--texto);
    border: 1.5px solid var(--borde);
}
.btn--secundario:hover { border-color: var(--acento); color: var(--acento); background: #eff6ff; }
.btn--lg { padding: .875rem 2rem; font-size: 1rem; border-radius: 12px; }
.btn--ghost { background: transparent; color: var(--texto-sub); }
.btn--ghost:hover { color: var(--acento); }

/* ── Hero ── */
.hero {
    padding: 6rem 0 5rem;
    background: linear-gradient(160deg, #f0f7ff 0%, #fafbff 60%, #f0fdf4 100%);
    position: relative; overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; top: -80px; right: -80px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(37,99,235,.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero__inner {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: center;
}
.hero__badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: #eff6ff; color: var(--acento);
    padding: .35rem .875rem; border-radius: 50px;
    font-size: .8rem; font-weight: 600; margin-bottom: 1.25rem;
    border: 1px solid rgba(37,99,235,.2);
}
.hero__titulo {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800; line-height: 1.15;
    letter-spacing: -.03em; margin-bottom: 1.25rem;
}
.hero__subtitulo {
    font-size: 1.125rem; color: var(--texto-sub);
    margin-bottom: 2rem; max-width: 480px;
}
.hero__botones {
    display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem;
}
.hero__stats {
    display: flex; gap: 2rem; flex-wrap: wrap;
}
.hero__stat { }
.hero__stat-num {
    font-size: 1.5rem; font-weight: 800; color: var(--texto);
}
.hero__stat-lbl {
    font-size: .8rem; color: var(--texto-sub); font-weight: 500;
}

/* Mockup WhatsApp */
.hero__mockup {
    display: flex; justify-content: center;
}
.mockup-phone {
    width: 280px;
    background: var(--blanco);
    border-radius: 28px;
    box-shadow: var(--sombra-lg);
    overflow: hidden;
    border: 8px solid #1a1a2e;
}
.mockup-phone__header {
    background: #075E54;
    padding: .75rem 1rem;
    display: flex; align-items: center; gap: .75rem;
}
.mockup-phone__avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: #25D366; display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 700; color: #fff;
}
.mockup-phone__info .nombre { font-size: .85rem; font-weight: 600; color: #fff; }
.mockup-phone__info .estado { font-size: .7rem; color: rgba(255,255,255,.7); }
.mockup-phone__body {
    background: #ECE5DD;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3C/svg%3E");
    padding: 1rem .75rem;
    display: flex; flex-direction: column; gap: .625rem;
    min-height: 320px;
}
.msg {
    max-width: 85%; padding: .5rem .75rem;
    border-radius: 8px; font-size: .78rem; line-height: 1.4;
    position: relative;
}
.msg__hora { font-size: .65rem; color: rgba(0,0,0,.45); text-align: right; margin-top: .2rem; }
.msg--usuario { background: #fff; align-self: flex-start; border-top-left-radius: 2px; }
.msg--bot { background: #DCF8C6; align-self: flex-end; border-top-right-radius: 2px; }

/* ── Sección genérica ── */
.seccion {
    padding: 5rem 0;
}
.seccion--gris { background: var(--fondo); }
.seccion__encabezado {
    text-align: center; margin-bottom: 3.5rem;
}
.seccion__kicker {
    display: inline-block;
    font-size: .8rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--acento);
    margin-bottom: .75rem;
}
.seccion__titulo {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800; letter-spacing: -.03em; margin-bottom: .75rem;
}
.seccion__sub {
    font-size: 1.05rem; color: var(--texto-sub); max-width: 560px; margin: 0 auto;
}

/* ── Features ── */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.feature-card {
    background: var(--blanco); border: 1px solid var(--borde);
    border-radius: 16px; padding: 1.75rem;
    transition: box-shadow .25s, transform .25s;
}
.feature-card:hover { box-shadow: var(--sombra); transform: translateY(-3px); }
.feature-card__icono {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem; font-size: 1.5rem;
}
.feature-card__titulo {
    font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem;
}
.feature-card__desc { font-size: .9rem; color: var(--texto-sub); }

/* ── Cómo funciona ── */
.como-steps {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}
.step {
    text-align: center;
}
.step__num {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--acento); color: var(--blanco);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; font-weight: 800; margin: 0 auto 1rem;
}
.step__titulo { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.step__desc { font-size: .9rem; color: var(--texto-sub); }

/* ── Planes ── */
.planes-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem; align-items: start;
}
.plan-card {
    background: var(--blanco); border: 2px solid var(--borde);
    border-radius: 20px; padding: 2rem;
    transition: all .25s;
}
.plan-card:hover { border-color: var(--acento); box-shadow: 0 8px 32px rgba(37,99,235,.12); }
.plan-card--destacado {
    border-color: var(--acento);
    background: linear-gradient(160deg, #eff6ff 0%, #fff 100%);
    position: relative;
}
.plan-card__badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--acento); color: #fff;
    font-size: .7rem; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; padding: .3rem .875rem; border-radius: 50px;
    white-space: nowrap;
}
.plan-card__nombre {
    font-size: 1rem; font-weight: 700; margin-bottom: .25rem;
}
.plan-card__precio {
    font-size: 2.25rem; font-weight: 800; letter-spacing: -.03em;
    margin-bottom: .25rem; color: var(--texto);
}
.plan-card__precio span { font-size: 1rem; font-weight: 500; color: var(--texto-sub); }
.plan-card__desc { font-size: .85rem; color: var(--texto-sub); margin-bottom: 1.5rem; }
.plan-card__lista {
    list-style: none; display: flex; flex-direction: column; gap: .625rem;
    margin-bottom: 1.75rem;
}
.plan-card__lista li {
    display: flex; align-items: flex-start; gap: .5rem;
    font-size: .875rem;
}
.plan-card__lista li::before {
    content: '✓'; color: var(--verde); font-weight: 700;
    flex-shrink: 0; margin-top: .05rem;
}

/* ── Testimonios ── */
.testimonios-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.testimonio-card {
    background: var(--blanco); border: 1px solid var(--borde);
    border-radius: 16px; padding: 1.75rem;
}
.testimonio-card__texto {
    font-size: .95rem; color: var(--texto-sub); margin-bottom: 1.25rem;
    font-style: italic; line-height: 1.65;
}
.testimonio-card__autor {
    display: flex; align-items: center; gap: .75rem;
}
.testimonio-card__avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--acento); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .9rem; flex-shrink: 0;
}
.testimonio-card__nombre { font-size: .9rem; font-weight: 600; }
.testimonio-card__cargo  { font-size: .78rem; color: var(--texto-sub); }

/* ── CTA final ── */
.cta-final {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #0ea5e9 100%);
    padding: 5rem 0; text-align: center; color: #fff;
}
.cta-final__titulo {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800; letter-spacing: -.03em; margin-bottom: 1rem;
}
.cta-final__sub {
    font-size: 1.1rem; opacity: .85; margin-bottom: 2.5rem;
    max-width: 520px; margin-left: auto; margin-right: auto;
}
.cta-final .btn--blanco {
    background: #fff; color: var(--acento);
}
.cta-final .btn--blanco:hover { background: #f0f7ff; transform: translateY(-2px); }
.cta-final .btn--outline-blanco {
    background: transparent; color: #fff;
    border: 2px solid rgba(255,255,255,.5);
}
.cta-final .btn--outline-blanco:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ── Footer ── */
.footer {
    background: #0f172a; color: rgba(255,255,255,.6);
    padding: 3rem 0 2rem;
}
.footer__inner {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem; margin-bottom: 2.5rem;
}
.footer__logo {
    font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: .75rem;
}
.footer__logo span { color: var(--acento); }
.footer__desc { font-size: .85rem; line-height: 1.6; }
.footer__titulo { font-size: .85rem; font-weight: 700; color: #fff; margin-bottom: .875rem; }
.footer__lista { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer__lista a { font-size: .85rem; transition: color .2s; }
.footer__lista a:hover { color: #fff; }
.footer__linea {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 1.5rem; font-size: .8rem;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}

/* ── WhatsApp flotante ── */
.wa-flotante {
    position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 500;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,.5);
    transition: transform .25s, box-shadow .25s;
}
.wa-flotante:hover { transform: scale(1.1); box-shadow: 0 8px 24px rgba(37,211,102,.6); }

/* ── Responsive ── */
@media (max-width: 900px) {
    .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
    .hero__mockup { order: -1; }
    .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .nav__links { display: none; }
    .hero { padding: 4rem 0 3rem; }
    .footer__inner { grid-template-columns: 1fr; }
    .footer__linea { flex-direction: column; text-align: center; }
}
