/* ==========================================================================
   HERO SLIDER OFICIAL (Crossfade 0.9s + Ken Burns 7s + Entrada escalonada)
   ========================================================================== */
.hero-slider {
  position: relative;
  height: 610px;
  background: var(--oc-pure-black);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: 0 0;
  transition: opacity 0.9s ease-in-out;
  will-change: opacity;
}

.hero-slide.is-leaving {
  z-index: 2;
  opacity: 0;
}

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

/* Capa de fondo con efecto Ken Burns (scale 1 -> 1.08 en 7s) */
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center 25%;
  transform: scale(1);
  transition: transform 0.01s linear;
  will-change: transform;
}

.hero-slide.is-zooming::before {
  transform: scale(1.08);
  transition: transform 7s ease-out;
}

/* Velo oscuro degradado sobre el fondo */
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(12, 11, 11, 0.35) 0%, rgba(12, 11, 11, 0.52) 55%, rgba(12, 11, 11, 0.82) 100%);
  pointer-events: none;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 64px 24px 76px;
}

/* Animación escalonada de entrada (etiquetas -> título -> botón) y salida limpia */
.hero-slide .badge-row,
.hero-slide .hero-slide-title,
.hero-slide .btn-pill-frosted {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  will-change: opacity, transform;
}

.hero-slide.is-leaving .badge-row,
.hero-slide.is-leaving .hero-slide-title,
.hero-slide.is-leaving .btn-pill-frosted {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-slide.is-active .badge-row {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease-out 0.12s, transform 0.7s ease-out 0.12s;
}

.hero-slide.is-active .hero-slide-title {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease-out 0.22s, transform 0.7s ease-out 0.22s;
}

.hero-slide.is-active .btn-pill-frosted {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease-out 0.32s, transform 0.7s ease-out 0.32s, background 0.22s ease, box-shadow 0.22s ease;
}

.hero-slide.is-active .btn-pill-frosted:hover {
  transform: translateY(-2px);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.badge-navy {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--oc-navy);
  color: var(--oc-white);
  padding: 4px 13px;
  border-radius: 4px;
}

.badge-green,
.badge-position {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--color-accent-ui, #111111);
  color: var(--oc-white);
  padding: 4px 13px;
  border-radius: 4px;
}

.hero-slide-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.6vw, 4.1rem);
  font-weight: 300;
  color: var(--oc-white);
  margin-bottom: 28px;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.55);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(12, 11, 11, 0.45);
  color: var(--oc-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.hero-arrow:hover {
  background: var(--oc-white);
  color: var(--oc-black);
}
.hero-arrow.prev { left: 22px; }
.hero-arrow.next { right: 22px; }

.hero-controls {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  z-index: 5;
}

.hero-controls-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 32px;
  height: 4px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), width var(--transition);
}
.hero-dot.is-active {
  background: var(--oc-white);
  width: 44px;
}

.hero-social-pills {
  display: flex;
  gap: 10px;
}
.hero-social-pills a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(12, 11, 11, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--oc-white);
}
.hero-social-pills a:hover {
  background: var(--oc-white);
  color: var(--oc-black);
  border-color: var(--oc-white);
}

/* ==========================================================================
   NOTICIAS HOME — 4 COLUMNAS POSTER VERTICAL (Jet Smart Tiles exacto)
   ========================================================================== */
.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 26px;
}

.cat-pill {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  padding: 6px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--oc-white);
  background: transparent;
}
.cat-pill:hover,
.cat-pill.is-active {
  background: var(--oc-white);
  color: var(--oc-black);
  border-color: var(--oc-white);
}

.news-poster-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.news-poster-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 3 / 4.25;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--oc-border-card);
  background: #141414;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.news-poster-card:hover {
  transform: translateY(-5px);
  border-color: var(--oc-white);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
}

.news-poster-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s ease;
}

.news-poster-card:hover .news-poster-bg {
  transform: scale(1.06);
}

.news-poster-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.18) 38%, rgba(0, 0, 0, 0.86) 76%, rgba(0, 0, 0, 0.96) 100%);
  z-index: 1;
}

.news-poster-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.88);
  color: #111111;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 400;
  padding: 3px 16px;
  border-radius: var(--radius-pill);
}

.news-poster-content {
  position: relative;
  z-index: 3;
  padding: 20px 18px 24px;
  text-align: center;
}

.news-poster-title {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--oc-white);
  margin: 0 0 8px;
}

