/* ===== SEDES Y ESTADIOS MUNDIAL FIFA 2026 - ESTILOS ===== */

/* Contenedor principal de sedes */
.sedes-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Header de sedes - Ahora usa el mismo estilo que calendario-header */

/* Filtros de sedes */
.filtros-sedes {
  background: white;
  border-radius: var(--calendario-border-radius);
  padding: 1rem;
  margin-bottom: 2rem;
  box-shadow: var(--calendario-shadow);
}

.filtros-principales {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.filtro-pais {
  min-width: 200px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.filtro-pais:focus {
  border-color: var(--calendario-secondary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

/* Estadísticas de sedes */
.estadisticas-sedes {
  background: white;
  border-radius: var(--calendario-border-radius);
  padding: 1.5rem;
  box-shadow: var(--calendario-shadow);
}

/* Estadísticas pequeñas */
.stat-item-small {
  text-align: center;
  padding: 0.5rem;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-number-small {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--calendario-primary);
  line-height: 1;
}

.stat-label-small {
  display: block;
  font-size: 0.65rem;
  color: #6b7280;
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Información del Mundial 2026 */
.info-mundial-2026 {
  margin-bottom: 2rem;
}

/* Información del Mundial 2026 y Filtros */
.info-mundial-filtros {
  background: white;
  border-radius: var(--calendario-border-radius);
  padding: 1.5rem;
  box-shadow: var(--calendario-shadow);
}

.info-card {
  background: white;
  border-radius: var(--calendario-border-radius);
  padding: 1.5rem;
  box-shadow: var(--calendario-shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  height: 100%;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--calendario-shadow-hover);
  border-color: var(--calendario-secondary);
}

.info-icon {
  background: linear-gradient(135deg, var(--calendario-primary), var(--calendario-secondary));
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-content h5 {
  color: var(--calendario-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.info-content p {
  color: #6b7280;
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Info cards pequeñas */
.info-card-small {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  height: 100%;
}

.info-card-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--calendario-secondary);
}

.info-icon-small {
  background: linear-gradient(135deg, var(--calendario-primary), var(--calendario-secondary));
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.info-content-small h6 {
  color: var(--calendario-primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  line-height: 1.2;
}

.info-content-small p {
  color: #6b7280;
  margin-bottom: 0;
  font-size: 0.75rem;
  line-height: 1.3;
}

/* Grid de estadios */
.estadios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Tarjeta de estadio */
.estadio-card {
  background: white;
  border-radius: var(--calendario-border-radius);
  box-shadow: var(--calendario-shadow);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid #e2e8f0;
}

.estadio-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--calendario-shadow-hover);
  border-color: var(--calendario-secondary);
}

/* Imagen del estadio */
.estadio-imagen {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 2.5rem;
  position: relative;
}

.estadio-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.estadio-imagen .placeholder-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Contenido de la tarjeta */
.estadio-content {
  padding: 1rem;
}

.estadio-nombre {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--calendario-primary);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.estadio-ciudad {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.estadio-ciudad .bandera-pais {
  width: 24px;
  height: 18px;
  object-fit: contain;
  border-radius: 2px;
  border: 1px solid #e2e8f0;
}

/* Información destacada */
.estadio-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.info-item {
  text-align: center;
  padding: 0.5rem;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.info-valor {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--calendario-primary);
  line-height: 1;
}

.info-label {
  display: block;
  font-size: 0.7rem;
  color: #6b7280;
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Características del estadio */
.estadio-caracteristicas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.6rem;
}

.caracteristica-tag {
  background: linear-gradient(135deg, var(--calendario-primary), var(--calendario-secondary));
  color: white;
  padding: 0.15rem 0.4rem;
  border-radius: 12px;
  font-size: 0.55rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

/* Modal de detalles */
.estadio-modal .modal-dialog {
  max-width: 900px;
}

.estadio-modal .modal-header {
  background: linear-gradient(90deg, var(--calendario-primary), var(--calendario-secondary));
  color: white;
  border-bottom: none;
}

.estadio-modal .modal-title {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Contenido del modal */
.modal-estadio-imagen {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.modal-estadio-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.modal-info-item {
  text-align: center;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.modal-info-valor {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--calendario-primary);
  line-height: 1;
}

.modal-info-label {
  display: block;
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Descripción del estadio */
.estadio-descripcion {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-bottom: 1.5rem;
}

.estadio-descripcion h6 {
  color: var(--calendario-primary);
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.estadio-descripcion p {
  color: #374151;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Partidos en el estadio */
.estadio-partidos {
  margin-top: 1.5rem;
}

.estadio-partidos h6 {
  color: var(--calendario-primary);
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.partido-estadio-item {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.partido-estadio-item:hover {
  border-color: var(--calendario-secondary);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.partido-equipos-estadio {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.equipo-estadio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.equipo-estadio .bandera {
  width: 20px;
  height: 15px;
  object-fit: contain;
  border-radius: 2px;
}

.equipo-estadio .nombre {
  font-weight: 500;
  color: #374151;
  font-size: 0.9rem;
}

.vs-estadio {
  font-weight: 700;
  color: var(--calendario-accent);
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  background: #f8fafc;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.partido-fecha-estadio {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sedes-title {
    font-size: 1.8rem;
  }
  
  .sedes-subtitle {
    font-size: 1rem;
  }
  
  .filtros-principales {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filtro-pais {
    min-width: auto;
    width: 100%;
  }
  
  .stat-number-small {
    font-size: 1rem;
  }
  
  .stat-label-small {
    font-size: 0.6rem;
  }
  
  .stat-item-small {
    padding: 0.4rem;
  }
  
  .estadisticas-sedes .row {
    gap: 0.5rem;
  }
  
  .estadisticas-sedes [class*="col-"] {
    margin-bottom: 0.5rem;
  }
  
  .info-card-small {
    padding: 0.75rem;
    gap: 0.5rem;
  }
  
  .info-icon-small {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .info-content-small h6 {
    font-size: 0.8rem;
  }
  
  .info-content-small p {
    font-size: 0.7rem;
  }
  
  .estadios-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .estadio-info {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  /* Modal responsive para móviles */
  .modal-estadio-imagen {
    height: 200px;
    margin-bottom: 1rem;
  }
  
  .modal-estadio-info {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .modal-info-item {
    padding: 0.75rem;
  }
  
  .modal-info-valor {
    font-size: 1.1rem;
  }
  
  .modal-info-label {
    font-size: 0.75rem;
    margin-top: 0.3rem;
  }
  
  .estadio-descripcion {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .estadio-descripcion h6 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }
  
  .estadio-descripcion p {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  .estadio-partidos {
    margin-top: 1rem;
  }
  
  .estadio-partidos h6 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }
  
  .partido-estadio-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .partido-equipos-estadio {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    width: 100%;
  }
  
  .equipo-estadio .nombre {
    font-size: 0.8rem;
  }
  
  .vs-estadio {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
  
  .partido-fecha-estadio {
    font-size: 0.75rem;
    align-self: flex-end;
  }
  
  .caracteristica-tag {
    font-size: 0.5rem;
    padding: 0.1rem 0.3rem;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .sedes-title {
    font-size: 1.5rem;
  }
  
  .estadio-content {
    padding: 1rem;
  }
  
  .estadio-nombre {
    font-size: 1.1rem;
  }
  
  /* Modal ultra compacto para móviles pequeños */
  .modal-estadio-imagen {
    height: 150px;
    margin-bottom: 0.75rem;
  }
  
  .modal-estadio-info {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }
  
  .modal-info-item {
    padding: 0.5rem;
  }
  
  .modal-info-valor {
    font-size: 1rem;
  }
  
  .modal-info-label {
    font-size: 0.7rem;
    margin-top: 0.2rem;
  }
  
  .estadio-descripcion {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .estadio-descripcion h6 {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }
  
  .estadio-descripcion p {
    font-size: 0.8rem;
    line-height: 1.3;
  }
  
  .estadio-partidos h6 {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }
  
  .partido-estadio-item {
    padding: 0.5rem;
    margin-bottom: 0.4rem;
  }
  
  .equipo-estadio .nombre {
    font-size: 0.75rem;
  }
  
  .vs-estadio {
    font-size: 0.65rem;
    padding: 0.15rem 0.3rem;
  }
  
  .partido-fecha-estadio {
    font-size: 0.7rem;
  }
  
  .caracteristica-tag {
    font-size: 0.45rem;
    padding: 0.08rem 0.25rem;
    border-radius: 8px;
  }
  
  .estadio-caracteristicas {
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
  }
}

/* Tema oscuro */
[data-bs-theme="dark"] .sedes-page {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

[data-bs-theme="dark"] .filtros-sedes {
  background: #374151;
  border-color: #4b5563;
}

[data-bs-theme="dark"] .estadisticas-sedes {
  background: #374151;
  border-color: #4b5563;
}

[data-bs-theme="dark"] .stat-item-small {
  background: #4b5563;
  border-color: #6b7280;
}

[data-bs-theme="dark"] .stat-number-small {
  color: #60a5fa;
}

[data-bs-theme="dark"] .stat-label-small {
  color: #9ca3af;
}

[data-bs-theme="dark"] .info-mundial-filtros {
  background: #374151;
  border-color: #4b5563;
}

[data-bs-theme="dark"] .info-card {
  background: #374151;
  border-color: #4b5563;
}

[data-bs-theme="dark"] .info-card:hover {
  border-color: #60a5fa;
}

[data-bs-theme="dark"] .info-content h5 {
  color: #60a5fa;
}

[data-bs-theme="dark"] .info-content p {
  color: #9ca3af;
}

[data-bs-theme="dark"] .info-card-small {
  background: #4b5563;
  border-color: #6b7280;
}

[data-bs-theme="dark"] .info-card-small:hover {
  border-color: #60a5fa;
}

[data-bs-theme="dark"] .info-content-small h6 {
  color: #60a5fa;
}

[data-bs-theme="dark"] .info-content-small p {
  color: #9ca3af;
}

[data-bs-theme="dark"] .estadio-card {
  background: #374151;
  border-color: #4b5563;
}

[data-bs-theme="dark"] .estadio-card:hover {
  border-color: #60a5fa;
}

[data-bs-theme="dark"] .estadio-nombre {
  color: #60a5fa;
}

[data-bs-theme="dark"] .estadio-ciudad {
  color: #9ca3af;
}

[data-bs-theme="dark"] .info-item {
  background: #4b5563;
  border-color: #6b7280;
}

[data-bs-theme="dark"] .info-valor {
  color: #60a5fa;
}

[data-bs-theme="dark"] .info-label {
  color: #9ca3af;
}

[data-bs-theme="dark"] .filtro-pais {
  background: #4b5563;
  border-color: #6b7280;
  color: white;
}

[data-bs-theme="dark"] .estadio-descripcion {
  background: #4b5563;
  border-color: #6b7280;
}

[data-bs-theme="dark"] .estadio-descripcion p {
  color: #d1d5db;
}

[data-bs-theme="dark"] .partido-estadio-item {
  background: #4b5563;
  border-color: #6b7280;
}

[data-bs-theme="dark"] .partido-estadio-item:hover {
  border-color: #60a5fa;
}

[data-bs-theme="dark"] .equipo-estadio .nombre {
  color: #d1d5db;
}

[data-bs-theme="dark"] .vs-estadio {
  background: #6b7280;
  border-color: #9ca3af;
  color: #d1d5db;
}

[data-bs-theme="dark"] .partido-fecha-estadio {
  color: #9ca3af;
}