:root {
  --bg: #0c1017;
  --surface: #ffffff;
  --text: #121212;
  --muted: #64748b;
  --yellow: rgba(253, 199, 0, 1);
  --red: rgba(249, 16, 24, 1);
  --menu-grad: linear-gradient(90deg, rgba(23, 23, 23, 1) 0%, rgba(41, 54, 66, 1) 100%);
  /* topbar 40px + menu 60px — mismo orden de magnitud que scroll-padding-top */
  --site-header-offset: 100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  overflow-x: hidden;
}

/* `overflow-x: hidden` puede impedir que `position: sticky` respete bien el bloque contenedor; `clip` evita scroll horizontal sin romper sticky. */
@supports (overflow: clip) {
  html {
    overflow-x: clip;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 60px;
  }
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background: var(--surface);
  color: var(--text);
  overflow-x: hidden;
}

@supports (overflow: clip) {
  body {
    overflow-x: clip;
  }
}

@font-face {
  font-family: "Akira Expanded";
  src: url("../fonts/akira expanded.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Banner interno (páginas secundarias) */
.page-banner {
  background-color: #293542;
  background-image: url("../img/banner-interno.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  text-align: center;
}

.page-banner--left {
  text-align: left;
}

.page-banner__title {
  margin: 0;
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  .page-banner__title {
    font-size: clamp(1.5rem, 6vw, 2.25rem);
  }
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.header {
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar {
  height: 40px;
  background: #fff;
  overflow: hidden;
  transition: height 0.22s ease, opacity 0.22s ease;
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.topbar-logos {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(28px, 5vw, 44px);
  min-width: 0;
}

.topbar-logos img {
  height: 24px;
  width: auto;
  object-fit: contain;
}

.topbar-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.topbar-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #171717;
  color: #fff;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.topbar-social__link:hover {
  filter: brightness(1.12);
}

.topbar-social__link i {
  font-size: 14px;
  line-height: 1;
  color: #fff;
}

.menu-strip {
  height: 60px;
  background: var(--menu-grad);
  position: relative;
  z-index: 1;
}

.header.is-scrolled .topbar {
  height: 0;
  opacity: 0;
}

.nav {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.logo img {
  width: auto;
  height: 32px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.menu__top-logos,
.menu__bottom {
  display: none;
}

.menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}

.menu a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.menu a.is-active {
  color: #fdc700;
}

.menu-btn {
  display: none;
  border: 0;
  background: transparent;
  padding: 4px;
  margin-left: auto;
}

.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

.header.is-open .menu-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header.is-open .menu-btn span:nth-child(2) {
  opacity: 0;
}

.header.is-open .menu-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-btn span {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.user-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.header-user {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.header-user .user-icon {
  margin-left: 0;
}

.header-user__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.user-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

.hero {
  position: relative;
  color: #fff;
  min-height: calc(100vh - 100px);
}

.hero-slider {
  position: relative;
  min-height: calc(100vh - 100px);
  overflow: hidden;
}

.hero-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  min-height: calc(100vh - 100px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide__bg {
  position: absolute;
  inset: 0;
  background: url("../img/bannerliga2.png") center / cover no-repeat;
}

.hero-grid {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 64px);
  line-height: 1.02;
  font-weight: 800;
}

.hero-title-accent {
  color: #fdc700;
}

.hero-copy p {
  margin: 0 0 24px;
  max-width: 520px;
  font-size: 18px;
  color: #d7dee7;
}

.btn {
  display: inline-block;
  background: #f91018;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 30px;
  font-size: 14px;
  font-weight: 500;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease,
    background 0.22s ease;
  will-change: transform;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(249, 16, 24, 0.35);
  filter: brightness(1.03);
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 16, 24, 0.25);
}

.btn:focus-visible {
  outline: 2px solid #fdc700;
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .hero-grid {
    align-items: flex-start;
    padding-top: clamp(5.5rem, 12vh, 9rem);
    justify-content: center;
  }

  .hero-copy {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-copy h1 {
    font-size: 40px;
    line-height: 1.05;
  }

  .hero-slide__bg {
    background: url("../img/hero-mobile.png") center / cover no-repeat;
  }
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(23, 23, 23, 0.4);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.15s ease, transform 0.15s ease;
}

.hero-arrow:hover {
  background: rgba(23, 23, 23, 0.55);
  transform: translateY(-50%) scale(1.03);
}

.hero-arrow:focus-visible {
  outline: 2px solid #fdc700;
  outline-offset: 3px;
}

.hero-arrow--prev {
  left: 16px;
}

.hero-arrow--next {
  right: 16px;
}

@media (max-width: 768px) {
  .hero-arrow {
    width: 40px;
    height: 40px;
  }

  .hero-arrow--prev {
    left: 12px;
  }

  .hero-arrow--next {
    right: 12px;
  }
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.hero-dot.is-active {
  width: 18px;
  border-radius: 999px;
  background: #f91018;
}

.section {
  padding: 56px 0;
}

html.js-reveal main section.section {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

html.js-reveal main section.section.is-section-visible {
  opacity: 1;
  transform: translateY(0);

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js-reveal main section.section {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .btn:active,
  .noticias-cta-btn:hover,
  .galeria-cta-btn:hover,
  .bicolor-banner__btn:hover {
    transform: none;
    box-shadow: none;
    filter: none;
  }
}

.section-alt {
  background: #f8fafc;
}

.section--partidos {
  background-color: #fff;
  background-image: url("../img/fondo-proximos.png");
  background-repeat: no-repeat;
  background-position: center;
  /* Ancho al 100% del contenedor; altura proporcional = imagen completa sin recortar lados */
  background-size: 100% auto;
  padding: clamp(48px, 8vw, 72px) 0;
}

.partidos-head {
  text-align: center;
  margin-bottom: 2rem;
}

.partidos-head h2 {
  margin: 0 0 0.5rem;
}

.partidos-head .subtitle {
  margin: 0;
}

/* Filtros Partidos (barra píldora + borrar) */
.partidos-filters {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.partidos-filters__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.partidos-filters__bar {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  padding: 0.35rem 0.5rem 0.35rem 0.85rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  gap: 0;
}

.partidos-filters__control {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
}

.partidos-filters__select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  margin: 0;
  padding: 0.45rem 1.65rem 0.45rem 0.35rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #0f172a;
  cursor: pointer;
}

.partidos-filters__select:focus {
  outline: none;
}

.partidos-filters__control:focus-within {
  outline: 2px solid #c9a227;
  outline-offset: 2px;
  border-radius: 8px;
}

.partidos-filters__chev {
  position: absolute;
  right: 0.15rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #64748b;
  font-size: 0.65rem;
  line-height: 1;
}

.partidos-filters__divider {
  flex-shrink: 0;
  width: 1px;
  align-self: stretch;
  min-height: 2.25rem;
  margin: 0.2rem 0.35rem;
  background: #e2e8f0;
}

.partidos-filters__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-left: 0.15rem;
  padding: 0.5rem 1.15rem;
  border: 0;
  border-radius: 9999px;
  background: #ED283A;
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.partidos-filters__btn:hover {
  background: #4a242a;
}

.partidos-filters__btn:focus-visible {
  outline: 2px solid #c9a227;
  outline-offset: 2px;
}

.partidos-filters__clear {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.875rem;
  color: #94a3b8;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.partidos-filters__clear:hover {
  color: #64748b;
}

.partidos-filters__clear:focus-visible {
  outline: 2px solid #c9a227;
  outline-offset: 2px;
  border-radius: 4px;
}

.partidos-filters__clear-x {
  font-size: 0.95em;
  line-height: 1;
}

@media (min-width: 768px) {
  .partidos-filters__inner {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: 0;
    align-items: center;
  }

  .partidos-filters__bar {
    grid-column: 4 / 9;
    max-width: none;
  }

  .partidos-filters__clear {
    grid-column: 9 / 13;
    justify-self: start;
    align-self: center;
  }
}

.partidos-embed {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}

.partidos-embed iframe {
  display: block;
  border: 0;
}

.partidos-embed-credit {
  font-size: 12px;
  font-family: Arial, sans-serif;
  text-align: left;
  margin-top: 8px;
  width: 100%;
  max-width: 480px;
}

.partidos-embed-credit a {
  color: inherit;
}

.fixture-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  width: 100%;
}

.fixture-card {
  grid-column: 4 / span 6;
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(44, 24, 16, 0.14);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(44, 24, 16, 0.08);
  backdrop-filter: blur(1px);
}

.fixture-card__header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}

.fixture-card__header img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.fixture-card__header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #2c1810;
}

.fixture-day + .fixture-day {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(44, 24, 16, 0.12);
}

.fixture-day__date {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: #2c1810;
}

.fixture-group + .fixture-group {
  margin-top: 1rem;
}

.fixture-group__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.55rem;
  font-size: 0.86rem;
  font-weight: 800;
  color: #2c1810;
}

.fixture-group__title img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.fixture-group__matches {
  display: grid;
  gap: 0.55rem;
}

.fixture-match {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) 2rem;
  align-items: center;
  gap: 0.75rem;
}

.fixture-match__time {
  font-size: 0.82rem;
  font-weight: 800;
  color: #2c1810;
}

.fixture-match__teams,
.fixture-match__scores {
  display: grid;
  gap: 0.35rem;
}

.fixture-club {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #2c1810;
}

.fixture-club span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fixture-club__crest {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.fixture-club__crest--empty {
  display: inline-block;
  border-radius: 50%;
  background: rgba(44, 24, 16, 0.1);
}

.fixture-match__scores {
  justify-items: end;
  font-size: 0.82rem;
  font-weight: 800;
  color: #2c1810;
}

.fixture-empty {
  margin: 0;
  font-size: 0.95rem;
  color: #64748b;
}

@media (max-width: 900px) {
  .fixture-card {
    grid-column: 2 / span 10;
  }
}

@media (max-width: 640px) {
  .fixture-card {
    grid-column: 1 / -1;
  }

  .fixture-match {
    grid-template-columns: 3rem minmax(0, 1fr) 1.5rem;
    gap: 0.55rem;
  }
}

/* Tabla de posiciones — marco visual tipo diseño (el iframe interno conserva estilos de Sofascore) */
.section--posiciones {
  position: relative;
  padding: clamp(48px, 7vw, 72px) 0;
  background: #fff;
}

.container--posiciones {
  position: relative;
  z-index: 1;
  width: min(1200px, 92%);
  margin-inline: auto;
}

.posiciones-title {
  margin: 0 0 1.75rem;
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #2c1810;
  letter-spacing: 0.02em;
}

.posiciones-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.posiciones-league {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  justify-self: start;
  font-weight: 700;
  font-size: 0.95rem;
  color: #2c1810;
}

.posiciones-league-logo {
  width: 40px;
  height: auto;
  object-fit: contain;
}

.posiciones-tabs {
  display: flex;
  gap: 0.5rem;
  justify-self: center;
}

.posiciones-toolbar-spacer {
  justify-self: end;
  width: 1px;
  height: 1px;
  visibility: hidden;
}

.posiciones-tab {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.35rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: #e8e0dc;
  color: #2c1810;
  transition: background 0.15s ease, color 0.15s ease;
}

.posiciones-tab.is-active {
  background: #2c1810;
  color: #fff;
}

.posiciones-tab:focus-visible {
  outline: 2px solid #f91018;
  outline-offset: 2px;
}

.posiciones-card {
  background: #fffdfa;
  border-radius: 16px;
  box-shadow: 0 10px 36px rgba(44, 24, 16, 0.1);
  overflow: hidden;
  border: 1px solid rgba(44, 24, 16, 0.06);
}

.posiciones-iframe {
  display: block;
  width: 100%;
  height: min(780px, 85vh);
  min-height: 560px;
  border: 0;
}

.posiciones-credit {
  margin: 0;
  padding: 0.65rem 1rem 1rem;
  font-size: 12px;
  font-family: Arial, sans-serif;
  text-align: left;
  color: #64748b;
  background: #fffdfa;
}

.posiciones-credit a {
  color: #2c1810;
}

/* Leyenda tabla de posiciones (pág. tabla) */
.section--standings-legend {
  background: #fff;
  padding: clamp(1rem, 3vw, 1.75rem) 0 clamp(48px, 7vw, 72px);
}

.standings-legend__heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.section--standings-legend .container--posiciones {
  position: relative;
}

.standings-legend {
  background: #171717;
  border-radius: 15px;
  padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1.1rem, 3vw, 1.75rem);
  max-width: 100%;
  margin-inline: auto;
}

.standings-legend__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem clamp(0.75rem, 2vw, 1.5rem);
  color: #fff;
  font-size: clamp(0.8rem, 1.35vw, 0.95rem);
  font-weight: 500;
  line-height: 1.35;
}

.standings-legend__abbr {
  font-weight: 700;
}

@media (max-width: 900px) {
  .standings-legend__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .standings-legend__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .posiciones-toolbar {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .posiciones-league {
    justify-self: center;
    flex-direction: column;
  }

  .posiciones-tabs {
    justify-self: center;
  }

  .posiciones-toolbar-spacer {
    display: none;
  }

  .posiciones-iframe {
    min-height: 520px;
    height: 70vh;
  }
}

/* LigaFan — bloque promocional (fondo container.png, hinchas a la derecha) */
.section--ligafan-promo {
  background: #fff;
  padding: clamp(40px, 6vw, 64px) 0;
}

.ligafan-promo-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 46%);
  align-items: end;
  gap: clamp(1rem, 3vw, 2rem);
  min-height: min(320px, 50vw);
  padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 3rem) 0;
  border-radius: 24px;
  overflow: hidden;
  background-color: #fff;
  background-image: url("../img/container.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.ligafan-promo-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 32rem;
  padding-bottom: clamp(1.5rem, 4vw, 2.75rem);
}

.ligafan-promo-heading {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3.2vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ligafan-promo-line {
  display: block;
  color: #fff;
}

.ligafan-promo-line--accent {
  color: #fdc700;
}

.ligafan-promo-text {
  margin: 0 0 1.25rem;
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.ligafan-promo-btn.btn {
  background: #f91018;
  color: #fff;
}

.ligafan-promo-figure {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  align-self: end;
  margin: 0;
  margin-bottom: 0;
  pointer-events: none;
}

.ligafan-promo-figure img {
  display: block;
  width: min(100%, 572px);
  height: auto;
  max-height: min(374px, 46.2vw);
  object-fit: contain;
  object-position: bottom right;
}

@media (max-width: 768px) {
  .ligafan-promo-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-items: stretch;
    min-height: unset;
    text-align: center;
    padding-top: 2.25rem;
  }

  .ligafan-promo-copy {
    max-width: none;
    order: 0;
    padding-bottom: 1.75rem;
  }

  .ligafan-promo-figure {
    order: 1;
    justify-content: center;
    margin-bottom: 0;
    align-self: end;
    width: 100%;
  }

  .ligafan-promo-figure img {
    max-height: 270px;
    width: auto;
    max-width: 100%;
    object-position: center bottom;
  }

  .ligafan-promo-heading {
    margin-top: 1rem;
    font-size: 32px;
  }

  .ligafan-promo-btn {
    display: inline-flex;
  }
}

/* Noticias */
.section--noticias {
  background: #fff;
  padding: clamp(48px, 7vw, 72px) 0;
}

.noticias-title {
  margin: 0 0 2rem;
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: #2c1810;
  letter-spacing: 0.02em;
}

.noticias-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.noticia-card {
  height: 100%;
}

.noticia-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: #faf8f6;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(44, 24, 16, 0.08);
  box-shadow: 0 4px 20px rgba(44, 24, 16, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.noticia-card__link:hover {
  box-shadow: 0 10px 32px rgba(44, 24, 16, 0.1);
  transform: translateY(-2px);
}

.noticia-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8e4e0;
}

.noticia-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.noticia-card__body {
  padding: 1.1rem 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.noticia-card__date {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f91018;
}

.noticia-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  color: #2c1810;
}

.noticia-card__excerpt {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #4b5563;
  flex: 1;
}

.noticias-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.25rem;
}

.noticias-cta-btn {
  background: #f91018;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 16px;
  padding: 0.85rem 2rem;
}

.noticias-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(249, 16, 24, 0.35);
  filter: brightness(0.95);
  color: #fff;
}

/* Galería — grid 12 columnas: fila1 (6+3+3), fila2 (3+3+6) */
.section--galeria {
  background: #fff;
  padding: clamp(48px, 7vw, 72px) 0;
}

.galeria-title {
  margin: 0 0 1.75rem;
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: #2c1810;
  letter-spacing: 0.02em;
  text-align: left;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.galeria-item {
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  background: #e8e4e0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.galeria-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(44, 24, 16, 0.15);
}

.galeria-item:focus-visible {
  outline: 3px solid #fdc700;
  outline-offset: 2px;
}

.galeria-item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
}

.galeria-item--c3 {
  grid-column: span 3;
  min-height: 160px;
}

.galeria-item--c6 {
  grid-column: span 6;
  min-height: 200px;
}

.galeria-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.25rem;
}

.galeria-cta-btn {
  background: #f91018;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 16px;
  padding: 0.85rem 2rem;
}

.galeria-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(249, 16, 24, 0.35);
  filter: brightness(0.95);
  color: #fff;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: rgba(8, 10, 14, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__img {
  max-width: min(96vw, 1400px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox__close:focus-visible {
  outline: 2px solid #fdc700;
  outline-offset: 2px;
}

body.lightbox-open {
  overflow: hidden;
}

body.menu-open {
  overflow: hidden;
}

/* Banner Bicolor + YouTube (debajo de galería) */
.section--bicolor-yt {
  background: #fff;
  padding: clamp(48px, 8vw, 96px) 0;
}

/* Clubes */
.section--clubes {
  background: #edeff4;
  padding: clamp(48px, 7vw, 72px) 0;
}

.clubes-title {
  margin: 0 0 1.75rem;
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: #121212;
  letter-spacing: 0.02em;
  text-align: left;
}

.clubes-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.clubes-item {
  padding: 0;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 18px;
}

.clubes-link {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1rem 1rem;
  border-radius: 18px;
  text-decoration: none;
  background: #fff;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clubes-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.12);
}

.clubes-link:focus-visible {
  outline: 3px solid #fdc700;
  outline-offset: 3px;
}

.clubes-link img {
  width: min(120px, 70%);
  height: 86px;
  object-fit: contain;
  display: block;
}

/* Noticias (página interna) */
.news-filter {
  background: #edeff4;
  padding: 18px 0;
}

.news-filter__inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-filter__label {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.news-filter__select {
  min-width: 220px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.18);
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
}

.news-filter__select:focus-visible {
  outline: 3px solid #fdc700;
  outline-offset: 3px;
}

.news-all {
  background: #fff;
  padding: clamp(28px, 5vw, 48px) 0 clamp(48px, 7vw, 72px);
}

.news-all__title {
  margin: 0 0 1.75rem;
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: #121212;
  letter-spacing: 0.02em;
}

.news-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.news-card {
  height: 100%;
}

.news-pagination {
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.news-pagination__btn,
.news-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-width: 34px;
  padding: 0 10px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid #cedbe5;
  color: #171717;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.news-pagination__page.is-active {
  background: #f91018;
  border-color: #f91018;
  color: #fff;
}

.news-pagination__btn.is-active {
  border-color: #f91018;
  color: #f91018;
}

.news-pagination__btn:hover,
.news-pagination__page:hover {
  background: rgba(23, 23, 23, 0.04);
}

.news-pagination__btn:focus-visible,
.news-pagination__page:focus-visible {
  outline: 3px solid #f91018;
  outline-offset: 3px;
}

.news-pagination__btn i {
  font-size: 14px;
}

.news-card__link {
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(17, 24, 39, 0.12);
}

.news-card__link:focus-visible {
  outline: 3px solid #fdc700;
  outline-offset: 3px;
}

.news-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e5e7eb;
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card__body {
  padding: 1.1rem 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.news-card__date {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f91018;
}

.news-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  color: #111827;
}

.news-card__excerpt {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #4b5563;
  flex: 1;
}

@media (max-width: 960px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .news-filter__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-filter__select {
    width: 100%;
    min-width: 0;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* Noticia single */
.news-detail {
  background: #fff;
  padding: clamp(24px, 4vw, 36px) 0 clamp(48px, 7vw, 72px);
}

.news-detail__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.news-article {
  grid-column: span 8;
  min-width: 0;
}

.news-article__hero {
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
  display: block;
}

.news-article__date {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #f91018;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.news-article__title {
  margin: 10px 0 12px;
  font-size: 24px;
  font-weight: 600;
  color: #171717;
}

.news-article__subtitle {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 600;
  color: #171717;
}

.news-article__text {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: #171717;
}

.news-article__split {
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.news-article__inline {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

.news-article__back {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.news-article__back-btn.btn {
  padding-inline: 2.25rem;
}

.news-related {
  grid-column: span 4;
  background: #edeff4;
  border-radius: 18px;
  padding: 18px;
  color: #171717;
}

.news-related__title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 600;
  color: #171717;
}

.news-related__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.news-related__item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  align-items: center;
}

.news-related__thumb {
  width: 80px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.news-related__meta {
  min-width: 0;
}

.news-related__date,
.news-related__excerpt {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  color: #171717;
}

.news-related__date {
  font-weight: 600;
}

@media (max-width: 960px) {
  .news-article {
    grid-column: span 12;
  }

  .news-related {
    grid-column: span 12;
  }
}

@media (max-width: 600px) {
  .news-article__split {
    grid-template-columns: 1fr;
  }
}

.clubes-name {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  word-break: break-word;
}

@media (max-width: 1100px) {
  .clubes-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .clubes-title {
    text-align: center;
  }

  .clubes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Club single */
.club-breadcrumb {
  background: #edeff4;
  padding: 12px 0;
}

.club-breadcrumb__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.8rem;
  color: #374151;
}

.club-breadcrumb__nav a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.club-breadcrumb__nav a:hover {
  text-decoration: underline;
}

.club-breadcrumb__sep {
  opacity: 0.75;
}

.club-breadcrumb__current {
  font-weight: 700;
  color: #111827;
}

.club-single {
  background-color: #fff;
  background-image: url("../img/fondo-singleclub.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: clamp(36px, 6vw, 56px) 0;
}

.club-single__inner {
  width: min(880px, 100%);
  margin-inline: auto;
  text-align: center;
}

.club-single__crest {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.club-single__title {
  margin: 18px 0 6px;
  font-size: 32px;
  font-weight: 800;
  color: #121212;
  letter-spacing: 0.02em;
}

.club-single__foundation {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.club-single__desc {
  margin: 0 auto 22px;
  max-width: 72ch;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}

.club-single__photo {
  width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

/* Club single — bloque plantel (fondo #EDEFF4, rejilla 12 col en escritorio) */
.plantel-block {
  padding: clamp(24px, 4vw, 48px) 0;
  background: #fff;
}

.plantel-block__surface {
  background-color: #edeff4;
  border-radius: 20px;
  padding: clamp(20px, 3.5vw, 36px);
  box-sizing: border-box;
}

.plantel-block__title-wrap {
  width: 100%;
}

.plantel-title__bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: start;
  flex-wrap: nowrap;
  gap: clamp(12px, 2.5vw, 22px);
  background-color: #111827;
  background-image: url("../img/fondotitle.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(224, 229, 240, 0.9);
  padding: 16px 14px;
}

.plantel-title__mark {
  display: block;
  flex-shrink: 0;
  height: clamp(26px, 4vw, 34px);
  width: auto;
  object-fit: contain;
}

.plantel-title__text {
  margin: 0;
  min-width: 0;
  text-align: center;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
}

.plantel {
  background: #fff;
  padding: clamp(28px, 5vw, 48px) 0 clamp(48px, 7vw, 72px);
}

.plantel--in-block {
  background: transparent;
  padding: 0;
  margin: 0;
}

.plantel-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.plantel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-inline: 0;
  max-width: none;
  margin-inline: 0;
}

.jugador-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 2px solid #e0e5f0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
}

@media (min-width: 901px) {
  .plantel-block__surface {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(16px, 2vw, 24px);
    row-gap: clamp(20px, 3vw, 28px);
  }

  /* Título: 10 columnas centradas (cols 2–11) */
  .plantel-block__title-wrap {
    grid-column: 2 / span 10;
  }

  .plantel--in-block {
    grid-column: 1 / -1;
  }

  .plantel--in-block .plantel-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(16px, 2vw, 24px);
    row-gap: 18px;
  }

  /* Cada card: 5 columnas; alineado con bordes del título (márgenes 1 col) */
  .plantel--in-block .jugador-card:nth-child(2n + 1) {
    grid-column: 2 / span 5;
  }

  .plantel--in-block .jugador-card:nth-child(2n) {
    grid-column: 7 / span 5;
  }
}

.jugador-card__img {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.jugador-card__info {
  text-align: left;
}

.jugador-card__name {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  color: #111827;
}

.jugador-card__meta {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

@media (max-width: 720px) {
  .club-single__inner {
    text-align: center;
    padding-inline: 16px;
  }

  .club-single__crest {
    margin-inline: auto;
  }

  .club-single__desc {
    text-align: justify;
    text-justify: inter-word;
  }

  .plantel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .plantel-block__surface {
    display: block;
  }

  .plantel--in-block .jugador-card {
    grid-column: auto;
  }
}

.bicolor-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(2.25rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  border-radius: 20px;
  background-color: #1a0a0c;
  background-image: url("../img/fondobicolor.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  overflow: hidden;
}

.bicolor-banner__left {
  flex: 1 1 280px;
  min-width: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.bicolor-banner__title-wrap {
  margin-bottom: 1.35rem;
  min-width: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.bicolor-banner__title {
  margin: 0;
  font-size: clamp(0.75rem, 2.35vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  display: inline-block;
  min-width: min-content;
}

.bicolor-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 2.3rem;
  margin: 0 auto;
  border-radius: 999px;
  background: #f91018;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  transition:
    filter 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.bicolor-banner__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(249, 16, 24, 0.35);
  filter: brightness(1.06);
  color: #fff;
}

.bicolor-banner__btn:focus-visible {
  outline: 2px solid #fdc700;
  outline-offset: 3px;
}

.bicolor-banner__btn-text {
  text-transform: uppercase;
}

.bicolor-banner__yt-mark {
  display: block;
  width: auto;
  height: 20px;
  max-width: 90px;
  object-fit: contain;
}

.bicolor-banner__right {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  text-align: left;
}

.bicolor-banner__label {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.95;
  text-align: left;
}

.bicolor-banner__logo {
  display: block;
  max-width: min(340px, 52vw);
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 720px) {
  .bicolor-banner {
    display: grid;
    grid-auto-flow: row;
    justify-items: center;
    align-content: center;
    text-align: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .bicolor-banner__left {
    max-width: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .bicolor-banner__title-wrap {
    text-align: center;
    overflow: visible;
    padding-bottom: 0;
  }

  .bicolor-banner__title {
    text-align: center;
    white-space: normal;
    font-size: 35px;
  }

  .bicolor-banner__btn {
    justify-content: center;
    width: auto;
    max-width: 340px;
    margin-inline: auto;
    padding: 0.95rem 2rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .bicolor-banner__right {
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 340px;
    margin-inline: auto;
  }

  .bicolor-banner__logo {
    max-width: min(300px, 88vw);
    margin-inline: auto;
  }
}

@media (max-width: 900px) {
  /* En tablet/móvil: 2 columnas como el diseño */
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .galeria-item {
    grid-column: span 1;
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  .galeria-item img {
    min-height: 0;
  }

  /* Primera imagen grande arriba ocupando ambas columnas */
  .galeria-grid > .galeria-item:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
  }

  .noticias-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 40px);
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.footer {
  background: #171717;
  color: #fff;
  padding: 0;
}

.footer__rule {
  border: 0;
  height: 1px;
  margin: 0;
  background: rgba(255, 255, 255, 0.1);
}

.footer__rule-wrap {
  padding: 24px 0;
}

.footer__rule-wrap--mid {
  padding: 24px 0;
}

.footer__top {
  display: grid;
  grid-template-columns: 3fr 6fr 3fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: 2rem 0 2.25rem;
  align-items: start;
}

.footer__logo img {
  display: block;
  width: 140px;
  height: auto;
}

.footer__desc {
  margin: 0.75rem 0 0;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.footer__nav-title {
  margin: 0 0 1rem;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.9375rem;
}

.footer__links a:hover {
  color: #fdc700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #171717;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  background: #fdc700;
  color: #171717;
}

.social-btn:focus-visible {
  outline: 2px solid #fdc700;
  outline-offset: 3px;
}

.footer__bottom {
  padding: 1.25rem 0 2rem;
}

.footer__legal {
  margin: 0;
  text-align: center;
  color: #99a1af;
  font-size: 0.875rem;
}

@media (max-width: 900px) {
  .footer__top {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 0;
  }

  .footer__logo {
    display: flex;
    justify-content: center;
  }

  .footer__desc {
    margin-inline: auto;
  }

  .footer__links {
    grid-template-columns: 1fr;
    justify-items: center;
    max-width: 360px;
    margin-inline: auto;
    text-align: center;
  }

  .footer__social {
    justify-content: center;
  }
}

/* Sponsors (pegado al footer) */
.sponsors {
  background: #171717;
  color: #fff;
  padding: 44px 0 24px;
}

.sponsors__title {
  margin: 0 0 2.5rem;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.sponsors__mark {
  width: 28px;
  height: 28px;
  display: block;
}

.sponsors__grid {
  list-style: none;
  margin: 0;
  padding: 0 0 32px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(10px, 1.4vw, 18px);
  align-items: center;
  justify-items: center;
}

.sponsors__item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.sponsors__item img {
  max-width: 128px;
  width: min(100%, 128px);
  max-height: 34px;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

@media (max-width: 900px) {
  .sponsors__grid {
    grid-template-columns: repeat(3, 1fr);
    padding-bottom: 24px;
  }

  .sponsors__item img {
    max-width: 112px;
    max-height: 32px;
  }
}

@media (max-width: 900px) {
  /* En móvil el topbar no se muestra */
  .topbar {
    height: 0;
    opacity: 0;
  }

  .menu-btn {
    display: inline-block;
  }

  .header-user,
  .user-icon {
    display: none;
  }

  .menu {
    position: fixed;
    left: 0;
    right: 0;
    top: 60px;
    bottom: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: start;
    gap: 0;
    background: var(--menu-grad);
    padding: 18px 24px 22px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
    overflow: auto;
    white-space: normal;
  }

  .menu__top-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(22px, 4.5vw, 36px);
    padding: 10px 0 16px;
  }

  .menu__top-logos img {
    height: 22px;
    width: auto;
    object-fit: contain;
    opacity: 0.95;
  }

  .menu__list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
  }

  .menu__list li {
    border-bottom: 1px solid #606870;
  }

  .menu__list li:first-child {
    border-top: 1px solid #606870;
  }

  .menu__list a {
    display: block;
    width: 100%;
    padding: 18px 0;
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  .menu__bottom {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding-top: 22px;
  }

  .menu__follow {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 600;
  }

  .menu__social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 12px;
    justify-content: center;
  }

  .menu__legal {
    margin: 0;
    text-align: center;
    color: #99a1af;
    font-size: 0.875rem;
  }

  .header.is-open .menu {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero-grid {
    min-height: calc(100vh - 100px);
  }

  .hero {
    min-height: calc(100vh - 100px);
  }
}

/* LigaFan — registro (banner + formulario) */
.ligafan-register {
  background: #fff;
  overflow: visible;
}

/* Desktop: 85% imagen / 15% blanco solo en la franja del título + formulario (fila 1) */
.ligafan-register__hero {
  position: relative;
  background: transparent;
  padding: 0 0 clamp(0.75rem, 2vw, 1.25rem);
  overflow: visible;
  isolation: isolate;
}

.ligafan-register__bg {
  z-index: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background-color: #fff;
  background-image:
    linear-gradient(to bottom, transparent 0%, transparent 85%, #fff 85%, #fff 100%),
    url("../img/banner-ligafan.png");
  background-repeat: no-repeat;
  background-size: 100% 100%, cover;
  background-position: center top, center top;
  pointer-events: none;
}

.ligafan-register__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 600px);
  grid-template-rows: auto;
  align-items: stretch;
  column-gap: clamp(1.5rem, 4vw, 2.75rem);
  row-gap: clamp(1.75rem, 4vw, 2.5rem);
  width: min(1320px, calc(100% - 48px));
  margin-inline: auto;
}

.ligafan-register__col--left {
  min-width: 0;
}

.ligafan-register__intro {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  align-self: stretch;
  min-width: 0;
}

/* Desktop: la altura del bloque la marca solo la columna izquierda. La derecha va absolute (si no, un formulario más alto que el texto iguala la fila del grid y el sticky no “baja”). */
@media (min-width: 961px) {
  .ligafan-register__inner {
    display: block;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    padding-right: calc(min(600px, 44vw) + clamp(1.5rem, 4vw, 2.75rem));
  }

  .ligafan-register__col--left {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    width: 100%;
  }

  .ligafan-register__intro {
    padding-top: clamp(2.25rem, 5vw, 3rem);
    min-height: clamp(320px, 34vw, 520px);
  }

  /* Capa bajo todo el ancho del viewport (antes dentro del intro quedaba anclada al ancho de la columna izquierda). */
  .ligafan-register__bg {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    min-height: calc(clamp(320px, 34vw, 520px) + clamp(2.25rem, 5vw, 3rem));
    z-index: 0;
  }

  .ligafan-register__title {
    position: relative;
    z-index: 1;
  }

  .ligafan-register__inner .ligafan-about {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0;
  }

  .ligafan-register__sticky-col {
    position: absolute;
    top: 20px;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(600px, max(300px, 38vw));
    min-width: 0;
    padding-top: 0;
    box-sizing: border-box;
    overflow: visible;
    z-index: 2;
  }

  /* Sticky en envoltorio separado: nunca en el mismo nodo que overflow (rompe el sticky respecto al scroll de página). */
  .ligafan-register__sticky-track {
    position: sticky;
    top: var(--site-header-offset);
    width: 100%;
    flex-shrink: 0;
    background-color: #edeff4;
    border-radius: 20px;
  }

  .ligafan-register__sticky-col .ligafan-register__card {
    margin-top: 0;
    align-self: stretch;
    max-height: none;
    overflow-y: visible;
  }
}

.ligafan-register__title {
  margin: 0;
  max-width: min(400px, 100%);
  color: #fff;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.12;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ligafan-register__card {
  z-index: 1;
  align-self: start;
  background-color: #edeff4;
  border-radius: 20px;
  padding: clamp(1.25rem, 3vw, 1.85rem);
  margin-top:20px;
}

.ligafan-form {
  background-color: #edeff4;
}

.ligafan-register__card-title {
  margin: 0 0 1.15rem;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 800;
  color: #121212;
  text-align: center;
}

.ligafan-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 0.85rem;
  margin-bottom: 1rem;
}

.ligafan-form__input {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(44, 24, 16, 0.1);
  border-radius: 16px;
  background: #fff;
  color: #2c1810;
}

.ligafan-form__input::placeholder {
  color: rgba(44, 24, 16, 0.55);
}

.ligafan-form__input:focus {
  outline: 2px solid #f91018;
  outline-offset: 1px;
}

.ligafan-form__input--date {
  min-height: 2.65rem;
  color-scheme: light;
}

.ligafan-form__select {
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232c1810' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
  cursor: pointer;
}

.ligafan-form__select:invalid,
.ligafan-form__select option[value=""] {
  color: rgba(44, 24, 16, 0.55);
}

.ligafan-form__select:valid {
  color: #2c1810;
}

.ligafan-form__check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  color: #121212;
  margin: 0 0 0.55rem;
  cursor: pointer;
}

.ligafan-form__check input {
  margin-top: 0.15rem;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  accent-color: #f91018;
  background-color: #fff;
}

.ligafan-captcha {
  display: grid;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.ligafan-captcha__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #2c1810;
}

.ligafan-hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ligafan-message {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}

.ligafan-message--success {
  color: #14532d;
  background: #dcfce7;
  border: 1px solid #86efac;
}

.ligafan-message--error {
  color: #7f1d1d;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.ligafan-member-card {
  padding: 1rem;
  border-radius: 14px;
  background: #fff;
  color: #2c1810;
}

.ligafan-member-card__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #f91018;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ligafan-member-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.ligafan-member-card__text {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.ligafan-member-card__logout {
  color: #f91018;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.ligafan-form__submit {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.95rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: #f91018;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.ligafan-form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(249, 16, 24, 0.35);
  filter: brightness(1.03);
}

.ligafan-form__submit:active {
  transform: translateY(0);
}

.ligafan-about {
  background: #fff;
  padding: clamp(1.75rem, 5vw, 3.25rem) 0 clamp(2.75rem, 7vw, 4.5rem);
}

.ligafan-about__inner {
  width: min(720px, calc(100% - 48px));
  margin-inline: auto;
}

.ligafan-register__inner .ligafan-about__inner {
  margin-inline: 0;
  margin-right: auto;
  width: 100%;
  max-width: min(720px, 100%);
}

.ligafan-about__title {
  margin: 0 0 1.15rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: #121212;
  text-align: left;
}

.ligafan-about__text {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #374151;
  text-align: left;
}

.ligafan-about__text:last-child {
  margin-bottom: 0;
}

@media (max-width: 960px) {
  .ligafan-register {
    padding-bottom: clamp(0.5rem, 2vw, 1rem);
  }

  .ligafan-register__sticky-col {
    width: 100%;
    padding-top: 0;
    display: block;
  }

  .ligafan-register__sticky-track {
    position: static;
    top: auto;
  }

  .ligafan-register__sticky-col .ligafan-register__card {
    max-height: none;
    overflow-y: visible;
  }

  .ligafan-register__inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: 0;
    padding-right: 0;
    row-gap: 0;
    column-gap: 0;
  }

  /* Móvil: sin capa 85/15; imagen 100% solo en el bloque del título */
  .ligafan-register__hero {
    background: transparent;
    padding: 0;
  }

  .ligafan-register__bg {
    display: none;
  }

  .ligafan-register__intro {
    grid-column: auto;
    grid-row: auto;
    align-self: stretch;
    width: 100%;
    min-height: clamp(220px, 58vw, 420px);
    margin: 0;
    padding: clamp(2.5rem, 10vw, 3.75rem) clamp(1.25rem, 5vw, 1.5rem);
    box-sizing: border-box;
    background-color: #5c1018;
    background-image: url("../img/banner-ligafan.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
  }

  .ligafan-register__inner .ligafan-about {
    grid-column: auto;
    grid-row: auto;
  }

  .ligafan-about {
    padding: clamp(1.5rem, 5vw, 2.25rem) clamp(1.25rem, 5vw, 1.5rem);
  }

  .ligafan-register__card {
    grid-column: auto;
    grid-row: auto;
    align-self: stretch;
    width: calc(100% - 2 * clamp(1.25rem, 5vw, 1.5rem));
    max-width: 560px;
    margin: clamp(1rem, 4vw, 1.5rem) auto 0;
  }

  .ligafan-register__title {
    max-width: none;
    font-size: 40px;
  }
}

@media (max-width: 560px) {
  .ligafan-form__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ligafan-form__submit:hover,
  .ligafan-form__submit:active {
    transform: none;
    box-shadow: none;
    filter: none;
  }

  .ligafan-beneficios__media img,
  .ligafan-marcas__media img {
    animation: none;
    transform: none;
  }
}

/* LigaFan — Beneficios para hinchas */
.ligafan-beneficios {
  background: #fff;
  padding: clamp(0.5rem, 1.5vw, 1rem) 0 clamp(2rem, 5vw, 3rem);
}

.ligafan-beneficios__section-title {
  margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  color: #121212;
  text-align: left;
  letter-spacing: 0.02em;
}

.ligafan-beneficios__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 44%);
  align-items: end;
  column-gap: clamp(1.25rem, 3vw, 2rem);
  row-gap: 0;
  padding-top: clamp(1.5rem, 4vw, 2.75rem);
  padding-left: clamp(1.5rem, 4vw, 2.75rem);
  padding-right: 0;
  padding-bottom: 0;
  border-radius: 20px;
  overflow: hidden;
  background-color: #7a121c;
  background-image: url("../img/fondo-parahinchas.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.ligafan-beneficios__copy {
  align-self: center;
  min-width: 0;
  padding-bottom: clamp(1.5rem, 4vw, 2.75rem);
  padding-right: clamp(0.75rem, 2vw, 1.25rem);
}

.ligafan-beneficios__title {
  margin: 0 0 1.25rem;
  font-family: "Akira Expanded", "Montserrat", sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ligafan-beneficios__list,
.ligafan-beneficios__list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ligafan-beneficios__list p,
.ligafan-marcas__list p {
  margin: 0 0 0.65rem;
}

.ligafan-beneficios__list li {
  position: relative;
  margin: 0;
  padding-left: 1.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  color: #fff;
}

.ligafan-beneficios__list li::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.2rem;
  height: 1.2rem;
  background: url("../img/check.svg") no-repeat center / contain;
}

.ligafan-beneficios__media {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  align-self: end;
  min-width: 0;
  margin: 0;
  padding: 0;
  line-height: 0;
  overflow: hidden;
}

.ligafan-beneficios__media img {
  display: block;
  margin: 0;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: bottom right;
  vertical-align: bottom;
  transform-origin: center bottom;
  animation: ligafan-image-pulse 7s ease-in-out infinite;
}

@media (max-width: 900px) {
  .ligafan-beneficios {
    padding-top: clamp(1.25rem, 4vw, 2rem);
  }

  .ligafan-beneficios__section-title {
    text-align: center;
  }

  .ligafan-beneficios__card {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding-left: clamp(1.5rem, 4vw, 2.75rem);
    padding-right: 0;
  }

  .ligafan-beneficios__copy {
    align-self: start;
    padding-right: clamp(1.5rem, 4vw, 2.75rem);
    padding-bottom: clamp(1rem, 3vw, 1.5rem);
  }

  .ligafan-beneficios__media {
    justify-content: center;
    align-self: end;
    width: 100%;
  }

  .ligafan-beneficios__media img {
    max-height: min(320px, 58vw);
    width: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: bottom center;
  }
}

/* LigaFan — Para Marcas */
.ligafan-marcas {
  background: #fff;
  padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(2.25rem, 5vw, 3.25rem);
}

.ligafan-marcas__section-title {
  margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  color: #121212;
  text-align: left;
  letter-spacing: 0.02em;
}

.ligafan-marcas__card {
  display: grid;
  grid-template-columns: minmax(200px, 44%) minmax(0, 1fr);
  grid-template-areas: "media copy";
  align-items: stretch;
  column-gap: clamp(1.25rem, 3vw, 2rem);
  row-gap: 0;
  padding-top: clamp(1rem, 2.5vw, 1.5rem);
  padding-bottom: 0;
  padding-left: 0;
  padding-right: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: 20px;
  overflow: hidden;
  background-color: #0f172a;
  background-image: url("../img/fondo-marcas.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

.ligafan-marcas__copy {
  grid-area: copy;
  align-self: start;
  min-width: 0;
  padding-bottom: 0;
  padding-top: 0;
  padding-left: clamp(0.75rem, 2vw, 1.25rem);
}

.ligafan-marcas__title {
  margin: 0 0 1.25rem;
  padding-top: clamp(1rem, 3vw, 2rem);
  font-family: "Akira Expanded", "Montserrat", sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ligafan-marcas__list,
.ligafan-marcas__list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ligafan-marcas__list li {
  position: relative;
  margin: 0;
  padding-left: 1.85rem;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: #fff;
}

.ligafan-marcas__list li::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.2rem;
  height: 1.2rem;
  background: url("../img/check.svg") no-repeat center / contain;
}

.ligafan-marcas__media {
  grid-area: media;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
  overflow: hidden;
}

.ligafan-marcas__media img {
  display: block;
  margin: 0;
  max-width: 100%;
  max-height: clamp(220px, 34vw, 320px);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: bottom right;
  flex-shrink: 0;
  transform-origin: center bottom;
  animation: ligafan-image-pulse 7.5s ease-in-out infinite;
}

@keyframes ligafan-image-pulse {
  0%,
  100% {
    transform: scale(1) translate3d(0, 0, 0);
  }

  50% {
    transform: scale(1.045) translate3d(0, -4px, 0);
  }
}

@media (max-width: 900px) {
  .ligafan-marcas__section-title {
    text-align: center;
  }

  .ligafan-marcas__card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "media";
    align-items: stretch;
    padding-right: 0;
    padding-left: clamp(1.5rem, 4vw, 2.75rem);
    padding-bottom: 0;
  }

  .ligafan-marcas__copy {
    align-self: start;
    padding-right: clamp(1.5rem, 4vw, 2.75rem);
    padding-bottom: 0;
    padding-left: 0;
  }

  .ligafan-marcas__media {
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
  }

  .ligafan-marcas__media img {
    max-height: min(320px, 58vw);
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom center;
  }
}

/* Página Documentos */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.docs-section {
  padding-block: clamp(2rem, 5vw, 3rem);
}

.docs-section__inner {
  max-width: min(1000px, 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.docs-tabs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.65rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  width: 100%;
}

.docs-tab {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  padding: 0.65rem 0.75rem;
  border-radius: 999px;
  background: #ebe8ea;
  color: #171717;
  transition: background 0.2s ease, color 0.2s ease;
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: flex;
  align-items: center;
  justify-content: center;
  hyphens: auto;
}

.docs-tab:hover {
  filter: brightness(0.97);
}

.docs-tab.is-active {
  background: #f91018;
  color: #fff;
}

.docs-panels {
  width: 100%;
}

.docs-panel {
  width: 100%;
}

.docs-panel__title {
  margin: 0 0 1.35rem;
  font-size: 32px;
  font-weight: 700;
  color: #171717;
  line-height: 1.2;
}

.docs-year {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.75rem;
}

.docs-year__select {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  border: none;
  background: #171717;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  padding: 0.7rem 2.65rem 0.7rem 1.35rem;
  border-radius: 999px;
  cursor: pointer;
}

.docs-year__select:focus-visible {
  outline: 2px solid #f91018;
  outline-offset: 2px;
}

.docs-year__chevron {
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #fff;
  font-size: 0.75rem;
}

.docs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.docs-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 2px solid #e0e5f0;
  border-radius: 999px;
  background: #fff;
  text-align: left;
}

.docs-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: auto;
  display: block;
}

.docs-item__text {
  flex: 1;
  min-width: 0;
  font-size: 18px;
  font-weight: 400;
  color: #171717;
  line-height: 1.35;
}

.docs-item__name {
  font-weight: 700;
}

.docs-item__size {
  font-size: 14px;
  font-weight: 400;
  color: #9f9f9f;
}

.docs-item__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.docs-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  border: none;
  background: #edeff4;
  color: #171717;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.15s ease;
}

.docs-action-btn:hover {
  filter: brightness(0.96);
}

.docs-action-btn:focus-visible {
  outline: 2px solid #f91018;
  outline-offset: 2px;
}

.docs-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.docs-modal[hidden] {
  display: none;
}

body.docs-modal-open {
  overflow: hidden;
}

.ligafan-login-open {
  overflow: hidden;
}

.ligafan-login-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.ligafan-login-modal[hidden] {
  display: none;
}

.ligafan-login-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
}

.ligafan-login-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: clamp(1.25rem, 4vw, 1.75rem);
  border-radius: 20px;
  background: #dbdfe9;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.ligafan-login-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #2c1810;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.ligafan-login-modal__title {
  margin: 0 2rem 0.4rem 0;
  color: #2c1810;
  font-size: 1.35rem;
  font-weight: 800;
}

.ligafan-login-modal__text {
  margin: 0 0 1rem;
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.45;
}

.ligafan-login-form {
  display: grid;
  gap: 0.75rem;
}

.ligafan-login-form .ligafan-captcha {
  margin: 0;
}

.ligafan-login-panel[hidden] {
  display: none;
}

.ligafan-login-modal__link,
.ligafan-login-modal__register {
  display: inline-block;
  margin-top: 1rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f91018;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.ligafan-login-modal__register {
  margin-left: 0.8rem;
}

.ligafan-login-modal__link:hover,
.ligafan-login-modal__register:hover {
  text-decoration: underline;
}

.docs-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 16, 23, 0.72);
}

.docs-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(90vh, 900px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.docs-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e0e5f0;
}

.docs-modal__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #171717;
}

.docs-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 8px;
  background: #edeff4;
  color: #171717;
  cursor: pointer;
  font-size: 1.1rem;
}

.docs-modal__close:hover {
  filter: brightness(0.95);
}

.docs-modal__frame-wrap {
  flex: 1;
  min-height: min(70vh, 640px);
  background: #f4f5f8;
}

.docs-modal__frame {
  width: 100%;
  height: 100%;
  min-height: min(70vh, 640px);
  border: 0;
  display: block;
}

@media (max-width: 720px) {
  .docs-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
  }

  .docs-tab {
    flex: 0 0 auto;
    min-width: min(118px, 32vw);
    max-width: 150px;
    min-height: 3.25rem;
  }

  .docs-item {
    flex-wrap: wrap;
    border-radius: 1.25rem;
    padding: 0.9rem 1rem;
  }

  .docs-item__actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .docs-tab,
  .docs-action-btn {
    transition: none;
  }
}
