/* ============================================================
 * landing.css — Landing pública de Mr. Punto
 * ============================================================
 * Sistema de diseño inspirado en Samsung One UI 7:
 *   · fondo neutro muy claro, tarjetas blancas "flotando"
 *   · radios amplios (16–28px), sombras casi imperceptibles
 *   · mucho aire: padding 20–28px, separación 16–24px
 *   · un solo acento (azul #0A84FF) para la acción principal
 *   · transiciones 200–300ms con cubic-bezier(.2,.8,.2,1)
 *
 * Todo el CSS vive aquí (no hay <style> en index.php) para que el
 * navegador lo cachee entre visitas.
 * ============================================================ */

:root {
    /* Superficies */
    --bg: #F5F6F8;
    --card: #FFFFFF;
    --field: #F2F4F7;
    --border: #E5E7EB;
    --border-strong: #D9DDE4;

    /* Texto */
    --text: #111827;
    --text-soft: #374151;
    --muted: #667085;
    --muted-2: #9CA3AF;

    /* Acentos */
    --blue: #0A84FF;
    --blue-600: #0071E3;
    --blue-700: #0060C0;
    --blue-tint: #E8F2FF;
    --green: #22C55E;
    --green-tint: #E9F9EF;
    --yellow: #FBBF24;
    --red: #EF4444;
    --red-tint: #FDECEC;

    /* Marca (solo logo) */
    --gold: #FBBF24;
    --gold-dark: #B45309;

    /* Formas */
    --r-sm: 14px;
    --r-md: 18px;
    --r-lg: 24px;
    --r-xl: 28px;
    --r-pill: 999px;

    /* Elevación */
    --shadow-xs: 0 1px 2px rgba(17, 24, 39, .04);
    --shadow-sm: 0 2px 8px rgba(17, 24, 39, .04), 0 8px 24px rgba(17, 24, 39, .06);
    --shadow-md: 0 8px 20px rgba(17, 24, 39, .06), 0 20px 48px rgba(17, 24, 39, .08);
    --shadow-blue: 0 8px 24px rgba(10, 132, 255, .28);

    /* Movimiento */
    --ease: cubic-bezier(.2, .8, .2, 1);
    --t-fast: .2s var(--ease);
    --t: .25s var(--ease);
    --t-slow: .3s var(--ease);

    /* Ritmo */
    --gutter: 24px;
    --section-y: 88px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: Inter, "SamsungOne", "SF Pro Display", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "ss01" 1;
}

img, svg { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }

