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

:root {
  --azul: #0c3b7a;
  --azul-mid: #185FA5;
  --azul-light: #E6F1FB;
  --blanco: #ffffff;
  --gris-fondo: #f2f5f9;
  --gris-borde: #dfe6f0;
  --texto: #152033;
  --texto-suave: #5a6a80;
  --verde: #3B6D11;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max: 1120px;
}

html { scroll-behavior: smooth; }
html.lang-boot { visibility: hidden; }

body {
  font-family: var(--font-body);
  color: var(--texto);
  background: var(--gris-fondo);
  font-size: 15px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--azul);
  color: var(--blanco);
  padding: 0.75rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ── NAV ── */
.nav {
  background: #0d2745;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 72px;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-escudo {
  width: 38px;
  height: 38px;
  background: var(--blanco);
  border-radius: 50%;
  object-fit: contain;
  padding: 2px;
}

.nav-nombre {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.nav-nombre span {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0;
  text-transform: none;
  margin-top: 3px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 18px;
}

.nav-links {
  display: flex;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 11px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover { background: rgba(255,255,255,0.12); color: #fff; }

.nav-links a.activo {
  color: #fff;
  background: transparent;
  box-shadow: inset 0 -2px 0 #fff;
  border-radius: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-lang-group {
  display: flex;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 999px;
  padding: 2px;
}

.nav-lang {
  background: transparent;
  border: 0;
  color: #fff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
}

.nav-lang.is-active {
  background: #fff;
  color: #0e3a78;
}

/* ── HERO ── */
.hero {
  position: relative;
  aspect-ratio: 1536 / 312;
  min-height: 280px;
  display: block;
  background:
    linear-gradient(90deg, rgba(7, 18, 36, 0.5) 0%, rgba(7, 18, 36, 0.16) 28%, rgba(7, 18, 36, 0) 48%),
    url('../img/home/hero-portada.jpg') center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.hero-inner {
  position: absolute;
  inset: 0;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8px 8px;
  animation: fadeUp 0.6s ease both;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.hero-escudo {
  width: 88px;
  height: 88px;
  background: var(--blanco);
  border-radius: 50%;
  padding: 6px;
  object-fit: contain;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.hero-kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}

.hero-titulo {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(28px, 2.4vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.hero-sub {
  max-width: 460px;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn-primario,
.btn-secundario {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 8px;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-primario {
  background: #0e55e2;
  color: #fff;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(14, 85, 226, 0.28);
}

.hero .btn-primario {
  max-width: 100%;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
}

.btn-primario:hover { background: #1662f0; opacity: 1; }

.btn-secundario {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}

.btn-primario:hover,
.btn-secundario:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── HOME ACCIONES ── */
.home-acciones {
  padding: 28px 28px 8px;
  background: var(--gris-fondo, #f3f5f8);
}

.home-acciones-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.home-accion {
  position: relative;
  display: block;
  min-height: 220px;
  border-radius: 14px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  transition: transform 0.2s ease;
}

.home-accion:hover {
  transform: translateY(-3px);
}

.home-accion-foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.35s ease;
}

.home-accion:hover .home-accion-foto {
  transform: scale(1.04);
}

.home-accion-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 22px 20px;
  background:
    linear-gradient(180deg, rgba(8,28,58,0.15) 0%, rgba(8,28,58,0.55) 45%, rgba(8,28,58,0.88) 100%);
}

.home-accion-kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.home-accion strong {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 32px);
  letter-spacing: 0.03em;
  line-height: 1;
}

.home-accion-overlay > span:last-child {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
}

@media (max-width: 700px) {
  .home-acciones { padding: 20px 20px 4px; }
  .home-acciones-inner { grid-template-columns: 1fr; }
  .home-accion { min-height: 200px; }
}

/* ── PORTADA: PARTIDOS ── */
.matchboard {
  position: relative;
  z-index: 2;
  margin-top: -42px;
  padding: 0 28px 8px;
}

.matchboard-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.match-card {
  background: #fff;
  border: 1px solid #e4ebf3;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(16, 36, 72, 0.12);
  padding: 0;
  overflow: hidden;
}

.match-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #0c2d57;
  color: #fff;
  padding: 13px 16px;
}

.match-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0;
  color: #fff;
  line-height: 1;
}

.match-card h2 svg { flex-shrink: 0; }

.match-card-note {
  flex: 0 1 auto;
  max-width: 46%;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  color: #fff;
  text-align: right;
}

.match-list { display: flex; flex-direction: column; padding: 4px 0 6px; }

.match-row {
  display: grid;
  grid-template-columns: 9.6rem minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid #eef2f6;
}

.match-row--result {
  grid-template-columns: 9.6rem minmax(0, 1fr) 3.6rem minmax(0, 1fr);
}

.match-row--pending .match-meta {
  color: #8a5a00;
  font-weight: 650;
}

.match-list .match-row:first-child { border-top: 0; }

.match-badge {
  width: 9.6rem;
  box-sizing: border-box;
  justify-self: stretch;
  text-align: center;
  background: #d5e8fc;
  color: #0d2745;
  font-size: 12px;
  font-weight: 650;
  border-radius: 999px;
  padding: 4px 8px;
}

.match-badge small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.15;
}

.match-teams {
  flex: 1;
  min-width: 0;
  font-size: 14.5px;
  font-weight: 650;
  color: var(--texto);
}

.match-meta {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  color: #5c6b80;
  font-size: 13px;
}

.match-side {
  flex: 1;
  min-width: 0;
  font-size: 14.5px;
  font-weight: 650;
  color: var(--texto);
}

.match-score {
  justify-self: center;
  min-width: 3.6rem;
  text-align: center;
  background: #f3f6fa;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 700;
  color: #0e3a78;
  letter-spacing: 0.02em;
}

.equipos-grupo { scroll-margin-top: 88px; }

.match-cats {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.match-cats button {
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  color: #0d2745;
  background: #fff;
  border: 1px solid #e1e8f0;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}

.match-cats button:hover,
.match-cats button.is-on {
  background: #0d2745;
  color: #fff;
  border-color: #0d2745;
}

@media (max-width: 700px) {
  .match-cats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
  .match-cats button {
    min-width: 0;
    padding: 8px 6px;
  }
  .match-cats button.is-on {
    display: none;
  }
}

@media (display-mode: standalone) {
  .match-cats button.is-on {
    display: none;
  }
}

html.is-app .match-cats button.is-on {
  display: none;
}

.match-empty {
  padding: 16px 14px 8px;
  color: var(--texto-suave);
  font-size: 14px;
}

.home-shortcuts {
  padding: 28px 28px 8px;
}

.home-shortcuts-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.home-tile {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e4ebf3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16, 36, 72, 0.05);
}

.home-tile img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

#home-teams-photo.is-full {
  object-fit: contain;
  background: var(--azul-light);
}

.home-tile span {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 16px 16px;
  min-width: 0;
}

.home-tile strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--texto);
  line-height: 1.25;
}

.home-tile em {
  font-style: normal;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--texto-suave);
}

.home-tile i {
  margin-top: auto;
  align-self: flex-end;
  font-style: normal;
  color: #0e3a78;
  font-weight: 650;
}

.home-news {
  padding: 20px 28px 36px;
}

.home-news-inner { max-width: var(--max); margin: 0 auto; }

.home-news-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.home-news-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--texto);
  line-height: 1;
}

.home-news-head a { font-size: 14px; font-weight: 500; color: #0e3a78; }

.home-news-grid {
  display: grid;
  grid-template-columns: 1.28fr 1fr 1fr;
  gap: 14px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e4ebf3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16, 36, 72, 0.05);
  min-height: 0;
}

.news-card img {
  display: block;
  width: auto;
  max-width: calc(100% - 24px);
  height: 240px;
  margin: 12px auto 0;
  object-fit: contain;
}

.news-card--lead img { height: 280px; }

.news-card--lead strong { font-size: 18px; }

.news-card div { padding: 14px 16px 16px; }

.news-card strong {
  display: block;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
}

.news-card p {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--texto-suave);
}

