/* ============================================================
   CB LINARES – PLANTILLA JOOMLA 6
   Paleta: Azul #003F8A, Naranja #FF8C00, Blanco #FFFFFF
   Bandera Linares: Amarillo, Verde, Blanco, Rojo, Azul
   ============================================================ */

:root {
  --azul:        #003F8A;
  --azul-dark:   #00296B;
  --azul-mid:    #0055BB;
  --naranja:     #FF8C00;
  --blanco:      #FFFFFF;
  --gris-claro:  #F4F6FA;
  --gris-medio:  #E0E6EF;
  --gris-texto:  #4A5568;
  --texto-dark:  #0A1628;

  /* Bandera Linares */
  --amarillo:    #F5C518;
  --verde:       #2E7D32;
  --rojo:        #C62828;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --font-accent:  'Oswald', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(0,63,138,0.08);
  --shadow-md: 0 6px 30px rgba(0,63,138,0.14);
  --shadow-lg: 0 16px 60px rgba(0,63,138,0.2);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--texto-dark);
  background: var(--blanco);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 80px 0; }

/* ── TOP BAR ── */
.topbar {
  background: var(--azul-dark);
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.03em;
  z-index: 100;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-flag {
  display: flex;
  border-radius: 3px;
  overflow: hidden;
  height: 14px;
  width: 56px;
  flex-shrink: 0;
}
.flag-seg {
  flex: 1;
}
.flag-seg.amarillo { background: var(--amarillo); }
.flag-seg.verde    { background: var(--verde); }
.flag-seg.blanco   { background: var(--blanco); }
.flag-seg.rojo     { background: var(--rojo); }
.flag-seg.azul     { background: var(--azul-mid); }

.topbar-link {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.topbar-link:hover { color: var(--naranja); }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--blanco);
  border-bottom: 3px solid var(--azul);
  box-shadow: var(--shadow-md);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

/* Logo */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-emblem { width: 52px; flex-shrink: 0; }
.emblem-svg { width: 100%; height: auto; filter: drop-shadow(0 2px 8px rgba(0,63,138,0.3)); }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-club {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gris-texto);
  text-transform: uppercase;
}
.logo-city {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: var(--azul);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

/* Nav */
.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { display: flex; gap: 4px; align-items: center; }
.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--texto-dark);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--azul);
  background: rgba(0,63,138,0.07);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 14px; right: 14px;
  height: 2px;
  background: var(--naranja);
  border-radius: 2px;
}
.nav-arrow { font-size: 10px; opacity: 0.6; }

/* Dropdown */
.has-drop { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--blanco);
  border: 1px solid var(--gris-medio);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  padding: 8px 0;
  z-index: 300;
}
.has-drop:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--texto-dark);
  transition: all var(--transition);
}
.dropdown li a:hover {
  background: var(--gris-claro);
  color: var(--azul);
  padding-left: 26px;
}

/* CTA Buttons */
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btn-cta {
  background: var(--naranja);
  color: var(--blanco);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}
.btn-cta:hover {
  background: #e07a00;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255,140,0,0.35);
}

.btn-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.btn-menu span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--azul);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #00296B 0%, #003F8A 40%, #0055BB 70%, #1a3a8a 100%);
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,20,60,0.6) 0%, transparent 60%);
}
.hero-court-lines {
  position: absolute;
  inset: 0;
  opacity: 1;
}
.hero-court-lines svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  padding-top: 60px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,140,0,0.15);
  border: 1px solid rgba(255,140,0,0.4);
  color: var(--naranja);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease both;
}
.hero-tag-dot {
  width: 8px; height: 8px;
  background: var(--naranja);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.88;
  color: var(--blanco);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero-title-line1 { display: block; font-size: clamp(72px, 12vw, 160px); animation: fadeInUp 0.7s 0.1s ease both; }
.hero-title-line2 { display: block; font-size: clamp(72px, 12vw, 160px); color: rgba(255,255,255,0.9); animation: fadeInUp 0.7s 0.2s ease both; }
.hero-title-line3 { display: block; font-size: clamp(72px, 12vw, 160px); animation: fadeInUp 0.7s 0.3s ease both; }
.accent-orange { color: var(--naranja); }

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
  max-width: 520px;
  line-height: 1.5;
  margin-bottom: 40px;
  animation: fadeInUp 0.7s 0.4s ease both;
}

