
:root{color-scheme:dark;--fondo:#15121D;--panel:#1F1B2A;--panel-2:#2A2538;--borde:#3A3450;--texto:#F4F1FB;--suave:#A49EB6;
--lila:#C4B1FF;--durazno:#FFB38A;--ok:#75E0A7;--rojo:#FDA29B;--rojo-f:rgba(217,45,32,.20);--naranja:#FEC84B;--naranja-f:rgba(247,144,9,.18);
--gris:#D0D5DD;--gris-f:rgba(152,162,179,.18);--radio:14px;--sombra:0 1px 0 rgba(255,255,255,.04) inset,0 8px 24px rgba(0,0,0,.25);
font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:16px;line-height:1.45}
*{box-sizing:border-box}
html{background:var(--fondo);-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;background:radial-gradient(1200px 400px at 50% -200px,rgba(196,177,255,.16),transparent),var(--fondo);
color:var(--texto);padding-bottom:calc(24px + env(safe-area-inset-bottom))}
a{color:var(--lila);text-underline-offset:3px}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--durazno);outline-offset:2px}
header{position:sticky;top:0;z-index:5;background:rgba(21,18,29,.88);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
border-bottom:1px solid var(--borde);padding-top:env(safe-area-inset-top)}
#navegacion{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:10px 14px 12px}
#navegacion>p{flex:0 0 100%;margin:0 0 6px;font-size:.8rem;color:var(--suave);letter-spacing:.02em;overflow-wrap:anywhere}
#navegacion>a{flex:0 0 auto;display:inline-flex;align-items:center;min-height:44px;padding:8px 14px;border-radius:999px;border:1px solid var(--borde);background:var(--panel);color:var(--texto);
text-decoration:none;font-size:.88rem;white-space:nowrap}
#navegacion>a[aria-current],#navegacion>a:hover{border-color:var(--lila);background:rgba(196,177,255,.14)}
#navegacion>button{margin:0 0 0 auto;flex:0 0 auto;background:transparent;border:0;color:var(--suave);font-size:.85rem;font-weight:500;padding:8px 4px;
text-decoration:underline;min-height:44px}
#estado{margin:0;padding:0 16px;color:var(--durazno);font-size:.92rem;min-height:0}
#estado:not(:empty){padding:10px 16px;background:rgba(255,179,138,.10);border-bottom:1px solid rgba(255,179,138,.25)}
main{max-width:720px;margin:0 auto;padding:16px}
h1{font-size:1.6rem;line-height:1.15;margin:8px 0 16px;letter-spacing:-.01em}
h1::after{content:"";display:block;width:44px;height:3px;border-radius:3px;margin-top:10px;background:linear-gradient(90deg,var(--lila),var(--durazno))}
h2{font-size:1.08rem;margin:0 0 6px;line-height:1.3}
h3{font-size:.98rem;margin:14px 0 6px;color:var(--suave)}
p{margin:6px 0}
section{margin:0 0 20px}
section>section{background:var(--panel);border:1px solid var(--borde);border-radius:var(--radio);padding:16px;box-shadow:var(--sombra);margin-top:20px}
article{position:relative;background:var(--panel);border:1px solid var(--borde);border-radius:var(--radio);padding:14px 16px 12px;
margin:0 0 12px;box-shadow:var(--sombra)}
article h2 a{color:var(--texto);text-decoration:none}
article h2 a::after{content:"";position:absolute;inset:0;border-radius:var(--radio)}
article p{color:var(--suave);font-size:.9rem;margin:2px 0}
article:hover{border-color:#4A4366}
article[data-nivel="rojo"],article[data-nivel="naranja"],article[data-nivel="gris"]{border-left-width:4px}
article[data-nivel="rojo"]{border-left-color:var(--rojo)}
article[data-nivel="naranja"]{border-left-color:var(--naranja)}
article[data-nivel="gris"]{border-left-color:var(--gris)}
article[data-estado="hecho"],article[data-estado="cancelado"]{background:var(--fondo);border-style:dashed;box-shadow:none}
article[data-vencido="si"] p{color:var(--rojo)}
.nivel,[data-chip]{display:inline-flex;align-items:center;gap:6px;font-size:.75rem;font-weight:600;letter-spacing:.03em;text-transform:uppercase;
padding:3px 9px;border-radius:999px;margin:0 0 6px}
.nivel::before,[data-chip]::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.nivel-rojo,[data-chip="rojo"]{color:var(--rojo);background:var(--rojo-f)}
.nivel-naranja,[data-chip="naranja"]{color:var(--naranja);background:var(--naranja-f)}
.nivel-gris,[data-chip="gris"]{color:var(--gris);background:var(--gris-f)}
[data-chip="normal"]{display:none}
.dato{color:var(--suave);font-size:.9rem;margin:2px 0}
section>.dato:last-of-type{margin-bottom:14px}
input[type=file]::file-selector-button{font:inherit;font-weight:600;font-size:.88rem;margin-right:12px;padding:8px 14px;border-radius:10px;
border:1px solid var(--lila);background:transparent;color:var(--lila);cursor:pointer}
ul,ol{padding-left:20px;margin:6px 0}
li{margin:3px 0;overflow-wrap:anywhere}
label{display:flex;flex-direction:column;gap:6px;font-size:.88rem;color:var(--suave)}
label:has(input[type=checkbox]){flex-direction:row-reverse;justify-content:flex-end;align-items:center;gap:10px;color:var(--texto)}
input,select,textarea{font:inherit;font-size:16px;color:var(--texto);background:var(--panel-2);border:1px solid #7C7597;border-radius:10px;
padding:11px 12px;width:100%;min-height:44px}
textarea{min-height:96px;resize:vertical}
input[type=checkbox]{width:22px;height:22px;min-height:22px;accent-color:var(--lila);padding:0}
input[type=file]{padding:9px;background:transparent;border-style:dashed}
input::placeholder,textarea::placeholder{color:#9A94AE}
select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--suave) 50%),linear-gradient(135deg,var(--suave) 50%,transparent 50%);
background-position:calc(100% - 18px) 52%,calc(100% - 13px) 52%;background-size:5px 5px;background-repeat:no-repeat;padding-right:34px}
button{font:inherit;font-weight:600;font-size:.95rem;min-height:44px;padding:10px 18px;border-radius:12px;border:1px solid var(--lila);
background:var(--lila);color:#1A1526;cursor:pointer;margin:6px 8px 6px 0;touch-action:manipulation}
button:hover{filter:brightness(1.06)}
button:active{transform:translateY(1px)}
button:disabled{opacity:.45;cursor:not-allowed}
section>section>button:last-child,form>button:last-child{width:100%;margin-right:0}
article button,section>button+button{background:transparent;color:var(--lila)}
progress{width:100%;height:10px;border-radius:999px;overflow:hidden;appearance:none;background:var(--panel-2);border:0}
progress::-webkit-progress-bar{background:var(--panel-2)}
progress::-webkit-progress-value{background:linear-gradient(90deg,var(--lila),var(--durazno))}
progress::-moz-progress-bar{background:linear-gradient(90deg,var(--lila),var(--durazno))}
details{background:var(--panel);border:1px solid var(--borde);border-radius:var(--radio);padding:10px 14px;margin:0 0 12px}
summary{cursor:pointer;font-weight:600}
dl{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:8px 0}
dt{color:var(--suave)}dd{margin:0}
pre,code{font-family:ui-monospace,"SFMono-Regular",Consolas,monospace;font-size:.85rem}
blockquote{margin:8px 0;padding:10px 14px;border-left:3px solid var(--lila);background:var(--panel-2);border-radius:0 10px 10px 0;white-space:pre-wrap}
.galeria-contenido{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));gap:12px;padding-inline-start:24px}
section>article:has(>a+button){display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}section>article:has(>a+button)>h3{flex-basis:100%}
.galeria-contenido li{min-width:0}.galeria-contenido img{display:block;max-width:100%;height:auto;border-radius:var(--radio)}
noscript{display:block;padding:16px;color:var(--durazno)}
h1,h2,h3,p,.dato,a,label,blockquote{overflow-wrap:anywhere}
@media (max-width:759px){header{position:static}#navegacion>a{font-size:.86rem;padding:8px 12px}}
@media (min-width:760px){main{padding:24px}#navegacion{padding:12px 24px 14px}h1{font-size:2rem}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