.news-poster-excerpt {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gold-more-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.link-gold {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--oc-gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.link-gold:hover {
  color: #ffd06b;
  transform: translateX(3px);
}

/* Grilla estándar para archivo /noticias */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition);
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.35);
}

.news-card-thumb {
  aspect-ratio: 16 / 10;
  background: #1C1C1C;
  overflow: hidden;
}
.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.news-card:hover .news-card-thumb img {
  transform: scale(1.05);
}

.news-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.news-card-meta {
  font-size: 0.84rem;
  color: var(--oc-text-light-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.news-card-title {
  font-size: 1.32rem;
  font-weight: 400;
  color: var(--oc-white);
}

.news-card-excerpt {
  margin: 0;
  font-size: 0.94rem;
  color: var(--oc-text-light-muted);
}

/* ==========================================================================
   PRÓXIMOS PARTIDOS — TARJETAS EN FILA HORIZONTAL (1, 2 o 3 COLUMNAS)
   ========================================================================== */
.matches-showcase-grid {
  display: grid;
  gap: 26px;
  margin: 30px auto 0;
  align-items: stretch;
}

.matches-showcase-grid.matches-grid--1 {
  grid-template-columns: minmax(0, 1fr);
  max-width: 520px;
}

.matches-showcase-grid.matches-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 940px;
}

.matches-showcase-grid.matches-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1240px;
}

.match-showcase-card {
  background: #FFFFFF;
  border: 1px solid #E5E8EE;
  border-radius: 14px;
  padding: 18px 20px 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.match-showcase-card:hover {
  transform: translateY(-4px);
  border-color: #CBD2DC;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.match-pitch-art {
  width: 100%;
  height: 190px;
  margin: 0 0 16px;
  padding: 10px 12px;
  background: #F8FAFC;
  border: 1px solid #EEF1F6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.match-pitch-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.match-pitch-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(135deg, #0E141B 0%, #162B1E 50%, #1F1418 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px;
  text-align: center;
}

.match-pitch-team {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex: 1;
  min-width: 0;
}

.match-pitch-vs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--color-accent-ui-red, #D5001C);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.match-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
  min-width: 0;
}

.match-card-comp {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-ui-red, #D5001C);
  margin-bottom: 5px;
}

.match-info-title {
  font-family: var(--font-display);
  font-size: 1.34rem;
  line-height: 1.22;
  font-weight: 500;
  color: var(--oc-text-dark);
  margin: 0 0 8px;
}

.match-info-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 300;
  color: #475467;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}

.match-info-stadium {
  font-size: 0.84rem;
  font-weight: 500;
  color: #1E293B;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.match-card-footer {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  justify-content: center;
}

.match-card-btn {
  width: 100%;
  max-width: 240px;
  justify-content: center;
  text-align: center;
}

