/* FEPM — Federación Española de Pentatlón Moderno
   Tokens ------------------------------------------------------------ */
:root {
  /* Paleta tomada de pentatlon.info (tema Salient) */
  --rojo: #CF1F1F;          /* botones */
  --rojo-oscuro: #A81717;
  --acento: #FF5433;        /* acento Salient: pestañas, hover */
  --carmesi: #CC0033;       /* títulos de widget */
  --amarillo: #FFCC00;      /* franja del escudo / pie */
  --marino: #000000;        /* titulares: negro */
  --tinta: #000000;
  --texto: #000000;
  --acero: #888888;
  --linea: #DDDDDD;
  --fondo: #FFFFFF;
  --panel: #FFFFFF;
  --panel-suave: rgba(0,0,0,.043);
  --oro: #FFCC00;
  --foco: #1E5BD8;
  --sombra: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px -12px rgba(0,0,0,.18);
  --display: Cambria, Georgia, "Times New Roman", serif;
  --cuerpo: Cambria, Georgia, "Times New Roman", serif;
  --label: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  --radio: 3px;
  --ancho: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--cuerpo);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--acento); text-underline-offset: 3px; }
a:hover { color: var(--rojo); }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--marino);
  line-height: 1.2;
  margin: 0 0 .5em;
  text-wrap: balance;
  font-weight: 500;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }

