/* Ingreso del SIA (2026-09-26): pantalla dividida con panel de marca, modo claro/oscuro y diseño para celular.
   Sin imágenes: degradados, cuadrícula y ondas en CSS/SVG. */
.sl {
    --sl-bg: #f1f5fb;
    --sl-panel: #ffffff;
    --sl-text: #0f172a;
    --sl-text-2: #334155;
    --sl-muted: #64748b;
    --sl-border: #dbe3ee;
    --sl-input: #f8fafc;
    --sl-input-focus: #ffffff;
    --sl-primary: #2563eb;
    --sl-primary-2: #1d4ed8;
    --sl-ring: rgba(37, 99, 235, .22);
    --sl-shadow: 0 30px 60px -30px rgba(15, 23, 42, .35), 0 10px 25px -15px rgba(15, 23, 42, .18);
    --sl-err-bg: #fef2f2; --sl-err: #b91c1c; --sl-err-bd: #fecaca;
    --sl-warn-bg: #fffbeb; --sl-warn: #92400e; --sl-warn-bd: #fde68a;
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--sl-bg);
    color: var(--sl-text-2);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0px, 3vw, 40px);
    box-sizing: border-box;
}
[data-bs-theme="dark"] .sl {
    --sl-bg: #060b18;
    --sl-panel: #0f172a;
    --sl-text: #f1f5f9;
    --sl-text-2: #cbd5e1;
    --sl-muted: #94a3b8;
    --sl-border: #243049;
    --sl-input: #111c33;
    --sl-input-focus: #13203b;
    --sl-primary: #3b82f6;
    --sl-primary-2: #2563eb;
    --sl-ring: rgba(59, 130, 246, .35);
    --sl-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8);
    --sl-err-bg: rgba(239, 68, 68, .12); --sl-err: #fca5a5; --sl-err-bd: rgba(239, 68, 68, .3);
    --sl-warn-bg: rgba(245, 158, 11, .12); --sl-warn: #fcd34d; --sl-warn-bd: rgba(245, 158, 11, .3);
}
.sl *, .sl *::before, .sl *::after { box-sizing: border-box; }

.sl-wrap {
    width: 100%;
    max-width: 1180px;
    min-height: min(720px, calc(100dvh - 80px));
    display: grid;
    grid-template-columns: 1.08fr 1fr;
    background: var(--sl-panel);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--sl-shadow);
    border: 1px solid var(--sl-border);
}

