/*
Theme Name: Argenfutbol Editorial
Theme URI: https://argenfutbol.com
Author: Argenfutbol Media & Tech
Author URI: https://argenfutbol.com
Description: Tema periodístico de alta competición para Argenfútbol. Diseño exclusivo The Athletic (editorial cream, serif Newsreader, oro atlético y azul noche), con navegación jerárquica por Torneo y por Provincia, fotografía de acción 1080p, tablas de posiciones interactivas, agenda deportiva y cobertura destacada de Río Grande & Tierra del Fuego.
Version: 1.7.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: argenfutbol-editorial
*/

/* Ocultar Barra de Administración de WordPress en Frontend */
#wpadminbar {
  display: none !important;
}
html {
  margin-top: 0px !important;
}
* html body {
  margin-top: 0px !important;
}
@media screen and (max-width: 782px) {
  html {
    margin-top: 0px !important;
  }
}

:root {
  --af-bg: #FAF9F6;
  --af-card-bg: #FFFFFF;
  --af-border: #E8E7E3;
  --af-text-primary: #0A192F;
  --af-text-secondary: #475569;
  --af-text-muted: #94A3B8;
  --af-accent-primary: #0A192F;
  --af-accent-gold: #C5A880;
  --af-accent-sky: #0284C7;
  --af-font-serif: 'Newsreader', Georgia, serif;
  --af-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --af-font-mono: 'JetBrains Mono', monospace;
  --af-font-display: 'Newsreader', Georgia, serif;
  --af-radius-sm: 8px;
  --af-radius-md: 14px;
  --af-radius-lg: 20px;
}

/* Reset y Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--af-bg);
  color: var(--af-text-primary);
  font-family: var(--af-font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Contenedor Central */
.af-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Barra Dorada Institucional */
.af-top-ribbon {
  height: 4px;
  background: linear-gradient(90deg, #C5A880, #FDE68A, #C5A880);
}

/* Header */
.af-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--af-border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.af-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.af-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.af-brand-logo {
  width: 40px;
  height: 40px;
  background: #0A192F;
  border-radius: var(--af-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FBBF24;
  font-size: 1.25rem;
  box-shadow: 0 2px 6px rgba(10,25,47,0.2);
}

.af-brand-title {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #0A192F;
  line-height: 1.1;
}

.af-brand-title span {
  color: #0284C7;
}

.af-brand-tagline {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--af-text-muted);
}

.af-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.af-btn-clubs-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0A192F;
  color: #FDE68A;
  border: 1px solid rgba(253, 230, 138, 0.3);
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(10, 25, 47, 0.15);
}

.af-btn-clubs-trigger:hover {
  background: #1E293B;
  color: #FFFFFF;
  border-color: #FDE68A;
  transform: translateY(-1px);
}

/* Badge de Estado en Vivo (Header) */
.af-header-live-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #FAF9F6;
  border: 1px solid var(--af-border);
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0A192F;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Nivel 1: Barra Principal de Torneos */
.af-main-navbar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--af-border);
}