/* Versus mini widget */
.hero-vs {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
  animation: fadeInUp 0.7s 0.45s ease both;
}
.hero-team { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.team-badge {
  width: 70px; height: 70px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  line-height: 1.1;
}
.home-badge { background: var(--blanco); color: var(--azul); }
.away-badge { background: rgba(255,255,255,0.15); color: var(--blanco); border: 2px solid rgba(255,255,255,0.3); }
.team-name { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.8); }
.hero-vs-center { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.vs-text {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--naranja);
}
.vs-date { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.5); letter-spacing: 0.1em; }

.hero-ctas {
  display: flex;
  gap: 14px;
  animation: fadeInUp 0.7s 0.5s ease both;
}
.btn-primary {
  background: var(--naranja);
  color: var(--blanco);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: inline-block;
}
.btn-primary:hover {
  background: #e07a00;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,140,0,0.4);
}
.btn-primary.btn-large { padding: 16px 36px; font-size: 16px; }

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: var(--blanco);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,0.3);
  transition: all var(--transition);
  display: inline-block;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--blanco);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,0.5);
  transition: all var(--transition);
  display: inline-block;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  right: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 10;
}
.scroll-line {
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0%,100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.4; }
}

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

/* ── STATS BAR ── */
.stats-bar {
  background: var(--azul);
  padding: 0;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
}
.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px;
  gap: 4px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  color: var(--blanco);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.15);
  margin: 16px 0;
}

/* ── SECTION HEADERS ── */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-header--white .section-title { color: var(--blanco); }
.section-header--white .section-link { color: rgba(255,255,255,0.7); }
.section-header--white .section-link:hover { color: var(--naranja); }

.section-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--naranja);
  background: rgba(255,140,0,0.1);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255,140,0,0.25);
  white-space: nowrap;
}
.tag-orange { /* already default */ }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  color: var(--texto-dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  flex: 1;
}
.section-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--azul);
  white-space: nowrap;
  transition: color var(--transition);
}
.section-link:hover { color: var(--naranja); }

/* ── NOTICIAS ── */
.news-section { background: var(--blanco); }

.news-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
}

.news-card {
  background: var(--blanco);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gris-medio);
  transition: all var(--transition);
}
.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.news-card--featured {
  display: flex;
  flex-direction: column;
}
.news-card--featured .news-img-wrap { height: 340px; }
.news-card--sm {
  display: flex;
  flex-direction: row;
  height: auto;
}
.news-card--sm .news-img-wrap { width: 120px; min-width: 120px; height: 100%; }

.news-img-wrap {
  position: relative;
  overflow: hidden;
}
.news-img-placeholder {
  width: 100%; height: 100%;
  position: relative;
}
.featured-img {
  background: linear-gradient(135deg, var(--azul-dark) 0%, var(--azul-mid) 100%);
  min-height: 340px;
}
.sm-img { min-height: 110px; }
.sm-img-1 { background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%); }
.sm-img-2 { background: linear-gradient(135deg, #1565C0 0%, #003F8A 100%); }
.sm-img-3 { background: linear-gradient(135deg, #C62828 0%, #891515 100%); }

.img-overlay-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,20,60,0.8), transparent);
}
.news-category-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--naranja);
  color: var(--blanco);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

.news-content {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.news-meta time {
  font-size: 12px;
  color: var(--gris-texto);
  font-weight: 500;
}
.news-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--azul);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.news-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.1;
  color: var(--texto-dark);
  text-transform: uppercase;
}
.news-card--sm .news-title {
  font-size: 15px;
  line-height: 1.2;
}
.news-excerpt {
  font-size: 14px;
  color: var(--gris-texto);
  line-height: 1.5;
}
.news-read-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--azul);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap var(--transition), color var(--transition);
}
.news-read-more:hover { color: var(--naranja); gap: 10px; }
.news-read-more .arrow { transition: transform var(--transition); }
.news-read-more:hover .arrow { transform: translateX(4px); }

.news-secondary { display: flex; flex-direction: column; gap: 16px; }

/* ── JUGADORES ── */
.players-section {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}
.players-bg-stripe {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--azul-dark) 0%, var(--azul) 60%, var(--azul-mid) 100%);
  z-index: 0;
}
.players-bg-stripe::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.02) 40px,
      rgba(255,255,255,0.02) 80px
    );
}
.players-section .container { position: relative; z-index: 1; }
.players-section .section-title { color: var(--blanco); }