/* Tarjeta oscura para /proximos-partidos/{slug} */
.match-card {
  background: linear-gradient(135deg, #161A38 0%, #0F111A 65%, #1E1216 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 5px solid var(--color-accent-ui-red, #D5001C);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ==========================================================================
   CARRUSEL GENÉRICO CON FLECHAS ROJAS OFICIALES (#E10717)
   ========================================================================== */
.carousel-shell {
  position: relative;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 34px;
  height: 36px;
  background: var(--oc-red);
  color: var(--oc-white);
  border: 0;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: background var(--transition), transform var(--transition);
}
.carousel-arrow:hover {
  background: var(--oc-red-dark);
  transform: translateY(-50%) scale(1.06);
}
.carousel-arrow.prev { left: -14px; }
.carousel-arrow.next { right: -14px; }

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 6px 2px 10px;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-track-videos {
  grid-auto-columns: calc(50% - 10px);
}

.carousel-track-players {
  grid-auto-columns: calc(20% - 16px);
}

/* ==========================================================================
   ÚLTIMOS VÍDEOS DE ONCE+ (2 columnas + miniatura HD con botón Play rojo)
   ========================================================================== */
.video-card {
  scroll-snap-align: start;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}
.video-card:hover {
  transform: translateY(-3px);
  border-color: var(--oc-white);
}

.video-facade {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.3s ease;
  opacity: 0.86;
}
.video-facade:hover img {
  transform: scale(1.04);
  opacity: 1;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  border-radius: 12px;
  background: rgba(225, 7, 23, 0.92);
  color: var(--oc-white);
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  transition: transform var(--transition), background var(--transition);
}
.video-facade:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--oc-red);
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card-body {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.video-card-body h3 {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--oc-white);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ==========================================================================
   EQUIPO EN HOME (Tabs Rojo/Blanco centrados + Tarjetas oficiales limpias)
   ========================================================================== */
.team-tabs-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 34px;
}

.team-tab-btn {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 34px;
  min-width: 148px;
  border-radius: 3px;
  border: 0;
  background: var(--oc-white);
  color: var(--oc-black);
  cursor: pointer;
  transition: all var(--transition);
}
.team-tab-btn:hover {
  opacity: 0.9;
}
.team-tab-btn.is-active {
  background: var(--oc-red);
  color: var(--oc-white);
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* Tarjeta oficial limpia de jugador (respeta el diseño del arte oficial sin tapar el dorsal) */
.player-poster-card {
  scroll-snap-align: start;
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.05;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: linear-gradient(180deg, #CAD6DA 0%, #E6ECEE 100%);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.player-poster-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.44);
}

.player-poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s ease;
}

.player-poster-card:hover img {
  transform: scale(1.045);
}

.player-poster-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 36px 15px 14px;
  background: linear-gradient(180deg, rgba(12, 11, 11, 0) 0%, rgba(12, 11, 11, 0.72) 45%, rgba(12, 11, 11, 0.94) 100%);
  color: var(--oc-white);
  opacity: 1;
  transform: none;
  transition: background var(--transition);
}

.player-poster-card:hover .player-poster-overlay {
  background: linear-gradient(180deg, rgba(12, 11, 11, 0) 0%, rgba(12, 11, 11, 0.78) 42%, rgba(12, 11, 11, 0.97) 100%);
}

.player-poster-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.18;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.player-poster-pos {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--oc-gold);
  margin-bottom: 2px;
}

/* Fallback limpio con escudo tricolor cuando falta foto del jugador */
.player-fallback {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-bottom: 42px;
  background: radial-gradient(circle at 50% 35%, #232A5C 0%, #101326 68%, #0C0B0B 100%);
}

.player-poster-card.no-photo .player-fallback {
  display: flex;
}

.player-fallback-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--oc-white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 2px 14px;
  border-radius: 999px;
}

/* ==========================================================================
   BANNERS INTERIORES CON FOTO REAL DE LA HINCHADA + PLANTILLAS
   ========================================================================== */
.page-banner {
  background-color: #0D1024;
  background-size: cover;
  background-position: center;
  color: var(--oc-white);
  padding: 76px 0 64px;
  position: relative;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(12, 11, 11, 0.82) 0%, rgba(26, 30, 71, 0.68) 60%, rgba(12, 11, 11, 0.78) 100%);
}

.page-banner .container {
  position: relative;
  z-index: 2;
}

.page-banner .section-kicker {
  color: rgba(255, 255, 255, 0.86);
}

.page-banner h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 600;
  text-transform: uppercase;
}

.page-banner p {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  margin: 10px 0 0;
}

.roster-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 44px;
  align-items: start;
}

.roster-group {
  margin-bottom: 52px;
  scroll-margin-top: 24px;
}

.roster-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--oc-border-light);
  margin-bottom: 22px;
}

.roster-group-title {
  font-size: 1.85rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--oc-text-dark);
  margin: 0;
}

.roster-count {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--oc-text-muted);
}

.roster-carousel-shell {
  padding: 0 4px;
}

.carousel-track-roster {
  grid-auto-columns: calc(33.333% - 14px);
  gap: 20px;
  padding: 6px 2px 14px;
}

