/* ==========================================================================
   EG20RCH — 20 aniversario del Radio Club Henares
   Identidad visual: azul noche + oro. Tipografías Space Grotesk / Work Sans /
   Space Mono. Este archivo es el único tema del sitio: la home usa las clases
   .landing-*, y el resto de páginas (ranking, participantes, bases, diploma/QSL)
   reutilizan .panel/.btn/tablas/medallas para heredar el mismo aspecto.
   ========================================================================== */

:root {
  --bg: #071230;
  --bg-alt: #0b1a40;
  --bg-strip: #0a1738;
  --blue: #0A369F;
  --blue-soft: #123fb4;
  --gold: #E8C25E;
  --gold-hover: #f2d585;
  --surface: rgba(255, 255, 255, .04);
  --surface-solid: #0d1c44;
  --border: rgba(255, 255, 255, .1);
  --border-soft: rgba(255, 255, 255, .06);
  --text: #ffffff;
  --muted: #aeb8d0;
  --dim: #93a0c0;
  --faint: #7c88a8;
  --rank: #6f7c9c;
  --shadow: 0 16px 44px rgba(0, 0, 0, .4);
  --display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
}
body { margin: 0; min-height: 100vh; }

h1, h2, h3, .display { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }

a { color: var(--gold); text-decoration: none; }
a:hover, a:focus-visible { color: var(--gold-hover); }

img { max-width: 100%; }

.eyebrow {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .2em;
  color: var(--gold); text-transform: uppercase; margin: 0;
}

/* ---- Layout base (páginas internas: ranking, participantes, bases…) -------- */
main {
  max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 1.5rem 3.5rem;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem;
}
main > * { min-width: 0; }
main.main--wide { max-width: min(1600px, 95vw); }
main > h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 0 0 .5rem; }