@media (max-width: 900px) {
  .matchboard-inner,
  .home-shortcuts-inner,
  .home-news-grid { grid-template-columns: 1fr; }
  .matchboard { margin-top: -24px; padding-left: 20px; padding-right: 20px; }
  .home-shortcuts, .home-news { padding-left: 20px; padding-right: 20px; }
  .home-tile { flex-direction: row; min-height: 120px; }
  .home-tile img { width: 120px; height: 100%; min-height: 120px; flex-shrink: 0; }
}

@media (max-width: 720px) {
  .match-row {
    grid-template-columns: 8.2rem minmax(0, 1fr);
    row-gap: 4px;
  }
  .match-badge { width: 8.2rem; font-size: 11px; }
  .match-meta { grid-column: 2; width: auto; }
  .match-row--result {
    grid-template-columns: 8.2rem auto minmax(0, 1fr);
  }
  .match-row--result .match-badge { grid-column: 1; grid-row: 1; }
  .match-row--result .match-side:first-of-type { grid-column: 2 / -1; grid-row: 1; }
  .match-row--result .match-score {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    min-width: 0;
  }
  .match-row--result .match-side:last-child { grid-column: 3; grid-row: 2; }
  .home-tile img { width: 96px; }
}

/* ── SOCIOS ── */
.altamira-block {
  padding: 40px 28px;
  background: var(--gris-fondo);
}

.altamira-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.altamira-kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texto-suave);
  margin-bottom: 8px;
}

.altamira-block h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: 0.03em;
  color: var(--azul);
  line-height: 1;
  margin-bottom: 10px;
}

.altamira-dir {
  font-size: 15px;
  color: var(--texto);
  margin-bottom: 16px;
}

.altamira-maps {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.altamira-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1 1 180px;
  max-width: 230px;
  min-height: 56px;
  padding: 8px 16px 8px 10px;
  background: var(--blanco);
  border: 1px solid var(--gris-borde);
  border-radius: 14px;
  color: var(--texto);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(13, 39, 69, 0.06);
}

.altamira-map-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.altamira-map:hover {
  border-color: var(--azul-mid);
  color: var(--azul);
}

.altamira-map:focus-visible {
  outline: 2px solid var(--azul);
  outline-offset: 3px;
}

.socio-cta {
  background:
    linear-gradient(120deg, rgba(12,59,122,0.96) 0%, rgba(12,59,122,0.88) 55%, rgba(30,90,160,0.85) 100%);
  color: #fff;
  padding: 56px 28px;
}

.socio-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.socio-kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
}

.socio-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 44px);
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 14px;
}

.socio-lead {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
}

.socio-precio {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 22px;
}

.socio-precio strong {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.04em;
  color: #fff;
  vertical-align: middle;
}

.btn-azul {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  background: #fff;
  color: var(--azul);
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.15s, transform 0.15s;
}

.btn-azul:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.socio-acciones {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.socio-mas {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.socio-mas:hover {
  color: #fff;
}

.socio-page-cta {
  margin-top: 28px;
}

.socio-foto {
  margin: 0 0 28px;
}

.socio-foto img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.socio-foto figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--texto-suave);
}

.colabora-vias {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 18px;
}

.colabora-via {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  row-gap: 16px;
  background: var(--azul-light);
  border-radius: 14px;
  padding: 22px 20px 20px;
}

.colabora-texto > p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--texto);
}

.colabora-texto > .colabora-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texto-suave);
}

.colabora-texto > .colabora-price {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--azul);
}

.colabora-texto > p + p { margin-top: 10px; }

.colabora-sitios {
  margin: 10px 0 0;
  padding-left: 1.15em;
  font-size: 15px;
  line-height: 1.45;
  color: var(--texto);
}

.colabora-sitios li + li { margin-top: 4px; }

.colabora-sitios + p { margin-top: 10px; }

.colabora-via h2 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.03em;
  color: var(--azul);
  margin: 0 0 8px;
}

.colabora-via .tienda-pedido-list { margin-top: 16px; }

.colabora-via .pedido-form {
  margin-top: 0;
  height: 100%;
}