.players-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.player-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}
.player-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border-color: var(--naranja);
}
.player-silhouette {
  height: 220px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.silhouette-1 { background: linear-gradient(180deg, rgba(0,85,187,0.4) 0%, rgba(0,63,138,0.8) 100%); }
.silhouette-2 { background: linear-gradient(180deg, rgba(255,140,0,0.2) 0%, rgba(0,41,107,0.8) 100%); }
.silhouette-3 { background: linear-gradient(180deg, rgba(0,40,100,0.3) 0%, rgba(0,20,60,0.9) 100%); }
.silhouette-4 { background: linear-gradient(180deg, rgba(0,85,187,0.3) 0%, rgba(0,63,138,0.8) 100%); }

.player-silhouette::before {
  content: '🏀';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-60%);
  font-size: 64px;
  opacity: 0.15;
}

.player-number {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: rgba(255,255,255,0.3);
  line-height: 1;
}
.player-card:hover .player-number { color: var(--naranja); }

.player-info {
  padding: 16px 18px 20px;
  border-top: 2px solid rgba(255,255,255,0.08);
}
.player-pos {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--naranja);
}
.player-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--blanco);
  text-transform: uppercase;
  margin: 4px 0 14px;
  line-height: 1;
}
.player-stats {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.pstat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pstat-v {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--blanco);
}
.pstat-l {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── TABLA + CALENDARIO ── */
.table-calendar { background: var(--gris-claro); }
.tc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.tc-block {
  background: var(--blanco);
  border-radius: var(--radius-md);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gris-medio);
}
.tc-header { margin-bottom: 20px; }
.tc-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--texto-dark);
  text-transform: uppercase;
  margin-top: 6px;
}
.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.standings-table thead tr {
  border-bottom: 2px solid var(--azul);
}
.standings-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--azul);
  padding: 10px 8px;
  text-align: left;
}
.standings-table th:not(:nth-child(2)) { text-align: center; }
.standings-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--gris-medio);
  color: var(--texto-dark);
}
.standings-table td:not(:nth-child(2)) { text-align: center; }
.standings-table tr:last-child td { border-bottom: none; }
.standings-table .my-team {
  background: rgba(0,63,138,0.05);
}
.standings-table .my-team td {
  color: var(--azul);
  font-weight: 700;
}
.standings-table .my-team td:last-child {
  color: var(--naranja);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
}
.tc-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--azul);
  transition: color var(--transition);
}
.tc-link:hover { color: var(--naranja); }

/* Matches */
.match-list { display: flex; flex-direction: column; gap: 12px; }
.match-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gris-medio);
  transition: all var(--transition);
}
.match-item:hover { border-color: var(--azul); background: rgba(0,63,138,0.03); }
.next-match {
  border-color: var(--naranja);
  background: rgba(255,140,0,0.04);
}
.match-date-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
  flex-shrink: 0;
}
.match-day {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--azul);
  line-height: 1;
}
.next-match .match-day { color: var(--naranja); }
.match-month {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gris-texto);
  text-transform: uppercase;
}
.match-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.match-competition { font-size: 11px; color: var(--gris-texto); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.match-teams { font-size: 15px; font-weight: 700; color: var(--texto-dark); }
.match-venue { font-size: 12px; color: var(--gris-texto); }
.match-ticket-btn {
  font-size: 18px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--naranja);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.match-ticket-btn:hover { background: #e07a00; transform: scale(1.1); }
.match-away-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gris-texto);
  background: var(--gris-claro);
  padding: 4px 10px;
  border-radius: 100px;
}

/* ── SOCIOS BANNER ── */
.socios-banner {
  background: var(--azul);
  position: relative;
  overflow: hidden;
}
.socios-banner::before {
  content: '🏀';
  position: absolute;
  right: -60px; top: -40px;
  font-size: 300px;
  opacity: 0.04;
  transform: rotate(-15deg);
}
.socios-flag-bar {
  display: flex;
  height: 5px;
}
.fb { flex: 1; }
.fb.amarillo { background: var(--amarillo); }
.fb.verde    { background: var(--verde); }
.fb.blanco   { background: var(--blanco); }
.fb.rojo     { background: var(--rojo); }
.fb.azul     { background: var(--azul-mid); }

.socios-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
  position: relative;
  z-index: 1;
}
.socios-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  color: var(--blanco);
  text-transform: uppercase;
  line-height: 1.0;
  margin-bottom: 12px;
}
.socios-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  max-width: 480px;
  line-height: 1.5;
}
.socios-ctas { display: flex; gap: 14px; flex-shrink: 0; }