/* Sprite de iconos: se oculta sin usar display:none (rompería <use>) */
.svg-sprite {
    position: absolute;
    width: 0; height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Icono estándar (One UI): 22–24px, trazo redondeado, un solo color */
.ico {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    display: inline-block;
    vertical-align: -.18em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ico-sm { width: 16px; height: 16px; stroke-width: 2; }
.btn .ico { width: 18px; height: 18px; stroke-width: 2; }
.ico-dot { width: 13px; height: 13px; }
.ico-dot circle { fill: currentColor; stroke: none; }
.hero-proof .ico, .risk-item .ico, .form-trust .ico { color: var(--green); }

::selection { background: var(--blue-tint); color: var(--text); }

:focus-visible {
    outline: 3px solid rgba(10, 132, 255, .45);
    outline-offset: 3px;
    border-radius: 8px;
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 15px 28px;
    border: 0;
    border-radius: var(--r-md);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.btn-primary {
    background: linear-gradient(135deg, #0A84FF 0%, #0071E3 55%, #0063D1 100%);
    color: #fff;
    box-shadow: var(--shadow-blue);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(10, 132, 255, .36); }

.btn-secondary {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }

.btn-outline {
    background: transparent;
    color: var(--text-soft);
    border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--card); border-color: var(--border-strong); }

.btn-green { background: var(--green); color: #fff; box-shadow: 0 8px 24px rgba(34, 197, 94, .26); }
.btn-wa { background: #25D366; color: #05301B; }
.btn-wa:hover { background: #1EB855; }

/* Variante dorada heredada (marca). Se conserva por compatibilidad y para
   el brillo que recorre el botón en el header. */
.btn-gold {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FCD34D, var(--gold) 45%, #F59E0B);
    color: #3B2600;
    box-shadow: 0 8px 24px rgba(251, 191, 36, .28);
}
.btn-gold::before {
    content: '';
    position: absolute;
    top: 0; left: -130%;
    width: 55%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65), transparent);
    transform: skewX(-22deg);
    transition: left .65s var(--ease);
    pointer-events: none;
}
.btn-gold:hover::before { left: 135%; }

.btn-nav { min-height: 46px; padding: 12px 20px; font-size: 15px; border-radius: var(--r-sm); }
.btn-nav i { font-size: 12px; transition: transform var(--t); }
.btn-nav:hover i { transform: translateX(3px); }

/* ============================================================
   BANNER DE VERIFICACIÓN
   ============================================================ */
.banner-ok {
    background: var(--green-tint);
    color: #166534;
    text-align: center;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 1px solid #CFEFDB;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(245, 246, 248, .78);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid transparent;
    transition: background var(--t-slow), border-color var(--t-slow), box-shadow var(--t-slow);
}
header.scrolled {
    background: rgba(255, 255, 255, .88);
    border-bottom-color: var(--border);
    box-shadow: 0 2px 16px rgba(17, 24, 39, .05);
}

.nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 14px var(--gutter);
    gap: 24px;
    flex-wrap: nowrap;
    max-width: 1200px;
    margin: 0 auto;
}

.brand {
    margin-right: auto;
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    transition: transform var(--t), opacity var(--t);
}
.brand:hover { transform: translateY(-1px); opacity: .92; }
.logo-svg { width: 148px; height: 56px; flex: 0 0 auto; display: block; }

nav { display: flex; gap: 24px; align-items: center; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a.link, .nav-actions a.link {
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.nav-links a.link {
    position: relative;
    padding: 10px 14px;
    border-radius: var(--r-pill);
    transition: color var(--t), background var(--t);
}
.nav-links a.link::after {
    content: '';
    position: absolute;
    left: 14px; right: 14px; bottom: 5px;
    height: 2px;
    border-radius: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--t-slow);
}
.nav-links a.link:hover { color: var(--text); background: rgba(17, 24, 39, .045); }
.nav-links a.link:hover::after { transform: scaleX(1); }
.nav-links a.link.active { color: var(--blue); }
.nav-links a.link.active::after { transform: scaleX(1); }

.nav-actions { display: flex; gap: 12px; align-items: center; }
.nav-login { padding: 9px 14px; border-radius: var(--r-pill); transition: color var(--t), background var(--t); }
.nav-login:hover { color: var(--text); background: rgba(17, 24, 39, .045); }

.nav-cta-movil { display: none; }
.nav-cta-movil i { transform: none; }

/* Botón de menú en móvil */
.nav-burger {
    display: none;
    width: 44px; height: 44px;
    flex-direction: column;
    align-items: center; justify-content: center;
    gap: 5px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-xs);
    cursor: pointer;
    padding: 0;
    transition: background var(--t), transform var(--t);
}
.nav-burger:active { transform: scale(.96); }
.nav-burger span {
    display: block;
    width: 18px; height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform var(--t), opacity var(--t-fast);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Panel del menú en móvil */
.menu-movil {
    display: none;
    flex-direction: column;
    padding: 8px 16px 16px;
    background: var(--card);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}
.menu-movil.abierto { display: flex; animation: menuIn .22s var(--ease); }
.menu-movil a {
    padding: 15px 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}
.menu-movil a:last-child { border-bottom: 0; }
.menu-movil .mm-login { color: var(--blue); font-weight: 700; display: flex; align-items: center; gap: 10px; }

@keyframes menuIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ESTRUCTURA DE SECCIONES
   ============================================================ */
section {
    padding: var(--section-y) 0;
    scroll-margin-top: 92px;
}
section.alt { background: transparent; }

h1 {
    font-size: clamp(2.05rem, 4.4vw, 3rem);
    line-height: 1.12;
    letter-spacing: -.03em;
    font-weight: 700;
    text-wrap: balance;
}
h2 {
    font-size: clamp(1.75rem, 3.4vw, 2.25rem);
    line-height: 1.25;
    text-align: center;
    margin-bottom: 14px;
    letter-spacing: -.025em;
    font-weight: 700;
    text-wrap: balance;
}
.section-sub {
    text-align: center;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
    max-width: 640px;
    margin: 0 auto 48px;
}

.eyebrow {
    display: block;
    text-align: center;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* Tarjeta base */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    padding: 72px 0 40px;
    text-align: left;
    position: relative;
    overflow: hidden;
}
/* Halo azul muy difuso detrás del hero (profundidad sin ruido visual) */
.hero::before {
    content: '';
    position: absolute;
    top: -260px;
    right: -160px;
    width: 720px; height: 720px;
    background: radial-gradient(circle, rgba(10, 132, 255, .14), rgba(10, 132, 255, 0) 62%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 44px;
    align-items: center;
    position: relative;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-tint);
    color: var(--blue-700);
    padding: 8px 16px;
    border-radius: var(--r-pill);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .045em;
    margin-bottom: 22px;
    text-transform: uppercase;
}
.badge::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .16);
}

.hero h1 span { color: var(--blue); }

.hero .sub {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
    max-width: 560px;
    margin: 20px 0 0;
}
.hero .sub strong { color: var(--text-soft); font-weight: 600; }

.cta-row {
    display: flex;
    gap: 14px;
    justify-content: flex-start;
    margin: 32px 0 14px;
    flex-wrap: wrap;
}
.cta-row .btn { min-height: 56px; padding: 17px 24px; }
.cta-center { justify-content: center; }

.trust {
    color: var(--muted);
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 6px 11px;
    flex-wrap: wrap;
}
.trust span { display: inline; }
.trust span:first-of-type { color: var(--text-soft); }
.trust strong { color: var(--text); }
.trust i { color: var(--green); font-size: 14px; }

/* Prueba social compacta bajo el CTA */
.hero-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 12px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-xs);
    width: fit-content;
}
.hero-proof .hp-stars { color: var(--yellow); font-size: 14px; letter-spacing: .1em; }
.hero-proof .hp-text { font-size: 13.5px; color: var(--muted); }
.hero-proof .hp-text strong { color: var(--text); font-weight: 700; }