.af-navbar-nav {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.af-navbar-nav::-webkit-scrollbar {
  display: none;
}

.af-nav-link {
  display: block;
  padding: 0.85rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.af-nav-link:hover, .af-nav-link.active {
  color: #0A192F;
  border-bottom-color: var(--af-accent-gold);
  background: #FAF9F6;
}

.af-nav-badge-pill {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(10, 25, 47, 0.08);
  color: #0A192F;
  border: 1px solid rgba(10, 25, 47, 0.2);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
}

.af-nav-link.active .af-nav-badge-pill {
  background: #0A192F;
  color: #FDE68A;
  border-color: #0A192F;
}

.af-nav-link-futsal {
  color: #B45309 !important;
  font-weight: 800 !important;
  background: #FFFBEB;
  border-radius: 6px;
  padding: 0.45rem 0.85rem !important;
  border: 1px solid #FCD34D !important;
  margin-left: 0.5rem;
}

.af-nav-link-futsal:hover,
.af-nav-link-futsal.active {
  background: #F59E0B !important;
  color: #0A192F !important;
  border-color: #F59E0B !important;
}

/* Nivel 2: Barra Sub-Navegación Federal de Regiones / Provincias */
.af-sub-navbar {
  background: #FAF9F6;
  border-bottom: 1px solid var(--af-border);
  padding: 0.5rem 0;
}

.af-region-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.af-region-strip::-webkit-scrollbar {
  display: none;
}

.af-region-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--af-accent-sky);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.af-region-pills {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.af-region-pill {
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #FFFFFF;
  border: 1px solid var(--af-border);
  color: var(--af-text-secondary);
  transition: all 0.2s ease;
}

.af-region-pill:hover, .af-region-pill.active {
  background: #0A192F;
  color: #FDE68A;
  border-color: #0A192F;
}

/* Mega-Menú Modal: Directorio de Clubes Federales */
.af-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 25, 47, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.af-modal-container {
  background: #FFFFFF;
  width: 100%;
  max-width: 980px;
  max-height: 88vh;
  border-radius: var(--af-radius-lg);
  border: 1px solid var(--af-border);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: af-modal-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes af-modal-pop {
  0% { opacity: 0; transform: scale(0.96) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.af-modal-header {
  padding: 1.25rem 1.75rem;
  background: #0A192F;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.af-modal-title {
  font-family: var(--af-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.af-modal-close {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.5rem;
  transition: color 0.2s;
}

.af-modal-close:hover {
  color: #FFFFFF;
}

.af-modal-controls {
  padding: 1rem 1.75rem;
  background: #FAF9F6;
  border-bottom: 1px solid var(--af-border);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .af-modal-controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.af-modal-tabs {
  display: flex;
  gap: 0.5rem;
}

.af-tab-btn {
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--af-border);
  background: #FFFFFF;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.af-tab-btn.active {
  background: #0A192F;
  color: #FDE68A;
  border-color: #0A192F;
}

.af-modal-search-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.af-modal-search-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 0.85rem;
}

.af-modal-search-wrap input {
  width: 100%;
  padding: 0.45rem 0.85rem 0.45rem 2.25rem;
  border-radius: 9999px;
  border: 1px solid var(--af-border);
  font-size: 0.8rem;
  background: #FFFFFF;
  outline: none;
  transition: border-color 0.2s;
}

.af-modal-search-wrap input:focus {
  border-color: #0A192F;
}

.af-modal-body {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  max-height: 60vh;
}

.af-tab-content {
  display: none;
  flex-direction: column;
  gap: 1.75rem;
}

.af-tab-content.active {
  display: flex;
}

.af-group-block {
  border-bottom: 1px solid var(--af-border);
  padding-bottom: 1.25rem;
}

.af-group-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.af-group-title {
  font-family: var(--af-font-sans);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0A192F;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.af-group-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--af-text-muted);
  background: #FAF9F6;
  border: 1px solid var(--af-border);
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
}

.af-clubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 0.6rem;
}

.af-club-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.65rem;
  background: #FAF9F6;
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-sm);
  color: #1E293B;
  transition: all 0.2s ease;
  text-decoration: none;
}

.af-club-chip:hover {
  background: #FFFFFF;
  border-color: #0A192F;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(10, 25, 47, 0.06);
}

.af-club-chip img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.af-club-chip-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0A192F;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.af-club-chip-prov {
  font-size: 0.62rem;
  color: var(--af-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Grilla de Portada Asimétrica 1+3 */
.af-hero-section {
  padding-bottom: 2rem;
}

.af-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 992px) {
  .af-hero-grid {
    grid-template-columns: 1.8fr 1fr;
  }
}

/* Tarjeta Hero Principal (The Athletic Style) */
.af-hero-main {
  background: var(--af-card-bg);
  border-radius: var(--af-radius-lg);
  border: 1px solid var(--af-border);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(10,25,47,0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.af-hero-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,25,47,0.08);
}

.af-hero-image-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0A192F;
  overflow: hidden;
}

.af-hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.af-hero-overlay-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(10,25,47,0.92);
  backdrop-filter: blur(4px);
  color: #FDE68A;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(253,230,138,0.3);
}

.af-hero-shield-overlay {
  display: none !important;
}

.af-satellite-shield-badge {
  display: none !important;
}

.af-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--af-accent-sky);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.af-hero-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.af-hero-meta {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--af-accent-sky);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.af-hero-title {
  font-family: var(--af-font-display);
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--af-text-primary);
  margin-bottom: 0.85rem;
}