.colabora-via .pedido-form label:has(textarea) {
  flex: 1 1 auto;
}

.colabora-via .pedido-form textarea {
  flex: 1 1 auto;
  min-height: 74px;
}

@media (max-width: 800px) {
  .colabora-vias { grid-template-columns: 1fr; }
}

/* ── PARTIDOS ── */
.partidos-strip {
  background: var(--azul-mid);
  padding: 20px 28px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 100%;
}

.partido-card {
  background: rgba(255,255,255,0.1);
  border: 0.5px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  overflow: hidden;
  animation: fadeUp 0.5s ease both 0.2s;
}

.partido-card-head {
  padding: 8px 14px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  border-bottom: 0.5px solid rgba(255,255,255,0.1);
}

.partido-card-body { padding: 14px 16px; color: #fff; }

.partido-cat {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.partido-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  text-align: center;
  margin-bottom: 8px;
}

.partido-team { font-size: 13px; font-weight: 500; line-height: 1.25; }

.partido-score {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.04em;
}

.partido-vs { font-size: 12px; color: rgba(255,255,255,0.45); }

.partido-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* ── JORNADA ── */
.jornada-club {
  background: var(--gris-fondo);
  padding: 36px 28px 40px;
  border-bottom: 0.5px solid var(--gris-borde);
}

.jornada-club-inner { max-width: var(--max); margin: 0 auto; }

.jornada-cabecera {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.jornada-titulo {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--azul);
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.jornada-sub {
  font-size: 13px;
  color: var(--texto-suave);
  margin-top: 4px;
}

.jornada-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 12px;
  color: var(--texto-suave);
}

.jornada-badge {
  background: var(--azul-light);
  color: var(--azul);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
}

.jornada-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.jornada-card {
  background: var(--blanco);
  border: 0.5px solid var(--gris-borde);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s;
}

.jornada-card:hover { border-color: var(--azul-mid); }

.jornada-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.jornada-equipo-nombre {
  font-size: 13px;
  font-weight: 500;
  color: var(--texto);
  line-height: 1.3;
}

.jornada-puesto {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.jornada-puesto-num {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--azul);
  line-height: 1;
}

.jornada-puesto-pts {
  font-size: 10px;
  color: var(--texto-suave);
  margin-top: 2px;
}

.jornada-card-resultado {
  min-height: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.jornada-marcador-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--texto-suave);
}

.jornada-marcador-wrap span:first-child { text-align: right; }
.jornada-marcador-wrap span:last-child { text-align: left; }

.jornada-marcador {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--azul);
  white-space: nowrap;
}

.jornada-estado {
  font-size: 12px;
  font-weight: 500;
  color: var(--texto-suave);
}

.jornada-proximo {
  display: block;
  font-size: 11px;
  color: var(--texto-suave);
  margin-top: 4px;
  text-align: center;
}

.jornada-card-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 0.5px solid var(--gris-borde);
}

.jornada-card-links a {
  font-size: 11px;
  font-weight: 500;
  color: var(--azul-mid);
}

.jornada-card-links a:hover { text-decoration: underline; }

.jornada-error {
  text-align: center;
  font-size: 13px;
  color: var(--texto-suave);
  padding: 16px;
}

/* ── SECCIONES ── */
.seccion {
  padding: 48px 28px;
  max-width: var(--max);
  margin: 0 auto;
}

.seccion-ancha {
  max-width: none;
  background: var(--gris-fondo);
  padding: 48px 28px;
}

.seccion-ancha .seccion-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.seccion-cabecera {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.seccion-titulo {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--azul);
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.seccion-sub {
  font-size: 14px;
  color: var(--texto-suave);
  margin-top: 6px;
  max-width: 520px;
}

.seccion-mas {
  font-size: 13px;
  font-weight: 500;
  color: var(--azul-mid);
  white-space: nowrap;
}

.seccion-mas:hover { text-decoration: underline; }

/* ── NOTICIAS HOME ── */
.noticias-home {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}

.noticia-grande {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 280px;
  background: var(--azul);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.noticia-grande img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.noticia-grande-body {
  position: relative;
  padding: 24px;
  background: linear-gradient(transparent, rgba(12,59,122,0.92));
}

.noticia-cat {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}

.noticia-titulo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.noticia-fecha {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-top: 8px;
}

.noticias-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.noticias-estado {
  font-size: 15px;
  color: var(--texto-suave);
  margin: 0;
}

.noticia-fila {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  background: #fff;
  border: 1px solid #e4ebf3;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(16, 36, 72, 0.05);
}

.noticia-fila:hover { border-color: #b7cbe4; }

.noticia-fila img {
  width: 112px;
  height: 150px;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  background: #0a1e3d;
}

.noticia-fila .noticia-cat,
.noticia-pagina .noticia-cat {
  display: block;
  margin: 0;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0e3a78;
}

.noticia-fila strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--texto);
}

.noticia-fila .noticia-fecha,
.noticia-pagina .noticia-fecha {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--texto-suave);
}

.noticia-fila .noticia-extracto {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--texto-suave);
}

.noticia-volver {
  display: inline-block;
  margin-bottom: 22px;
  font-size: 14px;
  font-weight: 500;
  color: #0e3a78;
}

.page-content:has(.noticia-pagina) { max-width: 760px; }

.noticia-pagina { max-width: 720px; }

.noticia-pagina-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  margin: 0;
}

.noticia-pagina .noticia-fecha { margin-top: 0; }

.noticia-pagina h1 {
  margin: 12px 0 0;
  font-family: var(--font-body);
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--texto);
}

.noticia-pagina-lead {
  max-width: 38em;
  margin: 18px 0 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  color: #1a2a3d;
}

.noticia-pagina-foto {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  object-position: center;
  margin: 28px auto 0;
  border-radius: 16px;
  background: #eef3f8;
}

.noticia-pagina-texto {
  max-width: 38em;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid #e4ebf3;
  font-size: 18px;
  line-height: 1.8;
  color: var(--texto);
}

.noticia-pagina-texto p + p { margin-top: 1.15em; }