/* Marco de la captura */
.hero-visual { position: relative; }
.hero-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--r-xl);
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: var(--shadow-md);
    transition: transform var(--t-slow), box-shadow var(--t-slow);
}
.hero-visual:hover .hero-img { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(17, 24, 39, .1), 0 40px 80px rgba(17, 24, 39, .1); }

/* Tarjeta flotante sobre la captura */
.float-card {
    position: absolute;
    left: -22px;
    bottom: 26px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 12px 16px;
    box-shadow: var(--shadow-md);
    animation: floaty 5s ease-in-out infinite;
}
.float-card .fc-icon {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: 12px;
    background: var(--green-tint);
    color: var(--green);
    font-size: 16px;
    flex: 0 0 auto;
}
.float-card .fc-title { font-size: 13px; font-weight: 700; line-height: 1.3; }
.float-card .fc-sub { font-size: 12px; color: var(--muted); line-height: 1.3; }

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0;
    margin-top: 56px;
}
.stat {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 22px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t);
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat b {
    display: block;
    font-size: 30px;
    line-height: 1.15;
    color: var(--text);
    letter-spacing: -.03em;
    font-weight: 700;
}
.stat span { color: var(--muted); font-size: 13.5px; line-height: 1.45; display: block; margin-top: 6px; }

/* ============================================================
   CÓMO FUNCIONA (3 pasos)
   ============================================================ */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    counter-reset: paso;
}
.step {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 24px 24px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t);
}
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.step .step-num {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 14px;
    background: var(--blue-tint);
    color: var(--blue-600);
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -.01em; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.step .step-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--green);
    background: var(--green-tint);
    padding: 4px 10px;
    border-radius: var(--r-pill);
}