.roster-arrow {
  width: 38px;
  height: 40px;
  border-radius: 50%;
  background: var(--oc-red);
  color: var(--oc-white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.roster-arrow.prev { left: -16px; }
.roster-arrow.next { right: -16px; }

.roster-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.roster-card-light {
  border-color: var(--color-accent-border-neutral, #E5E7EB);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.roster-card-light:hover {
  border-color: var(--color-accent-ui, #111111);
  box-shadow: 0 18px 34px rgba(17, 17, 17, 0.18);
}

.roster-sidebar {
  position: sticky;
  top: 24px;
  background: var(--oc-white);
  border-top: 3px solid var(--oc-navy);
  padding: 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.07);
}

.roster-sidebar h3 {
  font-size: 1.12rem;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--oc-text-dark);
}

.roster-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--oc-text-dark);
  padding: 11px 0;
  border-bottom: 1px solid var(--oc-border-light);
}
.roster-sidebar a:hover {
  color: var(--color-accent-ui-red, #D5001C);
  padding-left: 6px;
}

/* Galerías & Lightbox */
.gallery-album { margin-bottom: 52px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.gallery-thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: #ECEFF3;
  border: 0;
  padding: 0;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-thumb:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(6, 8, 13, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px 68px;
}
.lightbox.is-open { display: flex; }
.lightbox-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 92vw;
  max-height: 95vh;
  gap: 10px;
}
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  min-width: 0;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
}
.lightbox-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: min(860px, 92vw);
  text-align: center;
  color: #F1F5F9;
  font-size: 0.94rem;
  line-height: 1.4;
  padding: 4px 10px;
}
.lightbox-counter {
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  color: #00E676;
  background: rgba(255, 255, 255, 0.12);
  padding: 3px 11px;
  border-radius: 999px;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  z-index: 4;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 18, 28, 0.78);
  color: #FFFFFF;
  font-size: 2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
}
.lightbox-nav:hover {
  background: #D5001C;
  border-color: #D5001C;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* Formularios públicos (Ser Patrocinador + Modal Academia) */
.form-sheet {
  max-width: 820px;
  margin: 0 auto;
  background: var(--oc-white);
  color: var(--oc-text-dark);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--oc-border-light);
}
.form-section-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-ui, #111111);
  border-bottom: 1px solid var(--oc-border-light);
  padding-bottom: 8px;
  margin: 26px 0 16px;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.form-field label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--oc-text-dark);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #CBD2DC;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--oc-text-dark);
  background: var(--oc-white);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--oc-navy);
  box-shadow: 0 0 0 3px rgba(40, 46, 109, 0.14);
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
  margin-bottom: 16px;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.94rem;
  cursor: pointer;
}
.alert-error {
  background: #FDECEC;
  border: 1px solid #F5B5B5;
  color: #9A1B1B;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}

/* Modal Academia */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(8, 10, 18, 0.82);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.is-open { display: flex; }
.modal-card {
  background: var(--oc-white);
  color: var(--oc-text-dark);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--oc-border-light);
  background: var(--oc-white);
  cursor: pointer;
  font-size: 1.2rem;
}