.af-hero-excerpt {
  color: var(--af-text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Columna de Satélites */
.af-satellites {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.af-satellite-card {
  background: var(--af-card-bg);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-md);
  padding: 1.2rem;
  display: flex;
  gap: 1.15rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.af-satellite-card:hover {
  transform: translateY(-2px);
  border-color: #0A192F;
}

.af-satellite-thumb {
  width: 135px;
  height: 90px;
  flex-shrink: 0;
  border-radius: var(--af-radius-sm);
  background: #0A192F;
  border: 1px solid var(--af-border);
  position: relative;
  overflow: hidden;
  display: block;
  padding: 0;
}

.af-satellite-thumb img.af-sat-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.af-satellite-card:hover .af-satellite-thumb img.af-sat-photo {
  transform: scale(1.05);
}

.af-satellite-shield-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border-radius: 6px;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.af-satellite-shield-badge img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.af-satellite-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.af-satellite-cat {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--af-accent-sky);
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.af-satellite-title {
  font-family: var(--af-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--af-text-primary);
}

/* Sección de Cables Federales en Vivo */
.af-wire-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--af-border);
}

.af-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.af-section-title {
  font-family: var(--af-font-display);
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.af-live-pulse {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: af-pulse 1.8s infinite;
}

@keyframes af-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.af-cables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.15rem;
}

.af-cable-card {
  background: var(--af-card-bg);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.af-cable-card:hover {
  border-color: #0A192F;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.af-cable-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--af-text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.af-cable-title {
  font-family: var(--af-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--af-text-primary);
  margin-bottom: 0.75rem;
}

.af-cable-origin {
  font-size: 0.7rem;
  color: var(--af-accent-sky);
  font-weight: 600;
}

/* Vista de Artículo Individual (Single) */
.af-single-wrap {
  padding: 3rem 0;
  max-width: 860px;
  margin: 0 auto;
}

.af-single-header {
  margin-bottom: 2.25rem;
  text-align: center;
}

.af-single-cat {
  display: inline-block;
  background: #0A192F;
  color: #FDE68A;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.af-single-title {
  font-family: var(--af-font-display);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.af-single-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--af-text-secondary);
  font-weight: 600;
}

.af-single-featured-image {
  border-radius: var(--af-radius-lg);
  overflow: hidden;
  margin-bottom: 2.25rem;
  box-shadow: 0 4px 18px rgba(10,25,47,0.06);
}

.af-single-content {
  font-size: 1.2rem;
  line-height: 1.85;
  color: #1E293B;
}

.af-single-content p {
  margin-bottom: 1.6rem;
}

/* Footer Institucional */
.af-footer {
  background: #0A192F;
  color: #94A3B8;
  padding: 3.5rem 0 2rem 0;
  margin-top: 4rem;
  border-top: 4px solid var(--af-accent-gold);
}

.af-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.af-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .af-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* SECCIÓN 3: GRILLA EDITORIAL FEDERAL (CRÓNICAS Y ANÁLISIS) */
.af-news-section {
  margin-top: 3.5rem;
  margin-bottom: 3rem;
}

.af-news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .af-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .af-news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.af-news-card {
  background: var(--af-card-bg);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(10,25,47,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.af-news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,25,47,0.08);
}

.af-news-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0A192F;
}

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

.af-news-card:hover .af-news-thumb img {
  transform: scale(1.03);
}

.af-news-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(10,25,47,0.92);
  backdrop-filter: blur(4px);
  color: #FDE68A;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid rgba(253,230,138,0.3);
}

