/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
}

/* ===== VARIABLES ===== */
:root {
  --azul-oscuro: #002b5c;
  --azul-claro: #0057b8;
  --blanco: #ffffff;
  --rojo: #e63946;
  --gris-claro: #f2f6fc;
}

/* ===== ESTRUCTURA ===== */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(90deg, #eaf1fb 0%, #ffffff 50%, #eaf1fb 100%);
  color: var(--azul-oscuro);
  overflow-x: hidden;
  position: relative;
}

/* ===== BARRAS LATERALES ===== */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  width: 14px;
  height: 100vh;
  z-index: -1;
  background: linear-gradient(to bottom, var(--rojo), var(--azul-claro) 90%, var(--azul-oscuro));
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
}
body::before { left: 0; }
body::after { right: 0; }

/* ===== LEMAS ===== */
html::before,
html::after {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 800;
  font-size: 1rem;
  color: var(--azul-oscuro);
  text-align: center;
  letter-spacing: 4px;
  text-transform: uppercase;
  z-index: 0;
  pointer-events: none;
  writing-mode: vertical-rl;
  text-orientation: upright;
}
html::before { content: "UN POBO"; left: 30px; }
html::after { content: "UN SENTIMENTO"; right: 30px; }

@media (max-width: 1024px) {
  html::before, html::after { display: none; }
}

/* ===== HEADER ===== */
header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, var(--azul-oscuro), var(--azul-claro));
  padding: 10px 30px;
  color: var(--blanco);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.logo img {
  width: 36px;
  height: 36px;
  transition: transform 0.3s ease;
}
.logo img:hover { transform: scale(1.05); }

.menu {
  list-style: none;
  display: flex;
  gap: 20px;
}
.menu li a {
  color: var(--blanco);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.menu li a:hover,
.menu li a.active {
  background: var(--rojo);
  color: var(--blanco);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--blanco);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 6px 8px;
}

/* ===== CONTENIDO PRINCIPAL ===== */
main {
  flex: 1;
  padding: 60px 20px;
  text-align: center;
}

/* ===== TÍTULO ===== */
.clasificacion-completa h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--azul-oscuro);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 40px;
  position: relative;
}
.clasificacion-completa h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--rojo);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ===== TABLA ===== */
.tabla-clasificacion {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.tabla-clasificacion th {
  background: var(--azul-oscuro);
  color: var(--blanco);
  text-transform: uppercase;
  padding: 12px;
  font-size: 0.9rem;
}
.tabla-clasificacion td {
  padding: 10px;
  border-bottom: 1px solid #e0e6ef;
  font-weight: 500;
  color: var(--azul-oscuro);
}
.tabla-clasificacion tr:nth-child(even) td {
  background-color: var(--gris-claro);
}

.tabla-clasificacion tr:hover {
  background: rgba(77, 163, 255, 0.15);
  transform: scale(1.005);
  transition: all 0.25s ease;
}

/* ===== ESCUDOS ===== */
.escudo-equipo {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: contain;
  background-color: var(--blanco);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* 🔴 Resaltado suave y difuminado para AD SOUTELO */
.resaltar-soutelo td {
  background: linear-gradient(
    90deg,
    rgba(230, 57, 70, 0.18) 0%,
    rgba(230, 57, 70, 0.10) 40%,
    rgba(230, 57, 70, 0.05) 100%
  ) !important;
  color: var(--azul-oscuro);
  font-weight: 800;
  transition: background 0.3s ease;
}

/* Hover opcional */
.resaltar-soutelo:hover td {
  background: linear-gradient(
    90deg,
    rgba(230, 57, 70, 0.28) 0%,
    rgba(230, 57, 70, 0.15) 40%,
    rgba(230, 57, 70, 0.08) 100%
  ) !important;
}





/* ===== FOOTER ===== */
footer {
  background: linear-gradient(90deg, var(--azul-oscuro), var(--azul-claro));
  color: var(--blanco);
  text-align: center;
  padding: 20px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.2);
}
footer::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--rojo);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: #06335f;
    text-align: center;
    padding: 26px 0;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
  }
  .menu.active { display: flex; }

  /* Tabla compacta sin scroll */
  .tabla-clasificacion {
    width: 100%;
    font-size: 0.8rem;
  }


  .tabla-clasificacion th,
  .tabla-clasificacion td {
    padding: 8px 4px;
  }

}
/* ===== EQUIPOS CON ESCUDO ===== */
.equipo-con-escudo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  text-align: left;
}

.escudo-equipo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .equipo-con-escudo {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 🔹 Alinea escudo + nombre a la izquierda */
    gap: 6px;
    text-align: left;
  }

  .escudo-equipo {
    width: 22px;
    height: 22px;
  }
}

/* ===== RESPONSIVE: mostrar solo columnas esenciales en móvil ===== */
@media (max-width: 768px) {
  /* Ocultar columnas no esenciales en móvil */
  .tabla-clasificacion th:nth-child(5),  /* G */
  .tabla-clasificacion th:nth-child(6),  /* E */
  .tabla-clasificacion th:nth-child(7),  /* D */
  .tabla-clasificacion th:nth-child(8),  /* GF */
  .tabla-clasificacion th:nth-child(9),  /* GC */
  .tabla-clasificacion th:nth-child(10), /* DG */
  .tabla-clasificacion td:nth-child(5),
  .tabla-clasificacion td:nth-child(6),
  .tabla-clasificacion td:nth-child(7),
  .tabla-clasificacion td:nth-child(8),
  .tabla-clasificacion td:nth-child(9),
  .tabla-clasificacion td:nth-child(10) {
    display: none;
  }

  /* Ajuste visual de las columnas visibles */
  .tabla-clasificacion {
    font-size: 0.85rem;
    width: 100%;
  }

  .tabla-clasificacion th,
  .tabla-clasificacion td {
    padding: 10px 6px;
    text-align: center;
  }


}