@media (max-width: 700px) {
  .noticia-fila { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
  .noticia-fila img { width: 88px; height: 118px; }
  .noticia-fila strong { font-size: 17px; }
  .noticia-pagina h1 { font-size: 28px; }
}

/* ── EQUIPOS GRID ── */
.equipos-grupos {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.equipos-grupo-title {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--azul);
  margin-bottom: 10px;
}

.equipos-grid {
  display: grid;
  gap: 12px;
}

.equipos-grid--1 { grid-template-columns: 1fr; }
.equipos-grid--2 { grid-template-columns: repeat(2, 1fr); }
.equipos-grid--3 { grid-template-columns: repeat(2, 1fr); }

.equipo-tile {
  background: var(--blanco);
  border: 0.5px solid var(--gris-borde);
  border-radius: 12px;
  padding: 0;
  text-align: left;
  transition: border-color 0.2s, transform 0.15s;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 36%);
  gap: 0;
  min-height: 100%;
  overflow: hidden;
  align-items: stretch;
}

.equipo-tile-main {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.equipo-tile-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  background: var(--azul-light);
  border-left: 0.5px solid var(--gris-borde);
}

.equipo-tile-media {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--azul-light);
  min-height: 0;
  flex: 1 1 auto;
  width: 100%;
  aspect-ratio: 5 / 4;
  max-height: 140px;
}

.equipo-tile-clasif {
  padding: 10px 12px 12px;
  margin-top: auto;
  background: var(--blanco);
  border-top: 0.5px solid var(--gris-borde);
}

.equipo-foto-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--azul-light);
  cursor: zoom-in;
  line-height: 0;
}

.equipo-foto-btn img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.25s ease;
}

.equipo-foto-btn:hover img,
.equipo-foto-btn:focus-visible img {
  transform: scale(1.03);
}

.equipo-foto--pendiente {
  position: relative;
  cursor: default;
}

.equipo-foto--pendiente img {
  filter: blur(14px);
  transform: scale(1.18);
}

.equipo-foto--pendiente:hover img,
.equipo-foto--pendiente:focus-visible img {
  transform: scale(1.18);
}

.equipo-foto-pending {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px;
  color: #d40000;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 0 6px #fff, 0 0 2px #fff;
}

.equipo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.equipo-lightbox[hidden] { display: none; }

.equipo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 28, 58, 0.82);
  cursor: zoom-out;
}

.equipo-lightbox-panel {
  position: relative;
  z-index: 1;
  max-width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.equipo-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 100px);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}

.equipo-lightbox-caption {
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.equipo-lightbox-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--azul);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

body.equipo-lightbox-open { overflow: hidden; }

.equipo-tile--featured {
  background: var(--azul-light);
  border-color: transparent;
  max-width: none;
}

.equipo-tile--featured .equipo-tile-media {
  aspect-ratio: auto;
  max-height: none;
  flex: 0 0 auto;
}

.equipo-tile--featured .equipo-foto-btn,
.equipo-tile--featured .equipo-foto-btn img {
  height: auto;
}

.equipo-tile--featured .equipo-foto-btn img {
  object-fit: contain;
}

.equipo-tile--featured .equipo-foto-btn:hover img,
.equipo-tile--featured .equipo-foto-btn:focus-visible img {
  transform: none;
}

.equipo-tile:hover {
  border-color: var(--azul-mid);
  transform: translateY(-2px);
}

.equipo-tile-title {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.03em;
  color: var(--azul);
  line-height: 1.15;
  margin: 0;
}

.equipo-tile-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.equipo-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.equipo-stat-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--texto-suave);
  font-weight: 500;
}

.equipo-stat-value {
  font-size: 13px;
  color: var(--texto);
  line-height: 1.35;
}

.equipo-stat-pos {
  font-weight: 500;
  color: var(--azul);
}

.equipo-stat-next {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.equipo-next-when {
  color: var(--texto);
}

.equipo-next-vs {
  color: var(--texto-suave);
  font-size: 12px;
}

.equipo-tile-link {
  margin-top: auto;
  padding-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--azul-mid);
}

.equipo-tile-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .equipos-grid--2,
  .equipos-grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .equipos-grid--1 { max-width: none; }
  .equipo-tile {
    grid-template-columns: minmax(0, 1fr) minmax(100px, 38%);
  }
}

@media (max-width: 480px) {
  .equipo-tile {
    grid-template-columns: 1fr;
  }
  .equipo-tile-side {
    order: -1;
    border-left: 0;
    border-bottom: 0.5px solid var(--gris-borde);
  }
  .equipo-tile-media {
    max-height: 200px;
    aspect-ratio: 5 / 4;
  }
  .equipo-tile-clasif {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }
  .equipo-tile-clasif .equipo-stat {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }
}

/* ── TIENDA PREVIEW ── */
.tienda-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.tienda-grid--shop {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tienda-grid--shop .tienda-card--nueva-fila {
  grid-column: 1;
}

.tienda-card {
  background: var(--blanco);
  border: 0.5px solid var(--gris-borde);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.tienda-card:hover { border-color: var(--azul-mid); }

.tienda-foto {
  aspect-ratio: 3 / 4;
  background: var(--azul-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--azul-mid);
  font-family: var(--font-display);
  font-size: 28px;
  overflow: hidden;
}

.tienda-foto img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.tienda-body { padding: 14px; }

.tienda-nombre {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}

.tienda-precio {
  font-size: 14px;
  color: var(--azul);
  font-weight: 500;
}

.tienda-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--texto-suave);
  line-height: 1.35;
}

.tienda-nota {
  margin: 22px 0 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--azul);
}

.tienda-pedido {
  margin-top: 40px;
  padding: 24px 22px;
  background: var(--azul-light);
  border-radius: 14px;
}

.tienda-pedido h2 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.03em;
  color: var(--azul);
  margin-bottom: 14px;
}

.tienda-pedido-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  color: var(--texto);
  line-height: 1.5;
}

.tienda-pedido-list a {
  color: var(--azul);
  font-weight: 500;
}

.tienda-iban {
  margin: 8px 0 4px;
}

