/* ═══════════════════════════════════════════════════════════
   landing.css — Estilos exclusivos de la página de inicio
   No afecta login.php ni index.php
   ═══════════════════════════════════════════════════════════ */

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body.landing-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #06102a;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── Variables ──────────────────────────────────────────────── */
:root {
    --navy:        #06102a;
    --navy-mid:    #0d2361;
    --blue:        #1a3fa8;
    --blue-light:  #4f8ef7;
    --whatsapp:    #25D366;
    --whatsapp-dk: #128C7E;
    --text-muted:  rgba(255,255,255,0.55);
    --glass-bg:    rgba(255,255,255,0.05);
    --glass-border:rgba(255,255,255,0.10);
    --radius:      18px;
    --radius-sm:   12px;
}

/* ══════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════ */
.l-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}
.l-nav.scrolled {
    background: rgba(6,16,42,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.07);
}

.l-nav-logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    text-decoration: none;
}
.l-nav-logo span { color: var(--blue-light); }

.l-nav-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    padding: 9px 22px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    backdrop-filter: blur(8px);
}
.l-nav-btn:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.28);
    color: #fff;
    text-decoration: none;
}

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */
.l-hero {
    min-height: 100vh;
    min-height: 100dvh;   /* Safari iOS: 100vh no descuenta la barra URL */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

/* Fondo gradiente animado */
.l-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 25% 30%, rgba(79,142,247,0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 70%, rgba(26,63,168,0.25) 0%, transparent 55%),
        linear-gradient(160deg, #06102a 0%, #0d2361 50%, #06102a 100%);
    animation: heroBg 8s ease-in-out infinite alternate;
}

@keyframes heroBg {
    0%   { opacity: 1; }
    100% { opacity: 0.85; filter: hue-rotate(10deg); }
}

/* Orbes decorativos */
.l-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
}
.l-hero-orb-1 {
    width: 500px; height: 500px;
    background: #4f8ef7;
    top: -100px; left: -100px;
    animation: orbFloat 10s ease-in-out infinite alternate;
}
.l-hero-orb-2 {
    width: 400px; height: 400px;
    background: #1a3fa8;
    bottom: -80px; right: -80px;
    animation: orbFloat 12s ease-in-out infinite alternate-reverse;
}

@keyframes orbFloat {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(40px, 30px); }
}

.l-hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.l-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(79,142,247,0.12);
    border: 1px solid rgba(79,142,247,0.25);
    color: #7eb8f7;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 28px;
}

.l-hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.10;
    letter-spacing: -1.5px;
    margin-bottom: 22px;
}
.l-hero-title em {
    font-style: normal;
    background: linear-gradient(90deg, #7eb8f7 0%, #4f8ef7 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.l-hero-sub {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 520px;
    margin: 0 auto 40px;
}

.l-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.l-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, #1a3fa8 0%, #2554c7 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(26,63,168,0.45);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.l-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(26,63,168,0.55);
    color: #fff;
    text-decoration: none;
    opacity: 0.92;
}

.l-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.20);
    color: rgba(255,255,255,0.80);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.l-btn-ghost:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.35);
    color: #fff;
    text-decoration: none;
}

/* Stats bajo el hero */
.l-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 64px;
    flex-wrap: wrap;
}
.l-stat {
    text-align: center;
}
.l-stat-num {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
}
.l-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 0.2px;
}
.l-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.12);
}

/* ══════════════════════════════════════════════════════════════
   SECCIÓN PROBLEMA
   ══════════════════════════════════════════════════════════════ */
.l-problem {
    padding: 80px 24px;
    text-align: center;
    position: relative;
}

.l-problem-inner {
    max-width: 680px;
    margin: 0 auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 48px 40px;
    backdrop-filter: blur(10px);
}

.l-problem-icon {
    font-size: 42px;
    margin-bottom: 20px;
}

.l-problem-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.l-problem-text {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════
   SECCIÓN CARACTERÍSTICAS
   ══════════════════════════════════════════════════════════════ */
.l-features {
    padding: 80px 24px 100px;
}

.l-section-label {
    text-align: center;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--blue-light);
    margin-bottom: 14px;
}
.l-section-title {
    text-align: center;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
}
.l-section-sub {
    text-align: center;
    font-size: 16px;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 56px;
    line-height: 1.6;
}

.l-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.l-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: transform 0.25s, border-color 0.25s, background 0.25s;
    backdrop-filter: blur(8px);
}
.l-card:hover {
    transform: translateY(-5px);
    border-color: rgba(79,142,247,0.30);
    background: rgba(79,142,247,0.06);
}

.l-card-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(79,142,247,0.20) 0%, rgba(26,63,168,0.20) 100%);
    border: 1px solid rgba(79,142,247,0.20);
}

.l-card-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.l-card-text {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════════
   SECCIÓN CICLO (cómo funciona)
   ══════════════════════════════════════════════════════════════ */
.l-cycle {
    padding: 80px 24px;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.l-cycle-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.l-step {
    flex: 1;
    min-width: 160px;
    text-align: center;
    padding: 0 16px;
    position: relative;
}

.l-step:not(:last-child)::after {
    display: none;
}

.l-step-num {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 14px;
}

.l-step-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.l-step-text {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════
   GRID DE ACOMPAÑAMIENTO
   ══════════════════════════════════════════════════════════════ */
.l-accomp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 860px;
    margin: 0 auto;
}

.l-accomp-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 28px 26px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: transform 0.25s, border-color 0.25s, background 0.25s;
    backdrop-filter: blur(8px);
}
.l-accomp-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79,142,247,0.28);
    background: rgba(79,142,247,0.05);
}

