/* Portada: estética de producto financiero, siempre oscura para el héroe */
.landing {
  --l-bg: #070b16;
  --l-surface: rgba(255, 255, 255, .045);
  --l-border: rgba(255, 255, 255, .09);
  --l-text: #e8ecf6;
  --l-muted: #93a0bb;
  --l-accent: #6d8bff;
  --l-accent-2: #22d3ee;
  --l-good: #34d399;
  --l-warn: #fbbf24;
  background: var(--l-bg);
  color: var(--l-text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
.landing::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(109, 139, 255, .28), transparent 60%),
    radial-gradient(700px 480px at 95% 10%, rgba(34, 211, 238, .16), transparent 60%),
    radial-gradient(800px 600px at 60% 110%, rgba(52, 211, 153, .10), transparent 60%);
  pointer-events: none;
}
.landing::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 75%);
  pointer-events: none;
}
.landing > * { position: relative; z-index: 1; }
.landing a { color: inherit; }

.l-nav { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; }
.l-brand { display: flex; align-items: center; gap: .65rem; font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
.l-logo {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--l-accent), var(--l-accent-2)); color: #06101f; font-size: 1.15rem;
  box-shadow: 0 8px 24px rgba(109, 139, 255, .35);
}
.l-brand small { display: block; font-weight: 500; color: var(--l-muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.l-nav-links { display: flex; gap: .5rem; align-items: center; }
.l-btn-ghost {
  border: 1px solid var(--l-border); background: var(--l-surface); color: var(--l-text);
  border-radius: 999px; padding: .45rem 1rem; font-size: .9rem; text-decoration: none; transition: background .15s, border-color .15s;
}
.l-btn-ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18); color: #fff; }

.l-hero { padding: 2.5rem 0 4rem; }
.l-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; border-radius: 999px;
  background: rgba(109, 139, 255, .12); border: 1px solid rgba(109, 139, 255, .3); color: #c7d2ff; font-size: .8rem; font-weight: 500;
}
.l-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--l-good); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); }
.l-title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; margin: 1.1rem 0 1rem; }
.l-title .grad { background: linear-gradient(90deg, #a5b4ff, var(--l-accent-2) 60%, var(--l-good)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.l-lead { color: var(--l-muted); font-size: 1.1rem; max-width: 34rem; }

.l-features { display: grid; gap: .75rem; margin-top: 1.75rem; max-width: 34rem; }
.l-feature { display: flex; gap: .85rem; align-items: flex-start; }
.l-feature .ic {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--l-surface); border: 1px solid var(--l-border); color: #b9c6ff;
}
.l-feature strong { display: block; font-weight: 600; }
.l-feature span { color: var(--l-muted); font-size: .92rem; }

/* tarjeta de acceso */
.l-card {
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  border: 1px solid var(--l-border); border-radius: 22px; padding: 1.75rem;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255,255,255,.06);
}
.l-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid var(--l-border); margin-bottom: 1.5rem; }
.l-tabs button {
  border: 0; background: transparent; color: var(--l-muted); padding: .6rem .5rem; border-radius: 10px; font-weight: 600; font-size: .92rem;
  display: flex; align-items: center; justify-content: center; gap: .45rem; transition: background .15s, color .15s;
}
.l-tabs button.active { background: rgba(255,255,255,.1); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.08) inset; }
.l-card h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .3rem; }
.l-card .sub { color: var(--l-muted); font-size: .92rem; margin-bottom: 1.25rem; }
.l-card label { font-size: .82rem; color: #c3cbe0; font-weight: 500; margin-bottom: .35rem; }
.l-input {
  position: relative;
}
.l-input i { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--l-muted); pointer-events: none; }
.l-card .form-control {
  background: rgba(3, 7, 18, .55); border: 1px solid rgba(255,255,255,.12); color: #fff; border-radius: 12px;
  padding: .8rem .95rem .8rem 2.6rem; font-size: 1rem;
}
.l-card .form-control::placeholder { color: #5f6b85; }
.l-card .form-control:focus { border-color: var(--l-accent); box-shadow: 0 0 0 4px rgba(109, 139, 255, .2); background: rgba(3, 7, 18, .7); }
.l-card .form-control.is-valid-rut { border-color: rgba(52, 211, 153, .7); }
.l-hint { font-size: .8rem; color: var(--l-muted); margin-top: .4rem; min-height: 1.2em; }
.l-hint.ok { color: var(--l-good); }
.l-hint.bad { color: #fca5a5; }
.l-submit {
  width: 100%; border: 0; border-radius: 12px; padding: .85rem 1rem; font-weight: 700; color: #06101f; margin-top: 1rem;
  background: linear-gradient(90deg, #8ea2ff, var(--l-accent-2)); box-shadow: 0 10px 30px rgba(34, 211, 238, .25);
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.l-submit:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 14px 36px rgba(34, 211, 238, .32); }
.l-submit.green { background: linear-gradient(90deg, #34d399, #22d3ee); }
.l-secure { display: flex; gap: .45rem; align-items: center; justify-content: center; color: var(--l-muted); font-size: .78rem; margin-top: 1rem; }
.l-card .alert { border-radius: 12px; font-size: .88rem; }

/* vista previa ilustrativa */
.l-preview {
  margin-top: 2.25rem; max-width: 34rem; border-radius: 18px; padding: 1.1rem 1.2rem;
  background: var(--l-surface); border: 1px solid var(--l-border);
}
.l-preview .head { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--l-muted); margin-bottom: .9rem; }
.l-preview .legend { display: flex; gap: .9rem; }
.l-preview .legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: .35rem; vertical-align: middle; }
.l-preview .legend .a::before { background: var(--l-accent); }
.l-preview .legend .b::before { background: rgba(109, 139, 255, .35); }
.l-bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; align-items: end; height: 110px; }
.l-bars div { border-radius: 7px 7px 3px 3px; background: rgba(109, 139, 255, .32); transform-origin: bottom; animation: grow 1s cubic-bezier(.2,.8,.2,1) both; }
.l-bars div:first-child { background: linear-gradient(180deg, var(--l-accent-2), var(--l-accent)); }
.l-bars div:nth-child(2) { animation-delay: .06s } .l-bars div:nth-child(3) { animation-delay: .12s }
.l-bars div:nth-child(4) { animation-delay: .18s } .l-bars div:nth-child(5) { animation-delay: .24s } .l-bars div:nth-child(6) { animation-delay: .3s }
.l-months { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; margin-top: .45rem; font-size: .72rem; color: var(--l-muted); text-align: center; text-transform: capitalize; }
@keyframes grow { from { transform: scaleY(0); opacity: .3; } to { transform: scaleY(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .l-bars div { animation: none; } }

/* pasos */
.l-steps { padding: 1rem 0 4rem; }
.l-steps h3 { font-size: 1.05rem; color: var(--l-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; margin-bottom: 1rem; }
.l-step { height: 100%; padding: 1.25rem; border-radius: 16px; background: var(--l-surface); border: 1px solid var(--l-border); }
.l-step .n { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: .85rem;
  background: rgba(109, 139, 255, .16); color: #c7d2ff; margin-bottom: .75rem; }
.l-step strong { display: block; margin-bottom: .25rem; }
.l-step span { color: var(--l-muted); font-size: .9rem; }
.l-footer { border-top: 1px solid var(--l-border); padding: 1.5rem 0 2rem; color: var(--l-muted); font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

.l-toast { position: fixed; top: 1rem; right: 1rem; z-index: 1080; max-width: 380px; }
.l-toast .alert { border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.4); }

@media (max-width: 991.98px) {
  .l-hero { padding-top: 1rem; }
  .l-nav-links .hide-sm { display: none; }
  .l-preview { display: none; }
  .l-lead { font-size: 1rem; }
}

/* portada simple (uso personal) */
.l-simple { display: flex; }
.l-center { width: 100%; max-width: 420px; margin: auto; padding: 3rem 16px; display: flex; flex-direction: column; align-items: center; }
.l-center .l-card { width: 100%; }
.l-center .l-brand { font-size: 1.1rem; }
.l-foot { color: var(--l-muted); font-size: .78rem; margin-top: 1.5rem; }
.l-center:has(.l-duo) { max-width: 880px; }
.l-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; width: 100%; }
.l-duo .l-card { display: flex; flex-direction: column; }
.l-duo .l-card form { margin-top: auto; }
.l-duo h2 { display: flex; align-items: center; gap: .5rem; }
@media (max-width: 767.98px) { .l-duo { grid-template-columns: 1fr; } }
/* captcha del login */
.l-captcha { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.l-captcha img { border-radius: 10px; height: 46px; border: 1px solid var(--l-border); }
.l-captcha input[type=text] { flex: 1; min-width: 120px; padding-left: .95rem !important; text-transform: uppercase; letter-spacing: .15em; }
.l-captcha-refresh { border: 1px solid var(--l-border); background: var(--l-surface); color: var(--l-text); border-radius: 10px; width: 40px; height: 46px; }
.l-captcha-refresh:hover { background: rgba(255,255,255,.1); }