.tienda-iban code {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--azul);
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.tienda-concepto {
  font-size: 13px;
  color: var(--texto-suave);
  margin: 0;
}

.tienda-pedir {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--azul);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.tienda-pedir:hover { text-decoration: underline; }

#pedido,
#hacerme-socio,
#empresas { scroll-margin-top: 90px; }

.tienda-pedido-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}

.pedido-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
}

.pedido-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 650;
  color: var(--azul);
}

.pedido-form input,
.pedido-form select,
.pedido-form textarea {
  font: inherit;
  font-weight: 400;
  font-size: 15px;
  color: var(--texto);
  border: 1px solid var(--gris-borde);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  width: 100%;
}

.pedido-row {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 12px;
}

.pedido-row--contact { grid-template-columns: 1fr 1fr; }

.pedido-total {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  color: var(--azul);
}

.pedido-submit {
  border: 0;
  cursor: pointer;
  align-self: flex-start;
}

.pedido-hint,
.pedido-listo {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--texto-suave);
}

.pedido-listo {
  white-space: pre-wrap;
  background: var(--azul-light);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--texto);
}

@media (max-width: 800px) {
  .tienda-pedido-layout,
  .pedido-row,
  .pedido-row--contact { grid-template-columns: 1fr; }
}

/* ── SPONSORS ── */
.sponsors {
  padding: 44px 28px 52px;
  text-align: center;
  background: #fff;
  border-top: 1px solid var(--gris-borde);
}

.sponsors-titulo {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texto-suave);
  margin-bottom: 24px;
}

.sponsors-featured,
.sponsors-grid {
  display: grid;
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto 16px;
}

.sponsors-featured {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.sponsors-grid {
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 20px;
}

.sponsor-logo {
  width: 100%;
  min-height: 88px;
  padding: 14px 16px;
  background: var(--blanco);
  border: 0.5px solid var(--gris-borde);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color 0.2s;
}

.sponsor-logo--featured {
  min-height: 112px;
  padding: 18px 20px;
  border-color: #c5d4e8;
  box-shadow: 0 1px 0 rgba(12, 59, 122, 0.06);
}

a.sponsor-logo:hover { border-color: var(--azul-mid); }

.sponsor-logo img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.sponsor-logo--featured img {
  max-height: 78px;
}

.sponsor-logo--sugaar {
  min-height: 100px;
}

.sponsor-logo--sugaar img {
  max-height: 84px;
}

.sponsor-logo--empty {
  background: var(--gris-fondo);
  border-style: dashed;
}

.sponsors > a {
  font-size: 13px;
  color: var(--azul-mid);
  font-weight: 500;
}

@media (max-width: 900px) {
  .sponsors-featured { grid-template-columns: repeat(2, 1fr); }
  .sponsors-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .sponsors-featured,
  .sponsors-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sponsor-logo { min-height: 76px; padding: 12px; }
  .sponsor-logo--featured { min-height: 92px; }
  .sponsor-logo img { max-height: 52px; }
  .sponsor-logo--featured img { max-height: 64px; }
}

/* ── CLUB HISTORIA ── */
.club-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding: 48px 28px 52px;
  background:
    linear-gradient(105deg, rgba(12,59,122,0.88) 0%, rgba(12,59,122,0.45) 52%, rgba(20,30,40,0.28) 100%),
    url('../img/historia/hist-06.jpg') center 28%/cover no-repeat;
  color: #fff;
}

.club-hero--50 {
  min-height: 460px;
  background:
    linear-gradient(100deg, rgba(8,28,58,0.92) 0%, rgba(8,28,58,0.55) 45%, rgba(8,28,58,0.25) 100%),
    url('../img/historia/hist-01.jpg') center 22%/cover no-repeat;
}

.club-decades {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 28px 10px;
  border-bottom: 0.5px solid var(--gris-borde);
  position: sticky;
  top: 64px;
  z-index: 20;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
}

.club-decades a {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--azul-mid);
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.club-decades a:hover {
  background: var(--azul-light);
  color: var(--azul);
}

.pro-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0 16px;
}
.pro-list li {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 16px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--gris-borde);
  border-radius: 14px;
  padding: 16px 18px;
}
.pro-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  border-radius: 10px;
  background: var(--azul);
  color: #fff;
  font-family: var(--font-display);
  font-size: 42px;
  letter-spacing: 0.04em;
}
.pro-photo { margin: 0; }
.pro-photo img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 10px;
  background: var(--azul-light);
}
.pro-photo figcaption {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--texto-suave);
}
.pro-photo a { color: inherit; text-decoration: none; }
.pro-photo a:hover { text-decoration: underline; }
.pro-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--azul);
}
.pro-list h3 {
  margin: 6px 0 0;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pro-meta {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--texto-suave);
}
.pro-list li p:last-child {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.55;
}
.pro-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--texto-suave);
}
@media (max-width: 640px) {
  .pro-list li {
    grid-template-columns: 104px 1fr;
    gap: 12px;
    padding: 12px;
  }
  .pro-photo img,
  .pro-mark { height: 140px; }
  .pro-mark { font-size: 32px; }
  .pro-list h3 { font-size: 18px; }
}

.club-hero-inner { max-width: 720px; margin: 0 auto 0 0; width: 100%; max-width: var(--max); margin: 0 auto; }

.club-hero-kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
}

.club-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 60px);
  letter-spacing: 0.03em;
  line-height: 0.95;
}

.club-hero-lead {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  max-width: 520px;
  line-height: 1.45;
}

.club-story {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 28px 20px;
}

.club-story > .lead {
  font-size: 17px;
  color: var(--texto);
  line-height: 1.65;
  margin-bottom: 12px;
}

.club-story > .lead-soft {
  font-size: 15px;
  color: var(--texto-suave);
  margin-bottom: 40px;
  line-height: 1.6;
}

.era {
  padding: 36px 0;
  border-top: 0.5px solid var(--gris-borde);
  scroll-margin-top: 120px;
}

.era-year {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--azul-mid);
  margin-bottom: 8px;
}

.era h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
  color: var(--azul);
  letter-spacing: 0.03em;
  line-height: 1.05;
  margin-bottom: 14px;
}