/* Tarjeta destacada — ocupa todo el ancho */
.l-accomp-highlight {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(26,63,168,0.22) 0%, rgba(79,142,247,0.10) 100%);
    border-color: rgba(79,142,247,0.28);
    padding: 32px 30px;
}
.l-accomp-highlight:hover {
    background: linear-gradient(135deg, rgba(26,63,168,0.30) 0%, rgba(79,142,247,0.15) 100%);
    border-color: rgba(79,142,247,0.45);
}
.l-accomp-highlight h3 { font-size: 19px; }

.l-accomp-icon {
    font-size: 30px;
    flex-shrink: 0;
    margin-top: 2px;
}

.l-accomp-body h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}
.l-accomp-body p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}


/* ══════════════════════════════════════════════════════════════
   CTA FINAL
   ══════════════════════════════════════════════════════════════ */
.l-cta {
    padding: 100px 24px;
    text-align: center;
}

.l-cta-box {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(26,63,168,0.25) 0%, rgba(79,142,247,0.10) 100%);
    border: 1px solid rgba(79,142,247,0.20);
    border-radius: 28px;
    padding: 60px 40px;
    backdrop-filter: blur(12px);
}

.l-cta-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 14px;
}

.l-cta-sub {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.6;
}

.l-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(37,211,102,0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}
.l-btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(37,211,102,0.45);
    color: #fff;
    text-decoration: none;
}
.l-btn-whatsapp svg {
    width: 22px; height: 22px;
    fill: #fff;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.l-footer {
    padding: 28px 24px;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 1000px;
    margin: 0 auto;
}

.l-footer-brand {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255,255,255,0.40);
}
.l-footer-brand span { color: var(--blue-light); }

.l-footer-copy {
    font-size: 12.5px;
    color: rgba(255,255,255,0.25);
}

/* ══════════════════════════════════════════════════════════════
   BOTÓN FLOTANTE WHATSAPP
   ══════════════════════════════════════════════════════════════ */
.l-whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(37,211,102,0.40);
    cursor: pointer;
    transition: box-shadow 0.3s;
}
.l-whatsapp-float:hover { box-shadow: 0 12px 40px rgba(37,211,102,0.55); }

.l-wf-icon {
    width: 58px; height: 58px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: width 0.3s;
}
.l-wf-icon svg { width: 28px; height: 28px; fill: #fff; }

.l-wf-label {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 0 20px 0 4px;
    white-space: nowrap;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width 0.4s ease, opacity 0.3s ease, padding 0.3s;
    line-height: 58px;
}

.l-whatsapp-float:hover .l-wf-label {
    max-width: 200px;
    opacity: 1;
    padding: 0 20px 0 4px;
}

/* Pulso */
.l-wf-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: rgba(37,211,102,0.35);
    animation: wfPulse 2.5s ease-out infinite;
    pointer-events: none;
}
@keyframes wfPulse {
    0%   { transform: scale(1); opacity: 0.6; }
    70%  { transform: scale(1.3); opacity: 0; }
    100% { opacity: 0; }
}

/* ══════════════════════════════════════════════════════════════
   ANIMACIONES DE ENTRADA (scroll)
   ══════════════════════════════════════════════════════════════ */
.l-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.l-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay escalonado para cards */
.l-fade-up:nth-child(1) { transition-delay: 0.05s; }
.l-fade-up:nth-child(2) { transition-delay: 0.15s; }
.l-fade-up:nth-child(3) { transition-delay: 0.25s; }
.l-fade-up:nth-child(4) { transition-delay: 0.35s; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
    /* Navbar */
    .l-nav { padding: 14px 16px; }
    .l-nav-logo { font-size: 18px; }
    .l-nav-btn { font-size: 12px; padding: 8px 14px; }

    /* Hero */
    .l-hero { padding: 90px 16px 50px; }
    .l-hero-title { font-size: clamp(28px, 8vw, 36px); letter-spacing: -0.8px; }
    .l-hero-sub { font-size: 15px; }
    .l-hero-actions { flex-direction: column; align-items: stretch; }
    .l-btn-primary, .l-btn-ghost { text-align: center; justify-content: center; padding: 14px 20px; }

    /* Stats */
    .l-hero-stats { gap: 16px; }
    .l-stat-divider { display: none; }
    .l-stat-num { font-size: 20px; }

    /* Problema */
    .l-problem-inner { padding: 28px 20px; }
    .l-problem-title { font-size: 20px; }

    /* Features */
    .l-features-grid { grid-template-columns: 1fr; gap: 14px; }

    /* Ciclo / acompañamiento */
    .l-cycle-steps { flex-direction: column; align-items: center; gap: 16px; }
    .l-step { min-width: 0; width: 100%; max-width: 320px; }
    .l-accomp-grid { grid-template-columns: 1fr; gap: 14px; }
    .l-accomp-highlight { grid-column: auto; }
    .l-accomp-card { padding: 22px 18px; }

    /* CTA */
    .l-cta-box { padding: 36px 20px; }
    .l-btn-whatsapp { font-size: 14px; padding: 14px 24px; width: 100%; justify-content: center; }

    /* Footer */
    .l-footer { justify-content: center; text-align: center; padding: 24px 16px; }

    /* WhatsApp flotante: label siempre visible en móvil (no hay hover en touch) */
    .l-wf-label { max-width: 160px; opacity: 1; padding: 0 16px 0 4px; }
    .l-whatsapp-float { bottom: 16px; right: 16px; }
}