/* ───────── Panel de marca ───────── */
.sl-brand {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 18% 12%, rgba(125, 211, 252, .55), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(99, 102, 241, .45), transparent 45%),
        linear-gradient(155deg, #3b82f6 0%, #2563eb 38%, #1d4ed8 70%, #1e3a8a 100%);
    isolation: isolate;
}
[data-bs-theme="dark"] .sl-brand {
    background:
        radial-gradient(circle at 18% 12%, rgba(56, 189, 248, .35), transparent 42%),
        radial-gradient(circle at 85% 30%, rgba(99, 102, 241, .35), transparent 45%),
        linear-gradient(155deg, #1d4ed8 0%, #1e40af 45%, #172554 100%);
}
.sl-grid {
    position: absolute; inset: 0; z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 30%, transparent 78%);
    mask-image: radial-gradient(ellipse at 50% 45%, #000 30%, transparent 78%);
}
.sl-orb {
    position: absolute; z-index: -1; border-radius: 50%;
    background: radial-gradient(circle, #e0f2fe 0 30%, rgba(186, 230, 253, .55) 31% 55%, transparent 56%);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, .06), 0 0 30px rgba(186, 230, 253, .6);
    animation: sl-flotar 9s ease-in-out infinite;
}
.sl-orb-1 { width: 34px; height: 34px; top: 9%; right: 16%; }
.sl-orb-2 { width: 22px; height: 22px; top: 56%; right: 7%; animation-delay: -3s; }
.sl-orb-3 { width: 28px; height: 28px; bottom: 26%; right: 24%; animation-delay: -6s; }
.sl-line {
    position: absolute; z-index: -1; height: 1px; width: 70%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform-origin: left center;
}
.sl-line-1 { top: 97%; left: -10%; width: 45%; transform: rotate(-32deg); opacity: .7; }
.sl-line-2 { top: 29%; left: 42%; width: 40%; transform: rotate(-32deg); opacity: .6; }
.sl-waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; z-index: -1; }
.sl-waves .w1 { fill: rgba(255, 255, 255, .10); }
.sl-waves .w2 { fill: rgba(56, 189, 248, .28); }
.sl-waves .w3 { fill: rgba(30, 58, 138, .55); }
[data-bs-theme="dark"] .sl-waves .w3 { fill: rgba(2, 6, 23, .55); }

.sl-brand-in {
    height: 100%;
    display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
    padding: clamp(28px, 4vw, 52px);
}
.sl-logo { display: flex; align-items: center; gap: .75rem; }
.sl-mark {
    width: 46px; height: 46px; border-radius: 14px; flex: none;
    display: grid; place-items: center; font-size: 1.25rem; color: #fff;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 20px -8px rgba(15, 23, 42, .5);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.sl-logo-txt { display: flex; flex-direction: column; line-height: 1.1; }
.sl-logo-txt strong { font-size: 1.15rem; letter-spacing: .06em; }
.sl-logo-txt small { font-size: .78rem; opacity: .85; letter-spacing: .02em; }

.sl-hero { max-width: 460px; }
.sl-kicker { margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 500; opacity: .92; letter-spacing: .01em; }
.sl-hero h1 {
    margin: 0; font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 700; line-height: 1.02;
    letter-spacing: .02em; text-transform: uppercase; text-shadow: 0 6px 30px rgba(15, 23, 42, .25);
}
.sl-bar { display: block; width: 48px; height: 4px; border-radius: 4px; background: #fff; margin: 1.1rem 0; opacity: .95; }
.sl-lead { margin: 0 0 1.4rem; font-size: .98rem; line-height: 1.6; opacity: .9; }
.sl-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.sl-feats li {
    display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.sl-copy { margin: 0; font-size: .78rem; opacity: .8; }

/* ───────── Panel del formulario ───────── */
.sl-panel {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 64px) 24px;
    background: var(--sl-panel);
}
.sl-card { width: 100%; max-width: 400px; }
.sl-card-head { text-align: center; margin-bottom: 1.5rem; }
.sl-mark-sm {
    margin: 0 auto .9rem; width: 52px; height: 52px; border-radius: 16px; font-size: 1.15rem;
    background: linear-gradient(145deg, var(--sl-primary), var(--sl-primary-2)); border: 0;
    box-shadow: 0 12px 24px -10px rgba(37, 99, 235, .7);
}
.sl-card-head h2 { margin: 0 0 .35rem; font-size: 1.65rem; font-weight: 700; color: var(--sl-primary); letter-spacing: -.01em; }
[data-bs-theme="dark"] .sl-card-head h2 { color: #93c5fd; }
.sl-card-head p { margin: 0; color: var(--sl-muted); font-size: .92rem; }

.sl-field { margin-bottom: 1.05rem; }
.sl-field label { display: block; margin-bottom: .4rem; font-size: .82rem; font-weight: 600; color: var(--sl-text-2); }
.sl-input { position: relative; }
.sl-input > i {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: var(--sl-muted); font-size: .95rem; pointer-events: none; transition: color .15s;
}
.sl-input input {
    width: 100%; height: 52px; padding: 0 48px 0 46px;
    font: inherit; font-size: 16px; color: var(--sl-text);
    background: var(--sl-input); border: 1px solid var(--sl-border); border-left: 4px solid var(--sl-primary);
    border-radius: 12px; outline: none;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.sl-input input::placeholder { color: var(--sl-muted); opacity: .75; }
.sl-input input:focus { background: var(--sl-input-focus); border-color: var(--sl-primary); box-shadow: 0 0 0 4px var(--sl-ring); }
.sl-input:focus-within > i { color: var(--sl-primary); }
.sl-input input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--sl-input) inset; -webkit-text-fill-color: var(--sl-text); caret-color: var(--sl-text); }
.sl-eye {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent;
    color: var(--sl-muted); cursor: pointer; display: grid; place-items: center;
}
.sl-eye:hover { color: var(--sl-primary); background: var(--sl-ring); }
.sl-eye:focus-visible, .sl-tema:focus-visible, .sl-btn:focus-visible { outline: 3px solid var(--sl-ring); outline-offset: 2px; }
.sl-caps { margin: .4rem 0 0; font-size: .78rem; color: var(--sl-warn); font-weight: 600; }
.sl-msg { margin: -.2rem 0 1rem; font-size: .85rem; color: var(--sl-err); font-weight: 600; }

.sl-btn {
    position: relative; width: 100%; height: 52px; margin-top: .4rem;
    border: 0; border-radius: 999px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    font: inherit; font-weight: 700; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; color: #fff;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 14px 28px -12px rgba(37, 99, 235, .75);
    transition: transform .15s, box-shadow .15s, filter .15s;
}
.sl-btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 18px 32px -12px rgba(37, 99, 235, .85); }
.sl-btn:active { transform: translateY(0); }
.sl-btn .fa-arrow-right { transition: transform .15s; }
.sl-btn:hover .fa-arrow-right { transform: translateX(3px); }
.sl-spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: sl-girar .7s linear infinite; }
.sl-btn.cargando { pointer-events: none; filter: saturate(.8); }
.sl-btn.cargando .fa-arrow-right { display: none; }
.sl-btn.cargando .sl-spin { display: inline-block; }

.sl-alert {
    position: relative; display: flex; gap: .6rem; align-items: flex-start;
    padding: .8rem 2.2rem .8rem .9rem; margin-bottom: 1.1rem; border-radius: 12px; font-size: .88rem; line-height: 1.45;
    border: 1px solid transparent;
}
.sl-alert > i { margin-top: .15rem; }
.sl-alert-err { background: var(--sl-err-bg); color: var(--sl-err); border-color: var(--sl-err-bd); }
.sl-alert-warn { background: var(--sl-warn-bg); color: var(--sl-warn); border-color: var(--sl-warn-bd); padding-right: .9rem; }
.sl-alert-x { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; border: 0; background: transparent; color: inherit; font-size: 1.2rem; line-height: 1; cursor: pointer; border-radius: 8px; opacity: .7; }
.sl-alert-x:hover { opacity: 1; }

.sl-help { margin: 1.4rem 0 0; text-align: center; font-size: .82rem; color: var(--sl-muted); line-height: 1.5; }
.sl-foot { margin: 2rem 0 0; font-size: .75rem; color: var(--sl-muted); text-align: center; }

.sl-tema {
    position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 12px;
    border: 1px solid var(--sl-border); background: var(--sl-panel); color: var(--sl-muted);
    cursor: pointer; display: grid; place-items: center; transition: color .15s, border-color .15s;
}
.sl-tema:hover { color: var(--sl-primary); border-color: var(--sl-primary); }
.sl-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Escritorio con poca altura (portátiles 1280×720): todo cabe sin desplazar */
@media (min-width: 992px) and (max-height: 800px) {
    .sl { padding: 16px; }
    .sl-wrap { min-height: calc(100dvh - 32px); }
    .sl-mark-sm { display: none; }
    .sl-panel { padding-top: 24px; padding-bottom: 16px; }
    .sl-card-head { margin-bottom: 1.1rem; }
    .sl-foot { margin-top: 1.2rem; }
}
@keyframes sl-flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes sl-girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .sl-orb, .sl-spin { animation: none; }
    .sl-btn, .sl-btn .fa-arrow-right { transition: none; }
}