.era p {
  font-size: 15px;
  color: var(--texto-suave);
  line-height: 1.65;
  margin-bottom: 12px;
}

.era p:last-of-type { margin-bottom: 0; }

.era-highlight {
  margin: 16px 0 0;
  padding: 14px 16px;
  background: var(--azul-light);
  border-radius: 10px;
  font-size: 14px;
  color: var(--azul);
  line-height: 1.5;
}

.era-figure {
  margin: 20px 0 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--azul-light);
}

.era-figure img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  filter: contrast(1.04) saturate(0.92);
}

.era-figure--page {
  background: #ece8e1;
  border-radius: 12px;
}

.era-figure--page img {
  max-height: none;
  object-fit: contain;
  object-position: center top;
  filter: contrast(1.02);
}

.era-figure--wide img {
  max-height: 520px;
  object-fit: cover;
  object-position: center 35%;
  filter: none;
}

.club-fuente {
  margin: 8px 0 28px;
  padding-top: 20px;
  border-top: 0.5px solid var(--gris-borde);
  font-size: 12px;
  color: var(--texto-suave);
  line-height: 1.5;
}

.era-pages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.era-pages .era-figure { margin-top: 0; }

.era-pages .era-figure:only-child,
.era-pages .era-figure:nth-child(3) {
  grid-column: 1 / -1;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.era-figure figcaption {
  font-size: 12px;
  color: var(--texto-suave);
  padding: 10px 4px 0;
}

.era p.club-video-lead {
  margin-top: 22px;
  margin-bottom: 16px;
}

.club-video-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  scroll-margin-top: 148px;
  color: var(--azul);
  line-height: 1.1;
  margin: 0 0 12px;
}

.club-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--azul);
  border-radius: 14px;
  overflow: hidden;
}

.club-video-btn,
.club-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.club-video-btn {
  display: block;
  padding: 0;
  background: var(--azul);
  cursor: pointer;
}

.club-video-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.club-video-btn::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--azul);
}

.club-video-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}

.club-video-btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px #fff;
}

.club-video-fallback {
  margin-top: 12px;
  font-size: 14px;
}

.club-video-fallback a {
  color: var(--azul);
  font-weight: 500;
}

.era-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.era-split .era-figure { margin-top: 0; }

.era-milestone {
  background: #0d2745;
  color: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  margin-top: 8px;
}

.era-milestone .era-year { color: rgba(255,255,255,0.55); }

.era-milestone h2 { color: #fff; }

.era-milestone p { color: rgba(255,255,255,0.8); }

.era-milestone .era-highlight {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.club-cierre {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 28px 48px;
}

.club-cierre-box {
  background: var(--gris-fondo);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 36px;
}

.club-cierre-box p {
  font-size: 16px;
  color: var(--texto);
  line-height: 1.55;
  max-width: 560px;
  margin: 0 auto 10px;
}

.club-cierre-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--azul);
  letter-spacing: 0.04em;
  margin-top: 16px;
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 36px;
}

.mosaic figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--azul-light);
}

.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mosaic figure:first-child {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.club-contacto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.club-contacto--solo {
  grid-template-columns: 1fr;
  max-width: 420px;
  margin: 0 auto;
}

.club-contacto-card {
  background: var(--azul-light);
  border-radius: 14px;
  padding: 20px;
}

.club-contacto-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--azul);
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.club-contacto-card p {
  font-size: 14px;
  color: var(--texto-suave);
}

.club-contacto-card a {
  color: var(--azul-mid);
  font-weight: 500;
}

@media (max-width: 900px) {
  .club-hero { padding: 36px 20px 40px; min-height: 300px; }
  .club-hero--50 { min-height: 340px; }
  .club-decades { padding-left: 20px; padding-right: 20px; gap: 2px; }
  .club-decades a { font-size: 13px; padding: 8px 8px; }
  .club-story, .club-cierre { padding-left: 20px; padding-right: 20px; }
  .era-split { grid-template-columns: 1fr; }
  .era-pages { grid-template-columns: 1fr; }
  .era-pages .era-figure:nth-child(3) { max-width: none; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic figure:first-child { grid-column: span 2; }
  .club-contacto { grid-template-columns: 1fr; }
}
.page-band {
  background: var(--azul);
  color: #fff;
  padding: 40px 28px 36px;
}

.page-band--equipos,
.page-band--tienda,
.page-band--eskola,
.page-band--noticias,
.page-band--socios,
.page-band--partidos {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  padding: 48px 28px 40px;
  background:
    linear-gradient(100deg, rgba(8,28,58,0.92) 0%, rgba(8,28,58,0.58) 46%, rgba(8,28,58,0.28) 100%),
    var(--page-band-foto) var(--page-band-pos, center 30%)/cover no-repeat;
}

.page-band--equipos {
  --page-band-foto: url('../img/cabecera-equipos.webp?v=2');
  --page-band-pos: center 28%;
}
.page-band--tienda {
  display: block;
  min-height: 0;
  padding: 0;
  background: #071e3d;
}
.page-band--tienda .page-band-foto {
  display: block;
  width: 100%;
  height: auto;
}
.page-band--tienda::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(8, 28, 58, 0) 0%, rgba(8, 28, 58, 0.72) 100%);
  pointer-events: none;
}
.page-band--tienda .page-band-inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 0 28px 18px;
  text-align: center;
  text-shadow: 0 1px 10px rgba(8, 28, 58, 0.55);
}
.page-band--eskola { --page-band-foto: url('../img/eskola/galeria-1.jpg'); }
.page-band--noticias { --page-band-foto: url('../img/home/noticias.jpg'); }
.page-band--socios { --page-band-foto: url('../img/club/socio.webp'); }
.page-band--partidos {
  --page-band-foto: url('../img/cabecera-partidos.webp');
  --page-band-pos: center 58%;
}

.page-band-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  text-align: left;
}

.page-band h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 48px);
  letter-spacing: 0.03em;
  line-height: 1;
}

