@font-face{font-family:"Montserrat";src:url("montserrat.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"Montserrat";src:url("montserrat-italic.woff2") format("woff2");font-weight:100 900;font-style:italic;font-display:swap}

:root{
  --navy:#1B2A4A; --navy-2:#24365C; --yellow:#F7C744; --gold:#C9A43A;
  --paper:#F6F4EE; --ink:#1B2A4A; --muted:#5F6B82; --line:#E3E0D6; --white:#fff;
  --ok:#1F9D55; --warn:#B7791F; --live:#E0392B;
  --r:16px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font-family:"Montserrat",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-size:16px;line-height:1.45;font-variant-numeric:tabular-nums}
.wrap{max-width:1120px;margin:0 auto;padding:0 18px}
a{color:inherit}

/* ---------- encabezado ---------- */
.top{background:var(--navy);color:var(--white);padding:18px 0 30px;position:relative;overflow:hidden}
.top::after{content:"";position:absolute;right:-60px;bottom:-60px;width:220px;height:220px;border-radius:50%;background:var(--yellow);opacity:.10}
.top-row{display:flex;align-items:center;gap:12px;margin-bottom:22px}
.hashtag{display:flex;flex-direction:column;font-weight:800;font-size:10px;line-height:1.05;letter-spacing:.06em;color:var(--yellow)}
.chev{margin-left:auto;color:var(--yellow);font-size:11px;letter-spacing:-2px;opacity:.9}
.badge-j{background:var(--yellow);color:var(--navy);font-weight:900;font-size:30px;line-height:1;width:52px;height:52px;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 4px 0 var(--gold)}
.badge-j small{font-size:8px;letter-spacing:.12em;font-weight:800;margin-bottom:1px}
.kicker{margin:0 0 6px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--yellow)}
h1{margin:0;font-size:clamp(34px,9vw,52px);font-weight:900;line-height:1;letter-spacing:-.01em;text-transform:uppercase}
h1 em{font-style:italic;color:var(--yellow)}
.sub{margin:10px 0 0;font-size:14px;font-weight:500;opacity:.88;max-width:34ch}

/* ---------- estado ---------- */
.status{display:inline-flex;align-items:center;gap:10px;margin:-18px 0 14px;background:var(--white);border:1px solid var(--line);border-radius:999px;padding:9px 16px;font-size:13px;font-weight:700;position:relative;z-index:1;box-shadow:0 6px 18px rgba(27,42,74,.08)}
.dot{width:10px;height:10px;border-radius:50%;background:#9AA3B5;flex:none}
.status.live .dot{background:var(--live);animation:pulse 1.6s infinite}
.status.done .dot{background:var(--ok)}
.status.stale .dot{background:var(--warn)}
.status.wait .dot{background:var(--gold);animation:pulse 2.4s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(224,57,43,.45)}70%{box-shadow:0 0 0 10px rgba(224,57,43,0)}100%{box-shadow:0 0 0 0 rgba(224,57,43,0)}}

/* ---------- tarjetas ---------- */
.card{background:var(--white);border:1px solid var(--line);border-radius:var(--r);padding:18px}
.progress{margin-bottom:14px}
.progress-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:12px}
.label{display:block;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.big{display:block;font-size:40px;font-weight:900;line-height:1.05}
.progress-count{font-size:14px;font-weight:700;color:var(--muted);text-align:right}
.bar{height:12px;background:#EEEBE2;border-radius:999px;overflow:hidden}
.bar-fill{height:100%;width:0;background:linear-gradient(90deg,var(--gold),var(--yellow));border-radius:999px;transition:width .8s ease}
.meta{margin:10px 0 0;font-size:12px;color:var(--muted)}

.quick{background:var(--yellow);color:var(--navy);border-radius:var(--r);padding:14px 18px;margin-bottom:14px;font-weight:700;font-size:15px}
.quick small{display:block;font-weight:600;font-size:12px;opacity:.8;margin-top:2px}

.section-title{font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin:26px 0 10px}

/* ---------- listas ---------- */
.listas{display:flex;flex-direction:column;gap:10px}
.lista{display:grid;grid-template-columns:auto 1fr auto;gap:4px 14px;align-items:center;background:var(--white);border:1px solid var(--line);border-radius:var(--r);padding:14px 16px;transition:transform .4s ease}
.lista .pos{grid-row:1/3;font-size:12px;font-weight:800;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:6px}
.lbadge{width:46px;height:46px;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:900}
.lista .who{min-width:0}
.lista .agr{font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);line-height:1.3;margin-bottom:2px}
.lista .names{font-size:15px;font-weight:700;line-height:1.25}
.lista .nums{text-align:right}
.lista .pct{font-size:24px;font-weight:900;line-height:1}
.lista .votes{font-size:12px;font-weight:600;color:var(--muted);margin-top:3px;white-space:nowrap}
.lista .lbar{grid-column:2/4;height:8px;background:#EEEBE2;border-radius:999px;overflow:hidden;margin-top:8px}
.lista .lbar i{display:block;height:100%;width:0;border-radius:999px;transition:width .8s ease}

.lista.is-j{background:var(--navy);border-color:var(--navy);color:var(--white);box-shadow:0 8px 22px rgba(27,42,74,.22)}
.lista.is-j .agr{color:var(--yellow)}
.lista.is-j .votes,.lista.is-j .pos{color:rgba(255,255,255,.75)}
.lista.is-j .pct{color:var(--yellow)}
.lista.is-j .lbar{background:rgba(255,255,255,.14)}
.lista.is-j .lbadge{box-shadow:0 3px 0 var(--gold)}

/* ---------- resumen ---------- */
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.kpi{background:var(--white);border:1px solid var(--line);border-radius:14px;padding:12px 14px}
.kpi span{display:block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.kpi strong{display:block;font-size:20px;font-weight:800;margin-top:2px}
@media (min-width:620px){.grid{grid-template-columns:repeat(3,1fr)}}

/* ---------- evolución ---------- */
.evo svg{width:100%;height:auto;display:block}
.evo text{font-family:inherit;font-size:12px;fill:var(--muted);font-weight:600}
.evo .lbl{font-weight:800;font-size:13px}

/* ---------- acciones y pie ---------- */
.note{font-size:12px;color:var(--muted);margin:10px 2px 0}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin:28px 0 6px}
.btn{appearance:none;border:0;cursor:pointer;font:inherit;font-weight:800;font-size:15px;padding:14px 20px;border-radius:12px;background:var(--navy);color:var(--white);flex:1 1 200px}
.btn:active{transform:translateY(1px)}
.btn-ghost{background:transparent;color:var(--navy);border:2px solid var(--navy)}
.next{font-size:12px;color:var(--muted);text-align:center;margin:8px 0 30px}
.foot{background:var(--navy);color:rgba(255,255,255,.82);font-size:12px;padding:22px 0 calc(26px + env(safe-area-inset-bottom))}
.foot p{margin:0 0 8px;max-width:62ch}
.foot a{color:var(--yellow)}

.toast{position:fixed;left:50%;bottom:22px;transform:translate(-50%,160px);opacity:0;visibility:hidden;background:var(--navy);color:var(--white);padding:12px 18px;border-radius:12px;font-weight:700;font-size:14px;box-shadow:0 10px 30px rgba(0,0,0,.25);transition:transform .35s ease,opacity .35s ease,visibility .35s;z-index:10;border-left:5px solid var(--yellow);max-width:92vw}
.toast.show{transform:translate(-50%,0);opacity:1;visibility:visible}
.flash{animation:flash 1.2s ease}
@keyframes flash{0%{background:var(--yellow)}100%{}}

@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* ---------- layout ---------- */
.layout{display:block}
.col-main{position:relative}
@media (min-width:960px){
  .layout{display:grid;grid-template-columns:minmax(360px,420px) 1fr;gap:28px;align-items:start}
  .col-main{position:sticky;top:16px}
  .col-side{padding-top:6px}
  .col-side .section-title:first-child{margin-top:8px}
  .top{padding-bottom:40px}
  .sub{max-width:none}
}

/* ---------- héroe Jorge ---------- */
.hero{background:var(--navy);color:var(--white);border-radius:20px;padding:18px;margin-bottom:14px;display:grid;grid-template-columns:112px 1fr;gap:0 16px;align-items:center;box-shadow:0 12px 30px rgba(27,42,74,.25);position:relative;overflow:hidden}
.hero::before{content:"";position:absolute;inset:auto -40px -70px auto;width:180px;height:180px;border-radius:50%;background:var(--yellow);opacity:.12}
.hero-photo{position:relative;width:112px;height:112px;border-radius:18px;background:var(--yellow);overflow:visible}
.hero-photo img{width:100%;height:100%;object-fit:cover;object-position:50% 20%;border-radius:18px;display:block;border:3px solid var(--yellow)}
.hero-fallback{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:64px;font-weight:900;color:var(--navy)}
.hero-photo img:not([hidden]) + .hero-fallback{display:none}
.hero-badge{position:absolute;right:-8px;bottom:-8px;background:var(--yellow);color:var(--navy);width:38px;height:38px;border-radius:10px;font-weight:900;font-size:20px;line-height:1;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 3px 0 var(--gold),0 0 0 3px var(--navy)}
.hero-badge small{font-size:6px;letter-spacing:.1em}
.hero-body{min-width:0;position:relative}
.hero-agr{margin:0;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--yellow)}
.hero-name{margin:2px 0 0;font-size:26px;font-weight:900;line-height:1.05;text-transform:uppercase;color:var(--white);letter-spacing:0}
.hero-dupla{margin:4px 0 0;font-size:12px;font-weight:600;opacity:.8}
.hero-nums{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,.75fr);gap:8px;margin-top:16px;position:relative}
.hero-nums div{background:rgba(255,255,255,.07);border-radius:12px;padding:10px 10px 8px}
.hero-nums strong{display:block;font-weight:900;line-height:1;font-size:22px}
.hero-nums .hero-pct{color:var(--yellow);font-size:30px}
.hero-nums span{display:block;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;opacity:.7;margin-top:4px}
.hero-gap{grid-column:1/-1;position:relative;margin:10px 0 0;background:var(--yellow);color:var(--navy);border-radius:12px;padding:10px 12px;font-weight:800;font-size:14px;line-height:1.3}
.hero-gap small{display:block;font-weight:600;font-size:11px;opacity:.8;margin-top:2px}
.hero .hero-nums,.hero .hero-gap{grid-column:1/-1}
@media (max-width:359px){.hero{grid-template-columns:88px 1fr}.hero-photo{width:88px;height:88px}.hero-name{font-size:21px}.hero-nums .hero-pct{font-size:24px}}
@media (min-width:960px){.hero{grid-template-columns:132px 1fr}.hero-photo{width:132px;height:132px}.hero-name{font-size:30px}}

/* ---------- fotos en listas ---------- */
.lphoto{position:relative;width:52px;height:52px;flex:none}
.lphoto img{width:52px;height:52px;border-radius:50%;object-fit:cover;object-position:50% 20%;display:block;background:#E9E6DD}
.lphoto img.gris{filter:grayscale(1) contrast(1.05);opacity:.92}
.lphoto .mini{position:absolute;right:-5px;bottom:-4px;width:22px;height:22px;border-radius:7px;font-size:12px;font-weight:900;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 2px var(--white)}
.lista.is-j .lphoto img{box-shadow:0 0 0 3px var(--yellow)}
.lista.is-j .lphoto .mini{box-shadow:0 0 0 2px var(--navy)}
@media (min-width:620px){.lphoto,.lphoto img{width:60px;height:60px}}
.hero-photo img[hidden]{display:none}
.hero-nums div{min-width:0}
.hero-nums span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:420px){.hero-nums .hero-pct{font-size:25px}.hero-nums strong{font-size:19px}.hero-nums div{padding:9px 8px 7px}.hero-nums span{font-size:9px}}
.btn{white-space:nowrap;font-size:14px}
.lphoto img.gris{box-shadow:0 0 0 1.5px #D9D5C9}
