/* Variables modo oscuro deportivo */
:root {
  --bg-primary: #121212;       /* Fondo principal */
  --bg-secondary: #1e1e1e;     /* Tarjetas/Contenedores */
  --accent-green: #00ff88;     /* Verde estilo césped (puedes cambiarlo a azul si prefieres) */
  --text-primary: #ffffff;     /* Texto blanco */
  --text-secondary: #cccccc;   /* Texto secundario */
  --border-color: #333333;     /* Bordes sutiles */
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Montserrat', sans-serif;
  margin: 0;
}
button{
    color: white;
}
/*--------------------*/
/* Card Principal */
.contenedor-cards {
  display: flex;
  flex-wrap: wrap; /* Permite el salto de línea cuando no cabe */
  gap: 1rem; /* Espacio entre cards */
  padding: 1rem;
}

.encuentro-card {
  background-color: var(--bg-secondary);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(0, 255, 136, 0.1),
    0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  flex: 1 0 300px; /* Crece, no se encoja, base 300px */
  min-width: 0; /* Evita problemas de overflow */
  max-width: 100%; /* Para móviles */
}

@media (min-width: 1200px) {
  .encuentro-card {
    flex: 1 0 calc(33.333% - 1rem); /* 3 columnas */
    max-width: calc(33.333% - 1rem);
  }
}
@media (min-width: 1200px) {
  .encuentro-card {
    flex: 1 0 calc(33.333% - 1rem); /* 3 columnas */
    max-width: calc(33.333% - 1rem);
  }
}

.encuentro-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 0 0 1px var(--accent-green),
    0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Header y Footer */
.card-header, .card-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background-color: rgba(0, 0, 0, 0.2);
}

.card-header {
  border-bottom: 1px solid var(--border-color);
}

.card-footer {
  border-top: 1px solid var(--border-color);
}

.card-header .material-icons,
.card-footer .material-icons {
  font-size: 1.2rem;
}

/* Cuerpo del partido */
.card-body {
  padding: 1.5rem;
}

/* Equipos */
.equipos-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.equipo {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.escudo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.nombre-equipo {
  font-weight: 600;
  text-align: center;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vs {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-green);
  margin: 0 1rem;
}

/* Marcador */
.marcador {
  text-align: center;
  margin: 1rem 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Lista de goles */
.goles-container {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.goles-local, .goles-visitante {
  width: 48%;
}

.gol-item {
  padding: 0.3rem 0;
  font-size: 0.9rem;
}

.goles-local {
  text-align: left;
  padding-right: 0.5rem;
}

.goles-visitante {
  text-align: right;
  padding-left: 0.5rem;
}

/* Responsive */
@media (max-width: 480px) {
  .equipos-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .vs {
    margin: 0.5rem 0;
  }
  
  .goles-container {
    flex-direction: column;
  }
  
  .goles-local, .goles-visitante {
    width: 100%;
  }
  
  .goles-visitante {
    margin-top: 0.5rem;
    text-align: right;
  }
}
.card {
    background-color: #1e1e1e;
    padding: 32px 48px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    text-align: center;
}

    .card h1 {
        font-size: 2rem;
        color: #00C853;
    }

    .card p {
        margin-top: 12px;
        color: #BBBBBB;
    }