/* ============================================================
   FUNCIONES
   ============================================================ */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

#funciones .card { padding: 28px 26px; }
#funciones .card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.icon-badge {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    border-radius: 16px;
    background: var(--blue-tint);
    color: var(--blue);
    margin-bottom: 18px;
    transition: background var(--t), transform var(--t);
}
.card:hover .icon-badge { background: #DCEBFF; transform: scale(1.04); }

.card .icon {
    width: 24px; height: 24px;
    color: currentColor;
    margin: 0;
    stroke-width: 1.75;
}
.card h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.62; }

.more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 32px auto 0;
    padding: 12px 20px;
    color: var(--blue);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--r-pill);
    transition: background var(--t), gap var(--t);
}
.more-link:hover { background: var(--blue-tint); gap: 12px; }
.more-link-wrap { text-align: center; }

/* ============================================================
   PROBLEMA / SOLUCIÓN (comparativa)
   ============================================================ */
.comp {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 32px;
}
.comp .card { padding: 30px 28px; }
.comp .card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    margin-bottom: 16px;
}
.comp .card h3::before {
    content: '';
    width: 10px; height: 10px;
    border-radius: 50%;
    flex: 0 0 auto;
}
.comp .antes { border-color: #F3DCDC; background: linear-gradient(180deg, #FFF8F8, var(--card) 40%); }
.comp .antes h3 { color: #B42318; }
.comp .antes h3::before { background: var(--red); }
.comp .ahora { border-color: #CDEFDB; background: linear-gradient(180deg, #F6FDF8, var(--card) 40%); }
.comp .ahora h3 { color: #15803D; }
.comp .ahora h3::before { background: var(--green); }
.comp .card p { color: var(--muted); }
.comp ul { list-style: none; margin-top: 8px; }
.comp li {
    padding: 9px 0 9px 30px;
    position: relative;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-soft);
}
.antes li::before {
    content: "✕";
    position: absolute;
    left: 2px; top: 9px;
    width: 20px; height: 20px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--red-tint);
    color: var(--red);
    font-size: 10px;
    font-weight: 700;
}
.ahora li::before {
    content: "✓";
    position: absolute;
    left: 2px; top: 9px;
    width: 20px; height: 20px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--green-tint);
    color: #16A34A;
    font-size: 11px;
    font-weight: 700;
}

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.rating-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px 26px;
    margin: 0 auto 28px;
    max-width: 660px;
    box-shadow: var(--shadow-sm);
}
.rating-badge .rb-score { font-size: 28px; font-weight: 700; color: var(--text); letter-spacing: -.03em; }
.rating-badge .rb-stars { color: var(--yellow); letter-spacing: .12em; font-size: 15px; }
.rating-badge .rb-meta { color: var(--muted); font-size: 14px; flex: 1 0 100%; text-align: center; }
.rating-badge .rb-meta strong { color: var(--text); }