.page-band p {
  margin-top: 10px;
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
}
.page-band.page-band--tienda h1 {
  font-size: clamp(26px, 3.2vw, 40px);
  margin-bottom: 0;
}
.page-band.page-band--tienda p {
  margin: 4px auto 0;
  font-size: 14px;
  max-width: 36em;
}

.page-content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 28px 56px;
}

.page-content .matchboard {
  margin-top: 0;
  padding: 0;
}

.ficha-resumen {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.ficha-cabecera {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.8fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}

.ficha-cabecera .ficha-foto,
.ficha-cabecera .ficha-resumen {
  margin: 0;
}

.ficha-cabecera .ficha-resumen {
  grid-template-columns: 1fr 1fr;
}

.ficha-stat {
  background: var(--azul-light);
  border-radius: 10px;
  padding: 14px 16px;
}

.ficha-stat span {
  display: block;
  font-size: 12px;
  color: var(--texto-suave);
}

.ficha-stat strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.03em;
  color: var(--azul);
  line-height: 1;
}

.ficha-foto {
  position: relative;
  margin: 0 0 28px;
  max-width: 960px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--azul-light);
}
.ficha-foto img {
  display: block;
  width: 100%;
  height: auto;
}
.ficha-foto--pendiente img {
  filter: blur(18px);
  transform: scale(1.12);
}
.ficha-foto-pending {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #d40000;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-shadow: 0 0 8px #fff, 0 0 2px #fff;
}
.ficha-miembro-staff span {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--azul);
}
.ficha-h {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.03em;
  color: var(--azul);
  margin: 8px 0 12px;
}

.ficha-cal {
  width: 100%;
  margin-bottom: 28px;
  border-collapse: collapse;
  font-size: 14px;
}

.ficha-cal th {
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--texto-suave);
  padding: 8px 10px;
  border-bottom: 1px solid var(--gris-borde);
}

.ficha-cal td {
  padding: 10px;
  border-bottom: 1px solid var(--gris-borde);
  vertical-align: middle;
}

.ficha-cal tr.is-next { background: var(--azul-light); }

.ficha-tabla-note {
  margin: -4px 0 10px;
  font-size: 13px;
  color: var(--texto-suave);
}

.ficha-tabla-wrap {
  overflow-x: auto;
  margin-bottom: 28px;
  -webkit-overflow-scrolling: touch;
}

.ficha-tabla {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}

.ficha-tabla th,
.ficha-tabla td {
  padding: 8px 12px 8px 16px;
  border-bottom: 1px solid var(--gris-borde);
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  white-space: nowrap;
}

.ficha-tabla th {
  font-size: 12px;
  font-weight: 500;
  color: var(--texto-suave);
}

.ficha-tabla th:nth-child(2),
.ficha-tabla td:nth-child(2) {
  text-align: left;
  width: 99%;
  padding-left: 10px;
}

.ficha-tabla tr.is-us {
  background: var(--azul-light);
  font-weight: 650;
}

.ficha-nota {
  margin-top: 22px;
  max-width: 640px;
  color: var(--texto-suave);
  font-size: 14px;
  line-height: 1.5;
}

.ficha-nota a { color: var(--azul-mid); }

.ficha-plantilla {
  columns: 2;
  column-gap: 36px;
  margin: 0 0 28px;
}

.ficha-plantilla li {
  break-inside: avoid;
  padding: 8px 0;
  border-bottom: 1px solid var(--gris-borde);
  font-size: 15px;
  line-height: 1.3;
  color: var(--texto);
}

.ficha-staff {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  margin: 0 0 8px;
}

.ficha-staff li {
  background: var(--azul-light);
  border-radius: 10px;
  padding: 12px 14px;
}

.ficha-staff span {
  display: block;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--azul);
}

.ficha-staff strong {
  display: block;
  margin-top: 3px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--texto);
}

@media (max-width: 700px) {
  .ficha-cabecera { grid-template-columns: 1fr; align-items: stretch; }
  .ficha-resumen { grid-template-columns: 1fr 1fr; }
  .ficha-cal { font-size: 13px; }
  .ficha-plantilla { columns: 1; }
}

.prosa {
  max-width: none;
  font-size: 15px;
  color: var(--texto-suave);
  line-height: 1.55;
}

.prosa h2 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 650;
  color: var(--texto);
  margin: 28px 0 8px;
}

.prosa a { color: var(--azul-mid); text-decoration: underline; text-underline-offset: 2px; }
.prosa ul { list-style: disc; padding-left: 1.2em; margin-top: 8px; }
.prosa li + li { margin-top: 6px; }

.prosa p + p { margin-top: 14px; }
.prosa strong { color: var(--texto); }

.eskola-corte {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 36px 0 18px;
  max-width: 960px;
}
.eskola-corte::before,
.eskola-corte::after {
  content: '';
  height: 1px;
  flex: 1;
  background: #d5deea;
}
.eskola-corte span {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--azul);
  text-align: center;
  line-height: 1.1;
}
.eskola-hero {
  margin: 0 0 36px;
  max-width: 960px;
}

.eskola-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  background: var(--azul-light);
}

.eskola-hero figcaption,
.eskola-foto figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--texto-suave);
}

.eskola-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 28px;
  align-items: center;
  margin: 8px 0 36px;
  max-width: 960px;
}

.eskola-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0 0 36px;
  max-width: 960px;
}

.eskola-foto {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--azul-light);
}

.eskola-split .eskola-foto {
  border-radius: 14px;
}

.eskola-foto img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.eskola-mosaic .eskola-foto {
  background: transparent;
  overflow: visible;
}

.eskola-mosaic .eskola-foto img {
  border-radius: 12px;
  aspect-ratio: 16 / 10;
}

.eskola-bloque {
  margin-top: 8px;
  max-width: 640px;
}

.eskola-bloque-titulo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--azul);
  margin-bottom: 12px;
}

.eskola-bloque p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--texto-suave);
}