/* ───────── Tableta ───────── */
@media (max-width: 991.98px) {
    .sl { padding: 0; align-items: stretch; }
    .sl-wrap { grid-template-columns: 1fr; grid-template-rows: auto 1fr; border-radius: 0; border: 0; box-shadow: none; min-height: 100dvh; max-width: none; }
    .sl-brand-in { gap: 1rem; padding: 22px 22px 64px; }
    .sl-hero { max-width: none; }
    .sl-kicker { font-size: .92rem; }
    .sl-hero h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
    .sl-bar { margin: .7rem 0; }
    .sl-lead, .sl-copy, .sl-line { display: none; }
    .sl-feats { display: none; }
    .sl-waves { height: 45%; }
    .sl-panel {
        margin-top: -40px; border-radius: 28px 28px 0 0; z-index: 1; justify-content: center;
        padding: 30px 20px calc(20px + env(safe-area-inset-bottom));
        box-shadow: 0 -12px 30px -18px rgba(15, 23, 42, .45);
    }
    .sl-card-head { margin-bottom: 1.2rem; }
    .sl-mark-sm { display: none; }
    .sl-tema { top: 14px; right: 14px; width: 38px; height: 38px; }
    .sl-card { margin-top: auto; margin-bottom: auto; }
    .sl-foot { margin-top: 1.5rem; }
}
/* Tableta vertical: portada más alta con el texto de bienvenida */
@media (min-width: 576px) and (max-width: 991.98px) and (min-height: 700px) {
    .sl-brand { min-height: 40vh; }
    .sl-brand-in { padding: 36px 44px 84px; justify-content: flex-start; gap: 2.2rem; }
    .sl-hero { max-width: 560px; }
    .sl-lead { display: block; margin-bottom: 1rem; }
    .sl-feats { display: flex; }
    .sl-panel { padding-top: 44px; }
}
/* ───────── Celular ───────── */
@media (max-width: 575.98px) {
    .sl-brand-in { padding: 18px 18px 58px; }
    .sl-mark { width: 40px; height: 40px; border-radius: 12px; font-size: 1.05rem; }
    .sl-orb-1 { width: 24px; height: 24px; }
    .sl-orb-2 { display: none; }
    .sl-card-head h2 { font-size: 1.4rem; }
    .sl-card-head p { font-size: .86rem; }
    .sl-card { margin-top: 12px; margin-bottom: auto; } /* en celular el formulario arranca arriba */
}
/* Pantallas bajas (celular acostado) */
@media (max-height: 560px) and (max-width: 991.98px) {
    .sl-hero .sl-kicker, .sl-bar { display: none; }
    .sl-brand-in { padding-bottom: 50px; }
}
@media print { .sl-brand, .sl-tema { display: none; } }
