/* ============================================================
   ds-landing.css — landing pública (login.asp)
   Depende de ds-tokens.css. Traducción del mockup
   "Ciberliga Design System/ui_kits/website/index.html".
   Se carga DESPUÉS de bootstrap.css para ganar en cascada.
   ============================================================ */

:root { --lp-maxw: 1180px; }

html { scroll-behavior: smooth; }
body.lp {
  margin: 0;
  background: var(--surface-card);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
}
body.lp h1, body.lp h2, body.lp h3, body.lp h4, body.lp h5 { font-family: var(--font-display); margin: 0; }
body.lp a { color: var(--link); text-decoration: none; }
body.lp a:hover { color: var(--link-hover); text-decoration: none; }
body.lp img { max-width: 100%; }

.lp-wrap { max-width: var(--lp-maxw); margin: 0 auto; padding: 0 24px; }
.lp .ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; flex: none; }

.lp .btn { display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 26px; border-radius: var(--radius-md); font-weight: 700; font-size: 15px; cursor: pointer; border: 1px solid transparent; transition: transform var(--dur-fast) var(--ease-snap), background var(--dur-fast); white-space: nowrap; text-decoration: none; line-height: 1; }
.lp .btn:active { transform: scale(0.97); }
.lp .btn:focus { outline: none; }
.lp .btn-cta { background: var(--cta); color: #fff; box-shadow: var(--shadow-cta); }
.lp .btn-cta:hover { background: var(--cta-hover); color: #fff; }
.lp .btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.4); }
.lp .btn-ghost-light:hover { background: rgba(255,255,255,.16); color: #fff; }
.lp .btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* NAV */
.lp-nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--border-subtle); }
.lp-nav-in { display: flex; align-items: center; gap: 28px; height: 70px; }
.lp-nav-links { display: flex; gap: 26px; margin-left: 18px; }
.lp-nav-links a { color: var(--text-secondary); font-weight: 600; font-size: 14.5px; }
.lp-nav-links a:hover { color: var(--accent); }
.lp-nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.lp-nav-login { display: inline-flex; align-items: center; gap: 7px; color: var(--text-primary); font-weight: 700; font-size: 14.5px; cursor: pointer; }
.lp-nav-login:hover { color: var(--accent); }
.lp-aviso { display: none; color: var(--danger); font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.lp-mant { display: inline-flex; align-items: center; gap: 8px; color: var(--warning); font-weight: 700; font-size: 14px; }

/* Modal de login */
.lp-lmodal-bg { position: fixed; inset: 0; background: rgba(12,22,34,.55); backdrop-filter: blur(3px); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; }
.lp-lmodal-bg.open { display: flex; }
.lp-lmodal { background: #fff; border-radius: 16px; width: 100%; max-width: 400px; padding: 30px; box-shadow: 0 40px 90px rgba(8,30,60,.4); position: relative; }
.lp-lmodal h3 { font-size: var(--text-lg); font-weight: 900; margin-bottom: 4px; }
.lp-lmodal .msub { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.lp-lmodal .mx { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: none; background: var(--surface-app); border-radius: 8px; cursor: pointer; color: var(--text-secondary); font-size: 15px; }
.lp-lmodal .forgot { display: block; text-align: right; font-size: 13px; margin: -4px 0 12px; cursor: pointer; }
.lp-lmodal .btn-cta { width: 100%; justify-content: center; }
.lp-lmodal .swap { text-align: center; font-size: 13.5px; color: var(--text-secondary); margin-top: 16px; }
.lp-lmodal .swap a { font-weight: 700; cursor: pointer; color: var(--link); }

/* Acceso con Google */
.lp-gdivider { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: var(--text-faint); font-size: 12px; text-transform: uppercase; letter-spacing: var(--tracking-wider); }
.lp-gdivider::before, .lp-gdivider::after { content: ""; flex: 1; height: 1px; background: var(--border-subtle); }
.lp-gbtn { display: flex; justify-content: center; min-height: 44px; }

.lp-burger { display: none; width: 42px; height: 38px; border: 1px solid var(--border-default); background: #fff; border-radius: 8px; cursor: pointer; align-items: center; justify-content: center; color: var(--text-primary); padding: 0; }
.lp-burger .ic { width: 22px; height: 22px; }

/* Menú móvil */
.lp-menu-bg { position: fixed; inset: 0; background: rgba(12,22,34,.4); z-index: 998; display: none; }
.lp-menu-bg.open { display: block; }
.lp-mmenu { position: fixed; top: 0; right: 0; bottom: 0; width: min(82vw, 320px); background: #fff; z-index: 999; box-shadow: -20px 0 60px rgba(8,30,60,.3); transform: translateX(100%); transition: transform .25s var(--ease-out); display: flex; flex-direction: column; padding: 20px 24px; overflow-y: auto; }
.lp-mmenu.open { transform: none; }
.lp-mmenu .mclose { align-self: flex-end; width: 38px; height: 38px; border: none; background: var(--surface-app); border-radius: 8px; font-size: 17px; cursor: pointer; color: var(--text-secondary); margin-bottom: 8px; }
.lp-mmenu > a { padding: 13px 6px; font-weight: 700; color: var(--text-primary); border-bottom: 1px solid var(--border-subtle); cursor: pointer; }
.lp-mmenu .btn { margin-top: 16px; justify-content: center; }
.lp-mmenu .lbtn2 { height: 44px; background: var(--accent); color: #fff; border: none; border-radius: var(--radius-md); font-weight: 700; font-size: 15px; cursor: pointer; margin-top: 16px; }

/* HERO */
.lp-hero { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(46,204,113,.22), transparent 60%), linear-gradient(160deg, #3c8dbc 0%, #2c6a93 48%, #234e6b 100%); }
.lp-hero::before { content: ""; position: absolute; inset: 0; opacity: .10; pointer-events: none; background-image: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 96px); }
.lp-hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-top: 76px; padding-bottom: 92px; }
.lp-hero h1 { font-size: var(--text-4xl); font-weight: 900; line-height: 1.03; letter-spacing: var(--tracking-tight); color: #fff; margin: 16px 0 18px; }
.lp-hero h1 .hl { color: #7fe3a8; }
.lp-hero .lead { font-size: var(--text-md); line-height: 1.5; color: rgba(255,255,255,.86); max-width: 500px; margin: 0; }
.lp-eyebrow { display: inline-block; color: #aee0ff; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: var(--tracking-label); }
.lp-hero-cta { display: flex; gap: 14px; margin: 28px 0 16px; flex-wrap: wrap; }
.lp-hero-note { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.72); font-size: 13.5px; }
.lp-hero-note .ic { color: #7fe3a8; }

/* Marco de navegador para capturas */
.lp-frame { background: #fff; border-radius: 12px; box-shadow: 0 30px 70px rgba(10,30,55,.35); overflow: hidden; border: 1px solid rgba(255,255,255,.5); }
.lp-frame-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #e9edf2; border-bottom: 1px solid #dfe4ea; }
.lp-frame-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.lp-frame-url { margin-left: 12px; font-size: 12px; color: #8a93a2; background: #fff; border-radius: 5px; padding: 3px 12px; font-weight: 600; }
.lp-frame img { display: block; width: 100%; }

/* BANDA DE VALORES */
.lp-values { background: var(--navy-800); color: #fff; }
.lp-values-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 30px; padding-bottom: 30px; }
.lp-val { display: flex; align-items: center; gap: 13px; }
.lp-val .ic { width: 26px; height: 26px; color: #7fe3a8; }
.lp-val .vt { font-weight: 800; font-size: 16px; }
.lp-val .vs { font-size: 12.5px; color: rgba(255,255,255,.6); }
.lp-val + .lp-val { border-left: 1px solid rgba(255,255,255,.08); padding-left: 20px; }

/* SECCIONES */
.lp-section { padding: 92px 0; }
.lp-section-head { text-align: center; max-width: 660px; margin: 0 auto 56px; }
.lp-section-head h2 { font-size: var(--text-2xl); font-weight: 900; letter-spacing: var(--tracking-tight); }
.lp-section-head p { margin: 14px 0 0; font-size: var(--text-md); color: var(--text-secondary); }
.lp-section-head .lp-eyebrow { color: var(--accent); }

/* FEATURES con capturas */
.lp-feats { display: flex; flex-direction: column; gap: 84px; }
.lp-feat { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lp-feat.rev .lp-feat-media { order: 2; }
.lp-feat-tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: var(--radius-pill); }
.lp-feat-tag .ic { width: 15px; height: 15px; }
.lp-feat h3 { font-size: var(--text-xl); font-weight: 900; margin: 16px 0 12px; letter-spacing: -0.01em; }
.lp-feat > div > p { color: var(--text-secondary); font-size: var(--text-md); line-height: 1.55; margin: 0; }
.lp-feat ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.lp-feat li { display: flex; align-items: center; gap: 11px; font-weight: 600; color: var(--text-primary); font-size: 15px; }
.lp-feat li .ic { color: var(--cta); width: 18px; height: 18px; }
.lp-feat-media { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border-default); background: #fff; }
.lp-feat-media img { display: block; width: 100%; }

/* CÓMO FUNCIONA */
.lp-how { background: var(--surface-app); }
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.lp-step { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: 32px 28px; box-shadow: var(--shadow-sm); }
.lp-step-n { font-family: var(--font-pixel); font-size: 18px; color: var(--accent); }
.lp-step-ic { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; margin: 16px 0; }
.lp-step-ic .ic { width: 22px; height: 22px; }
.lp-step h4 { font-size: var(--text-lg); font-weight: 800; margin-bottom: 8px; }
.lp-step p { color: var(--text-secondary); font-size: 15px; line-height: 1.5; margin: 0; }

/* REGISTRO */
.lp-cta-band { background: linear-gradient(135deg, #27ae60, #1e8e50); color: #fff; }
.lp-cta-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.lp-cta-in h2 { font-size: var(--text-2xl); font-weight: 900; color: #fff; letter-spacing: var(--tracking-tight); }
.lp-cta-in > div > p { margin: 14px 0 0; font-size: var(--text-md); color: rgba(255,255,255,.9); max-width: 460px; }
.lp-signup { background: #fff; border-radius: var(--radius-xl); padding: 30px; box-shadow: 0 30px 70px rgba(8,40,25,.35); color: var(--text-primary); }
.lp-signup h3 { font-size: var(--text-lg); font-weight: 900; margin-bottom: 4px; }
.lp-signup .sub { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.lp-field { margin-bottom: 14px; }
.lp-field label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-wider); color: var(--text-muted); margin-bottom: 6px; }
.lp-field input, .lp-field select { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--border-default); border-radius: var(--radius-md); font-family: inherit; font-size: 15px; color: var(--text-primary); background: var(--surface-hover); box-shadow: none; }
.lp-field input:focus, .lp-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: #fff; }
.lp-signup .btn-cta { width: 100%; justify-content: center; margin-top: 6px; }
.lp-signup .legal { margin-top: 14px; font-size: 12px; color: var(--text-faint); text-align: center; }
.lp-signup .contenidoreg { font-size: 15px; line-height: 1.6; }
.lp-signup .contenidoreg .btn-reenviar { margin: 6px 0; }

/* FOOTER */
.lp-footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding: 64px 0 30px; }
.lp-footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.lp-footer p { font-size: 14px; line-height: 1.6; margin: 16px 0 0; max-width: 280px; }
.lp-footer h5 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: var(--tracking-label); margin-bottom: 16px; }
.lp-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.lp-footer ul a { color: rgba(255,255,255,.66); font-size: 14.5px; }
.lp-footer ul a:hover { color: #7fe3a8; }
.lp-socials { text-align: center; padding-top: 30px; }
.lp-socials .h { color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 14px; margin-bottom: 18px; }
.lp-socials a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); color: #fff; margin: 0 6px; font-size: 17px; transition: all var(--dur-fast); }
.lp-socials a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); color: #fff; }
.lp-copy { text-align: center; color: rgba(255,255,255,.4); font-size: 13px; margin-top: 30px; }

/* Modal contraseña olvidada (estructura bootstrap, piel DS) */
.lp .modal-content { border: none; border-radius: 9px; box-shadow: 0 16px 54px rgba(0,0,0,.32); overflow: hidden; }
.lp .modal-header { padding: 15px 20px; color: #fff; border-bottom: none; background: var(--accent); }
.lp .modal-header .modal-title { font-size: 17px; font-weight: 700; }
.lp .modal-header .close { color: #fff; opacity: 1; text-shadow: none; background: rgba(255,255,255,.15); width: 28px; height: 28px; border-radius: 6px; margin: 0; font-size: 18px; line-height: 1; }
.lp .modal-body { padding: 20px; }
.lp .modal-footer { padding: 14px 20px; background: var(--surface-app); border-top: 1px solid var(--border-subtle); }
.lp .modal-body h3 { font-size: 15px; font-weight: 700; text-align: center; margin-bottom: 16px; color: var(--text-primary); }
.lp .modal .form-control { height: 44px; border-radius: var(--radius-md); border-color: var(--border-default); box-shadow: none; }
.lp .modal .btn-success { background: var(--cta); border-color: var(--cta); border-radius: var(--radius-md); }
.lp .modal .btn-success:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.lp .modal .btn-default { border-radius: var(--radius-md); }

@media (max-width: 940px) {
  .lp-hero-in, .lp-cta-in { grid-template-columns: 1fr; gap: 40px; }
  .lp-values-in { grid-template-columns: 1fr 1fr; }
  .lp-val + .lp-val { border-left: none; padding-left: 0; }
  .lp-feat, .lp-feat.rev .lp-feat-media { grid-template-columns: 1fr; order: 0; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-footer-top { grid-template-columns: 1fr 1fr; }
  .lp-nav-links { display: none; }
  .lp-nav-login { display: none; }
  .lp-burger { display: inline-flex; }
  .lp-hero h1 { font-size: var(--text-3xl); }
  .lp-hero-in { padding-top: 56px; padding-bottom: 64px; }
  .lp-section { padding: 64px 0; }
}

/* Móvil: las capturas van a sangre (a 390px cada píxel de ancho cuenta);
   el texto y las tarjetas conservan su aire lateral */
@media (max-width: 640px) {
  .lp-wrap { padding: 0 20px; }

  .lp-feat-media, .lp-frame { margin-left: -20px; margin-right: -20px; border-radius: 0; border-left: none; border-right: none; }

  .lp-hero-in { gap: 36px; padding-top: 44px; padding-bottom: 48px; }
  .lp-hero h1 { font-size: 2.15rem; }
  .lp-hero .lead { font-size: 1rem; }
  .lp-hero-cta { flex-direction: column; margin: 24px 0 14px; }
  .lp-hero-cta .btn { width: 100%; justify-content: center; }

  .lp-values-in { gap: 16px 12px; padding-top: 24px; padding-bottom: 24px; }
  .lp-val .vt { font-size: 14.5px; }
  .lp-val .vs { font-size: 11.5px; }
  .lp-val .ic { width: 22px; height: 22px; }

  .lp-section { padding: 52px 0; }
  .lp-section-head { margin-bottom: 36px; }
  .lp-section-head h2 { font-size: var(--text-xl); }
  .lp-feats { gap: 52px; }
  .lp-feat { gap: 20px; }
  .lp-feat h3 { font-size: var(--text-lg); margin-top: 12px; }

  .lp-steps { gap: 16px; }
  .lp-step { padding: 24px 22px; }

  .lp-cta-in { padding-top: 48px; padding-bottom: 48px; gap: 32px; }
  .lp-cta-in h2 { font-size: var(--text-xl); }
  .lp-signup { padding: 24px 20px; }

  .lp-footer { padding: 44px 0 24px; }
  .lp-footer-top { gap: 24px; padding-bottom: 28px; }
}