/* Artículo detalle (soporte completo para contenido enriquecido Quill 2) */
.article-wrap { max-width: 860px; margin: 0 auto; }
.article-body { font-size: 1.08rem; line-height: 1.78; color: #24292F; }
.article-body p { margin: 0 0 18px; }
.article-body h2 {
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--oc-text-dark);
  margin: 30px 0 14px;
}
.article-body h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 500;
  color: var(--oc-text-dark);
  margin: 24px 0 12px;
}
.article-body ul,
.article-body ol {
  margin: 0 0 18px;
  padding-left: 26px;
}
.article-body li { margin-bottom: 6px; }
.article-body blockquote {
  margin: 22px 0;
  padding: 14px 20px;
  border-left: 4px solid var(--color-accent-ui-red, #D5001C);
  background: #F8F9FB;
  color: #2D3340;
  font-style: italic;
  border-radius: 0 6px 6px 0;
}
.article-body img { border-radius: var(--radius-md); margin: 22px auto; max-width: 100%; height: auto; }
.article-body a { color: var(--color-accent-ui-red, #D5001C); text-decoration: underline; }
.article-body .ql-align-center { text-align: center; }
.article-body .ql-align-right { text-align: right; }
.article-body .ql-align-justify { text-align: justify; }
.article-body iframe.ql-video,
.article-body iframe.oc-embed-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--radius-md);
  margin: 24px auto;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

/* Paginación */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.page-btn {
  font-family: var(--font-display);
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--oc-border-dark);
  color: var(--oc-text-light);
}
.page-btn:hover, .page-btn.is-active {
  background: var(--color-accent-ui-red, #D5001C);
  border-color: var(--color-accent-ui-red, #D5001C);
  color: var(--oc-white);
}

/* Equipos hub cards */
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hub-card {
  background: linear-gradient(155deg, #1A1F4A 0%, #121212 100%);
  border: 1px solid var(--oc-border-dark);
  border-top: 4px solid var(--color-accent-ui-red, #D5001C);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.hub-card h2 { font-size: 1.9rem; color: var(--oc-white); }
.hub-card p { color: var(--oc-text-light-muted); margin: 0; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.roster-arrow-mobile-only { display: none; }

/* ==========================================================================
   FICHA INDIVIDUAL DE JUGADOR (/jugadores/{slug} y /jugadoras/{slug})
   ========================================================================== */
.player-detail-section {
  overflow-x: hidden;
}

.player-detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.player-detail-photo {
  width: 100%;
  border: 2px solid var(--color-accent-border-neutral, #E5E7EB);
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.1);
  aspect-ratio: 3 / 4;
}

.player-detail-photo:hover {
  transform: none;
  border-color: var(--color-accent-ui, #111111);
  box-shadow: 0 14px 32px rgba(17, 17, 17, 0.16);
}

.player-detail-info {
  min-width: 0;
  width: 100%;
  overflow-wrap: break-word;
}

.player-detail-name {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  margin: 12px 0 18px;
  color: var(--oc-navy);
  line-height: 1.15;
}

.player-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.player-meta-box {
  padding: 14px;
  background: var(--oc-surface-light);
  border: 1px solid var(--oc-border-light);
  border-radius: 8px;
  min-width: 0;
}

.player-meta-label {
  font-size: 0.78rem;
  color: var(--oc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.player-meta-value {
  font-size: 1.18rem;
  color: var(--oc-text-dark);
  display: block;
  overflow-wrap: break-word;
}

.player-meta-num {
  font-size: 1.5rem;
}

.player-bio-heading {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--oc-text-dark);
}

.player-bio-body {
  width: 100%;
  overflow-wrap: break-word;
}

.player-detail-back {
  margin-top: 28px;
}

.player-others-section {
  padding: 64px 0 74px;
  overflow-x: hidden;
}

.player-others-heading {
  text-align: center;
  text-transform: uppercase;
  color: var(--oc-white);
  margin: 0 0 34px;
  letter-spacing: 0.03em;
}

.carousel-track-others {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 6px 2px 12px;
}
.carousel-track-others::-webkit-scrollbar { display: none; }

.carousel-track-others > .player-poster-card {
  flex: 0 0 calc((100% - 80px) / 5);
  min-width: 0;
  scroll-snap-align: start;
}

/* ==========================================================================
   SECCIÓN TROFEOS / PALMARÉS OFICIAL EN /home
   ========================================================================== */
.trophies-section {
  position: relative;
  padding: 72px 0 88px;
  background: radial-gradient(circle at 50% 0%, rgba(214, 178, 96, 0.1) 0%, rgba(12, 11, 11, 1) 58%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: hidden;
}

.trophies-header {
  text-align: center;
  margin-bottom: 42px;
}

.trophies-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #D6B260;
  margin-bottom: 8px;
}

.trophies-heading {
  text-align: center;
  text-transform: uppercase;
  color: var(--oc-white);
  margin: 0;
}

.trophies-tricolor {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  width: 112px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 2px;
  overflow: hidden;
}
.trophies-tricolor .seg-green { background: var(--oc-green); }
.trophies-tricolor .seg-white { background: var(--oc-white); }
.trophies-tricolor .seg-red   { background: var(--oc-red); }

.trophies-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.trophy-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 18px 24px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.trophy-card:hover {
  transform: translateY(-5px);
  border-color: rgba(214, 178, 96, 0.55);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
}

.trophy-card.is-libertadores {
  background: linear-gradient(180deg, rgba(214, 178, 96, 0.16) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-color: rgba(214, 178, 96, 0.45);
  box-shadow: 0 12px 34px rgba(214, 178, 96, 0.1);
}

.trophy-card.is-libertadores:hover {
  border-color: #E7C879;
  box-shadow: 0 18px 42px rgba(214, 178, 96, 0.22);
}

.trophy-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #0C0B0B;
  background: linear-gradient(135deg, #F4DC97 0%, #D6B260 100%);
  padding: 3px 9px;
  border-radius: 999px;
  line-height: 1.25;
}

.trophy-media {
  width: 96px;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 18px;
}

.trophy-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.trophy-svg {
  width: 78px;
  height: 94px;
  filter: drop-shadow(0 6px 14px rgba(214, 178, 96, 0.25));
}

.trophy-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--oc-white);
  margin: 0 0 5px;
}

.trophy-subtitle {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 14px;
  line-height: 1.35;
}

.trophy-years {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #E7C879;
  padding: 5px 14px;
  border-radius: 4px;
  background: rgba(214, 178, 96, 0.12);
  border: 1px solid rgba(214, 178, 96, 0.28);
}

/* Banner horizontal de patrocinador destacado debajo de Palmarés (/home) */
.palmares-banners-wrap {
  max-width: 1080px;
  margin: 36px auto 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.palmares-banner-slot {
  width: auto;
  max-width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0 auto;
  text-align: center;
}

.palmares-banner-link {
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  border-radius: 10px;
  overflow: hidden;
}

.palmares-banner-slot img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 280px;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
  transition: transform 0.35s ease;
}

.palmares-banner-link:hover img {
  transform: scale(1.015);
}

/* Bloque publicitario asimétrico debajo de Palmarés (2fr izquierda / 1fr derecha apilada, 0% recorte) */
.palmares-asymmetric-grid {
  width: 100%;
  max-width: 1020px;
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.palmares-asymmetric-grid.is-single-col {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
}

.palmares-asym-left,
.palmares-asym-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.palmares-asym-left {
  justify-content: center;
}

.palmares-asym-right {
  justify-content: space-between;
}

.palmares-asym-card {
  flex: 0 0 auto;
  width: 100%;
  border-radius: 10px;
  background: transparent;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.palmares-asym-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.48);
}

.palmares-asym-link {
  display: block;
  width: 100%;
  line-height: 0;
  border-radius: 10px;
}

.palmares-asym-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

/* ==========================================================================
   SECCIÓN PÚBLICA FUERZAS BÁSICAS (/fuerzas-basicas)
   ========================================================================== */
.fb-intro-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.fb-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.fb-category-card {
  background: var(--oc-white);
  border: 1px solid var(--oc-border-light);
  border-top: 4px solid #111111;
  border-radius: var(--radius-md);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--transition), box-shadow var(--transition), border-top-color var(--transition);
}

.fb-category-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--color-accent-ui-red, #D5001C);
  box-shadow: var(--shadow-md);
}

.fb-category-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fb-category-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #111111;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.fb-category-age {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-accent-ui-red, #D5001C);
}

.fb-category-card h3 {
  font-size: 1.32rem;
  color: var(--oc-navy);
  margin: 4px 0 0;
}

.fb-category-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--oc-text-muted);
}

/* Galería fotográfica por categoría en /fuerzas-basicas (sin recortes bruscos) */
.fb-cat-photos {
  margin-top: auto;
  padding-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fb-cat-photos.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.fb-cat-photo-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 1px solid #E4E7EC;
  border-radius: 8px;
  background: #0F131A;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.fb-cat-photo-btn:hover {
  border-color: var(--color-accent-ui-red, #D5001C);
  transform: translateY(-2px);
}

.fb-cat-photo-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.fb-cat-zoom-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(12, 11, 11, 0.72);
  color: #FFFFFF;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Galería fotográfica opcional debajo del cuerpo de la noticia (/noticias/{slug}) */
.news-gallery-block {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid #E4E7EC;
}

.news-gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.news-gallery-head h2 {
  font-size: 1.45rem;
  text-transform: uppercase;
  color: var(--oc-navy);
  margin: 0;
}

.news-gallery-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: #475467;
  background: #F2F4F7;
  padding: 4px 11px;
  border-radius: 999px;
}

.news-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.news-gallery-card {
  margin: 0;
  background: #FFFFFF;
  border: 1px solid #E4E7EC;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-gallery-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  background: #0F131A;
  overflow: hidden;
  cursor: pointer;
}

.news-gallery-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-gallery-trigger:hover img {
  transform: scale(1.04);
}

.news-gallery-caption {
  padding: 9px 11px;
  font-size: 0.84rem;
  line-height: 1.4;
  color: #475467;
  background: #F9FAFB;
  border-top: 1px solid #EAECF0;
}

/* Álbumes / galerías insertadas dentro del cuerpo de la noticia (.post-inline-gallery) */
.article-body .post-inline-gallery,
.post-inline-gallery {
  display: grid;
  width: 100%;
  margin: 24px 0;
  gap: 14px;
  align-items: start;
}

.post-inline-gallery--pequena {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.post-inline-gallery--mediana {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.post-inline-gallery--mediana:has(> .post-inline-gallery-item:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-inline-gallery--grande {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.post-inline-gallery--grande:has(> .post-inline-gallery-item:only-child) {
  grid-template-columns: minmax(0, 1fr);
}

.article-body .post-inline-gallery-item,
.post-inline-gallery-item {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #E4E7EC;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
}

.article-body .post-inline-gallery-item img,
.post-inline-gallery-item img {
  width: 100%;
  margin: 0;
  border-radius: 0;
  display: block;
  cursor: zoom-in;
  background: #0F131A;
  transition: transform 0.28s ease;
}

.post-inline-gallery--pequena .post-inline-gallery-item img,
.post-inline-gallery--mediana .post-inline-gallery-item img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.post-inline-gallery--grande .post-inline-gallery-item img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.post-inline-gallery--grande:has(> .post-inline-gallery-item:only-child) .post-inline-gallery-item img {
  aspect-ratio: auto;
  height: auto;
  max-height: 600px;
  object-fit: contain;
}

.post-inline-gallery-item img:hover {
  transform: scale(1.03);
}

.post-inline-gallery-item figcaption {
  padding: 8px 10px;
  font-size: 0.83rem;
  line-height: 1.4;
  color: #475467;
  background: #F9FAFB;
  border-top: 1px solid #EAECF0;
}

.fb-cta-band {
  margin-top: 30px;
  padding: 26px 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0E1014 0%, #1B2138 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.fb-cta-band h3 {
  margin: 0 0 6px;
  font-size: 1.38rem;
  color: #FFFFFF;
}

.fb-cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.96rem;
}

/* ==========================================================================
   DETALLE DE NOTICIA: ENCABEZADO COMPACTO + 2 COLUMNAS CON PUBLICIDAD LATERAL
   ========================================================================== */
.news-detail-banner {
  padding: 34px 0 30px;
}

.news-detail-banner h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  line-height: 1.14;
}

.news-detail-banner p {
  margin-top: 8px;
  font-size: 0.92rem;
}

.news-detail-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.news-detail-section {
  padding: 40px 0 60px;
  overflow-x: clip;
}

.news-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
}

.news-detail-main {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.news-detail-figure {
  margin: 0 0 24px;
  padding: 0;
}

.news-detail-figure img {
  display: block;
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.news-detail-footer-nav {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--oc-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.news-detail-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.news-ad-slot {
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--oc-border-light);
  background: #F8FAFC;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.08);
}

.news-ad-link {
  display: block;
  width: 100%;
  line-height: 0;
}

.news-ad-slot img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-ad-link:hover img {
  transform: scale(1.02);
}

/* ==========================================================================
   PÁGINAS INSTITUCIONALES DE CONTACTO (/contacto) Y PQRS (/pqrs)
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.contact-card,
.contact-info-card {
  background: var(--oc-white);
  border: 1px solid var(--oc-border-light);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.contact-info-card {
  background: #0E1012;
  color: var(--oc-white);
  border-color: rgba(255, 255, 255, 0.08);
}

.contact-info-card h2 {
  font-size: 1.45rem;
  color: var(--oc-white);
  margin: 0 0 10px;
}

.contact-info-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
  line-height: 1.6;
  margin: 0 0 22px;
}

.contact-info-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-info-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--oc-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 2px;
}

.contact-info-value {
  color: var(--oc-white);
  font-size: 0.96rem;
  line-height: 1.45;
  word-break: break-word;
}

.contact-info-value a {
  color: var(--oc-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-pqrs-box {
  margin-top: 22px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-pqrs-box h3 {
  font-size: 1.05rem;
  color: var(--oc-white);
  margin: 0 0 6px;
}

.contact-pqrs-box p {
  font-size: 0.88rem;
  margin: 0 0 14px;
}

.policy-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: #F8FAFC;
  border: 1px solid var(--oc-border-light);
  border-radius: var(--radius-sm);
  margin: 18px 0 22px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #344054;
  cursor: pointer;
}

.policy-consent input[type="checkbox"] {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: #111111;
}

.policy-consent a {
  color: var(--color-accent-ui-red, #D5001C);
  text-decoration: underline;
  font-weight: 600;
}

.radicado-banner {
  background: #ECFDF3;
  border: 1px solid #A6F4C5;
  border-left: 5px solid #027A48;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 24px;
  color: #054F31;
}

.radicado-banner-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: #054F31;
}

.radicado-code {
  display: inline-block;
  margin: 8px 0 10px;
  padding: 7px 16px;
  background: #054F31;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  border-radius: 6px;
}

.pqrs-types-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.84);
}

.pqrs-types-list li strong {
  color: var(--oc-white);
}

/* Responsive */
@media (max-width: 1080px) {
  .news-poster-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel-track-players { grid-auto-columns: calc(33.333% - 14px); }
  .trophies-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .carousel-track-others > .player-poster-card {
    flex: 0 0 calc((100% - 40px) / 3);
  }
}

@media (max-width: 980px) {
  .hero-slider { height: 480px; }
  .hero-arrow { display: none; }
  .news-grid, .videos-grid, .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel-track-videos { grid-auto-columns: 88%; }
  .roster-layout { grid-template-columns: 1fr; }
  .roster-sidebar { position: static; order: -1; }
  .roster-cards { grid-template-columns: repeat(2, 1fr); }
  .carousel-track-roster { grid-auto-columns: calc(50% - 10px); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel-arrow.prev, .roster-arrow.prev { left: 4px; }
  .carousel-arrow.next, .roster-arrow.next { right: 4px; }
  .news-detail-banner { padding: 26px 0 24px; }
  .news-detail-section { padding: 30px 0 48px; }
  .news-detail-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .news-detail-sidebar {
    position: static;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .fb-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .matches-showcase-grid,
  .matches-showcase-grid.matches-grid--1,
  .matches-showcase-grid.matches-grid--2,
  .matches-showcase-grid.matches-grid--3 {
    grid-template-columns: 1fr;
    max-width: 480px;
    gap: 18px;
  }
  .match-pitch-art {
    height: 175px;
  }
  .match-card-btn {
    max-width: 100%;
  }
  .palmares-asymmetric-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .palmares-asym-left,
  .palmares-asym-right {
    justify-content: flex-start;
    gap: 14px;
  }
  .palmares-asym-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .player-detail-banner {
    padding: 44px 0 38px;
    scroll-margin-top: 24px;
  }
  .player-detail-banner h1 {
    font-size: clamp(1.85rem, 7.2vw, 2.45rem);
    line-height: 1.15;
    word-break: break-word;
  }
  .player-detail-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .player-detail-photo {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }
  .player-detail-info {
    width: 100%;
    min-width: 0;
  }
  .player-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .player-detail-back .btn {
    width: 100%;
    justify-content: center;
  }
  .carousel-track-others > .player-poster-card {
    flex: 0 0 calc((100% - 20px) / 2);
  }
}

@media (max-width: 640px) {
  .hero-slider { height: 440px; }
  .hero-social-pills { display: none; }
  .news-poster-grid { grid-template-columns: 1fr; }
  .news-poster-card { aspect-ratio: 4 / 4.4; }
  .match-info-bar { flex-direction: column; align-items: flex-start; }
  .match-info-bar .btn-charcoal { width: 100%; text-align: center; }
  .news-grid, .videos-grid, .hub-grid, .form-grid-2, .checkbox-grid, .fb-categories-grid { grid-template-columns: 1fr; }
  .fb-cta-band { padding: 22px 18px; }
  .fb-cta-band .btn { width: 100%; justify-content: center; }
  .form-sheet, .contact-card, .contact-info-card { padding: 24px 18px; }
  .news-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .post-inline-gallery--pequena,
  .post-inline-gallery--mediana {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .post-inline-gallery--grande {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .lightbox {
    padding: 56px 8px 18px;
  }
  .lightbox-stage {
    max-width: 96vw;
    max-height: calc(100dvh - 76px);
  }
  .lightbox img {
    max-width: 96vw;
    max-height: 76vh;
  }
  .lightbox-meta {
    max-width: 96vw;
    font-size: 0.88rem;
  }
  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
  }
  .lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 1.65rem;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .trophies-section { padding: 54px 0 64px; }
  .trophies-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .trophy-card { padding: 22px 12px 18px; }
  .trophy-card.is-libertadores { grid-column: 1 / -1; padding: 26px 18px 22px; }
  .trophy-media { width: 78px; height: 88px; margin: 4px 0 12px; }
  .trophy-title { font-size: 1.04rem; }
}

@media (max-width: 600px) {
  .roster-arrow-mobile-only { display: inline-flex; }
  .roster-carousel-shell { padding: 0; }
  .carousel-track-players,
  .carousel-track-roster,
  .carousel-track-others,
  .carousel-track-videos {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    padding: 6px 0 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .carousel-track-players > .player-poster-card,
  .carousel-track-roster > .player-poster-card,
  .carousel-track-others > .player-poster-card,
  .carousel-track-videos > .video-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
  .carousel-arrow.prev, .roster-arrow.prev { left: 8px; }
  .carousel-arrow.next, .roster-arrow.next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide::before,
  .hero-slide .badge-row,
  .hero-slide .hero-slide-title,
  .hero-slide .btn-pill-frosted {
    transition: none !important;
    transform: none !important;
  }
}