.af-news-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.af-news-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.af-news-shield-mini {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.af-news-title {
  font-family: var(--af-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.af-news-title a {
  color: var(--af-text-primary);
  text-decoration: none;
}

.af-news-title a:hover {
  color: var(--af-accent-gold);
}

.af-news-excerpt {
  font-size: 0.85rem;
  color: var(--af-text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

.af-news-footer {
  font-size: 0.72rem;
  color: var(--af-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid var(--af-border);
  padding-top: 0.65rem;
}

/* ==========================================================================
   SECCIÓN: AGENDA DEPORTIVA (CARTELERA DE LA FECHA + MÁXIMOS GOLEADORES)
   ========================================================================== */
.af-sports-agenda-section {
  margin: 2.5rem 0;
}

.af-agenda-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}

.af-widget-box {
  background: #FFFFFF;
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-md);
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(10, 25, 47, 0.04);
}

.af-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--af-border);
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
}

.af-widget-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--af-font-sans);
  font-size: 1rem;
  font-weight: 800;
  color: #0A192F;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.af-widget-tag {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background: #FAF9F6;
  border: 1px solid var(--af-border);
  color: var(--af-text-secondary);
}

/* Tarjetas de Fixture / Cartelera */
.af-fixtures-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.af-fixture-card {
  background: #FAF9F6;
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-sm);
  padding: 0.85rem 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.af-fixture-card:hover {
  transform: translateY(-1px);
  border-color: var(--af-accent-gold);
}

.af-fixture-tournament {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--af-accent-sky);
  margin-bottom: 0.6rem;
}

.af-fixture-badge-live {
  background: #0A192F;
  color: #FDE68A;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 800;
}

.af-fixture-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
}

.af-match-team {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
}

.af-match-team.home {
  justify-content: flex-end;
  text-align: right;
}

.af-match-team.away {
  justify-content: flex-start;
  text-align: left;
}

.af-team-shield {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.af-team-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0A192F;
}

.af-match-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 65px;
  padding: 0.2rem 0.5rem;
  background: #FFFFFF;
  border: 1px solid var(--af-border);
  border-radius: 6px;
}

.af-vs-text {
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--af-accent-gold);
  letter-spacing: 0.05em;
}

.af-vs-time {
  font-size: 0.72rem;
  font-weight: 800;
  color: #0A192F;
}

.af-fixture-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: var(--af-text-muted);
  border-top: 1px solid var(--af-border);
  margin-top: 0.6rem;
  padding-top: 0.45rem;
}

/* Tarjetas de Goleadores */
.af-scorers-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.af-scorer-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  background: #FAF9F6;
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-sm);
  transition: all 0.2s ease;
}

.af-scorer-item:hover {
  background: #FFFFFF;
  border-color: var(--af-accent-gold);
}

.af-scorer-rank {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0A192F;
  color: #FDE68A;
  font-size: 0.75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.af-scorer-club-wrap {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.af-scorer-shield {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.af-scorer-info {
  flex: 1;
}

.af-scorer-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0A192F;
  line-height: 1.2;
}

.af-scorer-meta {
  font-size: 0.7rem;
  color: var(--af-text-muted);
  font-weight: 600;
}

.af-scorer-goals {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.goals-total {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0A192F;
  line-height: 1;
}

.goals-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--af-accent-gold);
  text-transform: uppercase;
}

/* ==========================================================================
   SECCIÓN: TABLAS DE POSICIONES INTERACTIVAS (THE ATHLETIC STYLE)
   ========================================================================== */
.af-standings-section {
  margin: 3rem 0;
}

.af-stats-tabs-bar {
  margin-bottom: 1.25rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.af-stats-tabs-bar::-webkit-scrollbar {
  display: none;
}

.af-stats-tabs {
  display: inline-flex;
  gap: 0.5rem;
  background: #FFFFFF;
  border: 1px solid var(--af-border);
  padding: 0.35rem;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.af-stat-tab-btn {
  background: transparent;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--af-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.af-stat-tab-btn:hover {
  color: #0A192F;
  background: #FAF9F6;
}

.af-stat-tab-btn.active {
  background: #0A192F;
  color: #FDE68A;
  box-shadow: 0 2px 6px rgba(10,25,47,0.15);
}

.af-stat-tab-btn.is-rg.active {
  background: #0284C7;
  color: #FFFFFF;
}

.af-stats-pane {
  display: none;
  animation: afFadeIn 0.3s ease;
}

.af-stats-pane.active {
  display: block;
}

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

.af-standings-card {
  background: #FFFFFF;
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-md);
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(10, 25, 47, 0.04);
}

.af-standings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--af-border);
  padding-bottom: 0.85rem;
}

.af-standings-title {
  font-family: var(--af-font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #0A192F;
}

.af-standings-desc {
  font-size: 0.75rem;
  color: var(--af-text-secondary);
  margin-top: 0.2rem;
}

.af-standings-badge {
  background: #FAF9F6;
  border: 1px solid var(--af-border);
  color: #0A192F;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
}

.af-table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.af-standings-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.82rem;
}

.af-standings-table th {
  background: #FAF9F6;
  color: var(--af-text-secondary);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.65rem 0.75rem;
  border-bottom: 2px solid var(--af-border);
}

.af-standings-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}