/* ── TIENDA + SPONSORS ── */
.sponsors-shop { background: var(--blanco); }
.ss-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.shop-promo p { color: var(--gris-texto); font-size: 15px; line-height: 1.5; margin: 10px 0 20px; }
.shop-products {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.product-thumb {
  flex: 1;
  height: 120px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gris-medio);
  transition: all var(--transition);
}
.product-thumb:hover { transform: scale(1.04); box-shadow: var(--shadow-md); }
.prod-1 { background: linear-gradient(135deg, var(--azul) 0%, var(--azul-mid) 100%); }
.prod-2 { background: linear-gradient(135deg, #F5F5F5 0%, #E0E0E0 100%); }
.prod-3 { background: linear-gradient(135deg, var(--azul) 0%, var(--naranja) 100%); }

.sponsors-block p { color: var(--gris-texto); margin-bottom: 20px; }
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.sponsor-logo {
  height: 72px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gris-medio);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  color: var(--gris-texto);
  letter-spacing: 0.06em;
  transition: all var(--transition);
}
.sponsor-logo:hover { border-color: var(--azul); color: var(--azul); }
.sp1 { grid-column: 1 / -1; height: 90px; border-color: var(--azul); color: var(--azul); font-size: 13px; }

/* ── MEDIA SECTION ── */
.media-section {
  background: var(--gris-claro);
  padding: 60px 0;
  border-top: 1px solid var(--gris-medio);
  border-bottom: 1px solid var(--gris-medio);
}
.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.radio-block, .social-block {
  background: var(--blanco);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--gris-medio);
}
.radio-icon { font-size: 48px; margin-bottom: 12px; }
.radio-block h3, .social-block h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--texto-dark);
  margin-bottom: 10px;
}
.radio-block p { color: var(--gris-texto); font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
.social-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  transition: all var(--transition);
}
.social-twitter { background: #000; color: #fff; }
.social-twitter:hover { background: #222; }
.social-instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.social-facebook { background: #1877F2; color: #fff; }
.social-facebook:hover { background: #0d6bdf; }
.social-youtube { background: #FF0000; color: #fff; }
.social-youtube:hover { background: #cc0000; }

/* ── FOOTER ── */
.site-footer {
  background: var(--texto-dark);
  color: rgba(255,255,255,0.7);
}
.footer-flag-bar {
  display: flex;
  height: 4px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.emblem-small { width: 44px; }
.footer-logo-text {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  line-height: 1.3;
}
.footer-logo-text strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--blanco);
  letter-spacing: 0.06em;
  display: block;
}
.footer-tagline {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.45);
  font-style: italic;
}
.footer-nav-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--naranja);
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--blanco); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,0.3); transition: color var(--transition); }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-secondary { display: grid; grid-template-columns: 1fr 1fr 1fr; }
  .players-grid { grid-template-columns: repeat(2, 1fr); }
  .tc-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .btn-menu { display: flex; }
  .hero-title-line1, .hero-title-line2, .hero-title-line3 { font-size: clamp(56px, 16vw, 100px); }
  .players-grid { grid-template-columns: repeat(2, 1fr); }
  .ss-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  .socios-content { flex-direction: column; text-align: center; }
  .socios-ctas { justify-content: center; }
  .stats-inner { flex-wrap: wrap; }
  .stat-item { flex: 0 0 50%; }
  .stat-divider { display: none; }
  .news-secondary { grid-template-columns: 1fr; }
  .footer-nav-cols { grid-template-columns: repeat(2, 1fr); }
  .hero-vs { gap: 16px; }
  .team-badge { width: 56px; height: 56px; }
  .vs-text { font-size: 26px; }
  .tc-grid { grid-template-columns: 1fr; }
  .hero-scroll-hint { display: none; }
}

@media (max-width: 480px) {
  .players-grid { grid-template-columns: 1fr 1fr; }
  .sponsor-logo { font-size: 9px; }
  .footer-nav-cols { grid-template-columns: 1fr 1fr; }
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; }
  .social-links { grid-template-columns: 1fr; }
  .socios-ctas { flex-direction: column; }
  .ss-grid { gap: 32px; }
}

/* ── MOBILE NAV OPEN STATE ── */
.site-header.nav-open .main-nav {
  display: flex;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--blanco);
  border-bottom: 3px solid var(--azul);
  box-shadow: var(--shadow-lg);
  z-index: 199;
  padding: 16px 0;
}
.site-header.nav-open .main-nav ul {
  flex-direction: column;
  width: 100%;
  align-items: stretch;
  gap: 0;
}
.site-header.nav-open .main-nav .nav-link {
  display: block;
  padding: 14px 24px;
  border-radius: 0;
  border-bottom: 1px solid var(--gris-medio);
}
.site-header.nav-open .dropdown {
  display: block;
  position: static;
  box-shadow: none;
  border: none;
  border-radius: 0;
  background: var(--gris-claro);
  padding: 0;
}