.eyebrow {
  font-family: var(--label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .75rem;
  color: var(--carmesi);
  margin-bottom: .5rem;
}
.lead { font-size: 1.15rem; color: var(--acero); }
.muted { color: var(--acero); }
.tabular { font-variant-numeric: tabular-nums; }

/* Layout ------------------------------------------------------------ */
.wrap { width: min(var(--ancho), 100%); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section--tight { padding-block: clamp(1.5rem, 4vw, 3rem); }
.section--panel { background: #F7F7F7; border-block: 1px solid var(--linea); }
.section--marino { background: #111111; color: #DCDCDC; }
.section--marino h2, .section--marino h3 { color: #fff; }
.section--marino .eyebrow { color: var(--amarillo); }
.section--marino a { color: #FFD6C9; }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* Header ------------------------------------------------------------ */
.topbar {
  background: #111111;
  color: #BBBBBB;
  font-size: .8rem;
  font-family: var(--label);
}
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: .35rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
.topbar li { margin: 0; }

.header {
  background: var(--panel);
  border-bottom: 1px solid var(--linea);
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 86px; }

.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 52px; width: auto; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.nav li { margin: 0; }
.nav a {
  display: block; padding: .6rem .8rem;
  font-family: var(--cuerpo); font-weight: 500; font-size: 1rem;
  color: #000; text-decoration: none; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--acento); }
.nav a.btn-tienda { background: var(--rojo); color: #fff; border-radius: var(--radio); margin-left: .5rem; padding-inline: 1rem; }
.nav .social-nav { display: flex; gap: .1rem; margin-left: .5rem; }
.nav .social-nav a { padding: .6rem .45rem; display: grid; place-items: center; }
.nav .social-nav svg { width: 15px; height: 15px; fill: currentColor; }
.nav a.btn-tienda:hover { background: var(--rojo-oscuro); border-color: transparent; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--linea); border-radius: var(--radio);
  padding: .5rem .7rem; font: inherit; font-size: .95rem; cursor: pointer; color: #000;
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .5rem; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--panel); border-bottom: 1px solid var(--linea); box-shadow: var(--sombra); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: .5rem var(--gutter) 1rem; }
  .nav a { padding: .75rem .5rem; border-bottom: 1px solid var(--linea); }
  .nav a.btn-tienda { margin: .5rem 0 0; text-align: center; }
  .nav .social-nav { margin: .5rem 0 0; justify-content: center; }
  .topbar ul { display: none; }
}

/* Hero: cinco pruebas (nectar-fancy-box de la web actual) -------- */
.hero { background: linear-gradient(180deg, #EEF2FA 0%, #FFFFFF 100%); padding-block: clamp(2rem, 4vw, 3rem) clamp(2rem, 4vw, 3.5rem); }
.hero__top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: end; margin-bottom: 2rem; }
@media (max-width: 860px) { .hero__top { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: .35rem; }
.hero .lead { max-width: 60ch; }
.hero__next {
  background: #fff; border: 1px solid var(--linea); border-left: 4px solid var(--carmesi);
  padding: 1rem 1.25rem; border-radius: var(--radio); box-shadow: var(--sombra);
}
.hero__next .eyebrow { margin-bottom: .25rem; }
.hero__next strong { font-family: var(--display); font-size: 1.35rem; font-weight: 500; display: block; line-height: 1.2; color: #000; }
.hero__next span { color: var(--acero); font-size: .95rem; }

.pruebas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 960px) { .pruebas { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .pruebas { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.pruebas li {
  margin: 0; position: relative; aspect-ratio: 120 / 275; min-height: 260px; max-height: 420px;
  border-radius: var(--radio); overflow: hidden; background: #333 center / cover no-repeat;
  display: flex; align-items: flex-end; color: #fff; box-shadow: var(--sombra);
}
.pruebas li::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%); transition: background .3s; }
.pruebas li:hover::before, .pruebas li:focus-within::before { background: rgba(0,0,0,.72); }
.pruebas .inner { position: relative; padding: 1.1rem 1rem 1.2rem; width: 100%; }
.pruebas .num { position: absolute; top: -9999px; }
.pruebas h3 { color: #fff; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.25rem; letter-spacing: .02em; margin: 0; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.pruebas .dato { display: block; font-family: var(--label); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--amarillo); margin-top: .25rem; }
.pruebas p { font-size: .85rem; line-height: 1.45; color: #fff; margin: .5rem 0 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s, opacity .3s; max-width: none; }
.pruebas li:hover p, .pruebas li:focus-within p { max-height: 200px; opacity: 1; }
@media (hover: none) { .pruebas p { max-height: none; opacity: 1; } }
.pruebas li[data-prueba="esgrima"] { background-image: url("img/esgrima-800.webp"); }
@media (min-width: 1100px) { .pruebas li[data-prueba="esgrima"] { background-image: url("img/esgrima.webp"); } }
.pruebas li[data-prueba="natacion"] { background-image: url("img/natacion-800.webp"); }
@media (min-width: 1100px) { .pruebas li[data-prueba="natacion"] { background-image: url("img/natacion.webp"); } }
.pruebas li[data-prueba="obstaculos"] { background-image: url("img/obstaculos-800.webp"); }
@media (min-width: 1100px) { .pruebas li[data-prueba="obstaculos"] { background-image: url("img/obstaculos.webp"); } }
.pruebas li[data-prueba="disparo"] { background-image: url("img/disparo-800.webp"); }
@media (min-width: 1100px) { .pruebas li[data-prueba="disparo"] { background-image: url("img/disparo.webp"); } }
.pruebas li[data-prueba="carrera"] { background-image: url("img/carrera-800.webp"); }
@media (min-width: 1100px) { .pruebas li[data-prueba="carrera"] { background-image: url("img/carrera.webp"); } }

/* Componentes ------------------------------------------------------ */
.btn {
  display: inline-block; padding: .7rem 1.2rem; border-radius: var(--radio);
  font-family: var(--cuerpo); font-weight: 500; font-size: .95rem;
  text-decoration: none; border: 2px solid var(--rojo); background: var(--rojo); color: #fff; cursor: pointer; line-height: 1.2;
}
.btn:hover { background: var(--rojo-oscuro); border-color: var(--rojo-oscuro); color: #fff; }
.btn--ghost { background: transparent; color: var(--rojo); }
.btn--ghost:hover { background: var(--rojo); color: #fff; }
.btn--sm { padding: .4rem .8rem; font-size: .85rem; }
.btn--light { background: #fff; border-color: #fff; color: #000; }
.btn--light:hover { background: #E8EBF0; border-color: #E8EBF0; color: var(--marino); }

.card { background: var(--panel); border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.5rem; }
.card h3 { margin-top: 0; }
.card--link { text-decoration: none; color: inherit; display: block; transition: transform .15s, box-shadow .15s; }
.card--link:hover { transform: translateY(-2px); box-shadow: var(--sombra); color: inherit; }
.card--link .more { color: var(--acento); font-family: var(--cuerpo); font-weight: 500; }

.tag { display: inline-block; font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .65rem; padding: .15rem .5rem; border-radius: 2px; background: var(--panel-suave); color: var(--marino); }
.tag--rojo { background: var(--rojo); color: #fff; }
.tag--oro { background: var(--amarillo); color: #000; }

/* Calendario / lista de eventos */
.eventos { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--linea); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; }
.evento { margin: 0; display: grid; grid-template-columns: 110px 1fr auto; gap: 1.25rem; align-items: center; padding: 1rem 1.25rem; background: var(--panel); }
@media (max-width: 640px) { .evento { grid-template-columns: 90px 1fr; } .evento__acciones { grid-column: 1 / -1; } }
.evento__fecha { font-family: var(--display); line-height: 1; }
.evento__fecha b { display: block; font-size: 1.7rem; font-weight: 700; color: var(--carmesi); font-variant-numeric: tabular-nums; }
.evento__fecha span { font-family: var(--label); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--acero); }
.evento__info h3 { font-size: 1.25rem; margin: 0 0 .15rem; }
.evento__info .meta { font-size: .9rem; color: var(--acero); }
.evento__acciones { display: flex; flex-wrap: wrap; gap: .5rem; }
.evento--pasado { background: #F7F7F7; }
.evento--pasado .evento__fecha b { color: var(--acero); }

/* Tablas */
.tabla-wrap { overflow-x: auto; border: 1px solid var(--linea); border-radius: var(--radio); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
th, td { padding: .65rem .9rem; text-align: left; border-bottom: 1px solid var(--linea); white-space: nowrap; }
th { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .7rem; background: #F2F2F2; color: #000; }
td.num, th.num { text-align: right; }
tr:last-child td { border-bottom: 0; }
td.pos { font-weight: 700; color: var(--carmesi); width: 3ch; }

/* Pestañas (estilo wpb_tabs Salient) */
.tabs { display: flex; gap: 4px; margin-bottom: 1.5rem; overflow-x: auto; }
.tabs button {
  background: rgba(0,0,0,.043); border: 0; padding: .55rem 1rem; cursor: pointer; border-radius: 2px;
  font-family: var(--cuerpo); font-weight: 500; font-size: .95rem; color: var(--acero); white-space: nowrap; transition: background .2s, color .2s;
}
.tabs button[aria-selected="true"] { color: #fff; background: var(--acento); }
.tabs button:hover { color: #000; background: rgba(0,0,0,.08); }
.tabs button[aria-selected="true"]:hover { color: #fff; background: var(--acento); }
[role="tabpanel"][hidden] { display: none; }

/* Documentos */
.docs { list-style: none; margin: 0; padding: 0; }
.docs li { margin: 0; border-bottom: 1px solid var(--linea); }
.docs li:last-child { border-bottom: 0; }
.docs a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem .25rem; text-decoration: none; color: var(--texto); }
.docs a:hover { color: var(--rojo); background: var(--panel-suave); }
.docs a::after { content: "PDF"; font-family: var(--label); font-weight: 700; font-size: .6rem; letter-spacing: .1em; color: var(--acero); border: 1px solid var(--linea); padding: .1rem .4rem; border-radius: 2px; flex-shrink: 0; }
.docs a[data-tipo="xlsx"]::after { content: "XLSX"; }
.docs a[data-tipo="docx"]::after { content: "DOCX"; }
.docs a[data-tipo="web"]::after { content: "WEB"; }

/* Noticias */
.noticia { display: grid; grid-template-rows: auto 1fr; }
.noticia__img { aspect-ratio: 3 / 2; background: #EEF2FA center / cover no-repeat; border-radius: var(--radio) var(--radio) 0 0; display: grid; place-items: center; color: var(--carmesi); font-family: var(--display); font-size: 1.8rem; font-weight: 700; letter-spacing: .02em; }
.noticia__body { background: var(--panel); border: 1px solid var(--linea); border-top: 0; padding: 1.25rem; border-radius: 0 0 var(--radio) var(--radio); }
.noticia__meta { font-size: .8rem; color: var(--acero); margin-bottom: .5rem; display: flex; gap: .75rem; align-items: center; }
.noticia h3 { font-size: 1.3rem; }
.noticia h3 a { color: #000; text-decoration: none; }
.noticia h3 a:hover { color: var(--acento); }

/* Formularios */
.form { display: grid; gap: 1rem; }
.form label { font-family: var(--label); font-weight: 600; font-size: .8rem; color: #000; display: block; margin-bottom: .3rem; }
.form input, .form textarea, .form select {
  width: 100%; padding: .65rem .8rem; border: 1px solid var(--linea); border-radius: var(--radio); font: inherit; background: var(--panel); color: var(--texto);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .check { display: flex; gap: .6rem; align-items: start; font-size: .9rem; }
.form .check input { width: auto; margin-top: .3rem; }
.form .check label { font-family: var(--cuerpo); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .9rem; margin: 0; }
.form-note { font-size: .85rem; color: var(--acero); }

/* Datos clave */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 1px; background: var(--linea); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; }
.stat { background: var(--panel); padding: 1.25rem; }
.stat b { display: block; font-family: var(--display); font-size: 2.4rem; font-weight: 700; color: var(--carmesi); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-family: var(--label); font-size: .7rem; color: var(--acero); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }

/* Aviso */
.aviso { border-left: 4px solid var(--amarillo); background: #FFF8E0; padding: 1rem 1.25rem; border-radius: var(--radio); color: #5A4300; font-size: .95rem; }
.aviso--rojo { border-color: var(--rojo); background: #FBECEC; color: #6B1214; }

/* Patrocinadores */
.logos { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.logos li { margin: 0; font-family: var(--label); font-weight: 600; color: var(--acero); font-size: .85rem; }
.logos img { height: 72px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.logos a:hover img { filter: none; opacity: 1; }

/* Footer: franja amarilla del escudo + pie claro ------------------ */
.footer { background: #F7F7F7; border-top: 8px solid var(--amarillo); color: #444; font-size: .95rem; padding-block: 3rem 1.5rem; }
.footer h4 { color: #000; font-size: 1.05rem; margin-bottom: .75rem; }
.footer a { color: #000; text-decoration: none; }
.footer a:hover { color: var(--acento); text-decoration: underline; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .4rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__logo { height: 56px; width: auto; margin-bottom: 1rem; }
.footer__legal { border-top: 1px solid var(--linea); padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; font-size: .8rem; font-family: var(--label); color: var(--acero); }
.footer__legal ul { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer__legal li { margin: 0; }
.social { display: flex; gap: .5rem; margin-top: .75rem; }
.social a { width: 36px; height: 36px; border: 1px solid var(--linea); border-radius: 50%; display: grid; place-items: center; background: #fff; }
.social a svg { width: 15px; height: 15px; fill: #000; }
.social a:hover { border-color: var(--acento); background: var(--acento); }
.social a:hover svg { fill: #fff; }

/* Cookies */
.cookies {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 100;
  background: #111; color: #DDD; padding: 1rem var(--gutter) calc(1rem + env(safe-area-inset-bottom, 0px));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; font-size: .9rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,.25);
}
.cookies p { margin: 0; max-width: 70ch; }
.cookies a { color: #fff; }
.cookies__acciones { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Página interior */
.page-head { background: linear-gradient(180deg, #EEF2FA 0%, #FFFFFF 100%); border-bottom: 1px solid var(--linea); padding-block: clamp(2rem, 5vw, 3.5rem); }
.page-head h1 { margin-bottom: .25rem; }
.page-head .lead { margin: 0; }
.breadcrumb { font-size: .85rem; color: var(--acero); margin-bottom: .75rem; }
.breadcrumb a { color: var(--acero); text-decoration: none; }
.breadcrumb a:hover { color: var(--rojo); }

.subnav { position: sticky; top: calc(86px + env(safe-area-inset-top, 0px)); z-index: 40; background: #fff; border-bottom: 1px solid var(--linea); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; overflow-x: auto; }
.subnav li { margin: 0; }
.subnav a { display: block; padding: .7rem .8rem; font-family: var(--cuerpo); font-weight: 500; font-size: .95rem; color: var(--acero); text-decoration: none; white-space: nowrap; }
.subnav a:hover { color: var(--acento); }

.persona { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: center; }
.persona__ini { width: 42px; height: 42px; border-radius: 50%; background: var(--carmesi); color: #fff; display: grid; place-items: center; font-family: var(--label); font-size: .8rem; font-weight: 700; }
.persona b { display: block; color: var(--marino); }
.persona span { font-size: .85rem; color: var(--acero); }

dl.datos { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; margin: 0; }
dl.datos dt { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .7rem; color: var(--acero); padding-top: .25rem; }
dl.datos dd { margin: 0; }

.prose h2 { margin-top: 2.5rem; font-size: 1.8rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul { max-width: 68ch; }

.skip { position: absolute; left: -999px; top: 0; background: var(--rojo); color: #fff; padding: .5rem 1rem; z-index: 200; }
.skip:focus { left: 1rem; top: 1rem; }

/* Responsive: evitar desbordes ------------------------------------- */
.grid > *, .two-col > *, .hero__top > *, .footer__grid > *, .evento > *, .persona > *, .noticia > * { min-width: 0; }
.card, .prose, aside, article { min-width: 0; }
a, dd, td, .docs a, .persona span, .noticia__meta { overflow-wrap: anywhere; }
.tabla-wrap table td, .tabla-wrap table th { overflow-wrap: normal; }
.wrap { overflow-x: clip; }
dl.datos { grid-template-columns: minmax(3.5rem, max-content) 1fr; }
@media (max-width: 600px) {
  .pruebas li:last-child { grid-column: span 2; aspect-ratio: auto; min-height: 200px; }
  ul[style*="columns"] { columns: 1 !important; }
  .section-head { align-items: start; }
  .section-head .tabs { width: 100%; }
  .hero h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .evento { padding: .9rem 1rem; gap: .9rem; }
  .evento__info h3 { font-size: 1.1rem; }
  .evento__acciones .btn { flex: 1 1 auto; text-align: center; }
  .cookies { font-size: .85rem; }
  .cookies__acciones { width: 100%; }
  .cookies__acciones .btn { flex: 1; text-align: center; }
  .stat b { font-size: 2rem; }
  .form .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .pruebas { grid-template-columns: 1fr; }
  .pruebas li { aspect-ratio: auto; min-height: 180px; max-height: none; }
  .pruebas li:last-child { grid-column: auto; }
  .evento { grid-template-columns: 72px 1fr; }
}

/* Federaciones autonómicas: tarjetas compactas -------------------- */
#autonomicas .grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
#autonomicas .card { padding: 1.1rem 1.15rem; }
#autonomicas .card h3 { font-size: 1.05rem; line-height: 1.3; margin: .5rem 0 .75rem; text-wrap: pretty; }
#autonomicas dl.datos { font-size: .88rem; line-height: 1.45; gap: .35rem .75rem; grid-template-columns: 3.2rem 1fr; }
#autonomicas dl.datos dt { font-size: .62rem; padding-top: .2rem; }
#autonomicas dl.datos dd a { overflow-wrap: anywhere; }

/* Escala tipográfica: contenedores estrechos --------------------- */
.card h3 { font-size: 1.15rem; line-height: 1.3; }
.card .persona b { font-size: .95rem; }
.noticia h3 { font-size: 1.1rem; line-height: 1.35; }
.noticia p { font-size: .95rem; }
.card--link p { font-size: .95rem; }
.hero__next strong { font-size: 1.2rem; }
.evento__fecha b { font-size: 1.45rem; white-space: nowrap; letter-spacing: -.01em; }
.evento__info h3 { font-size: 1.1rem; line-height: 1.3; }
.evento__info .meta { font-size: .85rem; }
.stat b { font-size: 2rem; }
article.prose h2 { font-size: 1.6rem; line-height: 1.25; }
.footer h4 { font-size: .95rem; }
.footer { font-size: .9rem; }
@media (max-width: 600px) {
  .lead { font-size: 1.02rem; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.2rem; }
  .card h3 { font-size: 1.05rem; }
  .noticia h3 { font-size: 1.02rem; }
  article.prose h2 { font-size: 1.3rem; }
  .prose h2 { font-size: 1.4rem; }
  .evento__fecha b { font-size: 1.25rem; }
  .evento__info h3 { font-size: 1rem; }
  .hero__next strong { font-size: 1.1rem; }
  .section-head h2 { font-size: 1.4rem; }
}
section[id], div[id], article[id], h2[id] { scroll-margin-top: calc(86px + 52px + env(safe-area-inset-top, 0px)); }

/* Cabecera de página con foto (imágenes del hero de portada) ----- */
.page-head--img {
  position: relative; isolation: isolate; color: #fff; border-bottom: 0;
  background: #222 var(--img) center var(--pos, 50%) / cover no-repeat;
  min-height: clamp(220px, 32vw, 340px); display: flex; align-items: flex-end;
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.75rem, 4vw, 2.75rem);
}
.page-head--img::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.72) 100%);
}
.page-head--img::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--amarillo);
}
.page-head--img .wrap { width: 100%; }
.page-head--img h1 { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.page-head--img .lead { color: rgba(255,255,255,.88); text-shadow: 0 1px 6px rgba(0,0,0,.45); max-width: 62ch; }
.page-head--img .breadcrumb, .page-head--img .breadcrumb a { color: rgba(255,255,255,.75); }
.page-head--img .breadcrumb a:hover { color: #fff; }
@media (max-width: 600px) {
  .page-head--img { min-height: 200px; background-position: center var(--pos-m, var(--pos, 50%)); }
}
.cookies[hidden] { display: none !important; }

/* Tienda embebida a pantalla completa ------------------------------ */
.tienda-full { display: flex; flex-direction: column; height: calc(100vh - 86px - env(safe-area-inset-top, 0px)); min-height: 560px; }
.tienda-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .5rem var(--gutter); font-size: .85rem; background: #F7F7F7; border-bottom: 1px solid var(--linea); }
.tienda-full iframe { flex: 1; width: 100%; border: 0; display: block; }
@media (max-width: 600px) { .tienda-bar { font-size: .8rem; } .tienda-bar .btn { width: 100%; text-align: center; } }

/* Cabeceras con foto: contenido centrado -------------------------- */
.page-head--img { align-items: center; text-align: center; padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-head--img::before { background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.5) 50%, rgba(0,0,0,.65) 100%); }
.page-head--img .breadcrumb { justify-content: center; }
.page-head--img h1 { margin-inline: auto; }
.page-head--img .lead { margin-inline: auto; }
.page-head--img .lead a { color: #fff; }
.page-head--img .breadcrumb { max-width: none; text-align: center; margin-inline: auto; }
@media (max-width: 600px) {
  .tienda-bar { flex-wrap: nowrap; padding: .4rem var(--gutter); }
  .tienda-bar > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tienda-bar .btn { width: auto; flex-shrink: 0; padding: .3rem .6rem; }
}

/* Imágenes de noticias ---------------------------------------------- */
.noticia__img--logo { background: #FFF8E0; padding: 1.5rem; }
.noticia__img--logo img { height: 100%; width: auto; max-height: 120px; object-fit: contain; margin: auto; }
.noticia__hero { margin: 0 0 1.25rem; border-radius: var(--radio); overflow: hidden; aspect-ratio: 16 / 7; background: #EEF2FA; }
.noticia__hero img { width: 100%; height: 100%; object-fit: cover; }
.noticia__hero--logo { display: grid; place-items: center; background: #FFF8E0; padding: 1.5rem; }
.noticia__hero--logo img { width: auto; height: auto; max-height: 100%; max-width: 220px; object-fit: contain; }
@media (max-width: 600px) { .noticia__hero { aspect-ratio: 3 / 2; } }

/* Mejoras: cuenta atrás, fechas, patrocinadores, botón flotante, buscador, skeleton, cómo empezar */
.countdown { display: flex; gap: .6rem; margin: .6rem 0 .25rem; font-variant-numeric: tabular-nums; }
.countdown div { background: var(--carmesi); color: #fff; border-radius: var(--radio); padding: .35rem .6rem; min-width: 56px; text-align: center; line-height: 1.1; }
.countdown b { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 700; }
.countdown span { font-family: var(--label); font-size: .6rem; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.countdown--live div { background: var(--acento); }

.evento__fecha { background: var(--carmesi); color: #fff; border-radius: var(--radio); padding: .45rem .3rem; text-align: center; align-self: center; }
.evento__fecha b { color: #fff; font-size: 1.35rem; }
.evento__fecha span { color: rgba(255,255,255,.85); }
.evento--pasado .evento__fecha { background: #BDBDBD; }
.evento--pasado .evento__fecha b { color: #fff; }
@media (max-width: 600px) { .evento__fecha b { font-size: 1.15rem; } }

.logos img { filter: none; opacity: 1; }
.logos a:hover img { transform: scale(1.04); }
.logos img { transition: transform .2s; }

.fab { display: none; }
@media (max-width: 960px) {
  .fab { display: inline-flex; align-items: center; gap: .4rem; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90;
    background: var(--rojo); color: #fff; text-decoration: none; padding: .7rem 1rem; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.25);
    font-family: var(--label); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
  .fab:hover { background: var(--rojo-oscuro); color: #fff; }
  .cookies:not([hidden]) ~ .fab { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
}

.docsearch { position: sticky; top: calc(86px + env(safe-area-inset-top, 0px)); z-index: 40; background: #fff; border-bottom: 1px solid var(--linea); }
.docsearch .wrap { display: flex; gap: .75rem; align-items: center; padding-block: .6rem; }
.docsearch input { flex: 1; padding: .6rem .9rem; border: 1px solid var(--linea); border-radius: 999px; font: inherit; font-size: .95rem; }
.docsearch output { font-family: var(--label); font-size: .75rem; color: var(--acero); white-space: nowrap; }
.docs li[data-hide], .card[data-hide], .tabla-wrap tr[data-hide] { display: none; }
.docsearch mark { background: #FFE58A; color: inherit; padding: 0 .1em; }
.docsearch + .subnav { top: calc(86px + 58px + env(safe-area-inset-top, 0px)); }

.tienda-full { position: relative; }
.tienda-full .skeleton { position: absolute; inset: 42px 0 0; display: grid; place-items: center; background: repeating-linear-gradient(90deg, #F2F2F2 0 200px, #E9E9E9 200px 400px); background-size: 800px 100%; animation: shimmer 1.4s linear infinite; color: var(--acero); font-family: var(--label); font-size: .85rem; z-index: 1; pointer-events: none; }
.tienda-full.is-loaded .skeleton { display: none; }
@keyframes shimmer { to { background-position: 800px 0; } }

.pasos { counter-reset: paso; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.pasos li { counter-increment: paso; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.25rem 1.25rem 1.25rem 4.25rem; position: relative; margin: 0; }
.pasos li::before { content: counter(paso); position: absolute; left: 1.1rem; top: 1.1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--carmesi); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.pasos h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.pasos p { font-size: .95rem; margin: 0 0 .6rem; }
.countdown div { min-width: 64px; padding: .45rem .7rem .5rem; }
.countdown span { font-size: .72rem; font-weight: 700; opacity: 1; color: #fff; letter-spacing: .06em; margin-top: .15rem; display: block; }
.pruebas .dato { color: #FFD84D; font-weight: 700; font-size: .72rem; text-shadow: 0 1px 4px rgba(0,0,0,.8), 0 0 12px rgba(0,0,0,.5); }
.pruebas p { text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.pruebas { gap: 6px; }
@media (max-width: 600px) { .pruebas { gap: 6px; } }
.pruebas li { aspect-ratio: auto; height: clamp(300px, 34vw, 440px); max-height: none; min-height: 0; width: 100%; }
@media (max-width: 960px) { .pruebas li { height: clamp(260px, 40vw, 360px); } }
@media (max-width: 600px) { .pruebas li { height: 240px; } .pruebas li:last-child { height: 200px; } }
@media (max-width: 400px) { .pruebas li { height: 190px; } .pruebas li:last-child { height: 190px; } }
/* Textos del hero alineados: título y línea de datos con altura fija */
.pruebas .inner { display: grid; grid-template-rows: auto 2.6em auto; align-content: end; }
.pruebas h3 { white-space: nowrap; line-height: 1.2; }
.pruebas .dato { line-height: 1.3; align-self: start; }
.pruebas p { grid-row: 3; }
/* Tablas: caben sin scroll lateral en móvil */
th, td { white-space: normal; }
td.num, th.num, td.pos, th:first-child, td:first-child { white-space: nowrap; }
td.pos { width: 2.5rem; padding-inline: .6rem; }
table { table-layout: auto; }
@media (max-width: 600px) {
  th, td { padding: .55rem .6rem; font-size: .92rem; }
  td.pos { width: 2rem; padding-inline: .5rem; }
  td.num, th.num { padding-left: .3rem; }
}
th:first-child, td:first-child { white-space: normal; }
td code { overflow-wrap: anywhere; font-size: .85em; }
@media (max-width: 600px) { th, td { padding: .5rem .45rem; font-size: .85rem; } }
@media (max-width: 600px) {
  #subvenciones table, #cookies-tabla table { table-layout: fixed; width: 100%; }
  #subvenciones th:nth-child(1) { width: 15%; } #subvenciones th:nth-child(2) { width: 24%; } #subvenciones th:nth-child(4) { width: 15%; }
  #subvenciones td, #cookies-tabla td { overflow-wrap: anywhere; hyphens: auto; }
}
@media (max-width: 600px) { th { overflow-wrap: anywhere; hyphens: auto; } #subvenciones th:nth-child(4) { width: 12%; } }

/* Competición: calendario, resultados y liga --------------------- */
.acciones-inline { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Navegador de meses */
.meses { display: flex; gap: .35rem; list-style: none; margin: 0 0 1.75rem; padding: 0 0 .4rem; overflow-x: auto; }
.meses li { margin: 0; }
.meses a {
  display: grid; place-items: center; gap: .1rem; min-width: 58px; padding: .45rem .6rem;
  border: 1px solid var(--linea); border-radius: var(--radio); background: #fff;
  text-decoration: none; color: var(--acero); font-family: var(--label);
}
.meses a:hover { border-color: var(--acento); color: var(--acento); }
.meses span { font-size: .68rem; font-weight: 700; letter-spacing: .08em; }
.meses b { font-size: 1.1rem; color: var(--carmesi); font-variant-numeric: tabular-nums; }

.mes { margin-bottom: 2rem; scroll-margin-top: 160px; }
.mes__titulo { font-size: 1.25rem; color: var(--carmesi); margin-bottom: .6rem; }

.evento__tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.evento--cancelado .evento__info h3 { text-decoration: line-through; color: var(--acero); }
.estado--abierta { background: #1B873F; color: #fff; }
.estado--cerrada { background: #6B7280; color: #fff; }
.estado--celebrada { background: var(--panel-suave); color: var(--acero); }
.estado--aviso { background: var(--amarillo); color: #000; }
.estado--cancelada { background: var(--rojo); color: #fff; }

/* Resultados */
.resultado { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.25rem; margin-bottom: 1.25rem; scroll-margin-top: 160px; }
.resultado__head h3 { font-size: 1.25rem; margin-bottom: .1rem; }
.resultado__head .meta { font-size: .9rem; color: var(--acero); margin: 0; }
.resultado__pruebas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; margin-top: 1rem; }
.prueba { border: 1px solid var(--linea); border-radius: var(--radio); padding: .9rem 1rem; min-width: 0; }
.prueba__head { display: flex; align-items: start; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.prueba__head h4 { font-size: 1rem; margin: 0 0 .4rem; }

.podio { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .3rem; counter-reset: p; }
.podio li { margin: 0; padding-left: 1.9rem; position: relative; font-size: .92rem; line-height: 1.35; }
.podio li::before { position: absolute; left: 0; top: .05rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--label); font-size: .65rem; font-weight: 800; }
.podio__oro::before    { content: "1"; background: #E8B923; color: #3A2C00; }
.podio__plata::before  { content: "2"; background: #C6CBD3; color: #2A2E36; }
.podio__bronce::before { content: "3"; background: #C68A4B; color: #2E1B06; }
.podio b { font-weight: 600; color: #000; }
.podio span { display: block; font-size: .8rem; color: var(--acero); }

/* Liga */
table caption { text-align: left; padding: .6rem .9rem; font-family: var(--label); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--carmesi); background: #fff; }
.fila--nota td { color: var(--acero); }

.sello { font-family: var(--label); font-size: .78rem; color: var(--acero); margin-top: 1.25rem; }

@media (max-width: 600px) {
  .meses a { min-width: 50px; padding: .4rem .45rem; }
  .resultado { padding: 1rem; }
  .mes, .resultado { scroll-margin-top: 140px; }
}

/* Rejilla de noticias: con una o dos, las tarjetas no deben estirarse a lo ancho.
   auto-fill mantiene las columnas aunque estén vacías; auto-fit las colapsaba. */
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.noticia__img { max-height: 260px; }
.noticia__hero { max-height: 380px; }

/* Si el asistente está en la web, su botón ocupa la esquina y el de inscripción sube */
@media (max-width: 960px) {
    .fepm-con-chat .cookies:not([hidden]) ~ .fab { bottom: calc(210px + env(safe-area-inset-bottom, 0px)); }
}

/* Tarjeta de noticia sin fotografía propia: bloque temático de la casa */
.noticia__img--tema {
  background: linear-gradient(140deg, var(--marino) 0%, #2A2F3A 55%, var(--carmesi) 100%);
  display: grid; place-items: center; padding: 1rem; text-align: center;
}
.noticia__img--tema span {
  font-family: var(--display); font-size: 1.5rem; font-weight: 700; color: #fff;
  letter-spacing: .01em; text-shadow: 0 1px 8px rgba(0,0,0,.4); line-height: 1.2;
}
.noticia__img--tema::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--amarillo);
}
.noticia__img--tema { position: relative; }

/* ---- Actualidad: destacada, tarjetas y página de noticia ---- */
.destacada {
  display: grid; grid-template-columns: 1.15fr 1fr;
  background: #fff; border: 1px solid var(--linea); border-radius: var(--radio);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: box-shadow .2s ease, transform .2s ease;
}
.destacada:hover { box-shadow: 0 10px 30px rgba(10, 22, 51, .12); transform: translateY(-2px); }
.destacada__img { min-height: 320px; background-size: cover; background-position: center; }
.destacada__body { padding: clamp(1.25rem, 3vw, 2.25rem); align-self: center; min-width: 0; }
.destacada__body h2 { margin: .5rem 0 .75rem; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.2; }
.destacada__body p { color: var(--acero); margin: 0; }
.destacada__mas { display: inline-block; margin-top: 1rem; font-weight: 700; color: var(--rojo); }
.destacada__mas::after { content: " →"; }
@media (max-width: 760px) {
  .destacada { grid-template-columns: 1fr; }
  .destacada__img { min-height: 200px; aspect-ratio: 16 / 9; }
}

/* En la noticia, las migas van centradas como el titular y la entradilla */
.noticia-pagina .breadcrumb {
  max-width: 72ch; margin: 0 auto 1.5rem; text-align: center;
}
.noticia__cabecera { max-width: 72ch; margin: 0 auto 1.75rem; text-align: center; }
.noticia__cabecera h1 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.15; margin: .5rem 0 .75rem; }
.noticia__cabecera .noticia__meta { justify-content: center; }
.noticia-pagina .noticia__hero {
  max-width: 1000px; margin: 0 auto 2rem;
  aspect-ratio: auto; max-height: none; background: #EEF2FA;
}
.noticia-pagina .noticia__hero img { height: auto; aspect-ratio: 16 / 9; }
.noticia__credito {
  padding: .5rem .75rem; font-size: .8rem; color: var(--acero);
  background: #F4F6FA; text-align: right;
}
.noticia-pagina .prose { max-width: 72ch; margin: 0 auto; }
.noticia-pagina .prose p { margin-bottom: 1.1rem; }

.noticia__nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--linea);
}
.noticia__nav-item {
  display: grid; gap: .3rem; padding: 1rem; border: 1px solid var(--linea);
  border-radius: var(--radio); text-decoration: none; color: inherit; min-width: 0;
}
.noticia__nav-item:hover { border-color: var(--rojo); color: var(--rojo); }
.noticia__nav-item:last-child { text-align: right; }
@media (max-width: 600px) {
  .noticia__nav { grid-template-columns: 1fr; }
  .noticia__nav-item:last-child { text-align: left; }
}

/* ================= Actualidad: filtros, rejilla y paginación ================= */
.section--listado .wrap { max-width: var(--ancho); }

/* Filtros por tema */
.filtros {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin: 0 0 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--linea);
}
.filtro {
  display: inline-flex; align-items: baseline; gap: .4rem;
  padding: .45rem .9rem; border: 1px solid var(--linea); border-radius: 999px;
  font-family: var(--label); font-size: .82rem; font-weight: 600;
  color: var(--marino); background: #fff; text-decoration: none; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.filtro:hover { border-color: var(--rojo); color: var(--rojo); }
.filtro.is-activo { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.filtro__n { font-size: .75em; opacity: .6; font-variant-numeric: tabular-nums; }
.filtro.is-activo .filtro__n { opacity: .75; }

/* Rejilla de noticias */
.rejilla {
  display: grid; gap: 1.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.entrada {
  display: flex; flex-direction: column; min-width: 0;
  background: #fff; border: 1px solid var(--linea); border-radius: var(--radio);
  overflow: hidden; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.entrada:hover { transform: translateY(-3px); box-shadow: var(--sombra); border-color: #C9CDD4; }
.entrada__foto { display: block; aspect-ratio: 16 / 10; background: #EEF2FA; overflow: hidden; }
.entrada__foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.entrada:hover .entrada__foto img { transform: scale(1.04); }
.entrada__sinfoto {
  display: grid; place-items: center; width: 100%; height: 100%;
  background: linear-gradient(140deg, #0A1633 0%, #2A2F3A 55%, var(--carmesi) 100%);
  color: #fff; font-family: var(--label); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; text-align: center; padding: 1rem;
}
.entrada__cuerpo { display: flex; flex-direction: column; gap: .5rem; padding: 1.15rem 1.25rem 1.35rem; flex: 1; }
.entrada__meta {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem;
  font-family: var(--label); font-size: .72rem; color: var(--acero);
}
.entrada__cat {
  color: var(--carmesi); font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
}
.entrada__cat--destacado { color: #fff; background: var(--rojo); padding: .2rem .5rem; border-radius: 2px; }
.entrada__cuerpo h3 { margin: 0; font-size: 1.12rem; line-height: 1.3; }
.entrada__cuerpo h3 a { color: var(--marino); text-decoration: none; }
.entrada:hover h3 a { color: var(--rojo); }
.entrada__cuerpo p {
  margin: 0; color: #4A4A4A; font-size: .95rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.entrada__leer {
  margin-top: auto; padding-top: .5rem;
  font-family: var(--label); font-size: .8rem; font-weight: 700; color: var(--rojo);
}
.entrada__leer::after { content: " →"; }

/* Destacada */
.destacada {
  display: grid; grid-template-columns: 1.1fr 1fr; margin-bottom: 2rem;
  background: #fff; border: 1px solid var(--linea); border-radius: var(--radio);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: box-shadow .2s ease, transform .2s ease;
}
.destacada:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.destacada__img { min-height: 340px; background-size: cover; background-position: center; }
.destacada__body { padding: clamp(1.25rem, 3vw, 2.5rem); align-self: center; min-width: 0; display: grid; gap: .6rem; }
.destacada__body h2 { margin: 0; font-size: clamp(1.4rem, 2.5vw, 2rem); line-height: 1.2; }
.destacada:hover .destacada__body h2 { color: var(--rojo); }
.destacada__body p { margin: 0; color: #4A4A4A; }
@media (max-width: 760px) {
  .destacada { grid-template-columns: 1fr; }
  .destacada__img { min-height: 0; aspect-ratio: 16 / 9; }
}

/* Paginación */
.paginacion {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem;
  margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--linea);
  font-family: var(--label); font-size: .88rem;
}
.paginacion a, .paginacion span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.4rem; height: 2.4rem; padding: 0 .7rem; border-radius: var(--radio);
  text-decoration: none; color: var(--marino);
}
.paginacion a { border: 1px solid var(--linea); background: #fff; }
.paginacion a:hover { border-color: var(--rojo); color: var(--rojo); }
.paginacion [aria-current="page"] { background: var(--rojo); color: #fff; font-weight: 700; }
.paginacion .puntos { color: var(--acero); min-width: 1.5rem; padding: 0; }
@media (max-width: 520px) { .paginacion .prev, .paginacion .next { width: 100%; } }

/* Temas de la noticia, enlazados a su listado */
a.tag { text-decoration: none; transition: background .15s ease, color .15s ease; }
a.tag:not(.tag--rojo):hover { background: var(--rojo); color: #fff; }
a.tag--rojo:hover { background: var(--rojo-oscuro); }

/* En móvil los 13 temas ocupaban cinco filas: tira horizontal con deslizamiento */
@media (max-width: 600px) {
  .filtros {
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    padding-bottom: 1rem; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
            mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
  }
  .filtros::-webkit-scrollbar { display: none; }
  .filtro { scroll-snap-align: start; }
}

/* ---- Bloques dentro del texto de una noticia ---- */
.prose blockquote {
  margin: 1.75rem 0; padding: 1rem 0 1rem 1.25rem;
  border-left: 3px solid var(--rojo); background: #FAFAFA;
}
.prose blockquote p { margin: 0; font-size: 1.05rem; font-style: italic; color: #2A2A2A; }
.prose blockquote footer {
  margin-top: .6rem; font-family: var(--label); font-size: .8rem;
  font-weight: 700; color: var(--acero); font-style: normal;
}
.prose blockquote footer::before { content: "— "; }

.podio {
  margin: 1.75rem 0; padding: 1.1rem 1.25rem;
  background: #F6F8FC; border: 1px solid var(--linea); border-radius: var(--radio);
}
.podio__titulo {
  margin: 0 0 .6rem; font-family: var(--label); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--carmesi);
}
.podio ol { margin: 0; padding-left: 1.1rem; }
.podio li { margin: .3rem 0; }
.podio li::marker { color: var(--acero); font-family: var(--label); font-size: .85em; }

/* Retrato del deportista español citado en la noticia */
.retrato { margin: .5rem 0 1.5rem; }
.retrato img { width: 100%; height: auto; display: block; border-radius: var(--radio); }
.retrato figcaption {
  margin-top: .5rem; font-family: var(--label); font-size: .8rem;
  color: var(--acero); line-height: 1.45;
}
.retrato__credito { display: inline-block; opacity: .75; }
@media (min-width: 760px) {
  .retrato {
    float: right; width: 42%; margin: .35rem 0 1.25rem 1.75rem;
  }
}

/* Calendario: el mes en curso queda marcado en la tira de meses, y los saltos
   a un mes dejan hueco para las barras fijas de arriba. */
.mes { scroll-margin-top: 150px; }
.meses a[aria-current="true"] { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.meses a[aria-current="true"] b { color: rgba(255,255,255,.85); }

/* ---- Alta en el boletín ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.section--boletin { padding-top: 0; }
.boletin {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--marino); color: #fff; border-radius: var(--radio);
  background-image: linear-gradient(135deg, #0A1633 0%, #1B2233 55%, var(--carmesi) 160%);
}
.boletin .eyebrow { color: var(--amarillo); }
.boletin h2 { margin: .35rem 0 .6rem; color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.2; }
.boletin__texto p { margin: 0; color: rgba(255, 255, 255, .82); }

.boletin__form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; min-width: 0; }
.boletin__campo { display: grid; gap: .3rem; min-width: 0; }
.boletin__campo label {
  font-family: var(--label); font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .72);
}
.boletin__form input, .boletin__form select {
  width: 100%; height: 44px; padding: 0 .85rem; border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radio); background: rgba(255, 255, 255, .08); color: #fff;
  font-family: var(--cuerpo); font-size: 1rem; line-height: normal;
  -webkit-appearance: none; appearance: none;
}
/* La flecha propia del select cambia de alto entre navegadores: se dibuja aquí */
.boletin__form select {
  padding-right: 2.1rem;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,.7) 50%),
                    linear-gradient(135deg, rgba(255,255,255,.7) 50%, transparent 50%);
  background-position: calc(100% - 1.05rem) 50%, calc(100% - .75rem) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.boletin__form select option { color: #000; }
.boletin__form input::placeholder { color: rgba(255, 255, 255, .5); }
.boletin__form input:focus-visible, .boletin__form select:focus-visible {
  outline: 2px solid var(--amarillo); outline-offset: 2px;
}
.boletin__form .btn { grid-column: 1 / -1; background: var(--rojo); border-color: var(--rojo); justify-self: start; }
.boletin__form .btn:hover { background: #fff; border-color: #fff; color: var(--marino); }
.boletin__form .btn[disabled] { opacity: .6; cursor: progress; }

.boletin__trampa { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.boletin__estado { grid-column: 1 / -1; margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .8); }
.boletin__estado:empty { display: none; }
.boletin__estado--ok { color: var(--amarillo); font-weight: 700; }
.boletin__estado--error { color: #FFB4A8; }
.boletin__legal { grid-column: 1 / -1; margin: 0; font-size: .78rem; color: rgba(255, 255, 255, .62); line-height: 1.5; }
.boletin__legal a { color: rgba(255, 255, 255, .85); }
@media (max-width: 1100px) { .boletin__form { grid-template-columns: 1fr; } }
@media (max-width: 800px) {
  .boletin { grid-template-columns: 1fr; gap: 1.25rem; }
  .boletin__form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) { .boletin__form { grid-template-columns: 1fr; } }