/* ---- Botones -------------------------------------------------------------- */
.btn {
  background: var(--gold); color: #071230; border: none; cursor: pointer;
  border-radius: 999px; padding: .7rem 1.35rem; font-family: var(--display);
  font-weight: 700; font-size: .95rem; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover, .btn:focus-visible { background: var(--gold-hover); color: #071230; transform: translateY(-1px); }
.btn--ghost {
  background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .3);
}
.btn--ghost:hover, .btn--ghost:focus-visible { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn[aria-disabled="true"] { background: var(--rank); color: #071230; pointer-events: none; opacity: .6; }

/* ---- Paneles / tarjetas --------------------------------------------------- */
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow); padding: 1.75rem;
  overflow-x: auto;
}
.panel > header:first-child { margin-top: 0; }
.panel h1, .panel h2, .panel h3 { color: var(--text); margin: 0 0 .75rem; }
.panel :is(p, li) { color: var(--muted); }
.panel a { font-weight: 600; }
.panel ul, .panel ol { padding-left: 1.25rem; }

/* ---- Tablas --------------------------------------------------------------- */
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--border-soft); padding: .7rem .5rem; text-align: left; vertical-align: middle; }
th {
  color: var(--dim); font-family: var(--mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
tbody tr:last-child td { border-bottom: none; }
td { color: var(--muted); }
td:first-child, .cell-mono { font-family: var(--mono); }

/* ---- Medallas (laurel + nivel de diploma) --------------------------------- */
.laurel-medal, .diploma-medal {
  border-radius: 999px; display: inline-block; font-family: var(--display);
  font-size: .72rem; font-weight: 700; padding: .18rem .6rem; white-space: nowrap;
}
.laurel-medal--gold, .diploma-medal--gold { background: var(--gold); color: #071230; }
.laurel-medal--silver, .diploma-medal--silver { background: #CBD4E2; color: #1a2540; }
.laurel-medal--bronze, .diploma-medal--bronze { background: #C88A4A; color: #071230; }
.diploma-medal--none { background: rgba(255, 255, 255, .06); color: var(--dim); font-weight: 500; }
.ranking-laurel { text-align: center; white-space: nowrap; }
.ranking-laurel--empty { color: var(--rank); }

/* ==========================================================================
   HEADER (sticky, translucido) — compartido por todas las páginas
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 14px clamp(1.25rem, 4vw, 48px);
  background: rgba(7, 18, 48, .86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__brand a { display: flex; align-items: center; gap: 14px; color: #fff; }
.site-header__logo {
  width: 42px; height: 42px; background: #fff; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.site-header__logo img { width: 34px; height: 34px; object-fit: contain; }
.site-header__brand strong { display: block; font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.05; }
.site-header__tagline {
  display: block; font-size: 10px; letter-spacing: .24em; color: var(--gold);
  text-transform: uppercase; font-weight: 600; margin-top: 2px;
}
.site-header__nav {
  display: flex; flex-wrap: wrap; gap: clamp(.75rem, 2vw, 1.75rem); align-items: center;
  font-family: var(--display); font-weight: 500; font-size: 14px;
}
.site-header__nav a { color: var(--dim); }
.site-header__nav a:hover, .site-header__nav a:focus-visible { color: #fff; }
.site-header__nav a.btn { color: #071230; font-weight: 700; padding: .55rem 1.15rem; }
.site-header__nav a.btn:hover { color: #071230; }

/* ==========================================================================
   LANDING (home)
   ========================================================================== */
.landing { display: block; }
.landing section { padding: clamp(3rem, 7vw, 4.5rem) clamp(1.25rem, 4vw, 48px); }
.landing .wrap { max-width: var(--maxw); margin: 0 auto; }
.section-head { margin-bottom: 1.75rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: .5rem 0 0; }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 80% 32%, rgba(10, 54, 159, .55), transparent 55%), linear-gradient(#081538, #071230);
}
.hero__grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 46px);
  -webkit-mask: linear-gradient(#000, transparent 82%); mask: linear-gradient(#000, transparent 82%);
}
.hero__inner {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(232, 194, 94, .4);
  color: var(--gold); font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  padding: 7px 14px; border-radius: 30px; text-transform: uppercase;
}
.hero__badge span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 74px); line-height: .96; margin: 22px 0 0; letter-spacing: -.02em; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero__lead { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 490px; margin: 22px 0 0; }
.hero__lead strong { color: #fff; }
.hero__lead .gold { color: var(--gold); }
.hero__cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero__meta { display: flex; align-items: flex-end; gap: 5px; height: 40px; margin-top: 40px; }
.hero__meta span.note { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-left: 12px; align-self: center; }
.eq-bar { width: 5px; height: 100%; transform-origin: bottom; animation: rchEq 1.1s ease-in-out infinite; }

/* Sello aniversario */
.seal { position: relative; display: flex; align-items: center; justify-content: center; min-height: 360px; }
.seal__ring { position: absolute; width: 340px; height: 340px; border-radius: 50%; border: 1px solid rgba(232, 194, 94, .3); }
.seal__ring--pulse { border-color: rgba(232, 194, 94, .5); animation: rchPulse 3s ease-out infinite; }
.seal__ring--pulse.delay { animation-delay: 1.5s; }
.seal__disc {
  width: 300px; height: 300px; border-radius: 50%; background: #fff; border: 3px solid var(--gold);
  display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: var(--shadow);
}
.seal__disc img { width: 100%; height: 100%; object-fit: contain; }

@keyframes rchPulse { 0% { transform: scale(1); opacity: .55; } 70% { opacity: 0; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes rchEq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  .eq-bar, .seal__ring--pulse { animation: none; }
  html { scroll-behavior: auto; }
}

/* Franja de stats rápidos */
.stat-strip { padding: 0 !important; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-strip); }
.stat-strip__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); }
.stat-cell { padding: 26px 20px; text-align: center; border-right: 1px solid var(--border-soft); }
.stat-cell:last-child { border-right: none; }
.stat-cell b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 6vw, 30px); color: #fff; }
.stat-cell.is-gold b { color: var(--gold); }
.stat-cell small { font-size: 12px; color: var(--dim); }

