/* ============================================================
   LANDING.CSS — Página pública del sistema
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --azul:    #1a3c6e;
  --azul-h:  #142f58;
  --acento:  #e8a020;
  --texto:   #1e293b;
  --texto-m: #64748b;
  --fondo:   #f8fafc;
  --blanco:  #ffffff;
  --borde:   #e2e8f0;
  --radio:   12px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, sans-serif; color: var(--texto); background: var(--blanco); }

/* ── NAVBAR ─────────────────────────────────────────────────── */
.lnav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.lnav.scrolled { border-bottom-color: var(--borde); box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.lnav-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.lnav-marca { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; font-weight: 700; color: var(--azul); text-decoration: none; }
.lnav-icono { font-size: 1.3rem; }
.lnav-links { display: flex; align-items: center; gap: 1.8rem; }
.lnav-links a { color: var(--texto-m); text-decoration: none; font-size: .9rem; transition: color .15s; }
.lnav-links a:hover { color: var(--azul); }
.lnav-btn { background: var(--azul) !important; color: #fff !important; padding: .45rem 1.1rem; border-radius: 8px; font-weight: 600; font-size: .88rem !important; transition: background .2s !important; }
.lnav-btn:hover { background: var(--azul-h) !important; }
.lnav-menu { display: none; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--texto); }

.menu-movil { flex-direction: column; padding: 1rem 1.5rem 1.5rem; border-top: 1px solid var(--borde); gap: .8rem; background: #fff; }
.menu-movil a { color: var(--texto-m); text-decoration: none; font-size: .95rem; padding: .4rem 0; }
.menu-movil-btn { background: var(--azul); color: #fff !important; padding: .65rem 1.2rem; border-radius: 8px; font-weight: 600; text-align: center; }

/* ── HERO ────────────────────────────────────────────────────── */
.hero { background: linear-gradient(135deg, #f0f4f8 0%, #e8eef5 100%); padding: 5rem 1.5rem 4rem; display: flex; align-items: center; gap: 3rem; max-width: 1100px; margin: 0 auto; flex-wrap: wrap; }
.hero-inner { flex: 1; min-width: 300px; }
.hero-badge { display: inline-block; background: #dbeafe; color: #1d4ed8; font-size: .78rem; font-weight: 700; padding: .3rem .9rem; border-radius: 20px; margin-bottom: 1.2rem; }
.hero-titulo { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--azul); line-height: 1.2; margin-bottom: 1rem; }
.hero-sub { color: var(--texto-m); font-size: 1.05rem; line-height: 1.7; margin-bottom: 2rem; max-width: 500px; }
.hero-botones { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.btn-hero-primario { background: var(--azul); color: #fff; text-decoration: none; padding: .75rem 1.8rem; border-radius: 10px; font-weight: 700; font-size: 1rem; transition: background .2s, transform .1s; }
.btn-hero-primario:hover  { background: var(--azul-h); transform: translateY(-1px); }
.btn-hero-sec { color: var(--azul); text-decoration: none; padding: .75rem 1.5rem; border-radius: 10px; font-weight: 600; border: 1.5px solid var(--azul); transition: background .2s; }
.btn-hero-sec:hover { background: #eff6ff; }

.hero-stats { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.hstat { display: flex; flex-direction: column; align-items: center; }
.hstat strong { font-size: 1.4rem; font-weight: 800; color: var(--azul); }
.hstat span { font-size: .75rem; color: var(--texto-m); }
.hstat-sep { width: 1px; height: 32px; background: var(--borde); }

/* ── MOCKUP ──────────────────────────────────────────────────── */
.hero-mockup { flex: 1; min-width: 280px; max-width: 520px; }
.mockup-ventana { background: #fff; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.12); overflow: hidden; border: 1px solid var(--borde); }
.mockup-barra { background: #f1f5f9; padding: .6rem 1rem; display: flex; align-items: center; gap: .5rem; border-bottom: 1px solid var(--borde); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #ef4444; }
.dot.a { background: #f59e0b; }
.dot.v { background: #10b981; }
.mockup-url { font-size: .72rem; color: var(--texto-m); margin-left: .5rem; background: #fff; padding: .15rem .6rem; border-radius: 6px; border: 1px solid var(--borde); }
.mockup-nav { background: var(--azul); color: #fff; padding: .5rem 1rem; font-size: .82rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.mockup-badge { background: #dcfce7; color: #15803d; font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 10px; }
.mockup-body { display: flex; height: 240px; }
.mockup-sidebar { width: 140px; background: #f8fafc; border-right: 1px solid var(--borde); padding: .5rem; overflow: hidden; flex-shrink: 0; }
.ms-item { font-size: .68rem; padding: .3rem .5rem; border-radius: 5px; color: var(--texto-m); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-item.activo { color: #15803d; }
.ms-item.actual { background: #eff6ff; color: var(--azul); font-weight: 600; }
.ms-progress { background: #e2e8f0; border-radius: 3px; height: 4px; margin: .8rem .3rem .2rem; }
.ms-bar { background: linear-gradient(90deg, var(--azul), var(--acento)); border-radius: 3px; height: 4px; transition: width .4s; }
.ms-pct { font-size: .65rem; color: var(--texto-m); text-align: center; }
.mockup-editor { flex: 1; padding: .8rem; overflow: hidden; }
.mockup-toolbar { display: flex; gap: .6rem; font-size: .65rem; color: var(--texto-m); background: #f8fafc; padding: .3rem .5rem; border-radius: 5px; margin-bottom: .6rem; border: 1px solid var(--borde); }
.mockup-titulo-sec { font-size: .75rem; font-weight: 700; color: var(--azul); text-align: center; margin-bottom: .6rem; }
.linea { height: 7px; background: #e2e8f0; border-radius: 4px; margin-bottom: .35rem; }
.l100 { width: 100%; }
.l90  { width: 90%; }
.l95  { width: 95%; }
.l85  { width: 85%; }
.l70  { width: 70%; }

/* ── SECCIONES ───────────────────────────────────────────────── */
.seccion { padding: 5rem 1.5rem; }
.seccion.gris { background: var(--fondo); }
.sec-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.sec-badge { display: inline-block; background: #fef9c3; color: #a16207; font-size: .78rem; font-weight: 700; padding: .3rem .9rem; border-radius: 20px; margin-bottom: 1rem; }
.sec-titulo { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--azul); margin-bottom: .8rem; }
.sec-sub { color: var(--texto-m); font-size: 1rem; line-height: 1.7; max-width: 580px; margin: 0 auto 2.5rem; }

/* ── UNIVERSIDADES ───────────────────────────────────────────── */
.unis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; text-align: left; }
.uni-card { background: #fff; border: 1.5px solid var(--borde); border-radius: var(--radio); padding: .9rem; display: flex; align-items: center; gap: .8rem; transition: box-shadow .2s, transform .2s; }
.uni-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-2px); }
.uni-logo { width: 48px; height: 48px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .65rem; font-weight: 800; letter-spacing: .03em; flex-shrink: 0; text-align: center; line-height: 1.2; padding: .2rem; }
.uni-info { display: flex; flex-direction: column; gap: .2rem; }
.uni-tipo { font-size: .68rem; font-weight: 700; padding: .1rem .5rem; border-radius: 10px; display: inline-block; width: fit-content; }
.uni-tipo.nacional { background: #dcfce7; color: #15803d; }
.uni-tipo.privada  { background: #dbeafe; color: #1d4ed8; }
.uni-desc { font-size: .7rem; color: var(--texto-m); }

/* ── FEATURES ────────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; text-align: left; }
.feat-card { background: #fff; border: 1.5px solid var(--borde); border-radius: var(--radio); padding: 1.4rem; transition: box-shadow .2s; }
.feat-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.07); }
.feat-icono { font-size: 1.8rem; margin-bottom: .8rem; }
.feat-card h3 { font-size: .95rem; font-weight: 700; color: var(--azul); margin-bottom: .5rem; }
.feat-card p  { font-size: .85rem; color: var(--texto-m); line-height: 1.6; }

/* ── PASOS ───────────────────────────────────────────────────── */
.pasos-grid { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.paso-card { background: #fff; border: 1.5px solid var(--borde); border-radius: var(--radio); padding: 1.5rem; flex: 1; min-width: 160px; max-width: 220px; text-align: center; }
.paso-num { width: 44px; height: 44px; background: var(--azul); color: #fff; border-radius: 50%; font-size: 1.1rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto .8rem; }
.paso-card h3 { font-size: .95rem; font-weight: 700; color: var(--azul); margin-bottom: .5rem; }
.paso-card p  { font-size: .82rem; color: var(--texto-m); line-height: 1.6; }
.paso-flecha  { font-size: 1.5rem; color: var(--borde); align-self: center; flex-shrink: 0; }

/* ── ROLES ───────────────────────────────────────────────────── */
.roles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; text-align: left; }
.rol-card { background: #fff; border: 1.5px solid var(--borde); border-radius: var(--radio); padding: 1.5rem; position: relative; }
.rol-card.destacado { border-color: var(--azul); }
.rol-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--azul); color: #fff; font-size: .72rem; font-weight: 700; padding: .2rem .8rem; border-radius: 20px; white-space: nowrap; }
.rol-icono { font-size: 2rem; margin-bottom: .8rem; }
.rol-card h3 { font-size: 1rem; font-weight: 700; color: var(--azul); margin-bottom: .8rem; }
.rol-card ul { list-style: none; }
.rol-card li { font-size: .85rem; color: var(--texto-m); padding: .3rem 0; border-bottom: 1px solid var(--fondo); display: flex; align-items: center; gap: .5rem; }
.rol-card li::before { content: '✓'; color: #10b981; font-weight: 700; font-size: .8rem; flex-shrink: 0; }

/* ── CTA FINAL ───────────────────────────────────────────────── */
.cta-final { background: var(--azul); padding: 5rem 1.5rem; text-align: center; }
.cta-inner  { max-width: 600px; margin: 0 auto; }
.cta-final h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; margin-bottom: .8rem; }
.cta-final p  { color: rgba(255,255,255,.75); font-size: 1rem; margin-bottom: 2rem; }
.btn-cta { background: var(--acento); color: #fff; text-decoration: none; padding: .9rem 2.2rem; border-radius: 10px; font-weight: 700; font-size: 1rem; display: inline-block; transition: background .2s, transform .1s; }
.btn-cta:hover { background: #d4911c; transform: translateY(-1px); }

/* ── FOOTER ──────────────────────────────────────────────────── */
.lfooter { background: #0f1f3d; padding: 2rem 1.5rem; }
.lfooter-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.lfooter-marca { color: #fff; font-weight: 700; font-size: .95rem; }
.lfooter-links { display: flex; gap: 1.5rem; }
.lfooter-links a { color: rgba(255,255,255,.5); text-decoration: none; font-size: .82rem; transition: color .15s; }
.lfooter-links a:hover { color: #fff; }
.lfooter-copy { color: rgba(255,255,255,.35); font-size: .75rem; width: 100%; text-align: center; margin-top: .5rem; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { flex-direction: column; padding: 3rem 1.2rem 2.5rem; gap: 2rem; }
  .hero-mockup { max-width: 100%; }
  .lnav-links { display: none; }
  .lnav-menu  { display: block; }
  .pasos-grid { flex-direction: column; align-items: center; }
  .paso-flecha { transform: rotate(90deg); }
  .lfooter-inner { flex-direction: column; text-align: center; }
  .lfooter-links { justify-content: center; }
}