.testi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi blockquote {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 26px 24px;
    font-size: 15px;
    color: var(--text-soft);
    line-height: 1.65;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t);
    position: relative;
}
.testi blockquote:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.testi blockquote p { font-style: normal; }
.testi footer {
    margin-top: 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.testi .estrellas { color: var(--yellow); letter-spacing: .12em; margin-bottom: 10px; font-size: 13px; }

/* ============================================================
   PRECIOS
   ============================================================ */
.plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}
.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 26px 26px;
}
.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.plan.featured {
    border-color: rgba(10, 132, 255, .45);
    box-shadow: 0 0 0 2px rgba(10, 132, 255, .18), var(--shadow-md);
    background: linear-gradient(180deg, #F7FBFF 0%, var(--card) 34%);
}
.plan.featured:hover { box-shadow: 0 0 0 2px rgba(10, 132, 255, .26), 0 18px 44px rgba(10, 132, 255, .16); }

.plan-tag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FCD34D, var(--yellow) 50%, #F59E0B);
    color: #3B2600;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: var(--r-pill);
    letter-spacing: .07em;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(251, 191, 36, .35);
}
.plan-head { min-height: 219px; }
.plan h3 { font-size: 19px; letter-spacing: -.01em; }
.plan .price {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    margin: 8px 0 4px;
    letter-spacing: -.035em;
    line-height: 1.1;
}
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
/* Precio anterior tachado (oferta de lanzamiento) */
.plan .price .price-old {
    font-size: 19px;
    font-weight: 500;
    color: var(--muted-2);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    margin-left: 6px;
    letter-spacing: 0;
    vertical-align: 3px;
}
.price-mxn { color: var(--muted); font-size: 13.5px; margin: 2px 0 8px; }
.price-mxn b { color: var(--text-soft); font-weight: 600; }
.price-mxn .aprox { color: var(--gold-dark); font-weight: 700; }

.chip-pago {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    background: var(--green-tint);
    border: 1px solid #CDEFDB;
    color: #15803D;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: var(--r-pill);
    margin-bottom: 12px;
    line-height: 1.4;
}
.plan-note { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
/* Nota del cambio programado de límites (plan Básico) */
.plan-limit-note {
    display: block;
    color: var(--gold-dark);
    font-size: 12.5px;
    line-height: 1.4;
    margin-top: 2px;
}
.plan ul { list-style: none; margin: 4px 0 22px; flex: 1; }
.plan li {
    padding: 7px 0 7px 30px;
    position: relative;
    font-size: 15px;
    color: var(--text-soft);
    line-height: 1.5;
}
.plan li::before {
    content: "✓";
    position: absolute;
    left: 0; top: 7px;
    width: 20px; height: 20px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--green-tint);
    color: #16A34A;
    font-size: 11px;
    font-weight: 700;
}
.plan li.no { color: var(--muted-2); }
.plan li.no::before { content: "—"; background: #F3F4F6; color: var(--muted-2); }
.plan .btn { display: block; width: 100%; margin-top: auto; }

.garantia {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 26px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.factura-cfdi {
    max-width: 720px;
    margin: 24px auto 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 22px 24px;
    text-align: center;
    color: var(--text-soft);
    font-size: 15px;
    box-shadow: var(--shadow-sm);
}
.factura-cfdi p { margin-bottom: 14px; }
.factura-cfdi .btn { margin-top: 4px; }

/* Sello de garantía / riesgo cero */
.risk-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 28px;
    padding: 18px 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}
.risk-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-soft);
    font-weight: 500;
}
.risk-item i { color: var(--green); font-size: 15px; }

/* ============================================================
   REGISTRO / FORMULARIO
   ============================================================ */
.form-note {
    text-align: center;
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 28px;
}

.info-box {
    max-width: 520px;
    margin: 0 auto 22px;
    background: var(--blue-tint);
    border: 1px solid #CFE4FF;
    border-radius: var(--r-md);
    padding: 16px 18px;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.6;
}
.info-box strong { color: var(--text); }
.info-box a { color: var(--blue-700); font-weight: 600; }

.form-box {
    max-width: 520px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.form-box label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-soft);
}