.eskola-paso {
  margin-top: 22px;
  padding: 16px;
  background: var(--azul-light);
  border-radius: 14px;
}
.eskola-bloque .eskola-paso-lead,
.eskola-equipos .eskola-paso-lead {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--texto);
}
.eskola-paso-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
}
.eskola-paso-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 14px 16px;
}
.eskola-paso-num {
  display: block;
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 0.9;
  color: var(--azul);
  letter-spacing: 0.02em;
}
.eskola-paso-card strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  color: var(--texto);
}
.eskola-bloque .eskola-paso-card p,
.eskola-equipos .eskola-paso-card p {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--texto-suave);
}
.eskola-paso-arrow {
  align-self: center;
  color: var(--azul-mid);
  font-size: 22px;
  line-height: 1;
}
.eskola-paso-card--next {
  background: var(--azul);
}
.eskola-paso-card--next .eskola-paso-num,
.eskola-paso-card--next strong { color: #fff; }
.eskola-bloque .eskola-paso-card--next p,
.eskola-equipos .eskola-paso-card--next p { color: rgba(255, 255, 255, 0.84); }
.eskola-equipos .eskola-paso {
  margin-top: 0;
  margin-bottom: 16px;
}
.eskola-bloque a {
  color: var(--azul-mid);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.eskola-equipos {
  margin: 28px 0 8px;
  max-width: 720px;
}
.eskola-equipos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.eskola-equipo {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e4ebf3;
  border-radius: 14px;
  overflow: hidden;
  color: var(--texto);
  text-decoration: none;
}
.eskola-equipo:hover { border-color: var(--azul-mid); }
.eskola-equipo-foto {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--azul-light);
  overflow: hidden;
}
.eskola-equipo-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.eskola-equipo-foto--pendiente img {
  filter: blur(14px);
  transform: scale(1.18);
}
.eskola-equipo-pending {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px;
  color: #d40000;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 0 6px #fff, 0 0 2px #fff;
}
.eskola-equipo-nombre {
  padding: 12px 14px 0;
  font-size: 16px;
  font-weight: 650;
}
.eskola-equipo-ficha {
  padding: 4px 14px 14px;
  font-size: 13px;
  font-weight: 650;
  color: var(--azul-mid);
}
.eskola-equipo-ficha::after { content: ' →'; }
.eskola-bloque .eskola-cuota {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 650;
  color: var(--texto);
}

.eskola-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eskola-lista li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  color: var(--texto-suave);
  line-height: 1.45;
}

.eskola-lista li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--azul-mid);
}

.contacto-bloque {
  margin-top: 28px;
  padding: 20px;
  background: var(--azul-light);
  border-radius: 12px;
  max-width: 420px;
}

.contacto-bloque a { color: var(--azul-mid); font-weight: 500; }

@media (max-width: 760px) {
  .eskola-split,
  .eskola-mosaic { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .eskola-corte { gap: 10px; }
  .eskola-corte span { font-size: 16px; }
  .eskola-equipos-grid,
  .eskola-paso-grid { grid-template-columns: 1fr; }
  .eskola-paso-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
}

/* ── FOOTER ── */
.footer {
  background: #0d2745;
  color: rgba(255,255,255,0.7);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-marca {
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a:hover { color: #fff; }

.footer-ig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 55%, #6228d7 100%);
}
.footer-ig:hover { color: #fff; filter: brightness(1.08); }
.footer-ig svg { display: block; }

.footer-note {
  width: 100%;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}

/* ── COOKIE ── */
.pwa-banner {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  max-width: 420px;
  margin: 0 auto;
  background: var(--blanco);
  border: 0.5px solid var(--gris-borde);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 10px 28px rgba(12, 39, 69, 0.18);
  z-index: 160;
  animation: fadeUp 0.35s ease both;
}

.pwa-banner[hidden] {
  display: none !important;
}

.pwa-banner-inner {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px 12px;
  align-items: center;
  position: relative;
  padding-right: 18px;
}

.pwa-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.pwa-banner-copy {
  min-width: 0;
}

.pwa-banner-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--texto);
  line-height: 1.25;
}

.pwa-banner-text {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--texto-suave);
  line-height: 1.35;
}

.pwa-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}

.pwa-banner-install,
.pwa-banner-later {
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 7px 10px;
  white-space: nowrap;
}

.pwa-banner-install {
  background: var(--azul);
  color: #fff;
}

.pwa-banner-install[hidden] {
  display: none !important;
}

.pwa-banner-later {
  background: transparent;
  color: var(--texto-suave);
  padding: 4px 8px;
}

.pwa-banner-close {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--texto-suave);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 420px) {
  .pwa-banner-inner {
    grid-template-columns: 36px 1fr;
  }
  .pwa-banner-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-end;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 480px;
  background: var(--blanco);
  border: 0.5px solid var(--gris-borde);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 150;
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

.cookie-inner button {
  background: var(--azul);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .nav { padding: 0 16px; flex-wrap: wrap; height: auto; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    order: 3;
    padding-top: 8px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    font-size: 17px;
    padding: 13px 8px;
  }
  .nav-links a.activo {
    box-shadow: none;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
  }
  .nav-nombre span { display: none; }
  .hero { aspect-ratio: auto; min-height: 460px; background-position: 72% center; }
  .hero-inner { padding: 0 20px 12px; }
  .hero-escudo { width: 72px; height: 72px; }
  .partidos-strip { padding: 16px 20px 20px; grid-template-columns: 1fr; }
  .jornada-club { padding: 28px 20px; }
  .jornada-cabecera { flex-direction: column; align-items: flex-start; }
  .jornada-meta { align-items: flex-start; }
  .jornada-grid { grid-template-columns: 1fr; }
  .seccion, .page-band, .page-content, .sponsors, .seccion-ancha { padding-left: 20px; padding-right: 20px; }
  .page-band--equipos,
  .page-band--tienda,
  .page-band--eskola,
  .page-band--noticias,
  .page-band--socios,
  .page-band--partidos { min-height: 280px; padding-top: 36px; padding-bottom: 32px; }
  .page-band--tienda { min-height: 0; padding: 0; }
  .page-band--tienda .page-band-inner { padding: 0 20px 16px; }
  .noticias-home { grid-template-columns: 1fr; }
  .tienda-grid,
  .tienda-grid--shop { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .tienda-grid--shop { grid-template-columns: 1fr; }
  .footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