.af-standings-table tr:hover {
  background: #F8FAFC;
}

.af-standings-table .th-num,
.af-standings-table .td-num {
  text-align: center;
  font-family: var(--af-font-mono);
}

.af-standings-table .th-pts,
.af-standings-table .td-pts {
  text-align: center;
  font-family: var(--af-font-mono);
  font-size: 0.95rem;
  color: #0A192F;
}

.af-standings-table .td-pos {
  width: 32px;
  text-align: center;
  font-weight: 800;
  color: var(--af-text-muted);
}

/* Líneas de zona clasificatoria */
.af-standings-table tr.zone-final {
  border-left: 4px solid #10B981;
}

.af-standings-table tr.zone-reducido {
  border-left: 4px solid #0284C7;
}

.af-standings-table tr.zone-descenso {
  border-left: 4px solid #EF4444;
}

.club-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.club-mini-shield {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.club-name {
  font-weight: 700;
  color: #0A192F;
}

.text-green { color: #059669; font-weight: 700; }
.text-red { color: #DC2626; font-weight: 700; }

.af-standings-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--af-border);
  font-size: 0.72rem;
  color: var(--af-text-secondary);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.zone-final { background: #10B981; }
.legend-dot.zone-reducido { background: #0284C7; }
.legend-dot.zone-descenso { background: #EF4444; }

/* ==========================================================================
   SECCIÓN: EL FARO AUSTRAL (RÍO GRANDE & TIERRA DEL FUEGO)
   ========================================================================== */
.af-riogrande-spotlight {
  background: #FFFFFF;
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-lg);
  overflow: hidden;
  margin: 3.5rem 0;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.06);
}

.af-rg-ribbon {
  background: #0A192F;
  border-bottom: 3px solid #0284C7;
  padding: 1.5rem 0;
}

.af-rg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.af-rg-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38BDF8;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.4rem;
}

.af-rg-title {
  font-family: var(--af-font-display);
  font-size: 1.7rem;
  color: #FFFFFF;
  font-weight: 800;
  line-height: 1.2;
}

.af-rg-subtitle {
  font-size: 0.85rem;
  color: #94A3B8;
  max-width: 600px;
  margin-top: 0.25rem;
}

.af-rg-clubs-strip {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.af-rg-club-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #E2E8F0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.af-rg-club-tag:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38BDF8;
  color: #FFFFFF;
}

.af-rg-club-tag img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.af-rg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: start;
}

.af-rg-news-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.af-rg-card {
  display: flex;
  gap: 1rem;
  background: #FAF9F6;
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-sm);
  overflow: hidden;
  padding: 0.85rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.af-rg-card:hover {
  transform: translateY(-2px);
  border-color: #0284C7;
}

.af-rg-thumb {
  width: 130px;
  height: 100px;
  position: relative;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.af-rg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.af-rg-news-tag {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: #0284C7;
  color: #FFFFFF;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
}

.af-rg-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.af-rg-news-title {
  font-family: var(--af-font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.af-rg-news-title a {
  color: #0A192F;
}

.af-rg-news-title a:hover {
  color: #0284C7;
}

.af-rg-excerpt {
  font-size: 0.78rem;
  color: var(--af-text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   VISTA DE CATEGORÍA (category.php)
   ========================================================================== */
.af-category-banner {
  background: #0A192F;
  border: 1px solid rgba(253, 230, 138, 0.25);
  border-radius: var(--af-radius-md);
  padding: 2.25rem 1.5rem;
  margin-top: 1.5rem;
  box-shadow: 0 4px 16px rgba(10, 25, 47, 0.1);
}

.af-category-banner-inner {
  max-width: 800px;
}

.af-category-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(253, 230, 138, 0.15);
  border: 1px solid rgba(253, 230, 138, 0.3);
  color: #FDE68A;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.8rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.af-category-main-title {
  font-family: var(--af-font-display);
  font-size: 2.3rem;
  color: #FFFFFF;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.af-category-lead {
  font-size: 1rem;
  color: #CBD5E1;
  line-height: 1.6;
}

.af-cat-data-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.75rem;
  align-items: start;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 900px) {
  .af-agenda-grid,
  .af-rg-grid,
  .af-cat-data-grid {
    grid-template-columns: 1fr;
  }

  .af-category-main-title {
    font-size: 1.8rem;
  }

  .af-rg-card {
    flex-direction: column;
  }

  .af-rg-thumb {
    width: 100%;
    height: 140px;
  }
}

@media (max-width: 640px) {
  .af-standings-table .th-extra,
  .af-standings-table .td-extra {
    display: none;
  }

  .af-match-team .af-team-name {
    font-size: 0.78rem;
  }

  .af-stats-tabs {
    border-radius: var(--af-radius-sm);
  }

  .af-stat-tab-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
  }
}

.af-match-sheet {
  background: #FAF9F6;
  border: 1px solid var(--af-border);
  border-left: 4px solid var(--af-accent-gold);
  border-radius: var(--af-radius-sm);
  padding: 1.25rem;
  margin: 2rem 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #334155;
}

.af-match-sheet strong {
  color: #0A192F;
}

/* ==========================================================================
   CENTRO DE COMPETENCIAS & ESTADÍSTICAS FEDERALES (CON SELECTOR DE LIGAS)
   ========================================================================== */
.af-sports-center-section {
  margin: 2.5rem 0 3.5rem;
}

.af-league-tabs-bar {
  margin-bottom: 1.5rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.af-league-tabs-bar::-webkit-scrollbar {
  display: none;
}

.af-league-tabs {
  display: inline-flex;
  gap: 0.5rem;
  background: #FFFFFF;
  border: 1px solid var(--af-border);
  padding: 0.35rem;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(10, 25, 47, 0.04);
}

.af-league-tab-btn {
  background: transparent;
  border: none;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  font-family: var(--af-font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--af-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.af-league-tab-btn:hover {
  color: #0A192F;
  background: #FAF9F6;
}

.af-league-tab-btn.active {
  background: #0A192F;
  color: #FDE68A;
  box-shadow: 0 2px 8px rgba(10, 25, 47, 0.2);
}

.af-league-tab-btn.is-rg.active {
  background: #0284C7;
  color: #FFFFFF;
}

.af-league-pane {
  display: none;
  animation: afFadeIn 0.3s ease;
}

.af-league-pane.active {
  display: block;
}

.af-sports-center-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.75rem;
  align-items: start;
}

.af-center-card {
  background: #FFFFFF;
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-md);
  box-shadow: 0 2px 8px rgba(10, 25, 47, 0.04);
  overflow: hidden;
}

.af-center-card-head {
  padding: 1.15rem 1.5rem;
  border-bottom: 2px solid var(--af-border);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.af-center-badge {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--af-accent-sky);
  margin-bottom: 0.2rem;
}

.af-center-title {
  font-family: var(--af-font-sans);
  font-size: 1.05rem;
  font-weight: 800;
  color: #0A192F;
  margin: 0;
}

.af-zona-selector {
  display: inline-flex;
  gap: 0.25rem;
  background: #FAF9F6;
  border: 1px solid var(--af-border);
  padding: 0.2rem;
  border-radius: 6px;
}

.af-zona-btn {
  background: transparent;
  border: none;
  padding: 0.3rem 0.85rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--af-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.af-zona-btn:hover {
  color: #0A192F;
}

.af-zona-btn.active {
  background: #0A192F;
  color: #FDE68A;
}

.af-fixture-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: #0A192F;
  color: #FDE68A;
  font-family: var(--af-font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: var(--af-radius-sm);
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(10, 25, 47, 0.1);
}

.af-fixture-more-btn:hover {
  background: #1E293B;
  color: #FFFFFF;
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  .af-sports-center-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}