.form-box input[type="text"],
.form-box input[type="email"],
.form-box input[type="password"] {
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1.5px solid transparent;
    background: var(--field);
    color: var(--text);
    margin-bottom: 18px;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.4;
    transition: background var(--t), border-color var(--t), box-shadow var(--t);
    -webkit-appearance: none;
    appearance: none;
}
.form-box input::placeholder { color: var(--muted-2); }
.form-box input[type="text"]:hover,
.form-box input[type="email"]:hover,
.form-box input[type="password"]:hover { background: #EDEFF3; }

.form-box input[type="text"]:focus,
.form-box input[type="email"]:focus,
.form-box input[type="password"]:focus {
    outline: none;
    background: var(--card);
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(10, 132, 255, .13);
}

.hint { display: block; color: var(--muted); font-size: 13px; margin: -12px 0 18px; line-height: 1.5; }

.form-msg {
    margin-top: 18px;
    border-radius: var(--r-md);
    padding: 16px;
    font-size: 14.5px;
    line-height: 1.6;
    display: none;
}
.form-msg.ok { display: block; background: var(--green-tint); border: 1px solid #CDEFDB; color: #146C37; }
.form-msg.err { display: block; background: var(--red-tint); border: 1px solid #F6D2D2; color: #B42318; }
/* El bloque .registro-ok ya es una tarjeta: no duplicar el marco verde */
.form-msg-flat { background: transparent !important; border: 0 !important; padding: 0 !important; }

.check-terminos {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--muted);
    margin: 4px 0 22px;
    cursor: pointer;
    line-height: 1.55;
}
.check-terminos input[type="checkbox"] {
    width: 20px; height: 20px;
    margin: 1px 0 0;
    flex: 0 0 auto;
    accent-color: var(--blue);
    cursor: pointer;
}
.check-terminos a { color: var(--blue-600); font-weight: 600; }

/* Microcopy de confianza bajo el botón de envío */
.form-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
}
.form-trust span { display: inline-flex; align-items: center; gap: 6px; }
.form-trust i { color: var(--green); font-size: 12px; }

/* Campo de contraseña con botón de mostrar/ocultar */
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 52px !important; }
.pass-toggle {
    position: absolute;
    right: 8px; top: 50%;
    transform: translateY(-50%);
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; border-radius: 12px;
    color: var(--muted); cursor: pointer; font-size: 15px;
    transition: color var(--t), background var(--t);
}
.pass-toggle:hover { color: var(--text); background: rgba(17, 24, 39, .06); }
.pass-toggle:active { transform: translateY(-50%) scale(.94); }
/* Ojo / ojo tachado: se alterna con aria-pressed (sin tocar el DOM en JS) */
.pass-toggle .ico-eye-off { display: none; }
.pass-toggle[aria-pressed="true"] .ico-eye { display: none; }
.pass-toggle[aria-pressed="true"] .ico-eye-off { display: inline-block; }

