/* Páginas de evidencia (resultados.html y alumno.html). Como certificados.ast.bar: hoja clara, títulos en serif,
 * cifras grandes y tarjetas blancas; la marca es la de la landing (azul noche + verde). */
:root {
  --noche: #03102a;
  --imperial: #0a2458;
  --papel: #edf1ee;
  --card: #ffffff;
  --ink: #0a2458;
  --ink-soft: #24365e;
  --muted: #4a5878;
  --line: rgba(10, 36, 88, .14);
  --verde: #22c55e;
  --verde-osc: #15803d;
  --btn-verde: linear-gradient(180deg, #34d36f 0%, #16a34a 100%);
  --tbc-bg: #fff3c4;
  --tbc-ink: #7a5b00;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --ui: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }
body { background: var(--papel); color: var(--ink); font-family: var(--ui); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
h1, h2, .big { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: 1.08; text-wrap: balance; }
.muted { color: var(--muted); }
.tbc { display: inline-block; background: var(--tbc-bg); color: var(--tbc-ink); border: 1px dashed #d4a800; border-radius: 6px; padding: 0 6px; font: 500 .8em/1.5 var(--ui); letter-spacing: 0; }
.draft-banner { background: var(--tbc-bg); color: var(--tbc-ink); text-align: center; font-size: 13px; padding: 8px 16px; }

/* Barra superior */
.top { position: sticky; top: 0; z-index: 5; background: rgba(237, 241, 238, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 12px; }
.top b { font-size: 15px; font-weight: 700; }
.cta-mini { background: var(--btn-verde); color: #04210f; text-decoration: none; font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 10px; white-space: nowrap; box-shadow: 0 10px 22px -12px rgba(22, 163, 74, .8); }

/* Cabecera con luces difuminadas */
.head { position: relative; overflow: hidden; isolation: isolate; padding: 44px 0 40px; border-bottom: 1px solid var(--line); }
.head::before { content: ""; position: absolute; z-index: -1; width: 70vw; max-width: 700px; aspect-ratio: 1; right: -15%; top: -45%; border-radius: 50%; background: radial-gradient(closest-side, rgba(34, 197, 94, .22), rgba(10, 36, 88, .10) 55%, transparent); filter: blur(50px); }
.head__foto { width: 96px; height: 96px; border-radius: 20px; margin-bottom: 18px; border: 1px dashed var(--line); background: #fff; display: grid; place-items: center; text-align: center; font-size: 11px; padding: 6px; }
.head__foto:has(img) { border: 0; padding: 0; overflow: hidden; }
.head__foto img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.pill { display: inline-block; border: 1px solid rgba(21, 128, 61, .35); background: rgba(34, 197, 94, .08); color: var(--verde-osc); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.head h1 { font-size: clamp(34px, 6vw, 56px); margin-bottom: 22px; }
.head h1 em { font-style: italic; color: var(--verde-osc); }
.linea { list-style: none; display: grid; gap: 10px; margin-bottom: 16px; }
.linea li { padding-left: 26px; position: relative; color: var(--ink-soft); }
.linea li::before { content: "—"; position: absolute; left: 0; color: var(--verde-osc); font-weight: 700; }
.linea b { color: var(--ink); }
.firma { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); margin-bottom: 26px; }
.nums { display: grid; grid-template-columns: 1fr 1fr; }
.nums > div { border-top: 1px solid var(--line); padding: 14px 12px 14px 0; }
.nums .big { font-size: 34px; color: var(--verde-osc); }
.nums small { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; line-height: 1.4; }
.mas { display: inline-block; margin-top: 22px; margin-right: 22px; color: var(--verde-osc); font-weight: 700; text-decoration: none; }
.mas:hover { text-decoration: underline; }
@media (min-width: 700px) { .nums { grid-template-columns: repeat(4, 1fr); } }

/* Totales de alumnos: panel oscuro como la barra de cifras de la landing */
.tot { padding: 40px 0; }
.tot .wrap > .nums { background: radial-gradient(ellipse 60% 80% at 85% 20%, rgba(34, 197, 94, .32) 0%, rgba(34, 197, 94, 0) 70%), linear-gradient(160deg, #0a2458 0%, #03102a 100%); border-radius: 28px; padding: 18px 24px; color: #fff; }
.tot .wrap > .nums > div { border-top: 0; }
.tot .wrap > .nums .big { color: #fff; }
.tot .wrap > .nums small { color: #bfcbdc; }
.tot h2 { font-size: clamp(28px, 4vw, 38px); margin: 30px 0 10px; }
.tot p { color: var(--muted); max-width: 720px; }

/* Grilla de alumnos */
.lista { padding: 24px 0 64px; }
.lista > .wrap > h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 22px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 600px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }
.tc { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 14px 30px -20px rgba(3, 16, 42, .5); transition: transform .2s, box-shadow .2s; }
.tc:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -20px rgba(3, 16, 42, .6); }
.tc__img { position: relative; aspect-ratio: 16 / 10; background: #0b0f14; overflow: hidden; }
.tc__img > img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.tc__tag { position: absolute; left: 10px; top: 10px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.tc__badge { position: absolute; right: 10px; bottom: 10px; width: 92px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 2px solid #fff; box-shadow: 0 8px 18px rgba(0, 0, 0, .5); }
.tc__body { padding: 14px 16px 16px; }
.tc__name { font: 400 22px/1.2 var(--serif); }
.tc__meta { color: var(--muted); font-size: 14px; line-height: 1.45; }
.tc__usd { color: var(--verde-osc); font-weight: 700; }

/* Cierre */
.cierre { text-align: center; padding: 56px 0 8px; }
.cierre h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 8px; }
.btn {
  position: relative; display: inline-flex; justify-content: center; align-items: center; width: 100%; max-width: 440px; min-height: 58px; margin-top: 26px;
  border: 1px solid rgba(134, 239, 172, .5); border-radius: 12px; padding: 14px 28px;
  font: 700 16px/1.2 var(--ui); color: #04210f; background: var(--btn-verde);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 12px 36px rgba(22, 163, 74, .4); text-decoration: none;
  animation: cta-latido 3.2s ease-in-out infinite;
}
.btn:hover { animation-play-state: paused; }
@keyframes cta-latido { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
footer { background: var(--noche); color: #8e9bb3; padding: 28px 16px 44px; font-size: 13px; text-align: center; }

/* Ficha de alumno */
.ficha { padding: 32px 16px 24px; }
.migas { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.migas a { color: var(--verde-osc); text-decoration: none; font-weight: 600; }
.ficha h1 { font-size: clamp(40px, 6vw, 60px); margin-bottom: 14px; }
.ficha h2 { font-size: clamp(26px, 3.5vw, 34px); margin: 44px 0 16px; }
.resumen { font-size: 19px; color: var(--ink-soft); margin-bottom: 20px; }
.bio { color: var(--muted); margin: 18px 0; }
.video { aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; margin: 22px 0; box-shadow: 0 30px 60px -30px rgba(3, 16, 42, .45); }
.video iframe { width: 100%; height: 100%; border: 0; }
.ver-yt { display: inline-block; color: var(--verde-osc); font-weight: 700; text-decoration: none; margin-bottom: 18px; }
.citas { display: grid; gap: 12px; }
.citas blockquote { border-left: 3px solid var(--verde); background: var(--card); padding: 16px 20px; border-radius: 0 14px 14px 0; color: var(--ink-soft); font: italic 400 19px/1.5 var(--serif); }
.caps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 760px) { .caps { grid-template-columns: repeat(3, 1fr); } }
.cap { border: 1px solid var(--line); background: var(--card); border-radius: 12px; overflow: hidden; padding: 0; cursor: zoom-in; text-align: left; color: var(--ink); font: inherit; box-shadow: 0 10px 24px -16px rgba(3, 16, 42, .5); }
.cap img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center top; background: #0b0f14; }
.cap span { display: block; padding: 8px 10px; font-size: 13px; color: var(--muted); }
.cap span b { color: var(--verde-osc); }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--card); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.proc { color: var(--muted); font-size: 14px; margin-top: 28px; }
dialog#zoom { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1000px); margin: auto; }
dialog#zoom::backdrop { background: rgba(0, 8, 24, .88); }
dialog#zoom img { border-radius: 12px; max-height: 88vh; width: auto; }

/* Páginas legales (privacidad.html y bases-sorteo.html) */
.legal { max-width: 760px; padding: 40px 16px 64px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 8px; }
.legal .version { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.legal h2 { font-size: 26px; margin: 34px 0 10px; }
.legal h3 { font: 600 17px/1.4 var(--ui); margin: 18px 0 6px; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 10px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal a { color: var(--verde-osc); font-weight: 600; }
.legal dl { display: grid; gap: 4px 0; }
.legal dt { font: 600 13px/1.4 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--verde-osc); margin-top: 18px; }
.legal dd { margin: 0; color: var(--ink-soft); }
