body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: url('https://wallpapers.com/images/hd/uefa-champions-league-star-football-logo-8dv90jbvwwhzp9c0.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
}

.header {
  text-align: center;
  padding: 10px;
  /*background-color: rgba(0, 0, 0, 0.7);*/
}

.logo {
  width: 320px;
  border-radius: 50%;
}

.titulo {
  margin-top: 10px;
  font-size: 2.5rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.grupo-selector {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px auto;
  flex-wrap: wrap;
}

.grupo-selector button {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border: 2px solid transparent;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.grupo-selector button.active,
.grupo-selector button:hover {
  background: #00bfff;
  color: black;
}

.tabla-container {
  max-width: 960px;
  margin: auto;
  padding: 20px;
  animation: fadeIn 0.5s ease-in-out;
}

.tabla-grupo {
  background: rgba(0, 0, 0, 0.75);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  overflow-x: auto;
}

.tabla-grupo h2 {
  text-align: center;
  color: #00bfff;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th, td {
  text-align: center;
  padding: 10px;
  border-bottom: 1px solid #444;
}

th {
  color: #00bfff;
  font-weight: bold;
}

td {
  color: white;
}

.descripcion {
  text-align: center;
  margin-top: 30px;
  padding: 15px;
  background-color: rgba(0,0,0,0.7);
  border-radius: 10px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  color: #ddd;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.resumen-stats {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.65);
  border-radius: 16px;
  max-width: 800px;
  margin: 20px auto;
}

.stat {
  background: linear-gradient(135deg, #0f2027, #203a43);
  padding: 15px 20px;
  border-radius: 12px;
  color: #00bfff;
  text-align: center;
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stat p {
  margin: 0;
  font-weight: bold;
  font-size: 0.95rem;
}

.stat h2 {
  font-size: 2em;
  margin: 0;
  color: white;
}

.stat i {
  font-size: 1.8em;
  margin-top: 5px;
  color: #00bfff;
}


.stat:hover {
  transform: scale(1.05);
}

.stat p {
  margin: 0;
  font-weight: bold;
}

.stat h2 {
  font-size: 2.5em;
  margin: 10px 0;
  color: white;
}

.stat i {
  font-size: 1.8em;
  margin-top: 10px;
  color: #00bfff;
}
.tabla-grupo {
  opacity: 1;
  transition: opacity 0.6s ease;
}

.tabla-grupo.fade-out {
  opacity: 0;
}

.descripcion {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 30px 20px;
  border-radius: 12px;
  margin: 40px auto;
  max-width: 900px;
  color: #fff;
}

.descripcion .item {
  text-align: center;
  flex: 1 1 120px;
}

.sigla {
  font-size: 1.2em;
  font-weight: bold;
  color: #00bfff;
}

.significado {
  font-size: 0.9em;
  color: #ccc;
  margin-top: 6px;
}
.gf { color: #2ecc71; }       /* verde suave */
.gc { color: #f39c12; }       /* naranja suave */
.dg-pos { color: #2ecc71; }   /* verde para DG positivo */
.dg-zero { color: #ecf0f1; }  /* blanco grisáceo */
.dg-neg { color: #e74c3c; }   /* rojo suave */

.fechass-container {
  text-align: center;
  margin: 30px 0;
}

.boton-fechas {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: bold;
  color: white;
  background-color: rgba(0, 191, 255, 0.8);
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.boton-fechas:hover {
  background-color: rgba(0, 191, 255, 1);
  transform: scale(1.05);
}