/* El Club */
.section--club { background: var(--bg-alt); }
.club-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.club-grid p { font-size: 16px; line-height: 1.7; color: var(--muted); }
.club-grid p strong { color: var(--gold); }
.club-link { display: inline-block; margin-top: .25rem; font-family: var(--display); font-weight: 600; font-size: 15px; }
.club-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.fact { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.fact--blue { background: var(--blue); border-color: transparent; }
.fact b { display: block; font-family: var(--display); font-size: clamp(2rem, 8vw, 38px); font-weight: 700; color: var(--gold); line-height: 1; }
.fact--blue b { color: #fff; }
.fact small { display: block; font-size: 13px; color: var(--muted); margin-top: .5rem; }
.fact--blue small { color: #c6cfe8; }

/* El Concurso — tarjetas numeradas */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.num-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 26px 22px; }
.num-card .n { font-family: var(--mono); color: var(--gold); font-size: 14px; }
.num-card h3 { font-size: clamp(1rem, 3vw, 19px); margin: 10px 0 8px; }
.num-card p { font-size: 14px; line-height: 1.55; color: var(--dim); margin: 0; }

/* Clasificación (preview home + página /ranking) */
.section--rank { background: var(--bg-alt); }
.rank-note { font-size: 13px; color: var(--faint); margin: 0 0 1.75rem; font-family: var(--mono); }
.ranking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ranking-category { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: none; padding: 0; }
.ranking-category > header {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: 16px 22px; background: rgba(10, 54, 159, .5); border-bottom: 1px solid var(--border); margin: 0;
}
.ranking-category > header h2 { font-size: clamp(1.05rem, 3vw, 20px); margin: 0; }
.ranking-category__note { font-family: var(--mono); font-size: 11px; color: var(--gold); letter-spacing: .06em; }
.ranking-category table { display: block; }
.ranking-category thead, .ranking-category tbody { display: block; }
.ranking-category tr {
  display: grid; grid-template-columns: 34px 1fr auto 56px; align-items: center;
  padding: 8px 22px; border-top: 1px solid var(--border-soft);
}
.ranking-category thead tr { border-top: none; padding-top: 12px; padding-bottom: 10px; }
.ranking-category tbody tr:first-child { border-top: none; }
.ranking-category th, .ranking-category td { border: none; padding: 0; }
.ranking-category th:nth-child(3), .ranking-category td:nth-child(3) { text-align: center; }
.ranking-category th:nth-child(4), .ranking-category td:nth-child(4),
.ranking-category th:nth-child(5), .ranking-category td:nth-child(5) { text-align: right; }
.ranking-category td.rank-pos { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--rank); }
.ranking-category tbody tr.is-top td.rank-pos { color: var(--gold); }
.ranking-category td.call { display: flex; align-items: center; gap: 8px; }
.ranking-category td.call a { font-family: var(--mono); color: #fff; font-weight: 700; font-size: 14px; }
.ranking-category td.call a:hover { color: var(--gold); }
.ranking-category td.slots { font-family: var(--mono); font-weight: 700; color: var(--gold); font-size: 14px; }
.diploma-tag { font-family: var(--mono); font-size: 9.5px; color: var(--dim); border: 1px solid rgba(255, 255, 255, .18); padding: 1px 6px; border-radius: 20px; white-space: nowrap; }
.rank-explainer { font-size: 13px; line-height: 1.65; color: var(--faint); margin: 1.75rem 0 0; max-width: 820px; }
/* Subrayado explícito: el color por sí solo no distingue el enlace del texto. */
.rank-explainer a { text-decoration: underline; text-underline-offset: 2px; }

/* Estadísticas — barras banda/modo */
.bars-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bars-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.bars-card h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1rem, 2.8vw, 18px); margin: 0 0 20px; }
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 58px 1fr 62px; align-items: center; gap: 12px; }
.bar-row .label { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.bar-track { height: 10px; background: rgba(255, 255, 255, .08); border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--gold)); border-radius: 6px; }
.bar-row .value { font-family: var(--mono); font-size: 13px; color: var(--gold); text-align: right; font-weight: 700; }

/* Buscador del log */
.search-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
form[role="search"] { display: grid; gap: .6rem; max-width: 560px; }
label { color: var(--muted); font-size: .95rem; font-weight: 600; }
input[type="search"] {
  appearance: none; background: rgba(255, 255, 255, .04); border: 1px solid var(--border);
  border-radius: 10px; color: #fff; font: inherit; padding: .85rem 1rem; width: 100%;
}
input[type="search"]::placeholder { color: var(--faint); }
input[type="search"]:focus { border-color: rgba(232, 194, 94, .55); box-shadow: 0 0 0 4px rgba(232, 194, 94, .14); outline: none; }
form[role="search"] small { color: var(--dim); font-size: .82rem; }
#search-results, .partial-error { margin-top: 1rem; }