/* Checklist de requisitos de la contraseña (se marca al escribir) */
.pass-rules {
    list-style: none;
    margin: 4px 0 18px; padding: 0;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 14px;
}
.pass-rules li {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--muted);
    transition: color var(--t);
    line-height: 1.4;
}
.pass-rules li i { font-size: 12px; color: var(--muted-2); transition: color var(--t), transform var(--t); }
.pass-rules li.ok { color: #15803D; }
.pass-rules li.ok i { color: var(--green); transform: scale(1.08); }

/* ============================================================
   FAQ
   ============================================================ */
details {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    margin-bottom: 12px;
    padding: 4px 20px;
    box-shadow: var(--shadow-xs);
    transition: box-shadow var(--t), border-color var(--t);
}
details[open] { box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
summary {
    font-weight: 600;
    cursor: pointer;
    padding: 18px 0;
    font-size: 16px;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--text);
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: "+";
    font-size: 22px;
    font-weight: 400;
    color: var(--muted);
    line-height: 1;
    transition: transform var(--t), color var(--t);
    flex: 0 0 auto;
}
details[open] summary::after { transform: rotate(45deg); color: var(--blue); }
details p {
    color: var(--muted);
    padding: 0 28px 18px 0;
    font-size: 15px;
    line-height: 1.65;
}
details[open] p { animation: fadeIn .25s var(--ease); }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.final { padding: var(--section-y) 0; }
.final .wrap { max-width: 1120px; }
.final-inner {
    background: linear-gradient(135deg, #0A84FF 0%, #2E96FF 46%, #5EA8FF 100%);
    border-radius: var(--r-xl);
    padding: 56px 32px;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 60px rgba(10, 132, 255, .28);
    position: relative;
    overflow: hidden;
}
.final-inner::before {
    content: '';
    position: absolute;
    top: -40%; right: -10%;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 62%);
    pointer-events: none;
}
.final h2 { color: #fff; margin-bottom: 12px; }
.final .section-sub { color: rgba(255, 255, 255, .86); margin-bottom: 28px; }
.final .btn {
    background: #fff;
    color: var(--blue-600);
    box-shadow: 0 10px 30px rgba(3, 50, 100, .22);
    min-height: 56px;
    padding: 17px 34px;
}
.final .btn:hover { background: #F5F9FF; }
.final .btn i { color: var(--blue); }
.final .final-note {
    margin-top: 16px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .82);
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contacto-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 820px;
    margin: 0 auto;
}
.contacto-card {
    display: block;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 26px;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.contacto-card:hover { transform: translateY(-2px); border-color: #CFE4FF; box-shadow: var(--shadow-md); }
.contacto-card .cc-label {
    display: inline-block;
    color: var(--blue-700);
    background: var(--blue-tint);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    margin-bottom: 10px;
}
.contacto-card .cc-value { display: block; font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.contacto-card .cc-desc { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; line-height: 1.55; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    padding: 48px 0 56px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    border-top: 1px solid var(--border);
    background: var(--card);
}
footer p { color: var(--muted); }
footer strong { color: var(--text); }
footer .foot-nav {
    margin-top: 16px;
    display: flex;
    gap: 8px 22px;
    justify-content: center;
    flex-wrap: wrap;
}
footer a {
    color: var(--muted);
    text-decoration: none;
    padding: 4px 0;
    transition: color var(--t);
}
footer a:hover { color: var(--blue); }

/* ============================================================
   CTA FIJO EN MÓVIL
   ============================================================ */
.cta-movil {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid var(--border);
    transform: translateY(120%);
    transition: transform var(--t-slow);
}
.cta-movil.visible { transform: translateY(0); }
.cta-movil .btn { display: flex; width: 100%; }

/* ============================================================
   ESTADO DE CONFIRMACIÓN DEL REGISTRO
   ============================================================ */
.registro-ok {
    text-align: left;
    border: 1px solid #CDEFDB;
    background: var(--green-tint);
    border-radius: var(--r-md);
    padding: 20px;
}
.registro-ok .ro-titulo {
    font-size: 16px; font-weight: 700; color: #15803D;
    display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.registro-ok .ro-linea { font-size: 14.5px; color: var(--text); margin-bottom: 6px; line-height: 1.55; }
.registro-ok .ro-pie { font-size: 13.5px; color: var(--muted); margin: 10px 0 12px; line-height: 1.55; }
.registro-ok .ro-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--blue-700);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--r-pill);
    background: rgba(10, 132, 255, .1);
    transition: background var(--t);
}
.registro-ok .ro-link:hover { background: rgba(10, 132, 255, .18); }

/* ============================================================
   APARICIÓN AL HACER SCROLL
   ============================================================ */
/* El JS añade .reveal solo si hay IntersectionObserver y el usuario no
   pidió reducir movimiento; el HTML nunca arranca oculto. Al terminar la
   animación se quitan las clases para no bloquear el hover de las tarjetas. */
.reveal { opacity: 0; }
.reveal.is-visible { animation: revealUp .5s var(--ease) both; }

@keyframes revealUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .nav { gap: 14px; padding: 12px 18px; }
    .logo-svg { width: 124px; height: 48px; }
    .nav-links { gap: 2px; }
    .nav-links a.link { padding: 9px 10px; font-size: 14px; }
    .nav-actions { gap: 10px; }
    .nav-login { font-size: 14px; }
    .btn-nav { min-height: 44px; padding: 11px 16px; font-size: 14px; }

    .hero-grid { gap: 36px; }
    .float-card { left: 8px; bottom: 14px; }

    /* Con 3 columnas estrechas el CTA de los planes no cabía en una línea
       y empujaba la tarjeta fuera del viewport (overflow horizontal a 1024px). */
    .cta-row { gap: 10px; }
    .cta-row .btn { padding: 16px 18px; font-size: 15px; }

    .plan { padding: 26px 20px 22px; min-width: 0; }
    .plan .btn { white-space: normal; padding: 15px 14px; }
}

@media (max-width: 980px) {
    .hero { text-align: center; padding: 52px 0 32px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero .sub { margin-left: auto; margin-right: auto; }
    .cta-row { justify-content: center; }
    .trust { justify-content: center; }
    .hero-proof { margin-left: auto; margin-right: auto; }
    .float-card { left: 50%; transform: translateX(-50%); bottom: -18px; animation: none; }
    .hero-visual:hover .float-card { transform: translateX(-50%); }
}

@media (max-width: 900px) {
    .plan-head { min-height: 0; }
    .grid-3, .plans, .testi, .steps { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .comp { grid-template-columns: 1fr; }
    .contacto-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
}

/* Tablet / móvil: el nav pasa a una sola fila con el botón de menú.
   El CTA del header se convierte en "Entrar" (acceso rápido);
   el de registro sigue presente en la barra inferior fija. */
@media (max-width: 880px) {
    .nav { padding: 10px 16px; gap: 10px; }
    .brand { margin-right: auto; }
    .logo-svg { width: 114px; height: 44px; }
    .nav-links { display: none; }
    .nav-actions { order: 2; margin-left: auto; gap: 8px; }
    .nav-login { display: none; }
    .nav-cta-escritorio { display: none; }
    .nav-cta-movil { display: inline-flex; }
    .btn-nav { font-size: 14px; padding: 11px 16px; gap: 6px; }
    .btn-nav i { font-size: 12px; }
    .nav-burger { display: flex; }
    :root { --section-y: 68px; }
}

@media (max-width: 640px) {
    :root { --gutter: 18px; --section-y: 58px; }
    .nav { padding: 10px 14px; }
    .logo-svg { width: 104px; height: 40px; }
    .btn-nav { font-size: 13.5px; padding: 10px 14px; }

    .cta-row { flex-direction: column; }
    .cta-row .btn, .final .btn { width: 100%; }
    .hero .sub { font-size: 16.5px; }
    .badge { font-size: 11px; padding: 7px 13px; letter-spacing: .03em; }

    .form-box { padding: 24px 20px; border-radius: var(--r-lg); }
    .final-inner { padding: 44px 22px; border-radius: var(--r-lg); }

    .stats { gap: 12px; }
    .stat { padding: 18px 14px; }
    .stat b { font-size: 25px; }
    .stat span { font-size: 12.5px; }

    .plan { padding: 26px 22px 22px; }
    .risk-row { padding: 16px 18px; gap: 10px 18px; }

    /* En móvil la captura ya es vertical y legible: la tarjeta flotante
       solo tapaba el panel y estorbaba. */
    .float-card { display: none; }

    .cta-movil { display: block; }
    /* La barra no debe tapar el último contenido de la página */
    body { padding-bottom: 78px; }
}

@media (max-width: 480px) {
    .pass-rules { grid-template-columns: 1fr; }
    .rating-badge { flex-direction: column; gap: 6px; text-align: center; }
    .hero-proof { flex-direction: column; text-align: center; gap: 6px; }
}

/* ============================================================
   ACCESIBILIDAD: menos movimiento
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   CTA de compra y WhatsApp flotante (bloque de conversión)
   ============================================================ */
.plan-cta-note {
    margin: .55rem 0 0;
    font-size: .82rem;
    line-height: 1.35;
    color: var(--muted, #4b5563);
    text-align: center;
}
.wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 999px;
    background: #25D366;
    color: #06301a;
    font-weight: 700;
    font-size: .92rem;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
}
.wa-float:hover { filter: brightness(1.05); }
@media (max-width: 520px) {
    .wa-float { right: 14px; bottom: 84px; padding: 13px; }
    .wa-float span { display: none; }
}

/* En escritorio el boton flotante tapaba CTAs del hero: ahi el WhatsApp ya
   esta en el pie y en la seccion de factura. Solo movil. */
@media (min-width: 900px) {
    .wa-float { display: none; }
}
