/* ============================================================
   🌐 BarrePulse - RESERVAS
   CSS Optimizado (solo tapete nuevo + calendario actual)
   ============================================================ */

/* ============================================================
   🔹 CALENDARIO
   ============================================================ */
.calendario-wrapper {
  background: #ECE6DF;
  padding: 50px 20px;
  text-align: center;
  margin-bottom: 40px;
}

.titulo-agenda {
  font-size: 32px;
  margin-bottom: 15px;
  color: #2A5287;
}

.semana-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.nav-btn {
  padding: 8px 14px;
  background: #2A5287;
  border: none;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}

.calendario-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.columna-dia {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  min-height: 150px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nombre-dia {
  font-weight: bold;
  margin-bottom: 10px;
  color: #2A5287;
}

.card-clase {
  background: #F7F7F7;
  border: 1px solid #DDD;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  text-align: left;
}

.card-clase h4 {
  margin: 0;
  color: #333;
  font-size: 15px;
}

.card-clase p {
  margin: 3px 0;
  color: #666;
  font-size: 13px;
}

.btn-reservar {
  width: 100%;
  background: #2A5287;
  color: white;
  border: none;
  padding: 8px;
  margin-top: 8px;
  border-radius: 6px;
  cursor: pointer;
}

/* ============================================================
   🔹 TAPETE NUEVO
   ============================================================ */
#tapete-container {
  margin-top: 40px;
  text-align: center;
  margin-bottom: 100px;
}

.tapete-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  justify-content: center;
  padding: 20px 0;
  max-width: 450px;
  margin: 0 auto;
}

.spot-new {
  width: 50px;
  height: 40px;
  background: #d8dfeb;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: 0.2s ease;
}

.spot-new:hover {
  background: #b3c4dd;
}

.spot-new.selected {
  background: #4CAF50 !important;
  box-shadow: 0 0 8px rgba(0, 150, 0, 0.6);
}

.spot-new.occupied {
  background: #777 !important;
  cursor: not-allowed;
  opacity: 0.6;
}

/* ============================================================
   🔹 MENSAJES
   ============================================================ */
.selection-message {
  text-align: center;
  font-size: 15px;
  margin-top: 15px;
  color: #2A5287;
}

/* ============================================================
   🔹 BOTONES
   ============================================================ */
.actions-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.action-button,
.clase-btn,
.day-btn {
  background-color: #2A5287;
  color: #ECE6DF;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: 30px;
  padding: 12px 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.action-button:hover,
.clase-btn:hover,
.day-btn:hover {
  background-color: #92B1E7;
  color: #2A5287;
  transform: scale(1.05);
}

.clase-btn.selected {
  background-color: #4CAF50;
  color: white;
  transform: scale(1.08);
  box-shadow: 0 0 10px rgba(76,175,80,0.4);
}



/* ============================================================
   🔹 FORMULARIO (por si lo reactivamos)
   ============================================================ */
.form-container {
  background: #ECE6DF;
  padding: 25px;
  border-radius: 16px;
  max-width: 400px;
  margin: 30px auto;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.form-container input {
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
}

.form-container button {
  margin-top: 15px;
}

/* ============================================================
   🔹 RESPONSIVO
   ============================================================ */
@media (max-width: 768px) {
  .calendario-grid {
    grid-template-columns: 1fr;
  }

  .tapete-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .spot-new {
    width: 46px;
    height: 26px;
  }
}

@media (max-width: 400px) {
  .tapete-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .spot-new {
    width: 42px;
    height: 24px;
  }
}

.spot.ocupado {
    background: #999 !important;
    cursor: not-allowed;
}

/* =============================== */
/* Barra de capacidad (ocupación) */
/* =============================== */

.barra-capacidad {
    width: 100%;
    background: #e3e3e3;
    height: 8px;
    border-radius: 6px;
    margin: 6px 0 12px 0;
    overflow: hidden;
}

.barra-capacidad-fill {
    height: 100%;
    width: 0%;
    background: #2A5287;
    transition: width 0.4s ease;
}

/* =============================== */
/* Animación “últimos lugares 🔥” */
/* =============================== */

.alerta-ultimos {
    animation: pulse-ultimos 1.1s infinite;
}

@keyframes pulse-ultimos {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.65; }
    100% { transform: scale(1); opacity: 1; }
}


