/* ═══════════════════════════════════════════════════════════
   liga.css — Ficha de liga FutboLive
   Estilo claro, coherente con styles.css
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Source+Sans+3:wght@400;500;600&display=swap');

:root {
  --verde:        #00a651;
  --verde-dark:   #007a3c;
  --verde-light:  #e8f7ef;
  --gris-oscuro:  #1a1a2e;
  --texto:        #1a1a2e;
  --texto-suave:  #666;
  --borde:        #e8e8e8;
  --fondo:        #f0f2f5;
  --blanco:       #fff;
  --amarilla:     #f5c518;
  --roja:         #e53935;
  --azul:         #1565c0;
  --naranja:      #e65100;
  --radius:       8px;
  --font-display: 'Oswald', sans-serif;
  --font-body:    'Source Sans 3', sans-serif;
}

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

body {
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--font-body);
  font-size: 15px;
  min-height: 100vh;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  background: var(--gris-oscuro);
  border-bottom: 3px solid var(--verde-dark);
  padding: 32px 24px 28px;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
}

.hero-info { flex: 1; min-width: 200px; }

.hero-pais {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--verde);
  margin-bottom: 4px;
}

.hero-nombre {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 38px);
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #888; }
.meta-val   { font-size: 13px; font-weight: 500; color: #e0e0e0; }

/* ══════════════════════════════════════════
   TABS
══════════════════════════════════════════ */
.tabs-bar {
  background: var(--blanco);
  border-bottom: 0.5px solid var(--borde);
  position: sticky;
  top: 0;
  z-index: 10;
}

.tabs-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  padding: 0 12px;
}

.tab-btn {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--texto-suave);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 16px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}

.tab-btn:hover { color: var(--texto); }
.tab-btn.active { color: var(--verde-dark); border-bottom-color: var(--verde); }

/* ══════════════════════════════════════════
   MAIN
══════════════════════════════════════════ */
.main {
  max-width: 780px;
  margin: 0 auto;
  padding: 16px 12px 60px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hidden { display: none !important; }

/* ── SELECTOR TEMPORADA ── */
.temporada-bar {
  background: var(--blanco);
  border: 0.5px solid var(--borde);
  border-radius: var(--radius);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.temporada-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--texto-suave);
}

.temporada-select {
  background: var(--fondo);
  color: var(--texto);
  border: 0.5px solid var(--borde);
  border-radius: var(--radius);
  padding: 7px 32px 7px 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

.temporada-select:focus { outline: none; border-color: var(--verde); }

/* ── CARD ── */
.card {
  background: var(--blanco);
  border: 0.5px solid var(--borde);
  border-radius: var(--radius);
  overflow: hidden;
}

.section-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
  background: var(--gris-oscuro);
  padding: 10px 14px;
}

/* ── CLASIFICACIÓN ── */
.tabla-wrap { overflow-x: auto; }

.tabla-clasificacion {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tabla-clasificacion thead { background: var(--fondo); }

.tabla-clasificacion th {
  padding: 8px 10px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--texto-suave);
  white-space: nowrap;
  border-bottom: 0.5px solid var(--borde);
}

.tabla-clasificacion th:nth-child(2) { text-align: left; padding-left: 6px; }

.tabla-clasificacion td {
  padding: 8px 10px;
  border-bottom: 0.5px solid #f2f2f2;
  text-align: center;
  vertical-align: middle;
  font-size: 13px;
}

.tabla-clasificacion td:nth-child(2) { text-align: left; font-weight: 600; padding-left: 6px; }
.tabla-clasificacion tbody tr:last-child td { border-bottom: none; }
.tabla-clasificacion tbody tr { background: var(--blanco); transition: background .12s; }
.tabla-clasificacion tbody tr:hover { background: #fafafa; }

/* Colores por zona */
.zona-champions td:first-child { border-left: 3px solid #1565c0; }
.zona-europa    td:first-child { border-left: 3px solid #e65100; }
.zona-conference td:first-child { border-left: 3px solid var(--verde); }
.zona-descenso  td:first-child { border-left: 3px solid var(--roja); }

.pos-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  width: 24px;
  display: inline-block;
  text-align: center;
}

/* Forma (últimos 5) */
.forma { display: flex; gap: 3px; justify-content: center; }
.forma-v, .forma-e, .forma-d {
  width: 18px; height: 18px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.forma-v { background: var(--verde); }
.forma-e { background: #999; }
.forma-d { background: var(--roja); }

/* Leyenda */
.leyenda {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 10px 14px;
  background: var(--fondo);
  border-top: 0.5px solid var(--borde);
}

.leyenda-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--texto-suave);
}

.dot {
  width: 10px; height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.dot-champions  { background: #1565c0; }
.dot-europa     { background: #e65100; }
.dot-conference { background: var(--verde); }
.dot-descenso   { background: var(--roja); }

/* ── RESULTADOS POR JORNADA ── */
.jornada-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--blanco);
  border: 0.5px solid var(--borde);
  border-radius: var(--radius);
  padding: 10px 14px;
}

.jornada-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--texto);
  flex: 1;
  text-align: center;
}

.jornada-btn {
  background: var(--fondo);
  border: 0.5px solid var(--borde);
  border-radius: 5px;
  padding: 5px 14px;
  font-size: 14px;
  cursor: pointer;
  color: var(--texto-suave);
  transition: background .15s;
  font-family: var(--font-body);
}

.jornada-btn:hover { background: #e0e0e0; }
.jornada-btn:disabled { opacity: .35; cursor: not-allowed; }

/* Partidos de jornada */
.partido-fila {
  display: grid;
  grid-template-columns: 1fr 90px 1fr;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 0.5px solid #f2f2f2;
  gap: 8px;
  transition: background .12s;
}

.partido-fila:last-child { border-bottom: none; }
.partido-fila:hover { background: #fafafa; }

.pf-local    { text-align: right; font-weight: 600; font-size: 13px; }
.pf-visitante { text-align: left;  font-weight: 600; font-size: 13px; }

.pf-centro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.pf-marcador {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--texto);
}

.pf-comp {
  font-size: 10px;
  color: var(--texto-suave);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── GOLEADORES ── */
.tabla-goleadores {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tabla-goleadores thead { background: var(--fondo); }

.tabla-goleadores th {
  padding: 9px 14px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--texto-suave);
  border-bottom: 0.5px solid var(--borde);
}

.tabla-goleadores th:last-child { text-align: center; }

.tabla-goleadores td {
  padding: 9px 14px;
  border-bottom: 0.5px solid #f2f2f2;
  vertical-align: middle;
}

.tabla-goleadores td:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--texto-suave);
  width: 32px;
}

.tabla-goleadores td:last-child {
  text-align: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--verde-dark);
}

.tabla-goleadores tbody tr:last-child td { border-bottom: none; }
.tabla-goleadores tbody tr { background: var(--blanco); transition: background .12s; }
.tabla-goleadores tbody tr:hover { background: #fafafa; }

.equipo-tag {
  font-size: 11px;
  color: var(--texto-suave);
  font-weight: 500;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .hero-logo { width: 60px; height: 60px; }
  .hide-mobile { display: none; }
  .partido-fila { grid-template-columns: 1fr 72px 1fr; padding: 9px 10px; }
  .pf-marcador { font-size: 15px; letter-spacing: 1px; }
  .pf-local, .pf-visitante { font-size: 12px; }
}