/* Equipo activador — banner */
.team-banner {
  max-width: var(--maxw); margin: 0 auto;
  background: linear-gradient(120deg, var(--blue), var(--blue-soft)); border-radius: 20px;
  padding: 44px clamp(1.5rem, 4vw, 48px);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.team-banner .eyebrow { color: #EBD9A8; }
.team-banner h2 { font-size: clamp(1.5rem, 4vw, 30px); margin: 10px 0 8px; }
.team-banner p { font-size: 15px; line-height: 1.6; color: #d3dbf1; margin: 0; max-width: 640px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border); padding: 44px clamp(1.25rem, 4vw, 48px);
}
.site-footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.site-footer__brand { display: flex; align-items: center; gap: 14px; }
.site-footer__logo { width: 48px; height: 48px; background: #fff; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.site-footer__logo img { width: 40px; height: 40px; object-fit: contain; }
.site-footer__brand b { display: block; font-family: var(--display); font-weight: 700; font-size: 16px; }
.site-footer__brand small { display: block; font-size: 12.5px; color: #8391b3; margin-top: 2px; }
.site-footer__tag { display: flex; flex-direction: column; gap: 2px; text-align: right; font-family: var(--mono); font-size: 12px; color: var(--gold); }
.site-footer__credit { color: var(--faint); }

/* ==========================================================================
   Páginas internas específicas
   ========================================================================== */
.ranking-status { background: rgba(36, 88, 45, .25); border: 1px solid #3f8a4d; border-radius: 10px; color: #b8e6c1; margin: 0 0 1.5rem; padding: .75rem 1rem; }

/* Listado de participantes: rejilla multicolumna + paginado */
.participants-status { color: var(--muted); font-size: .95rem; margin: .25rem 0 0; }
.participants-grid {
  list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .35rem .75rem;
}
.participants-grid li { margin: 0; }
.participants-grid a {
  display: block; font-family: var(--mono); font-size: .95rem; color: #fff;
  padding: .35rem .55rem; border-radius: 8px; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border: 1px solid var(--border-soft);
}
.participants-grid a:hover, .participants-grid a:focus-visible { background: rgba(255, 255, 255, .06); color: var(--gold); border-color: var(--border); }
.participants-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; margin-top: 1.75rem; }
.participants-pager__indicator { color: var(--muted); font-size: .95rem; padding: 0 .5rem; }

/* Diploma / QSL mock por participante */
.diploma-mock, .qsl-mock {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow); margin: 1rem 0; padding: clamp(1.5rem, 4vw, 2.5rem);
}
.diploma-mock h2, .qsl-mock h2 { color: #fff; }
.participant-callsign { font-family: var(--mono); font-size: clamp(2rem, 7vw, 3.5rem); letter-spacing: .08em; margin: 1.5rem 0 1rem; color: var(--gold); overflow-wrap: anywhere; }
.diploma-mock dl { border-top: 1px solid var(--border); display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); margin-top: 2rem; padding-top: 1.5rem; }
.diploma-mock dt { color: var(--dim); font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.diploma-mock dd { margin: .25rem 0 0; color: #fff; }
.qsl-mock table { margin-top: 1.5rem; }

.certificate-img {
  max-width: 100%; height: auto; display: block; margin: .5rem 0;
  border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow);
}

/* Agradecimiento a los activadores (página /activadores/) */
.activators-thanks {
  margin: 2.5rem 0 0; padding: 1.5rem 1.75rem; max-width: 820px;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--gold); border-radius: 12px;
  color: var(--muted); font-size: 1.05rem; line-height: 1.7;
}
.activators-thanks strong { color: var(--gold); }

/* Distinción de activador (página de indicativo) */
.activator-flag {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 0 0 1.25rem; padding: .4rem 1rem; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: .9rem; color: #071230;
  background: linear-gradient(120deg, #e6e9f2, var(--gold));
  border: 1px solid rgba(255, 255, 255, .3);
}

/* ==========================================================================
   Responsive — breakpoints canónicos: 1024 / 860 / 680 / 520 / 380 px
   ========================================================================== */

/* ≤ 1024px — transición de escritorio a tablet. Se reserva el umbral para
   concentrar aquí cualquier ajuste intermedio sin afectar el escritorio. */
@media (max-width: 1024px) {
}

/* > 680px — navegación de escritorio. */
@media (min-width: 681px) {
  .site-nav > summary { display: none; }
  details.site-nav::details-content { content-visibility: visible; }
  details.site-nav:not([open]) > .site-header__nav,
  details.site-nav[open] > .site-header__nav { display: flex; }
}
.site-nav > summary { list-style: none; }
.site-nav > summary::-webkit-details-marker { display: none; }
.site-nav__icon { display: block; transition: transform .2s ease; }
.site-nav[open] > summary .site-nav__icon { transform: rotate(90deg); }

@media (prefers-reduced-motion: reduce) {
  .site-nav__icon { transition: none; }
  .site-nav[open] > summary .site-nav__icon { transform: none; }
}

/* ≤ 860px — tablet: las rejillas amplias pasan a composiciones compactas. */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .seal { min-height: 300px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-strip__inner { grid-template-columns: repeat(3, 1fr); }
  .stat-cell:nth-child(3) { border-right: none; }
}

/* ≤ 680px — móvil: navegación desplegable y una sola columna. */
@media (max-width: 680px) {
  .site-header { flex-wrap: nowrap; }
  .site-nav { margin-left: auto; }
  .site-nav > summary {
    display: flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 44px; cursor: pointer;
  }
  .site-nav > summary:focus-visible,
  .site-nav > .site-header__nav a:focus-visible {
    outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px;
  }
  .site-nav > summary,
  .site-header__nav a,
  .participants-pager .btn,
  .participants-grid a,
  .ranking-category td.call a {
    -webkit-tap-highlight-color: rgba(226, 183, 74, .22);
  }
  .site-nav > .site-header__nav {
    display: none; position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem clamp(1.25rem, 4vw, 48px) 1rem;
    background: rgba(7, 18, 48, .96); border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
  }
  .site-nav[open] > .site-header__nav { display: flex; }
  .site-header__nav a {
    display: block; min-height: 44px; padding: .75rem 0;
  }
  .site-header__nav a.btn { width: 100%; padding: .75rem 1.15rem; text-align: center; }

  .participants-pager .btn,
  .participants-grid a,
  .ranking-category td.call a {
    min-height: 44px;
  }
  .participants-grid a { padding-block: .65rem; }
  .ranking-category td.call a {
    display: inline-flex; align-items: center;
  }

  .club-grid, .ranking-grid, .bars-grid { grid-template-columns: 1fr; }
  .club-grid > *, .club-facts > *, .card-grid > * { min-width: 0; }
  .fact b, .fact small, .num-card h3 { overflow-wrap: anywhere; }
  .diploma-mock dl { grid-template-columns: 1fr 1fr; }
  .team-banner { flex-direction: column; align-items: flex-start; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ≤ 520px — móvil estrecho: datos apilados y tarjetas de dos columnas. */
@media (max-width: 520px) {
  .diploma-mock dl { grid-template-columns: 1fr; }
  .participants-grid { grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); }
  .qsl-mock thead {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }
  .qsl-mock tbody, .qsl-mock tr, .qsl-mock td { display: block; }
  .qsl-mock tr { border: 1px solid var(--border-soft); border-radius: 8px; margin-top: .75rem; padding: .25rem .75rem; }
  .qsl-mock td { border: none; display: flex; gap: .75rem; justify-content: space-between; padding: .5rem 0; }
  .qsl-mock td + td { border-top: 1px solid var(--border-soft); }
  .qsl-mock td::before { content: attr(data-label); color: var(--faint); font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .seal { min-height: min(300px, 88vw); }
  .seal__ring { width: min(340px, 88vw); height: min(340px, 88vw); }
  .seal__disc { width: min(300px, 78vw); height: auto; aspect-ratio: 1; }
  .card-grid, .stat-strip__inner { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(3) { border-right: 1px solid var(--border-soft); }
  .stat-cell:nth-child(2n) { border-right: none; }
}

/* ≤ 380px — último ajuste para las filas de clasificación. */
@media (max-width: 380px) {
  .ranking-category tr { grid-template-columns: 30px minmax(0, 1fr) auto 48px; padding-inline: 12px; }
  .ranking-category td.call { flex-direction: column; align-items: flex-start; gap: 3px; }
  .ranking-category td.call .diploma-tag { display: block; }
}

/* ==========================================================================
   Impresión — diploma/QSL en papel (fondo blanco legible)
   ========================================================================== */
@media print {
  @page { size: A4; margin: 1.2cm; }
  html, body { background: #fff; color: #111; }
  .site-header, .site-footer, .print-hide, .landing { display: none !important; }
  main { display: block; max-width: none; padding: 0; }
  .diploma-mock, .qsl-mock { break-inside: avoid; box-shadow: none; margin: 0; border: 1px solid #ccc; background: #fff; }
  .diploma-mock h2, .qsl-mock h2, .diploma-mock dd, .participant-callsign { color: #111; }
  .diploma-mock dt { color: #555; }
  .diploma-mock { page-break-after: always; }
  .qsl-mock table, .qsl-mock th, .qsl-mock td { color: #111; border-color: #ccc; }
}
