/* SDL · Inicio (2026-12-04) — plantilla glass */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.45 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--sdl-tinta); padding: 12px 16px 24px; overflow-x: hidden; }
button { font: inherit; cursor: pointer; color: inherit; }
a { color: var(--sdl-azul); text-decoration: none; }
.h-marco { max-width: 1440px; margin: 0 auto; }
.h-vacio { color: var(--sdl-suave); text-align: center; padding: 30px; }
/* cabecera */
.h-top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; position: sticky; top: 12px; z-index: 50; }
.h-top .tit h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.02em; } .h-top .tit small { color: var(--sdl-suave); font-size: 12.5px; }
.h-bus { position: relative; margin-left: auto; display: flex; align-items: center; gap: 8px; width: min(440px, 40vw); background: rgba(255,255,255,.7); border: 1px solid var(--sdl-linea); border-radius: 14px; padding: 8px 10px; color: var(--sdl-suave); }
.h-bus input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; font: inherit; font-size: 14px; color: var(--sdl-tinta); }
.h-bus kbd { font: 600 10.5px Inter, sans-serif; border: 1px solid var(--sdl-linea); border-radius: 6px; padding: 2px 5px; background: #fff; color: var(--sdl-suave); }
.h-res { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: rgba(255,255,255,.96); backdrop-filter: blur(20px); border: 1px solid var(--sdl-borde); border-radius: 18px; box-shadow: 0 24px 60px rgba(16,24,40,.18); padding: 6px; max-height: 60vh; overflow: auto; z-index: 60; }
.h-res a { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; color: var(--sdl-tinta); }
.h-res a:hover, .h-res a.sel { background: rgba(47,123,246,.08); } .h-res a small { display: block; color: var(--sdl-suave); font-size: 12px; } .h-res .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; }
.h-res .vac { padding: 14px; color: var(--sdl-suave); font-size: 13px; text-align: center; }
.h-ico { position: relative; width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--sdl-linea); background: rgba(255,255,255,.7); display: grid; place-items: center; color: var(--sdl-tinta); }
.h-ico i { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--sdl-rojo); color: #fff; font: 700 10.5px/18px Inter, sans-serif; font-style: normal; padding: 0 5px; } .h-ico i:empty { display: none; }
.h-yo { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border: 1px solid var(--sdl-linea); border-radius: 16px; background: rgba(255,255,255,.7); font-size: 13px; }
.h-yo .av { width: 34px; height: 34px; border-radius: 11px; background: #0f1115; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; } .h-yo b { display: block; font-size: 13px; } .h-yo small { color: var(--sdl-suave); font-size: 11.5px; }
/* rejilla */
.h-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.h-card { padding: 18px 20px; min-width: 0; position: relative; }
.h-perf { grid-column: span 8; } .h-ia { grid-column: span 4; grid-row: span 2; display: flex; flex-direction: column; }
.h-sis { grid-column: span 4; } .h-dist { grid-column: span 4; } .h-ven { grid-column: span 12; }
.h-card h2 { margin: 0; font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 10px; } .h-card h2 small { font-weight: 400; color: var(--sdl-suave); font-size: 12.5px; }
.h-mas { margin-left: auto; border: 0; background: rgba(15,17,21,.05); width: 30px; height: 30px; border-radius: 10px; color: var(--sdl-suave); }
/* gráfico 1: cumplimiento en el tiempo */
.h-perf .cab { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.h-perf .num { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; } .h-perf .num b { font-size: 34px; font-weight: 600; letter-spacing: -.02em; }
.h-delta { font-size: 12.5px; font-weight: 600; color: #16a34a; } .h-delta.mal { color: var(--sdl-rojo); }
.h-tabs { display: flex; gap: 2px; margin-left: auto; } .h-tabs button { border: 0; background: none; padding: 5px 9px; border-radius: 8px; font-size: 12px; color: var(--sdl-suave); font-weight: 500; } .h-tabs button.on { color: var(--sdl-tinta); box-shadow: inset 0 -2px 0 var(--sdl-tinta); border-radius: 0; }
.h-seg { display: flex; gap: 4px; background: rgba(15,17,21,.05); padding: 3px; border-radius: 10px; } .h-seg button { border: 0; background: none; padding: 4px 10px; border-radius: 8px; font-size: 12px; color: var(--sdl-suave); } .h-seg button.on { background: #fff; color: var(--sdl-tinta); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.h-ley { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--sdl-suave); margin: 10px 0 0; } .h-ley i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.h-chart { position: relative; height: 240px; margin: 16px 0 26px 26px; }
.h-chart .g { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(15,17,21,.07); } .h-chart .g span { position: absolute; left: -26px; top: -8px; width: 20px; text-align: right; font-size: 10.5px; color: var(--sdl-tenue); }
.h-chart .cols { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 3px; }
.h-chart .c { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; border-radius: 6px; }
.h-chart .c:hover { background: rgba(47,123,246,.06); }
.h-chart .pila { width: min(10px, 80%); display: flex; flex-direction: column-reverse; gap: 2px; min-height: 0; } .h-chart .pila i { display: block; min-height: 2px; } .h-chart .pila i:last-child { border-radius: 4px 4px 1px 1px; } .h-chart .pila i:only-child { border-radius: 4px 4px 2px 2px; }
.h-chart .c.fut .pila i { opacity: .55; }
.h-chart .vacia { width: min(10px, 80%); height: 2px; background: rgba(15,17,21,.08); border-radius: 2px; }
.h-chart .hoy { position: absolute; top: -6px; bottom: 0; width: 2px; background: var(--sdl-tinta); z-index: 2; pointer-events: none; } .h-chart .hoy span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); background: #0f1115; color: #fff; font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 7px; white-space: nowrap; }
.h-chart .banda { position: absolute; top: 0; bottom: 0; background: linear-gradient(180deg, rgba(47,123,246,.10), rgba(47,123,246,.02)); border-radius: 10px; pointer-events: none; }
.h-meses { position: absolute; left: 0; right: 0; bottom: -22px; height: 16px; } .h-meses span { position: absolute; font-size: 11px; color: var(--sdl-suave); transform: translateX(-50%); }
/* asistente */
.h-orbe-w { display: grid; place-items: center; padding: 20px 0 6px; position: relative; }
.h-orbe-w::before, .h-orbe-w::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid rgba(15,17,21,.05); width: 210px; height: 210px; animation: hOnda 4s ease-out infinite; } .h-orbe-w::after { animation-delay: 2s; }
@keyframes hOnda { from { transform: scale(.55); opacity: 1; } to { transform: scale(1.15); opacity: 0; } }
.h-orbe { width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #eafff1 0%, #7af0a5 18%, #18c964 46%, #0b8f43 72%, #075c2c 100%); box-shadow: 0 18px 40px rgba(24,201,100,.45), inset 0 -8px 18px rgba(0,0,0,.25); animation: hFlota 5s ease-in-out infinite; position: relative; }
.h-orbe::after { content: ''; position: absolute; inset: 8px 22px auto auto; width: 26px; height: 16px; border-radius: 50%; background: rgba(255,255,255,.75); filter: blur(4px); transform: rotate(-30deg); }
.h-orbe.piensa { animation: hFlota 5s ease-in-out infinite, hPulso .9s ease-in-out infinite; }
@keyframes hFlota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes hPulso { 0%, 100% { box-shadow: 0 18px 40px rgba(24,201,100,.45); } 50% { box-shadow: 0 18px 60px rgba(24,201,100,.85); } }
.h-ia .hola { text-align: center; margin-top: 12px; } .h-ia .hola small { color: var(--sdl-suave); } .h-ia .hola h3 { margin: 2px 0 0; font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.h-sint { margin-top: 16px; background: rgba(255,255,255,.75); border: 1px solid var(--sdl-linea); border-radius: 18px; padding: 14px; }
.h-sint h4 { margin: 0 0 6px; font-size: 13.5px; display: flex; align-items: center; gap: 6px; } .h-sint h4 .x { margin-left: auto; border: 0; background: none; color: var(--sdl-tenue); }
.h-sint p { margin: 0; font-size: 13px; color: #4b5260; line-height: 1.55; } .h-sint p.corta { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.h-sint .leer { border: 0; background: none; color: var(--sdl-azul); padding: 0; font-size: 13px; font-weight: 600; margin-top: 4px; }
.h-sint .st { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; } .h-sint .st div { background: rgba(15,17,21,.035); border-radius: 12px; padding: 10px; } .h-sint .st b { font-size: 24px; font-weight: 600; } .h-sint .st small { display: block; color: var(--sdl-suave); font-size: 12px; }
.h-tag { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; margin-left: 6px; vertical-align: 4px; } .h-tag.r { background: #fee4e2; color: #b42318; } .h-tag.n { background: #ffedd5; color: #c2410c; } .h-tag.v { background: #dcfce7; color: #15803d; } .h-tag.a { background: #e0ecff; color: #1d4ed8; }
.h-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; } .h-chips button { border: 1px solid var(--sdl-linea); background: rgba(255,255,255,.7); border-radius: 999px; padding: 5px 10px; font-size: 12px; color: #4b5260; } .h-chips button:hover { border-color: var(--sdl-azul); color: var(--sdl-azul); }
.h-resp { margin-top: 10px; background: rgba(15,17,21,.035); border-radius: 14px; padding: 12px; font-size: 13px; line-height: 1.5; animation: hIn .3s ease; } .h-resp ul { margin: 6px 0 0; padding-left: 18px; } .h-resp li { margin: 2px 0; }
@keyframes hIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.h-preg { margin-top: auto; padding-top: 12px; display: flex; gap: 8px; align-items: center; } .h-preg label { flex: 1; display: flex; gap: 8px; align-items: center; border: 1px solid var(--sdl-linea); background: rgba(255,255,255,.8); border-radius: 14px; padding: 9px 12px; color: var(--sdl-tenue); }
.h-preg input { border: 0; outline: 0; background: none; flex: 1; font: inherit; font-size: 13.5px; color: var(--sdl-tinta); min-width: 0; }
.h-preg button { width: 42px; height: 42px; border-radius: 14px; border: 1px solid rgba(34,197,94,.4); background: rgba(34,197,94,.1); color: #15803d; display: grid; place-items: center; }
/* sistemas + indicador */
.h-filas { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.h-fila { display: grid; grid-template-columns: 3px 1fr auto; gap: 12px; align-items: center; color: var(--sdl-tinta); text-decoration: none; border-radius: 12px; padding: 4px 6px 4px 0; transition: background .15s; }
.h-fila:hover { background: rgba(15,17,21,.035); } .h-fila .b { align-self: stretch; border-radius: 3px; background: var(--c); }
.h-fila b { font-size: 14.5px; font-weight: 600; } .h-fila small { display: block; color: var(--sdl-suave); font-size: 12px; } .h-fila .v { text-align: right; } .h-fila .v b { font-size: 17px; } .h-fila .v small { font-weight: 600; } .h-fila .v .up { color: #16a34a; } .h-fila .v .dn { color: var(--sdl-rojo); }
.h-fila.prox { opacity: .6; } .h-fila.prox .b { background: repeating-linear-gradient(180deg, var(--sdl-tenue) 0 4px, transparent 4px 8px); }
.h-gauge { position: relative; margin: 16px auto 0; width: 100%; max-width: 320px; }
.h-gauge svg { display: block; width: 100%; height: auto; overflow: visible; } .h-gauge .val { position: absolute; left: 0; right: 0; top: 52%; text-align: center; } .h-gauge .val b { font-size: 34px; font-weight: 600; letter-spacing: -.02em; display: block; }
.h-gauge .val span { display: inline-block; margin-top: 4px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 7px; } .h-gauge .ext { display: flex; justify-content: space-between; font-size: 11px; color: var(--sdl-tenue); margin-top: -6px; }
.h-gauge path[data-tip] { cursor: pointer; }
.h-sis2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; } .h-sis2 a { display: block; border-radius: 12px; padding: 8px 10px; background: rgba(15,17,21,.035); color: var(--sdl-tinta); font-size: 12px; } .h-sis2 a b { font-size: 16px; display: block; } .h-sis2 .t-bar { height: 5px; border-radius: 3px; background: rgba(15,17,21,.08); overflow: hidden; margin-top: 5px; } .h-sis2 .t-bar i { display: block; height: 100%; border-radius: 3px; }
/* distribución */
.h-dist .tot { margin-top: 26px; } .h-dist .tot b { font-size: 34px; font-weight: 600; letter-spacing: -.02em; display: block; } .h-dist .tot small { color: var(--sdl-suave); font-size: 12.5px; }
.h-cajas { position: absolute; right: 20px; bottom: 20px; display: flex; gap: 12px; align-items: flex-end; height: 150px; }
.h-caja { width: 74px; border-radius: 10px; position: relative; cursor: pointer; transition: transform .2s; } .h-caja:hover { transform: translateY(-4px); }
.h-caja::before { content: ''; position: absolute; left: 22px; right: 22px; top: -7px; height: 7px; border-radius: 4px 4px 0 0; background: inherit; filter: brightness(.85); }
.h-caja.legal { background: linear-gradient(180deg, #fb923c, #f97316); box-shadow: 0 14px 28px rgba(249,115,22,.35); }
.h-caja.ep { background: repeating-linear-gradient(135deg, #a78bfa 0 6px, #9b7bf8 6px 9px); box-shadow: 0 14px 28px rgba(139,92,246,.35); }
.h-caja span { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; color: #fff; font-weight: 700; font-size: 18px; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.h-dist .ley2 { display: flex; gap: 12px; font-size: 12px; color: var(--sdl-suave); margin-top: 6px; } .h-dist .ley2 i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.h-tipos { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; max-width: 52%; } .h-tipos div { font-size: 12px; color: var(--sdl-suave); display: grid; grid-template-columns: 1fr auto; gap: 6px; } .h-tipos b { color: var(--sdl-tinta); }
/* próximos vencimientos */
.h-ven .cab { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; } .h-ven .cab h2 { margin-right: 10px; }
.h-ven .tabs button { border: 0; background: none; padding: 8px 10px; font-size: 13px; color: var(--sdl-suave); } .h-ven .tabs button.on { color: var(--sdl-tinta); box-shadow: inset 0 -2px 0 var(--sdl-tinta); }
.h-ven .fl { margin-left: auto; display: flex; gap: 4px; } .h-ven .fl button { border: 0; background: rgba(15,17,21,.05); width: 32px; height: 32px; border-radius: 10px; color: var(--sdl-suave); }
.h-carr { display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth; padding: 14px 2px 6px; scrollbar-width: thin; }
.h-tj { flex: 0 0 214px; background: rgba(255,255,255,.8); border: 1px solid var(--sdl-linea); border-radius: 18px; padding: 14px; color: var(--sdl-tinta); text-decoration: none; transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; gap: 4px; }
.h-tj:hover { transform: translateY(-2px); box-shadow: var(--sdl-sombra); }
.h-tj .t { display: flex; gap: 8px; align-items: center; } .h-tj .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 13px; flex: none; }
.h-tj .t b { font-size: 12.5px; display: block; } .h-tj .t small { font-size: 11px; color: var(--sdl-suave); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.h-tj .f { font-size: 22px; font-weight: 600; margin-top: 8px; letter-spacing: -.01em; } .h-tj .e { font-size: 12px; font-weight: 600; } .h-tj .e.mal { color: var(--sdl-rojo); } .h-tj .e.av { color: #c2410c; } .h-tj .e.ok { color: #16a34a; }
.h-tj .tit2 { font-size: 12px; color: #4b5260; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 32px; }
.h-tj svg { width: 100%; height: 34px; margin-top: 4px; }
/* tooltip, ventana */
.h-tip { position: fixed; z-index: 300; pointer-events: none; background: #0f1115; color: #fff; border-radius: 12px; padding: 9px 12px; font-size: 12.5px; box-shadow: 0 12px 30px rgba(0,0,0,.25); opacity: 0; transition: opacity .12s; max-width: 280px; display: flex; flex-direction: column; gap: 3px; }
.h-tip.on { opacity: 1; } .h-tip span { display: flex; gap: 8px; align-items: center; color: #cfd8ea; } .h-tip span b { margin-left: auto; color: #fff; padding-left: 12px; } .h-tip i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.h-velo { position: fixed; inset: 0; z-index: 200; background: rgba(15,17,21,.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: none; place-items: center; padding: 16px; } .h-velo.on { display: grid; animation: hIn .2s ease; }
.h-ventana { width: min(100%, 920px); max-height: calc(100vh - 32px); overflow: auto; background: rgba(255,255,255,.86); backdrop-filter: blur(28px) saturate(1.3); -webkit-backdrop-filter: blur(28px) saturate(1.3); border: 1px solid var(--sdl-borde); border-radius: 30px; box-shadow: 0 40px 100px rgba(15,17,21,.25); padding: 30px; position: relative; }
.h-ventana .cerrar { position: absolute; top: 16px; right: 16px; border: 0; background: rgba(15,17,21,.06); width: 38px; height: 38px; border-radius: 50%; }
/* splash */
.h-splash { text-align: center; } .h-splash .logo { width: 76px; height: 76px; border-radius: 24px; margin: 4px auto 14px; display: grid; place-items: center; background: #0f1115; color: #fff; font: 800 40px/1 Georgia, serif; box-shadow: 0 16px 40px rgba(15,17,21,.3); }
.h-splash h2 { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -.02em; } .h-splash > p { color: var(--sdl-suave); margin: 6px auto 0; max-width: 560px; }
.h-splash .sis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 26px 0 8px; text-align: left; }
.h-splash .sis a, .h-splash .sis div { border-radius: 22px; padding: 18px; color: var(--sdl-tinta); text-decoration: none; background: rgba(255,255,255,.8); border: 1px solid var(--sdl-linea); transition: transform .15s, box-shadow .15s; position: relative; overflow: hidden; }
.h-splash .sis a:hover { transform: translateY(-3px); box-shadow: var(--sdl-sombra); } .h-splash .sis a::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.h-splash .sis .e { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: var(--c); margin-bottom: 10px; } .h-splash .sis .e svg { width: 24px; height: 24px; }
.h-splash .sis b { font-size: 17px; display: block; } .h-splash .sis small { color: var(--sdl-suave); font-size: 12.5px; line-height: 1.4; display: block; margin-top: 2px; } .h-splash .sis .k { margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--c); }
.h-splash .sis .prox { border-style: dashed; opacity: .65; }
.h-splash .ent { margin-top: 18px; border: 0; background: #0f1115; color: #fff; border-radius: 14px; padding: 12px 22px; font-weight: 600; box-shadow: 0 10px 24px rgba(15,17,21,.25); }
.h-splash .ruta { display: flex; justify-content: center; gap: 6px; margin-top: 10px; font: 12px ui-monospace, Consolas, monospace; color: var(--sdl-suave); }
.h-ayuda ol { padding-left: 20px; line-height: 1.7; } .h-ayuda .bar-mini { display: inline-flex; gap: 6px; padding: 6px; background: rgba(255,255,255,.7); border: 1px solid var(--sdl-linea); border-radius: 14px; vertical-align: middle; }
.h-pie { text-align: center; color: var(--sdl-tenue); font-size: 12px; margin-top: 18px; }
@media (max-width: 1100px) { .h-perf { grid-column: span 12; } .h-ia { grid-column: span 12; grid-row: auto; } .h-sis, .h-dist { grid-column: span 6; } }
@media (max-width: 760px) {
  body { padding: 8px 10px 90px; } .h-top { flex-wrap: wrap; top: 6px; } .h-bus { width: 100%; order: 3; margin-left: 0; } .h-bus kbd { display: none; } .h-yo span:last-child { display: none; } .h-top .tit { flex: 1; }
  .h-sis, .h-dist { grid-column: span 12; } .h-chart { height: 200px; } .h-splash .sis { grid-template-columns: 1fr; } .h-ventana { padding: 22px 18px; }
  .h-cajas { position: static; margin-top: 14px; justify-content: center; } .h-tipos { max-width: none; }
}
