/* CONTENEDOR GENERAL */
.stadium-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1rem;
}

/* COLORES POR ZONA */
.color-a { background-color: #cbefb2; } /* A - Verde muy claro */
.color-b { background-color: #a3e59f; } /* B - Verde más saturado */
.color-d { background-color: #7ed6a2; } /* D - Verde menta */
.color-e { background-color: #5ccbb6; } /* E - Turquesa */
.color-f { background-color: #36b3d1; } /* F - Azul claro */
.color-g { background-color: #2196f3; } /* G - Azul fuerte */
.color-h { background-color: #1e7cc0; } /* H - Azul profundo */
.color-i { background-color: #1565c0; } /* I - Azul aún más oscuro */
.color-j { background-color: #0d47a1; } /* J - Azul muy profundo */
.color-k { background-color: #003366; } /* K - Azul casi marino */
.color-matriz {background-color: transparent !important; box-shadow: none;}
.color-z {background-color: #adb5bd } /* Z - Gris claro */

/* Añadir transición suave de color para hover u otros efectos */
.legend-box,
.bloque-pdv {
  transition: background-color 0.3s ease;
}

/* BLOQUE DE CADA ZONA */
.sector-block {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.2rem;
  border: 1px solid #dee2e6;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

/* TÍTULO DE ZONA */
.sector-title {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #045ee5;
}

/* CONTENEDOR DE CARDS */
.pdv-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* CARD INDIVIDUAL */
.pdv-card {
  width: 180px;
  min-height: 140px;
  border-radius: 1rem;
  background-color: white;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 2px solid transparent;
  transition: all 0.2s ease-in-out;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pdv-card:hover {
  transform: translateY(-3px);
  border-color: #0d6efd;
  cursor: pointer;
}

.pdv-card i {
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

.pdv-title {
  font-weight: bold;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.vacante-disponible {
  color: #6c757d;
  font-size: 0.9rem;
}

.vacante-ocupado {
  color: #198754;
  font-size: 0.9rem;
}

/* CARD DESACTIVADA POR FILTRO */
.pdv-card.desactivado {
  opacity: 0.4;
  pointer-events: none;
  transform: none;
  border-color: #ccc;
}
.zone-card {
  transition: all 0.3s ease-in-out;
  border: 2px solid transparent;
}

.zone-card:hover {
  transform: scale(1.03);
  border-color: #0d6efd;
  background-color: #f8f9fa;
}
.zone-card.active {
  background-color: #0d6efd;
  color: white;
}

/* RESPONSIVE */
@media (max-width: 576px) {
  .pdv-card {
    width: 100%;
  }

  .pdv-title {
    font-size: 0.95rem;
  }

  .pdv-card i {
    font-size: 1.7rem;
  }
}


/* BLOQUES RADIALES OPCIONALES */
.estadio-central {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}

.bloque-pdv-estadio {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: bold;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.2s ease;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.bloque-pdv-estadio:hover {
  transform: scale(1.08);
}

.bloque-inactivo {
  background-color: #adb5bd !important;
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .bloque-pdv {
    width: 60px;
    height: 45px;
    font-size: 0.65rem;
  }

  .bloque-matriz {
    width: 120px;
    height: 80px;
    font-size: 0.9rem;
  }
}

.bloque-matriz img {
  transition: transform 0.3s ease;
}

.bloque-matriz img:hover {
  transform: scale(1.1);
}

.bloque-matriz-custom {
  position: absolute;
  left: 50%;
  top: 75%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
}

.img-matriz {
  width: 100%;
  max-width: 150px;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
  transition: transform 0.2s ease-in-out;
}
.img-matriz:hover {
  transform: scale(1.05);
}


.estadio-circular {
  position: relative;
  width: 100%;
  max-width: 1400px;
  height: 500px;
  margin: 0 auto 2rem auto;
  overflow: visible;
}

/* Matriz al centro */
.bloque-matriz {
  position: absolute;
  left: 50%;
  top: 75%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 100px;
  background-color: #0d6efd;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

/* Bloques en forma de estadio */
.bloque-pdv {
  position: absolute;
  width: 70px;
  height: 50px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: bold;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease;
  z-index: 1;
}

.bloque-pdv:hover {
  transform: scale(1.1);
}


/* Filas concéntricas */
.fila-estadio {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0;
  transform: scaleX(1.2); /* opcional: para curva suave */
}

.fila-1 {
  z-index: 3;
}
.fila-2 {
  z-index: 2;
  margin-top: -20px;
}
.fila-3 {
  z-index: 1;
  margin-top: -20px;
}

.legend-box {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 4px;
  vertical-align: middle;
}

.bloque-deshabilitado {
  opacity: 0.4;
  background-color: #adb5bd !important; /* gris opaco */
  color: #333;
}
.bloque-deshabilitado i {
  margin-right: 4px;
  color: #333;
  font-size: 1.2rem;
  vertical-align: middle;
  transition: all 0.3s ease-in-out;
  transform: scale(1.2);    
}

/* ------------------------ BLOQUES AGRUPADOS POR ZONA ------------------------ */
.bloque-zona {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 12px;
  padding: 12px;
  width: 140px;
  min-height: 110px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #fff;
  font-weight: bold;
  font-size: 0.95rem;
  text-align: center;
  transition: transform 0.3s ease-in-out;
  z-index: 2;
}
.bloque-zona:hover {
  transform: scale(1.04);
}

.bloque-zona .zona-label {
  margin-bottom: 8px;
  font-size: 1.2rem;
}


.bloque-zona .contenedor-pdvs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.bloque-zona .mini-pdv {
  background-color: rgba(255, 255, 255, 0.85);
  color: #000;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 36px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.bloque-zona .mini-pdv:hover {
  background-color: #fff;
  transform: scale(1.08);
}

.bloque-zona .mini-pdv.deshabilitado {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.5;
}

.bloque-zona .mini-pdv.deshabilitado i {
  margin-right: 4px;
  color: #444;
}

.estadio-anillos {
  position: relative;
  width: 100%;
  height: 80vh;
  max-width: 1000px;
  margin: auto;
  padding: 2rem 0;
}
/* Responsivo para bloques agrupados */
@media (max-width: 768px) {
  .bloque-zona {
    width: 110px;
    padding: 10px;
  }
  .bloque-zona .zona-label {
    font-size: 1rem;
  }
  .bloque-zona .mini-pdv {
    min-width: 30px;
    font-size: 0.6rem;
  }
}

.estadio-circular {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto 2rem auto;
  position: relative;
  padding-top: 100px;
}

.fila-circular {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem; /* separación entre gradas */
  position: relative;
  z-index: 1;
}

.fila-circular.fila-1 { z-index: 3; }
.fila-circular.fila-2 { z-index: 2; }
.fila-circular.fila-3 { z-index: 1; }

.bloque-zona {
  position: relative; /* ya no absoluto */
  width: 180px;
  min-height: 160px;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  color: white;
  text-align: center;
  transition: transform 0.3s ease-in-out;
}

.bloque-zona .zona-letra {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
}

.bloque-zona h5 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
}

.sub-pdv {
  background: #f1f1f1;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.8rem;
  margin: 4px;
  display: inline-block;
  color: #333;
  font-weight: 600;
}

.fila-inferior-especial {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.bloque-matriz-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 1rem;
  background: transparent;
  box-shadow: none;
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
}

.bloque-matriz-wrapper:hover {
  transform: scale(1.05);
}

.img-matriz {
  width: 220px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}


#estadio {
  margin-bottom: 5rem;
  position: relative; /* importante que no sea absolute ni fixed */
  z-index: 1;
}

.fila-inferior-especial {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  margin-bottom: 3rem; /* espacio real debajo de A/Matriz/B */
}

.bloque-matriz-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 1rem;
  background: transparent;
  box-shadow: none;
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
  z-index: 0; /* que no monte encima de otros elementos */
}

.img-matriz {
  width: 220px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}
