/* ==========================
   ESTILOS PRINCIPALES
   ========================== */
.reservas {
  font-family: 'Montserrat', sans-serif;
  background-color: #fffdfb;
  color: #1a1a1a;
  padding: 4rem 2rem;
}

/* ==========================
   CABECERA
   ========================== */
.reservas-header {
  text-align: center;
  margin-bottom: 3rem;
}

.reservas-header h1 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.reservas-header p {
  font-size: 1.2rem;
  color: #555;
  max-width: 60ch;
  margin: 0 auto;
}

/* ==========================
   CALENDARIO
   ========================== */
.calendario-tira {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.dias-scroll {
  display: flex;
  overflow-x: auto;
  gap: 0.5rem;
  scroll-snap-type: x mandatory;
}

.dia {
  flex: 0 0 auto;
  padding: 0.8rem 1.2rem;
  background-color: #f4f5f0;
  border-radius: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  scroll-snap-align: center;
}

.dia:hover {
  background-color: #008c45;
  color: #fff;
}

.dia.activo {
  background-color: #cd212a;
  color: #fff;
}

.flecha-izq,
.flecha-der {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #333;
}

.selector-horas {
  text-align: center;
  margin-bottom: 1.5rem;
}

.selector-horas label {
  font-size: 1.1rem;
  margin-right: 0.5rem;
}

.selector-horas select {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 1.5rem;
  border: 1px solid #ccc;
  background-color: #fff;
}

.selector-personas {
  text-align: center;
  margin-bottom: 3rem;
}

.selector-personas label {
  font-size: 1.1rem;
  margin-right: 0.5rem;
}

.selector-personas select {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 1.5rem;
  border: 1px solid #ccc;
  background-color: #fff;
}
/* ==========================
   PLANO DEL RESTAURANTE
   ========================== */
.reservas-mapa {
  text-align: center;
  margin-bottom: 4rem;
}

.reservas-mapa h2 {
  font-size: 1.6rem;
  margin-bottom: 2rem;
}

.mapa {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
  justify-items: center;
}

.mesa {
  width: 100%;
  padding: 1rem 0;
  text-align: center;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.mesa:hover {
  transform: scale(1.05);
}

.libre {
  background-color: #e6f9f0;
  color: #008c45;
  border: 1px solid #b2e2c3;
}

.reservada {
  background-color: #fff5da;
  color: #d29600;
  border: 1px solid #f7d283;
}

.ocupada {
  background-color: #fbe6e6;
  color: #cd212a;
  border: 1px solid #f0a0a0;
  cursor: not-allowed;
}

.leyenda {
  grid-column: 1 / -1;
  margin-top: 2rem;
  font-size: 0.95rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.leyenda span {
  padding: 0.4rem 1rem;
  border-radius: 1rem;
  font-weight: 500;
  white-space: nowrap;
}

.leyenda .libre {
  background: #e6f9f0;
  color: #008c45;
}
.leyenda .reservada {
  background: #fff5da;
  color: #d29600;
}
.leyenda .ocupada {
  background: #fbe6e6;
  color: #cd212a;
}

/* ==========================
   BOTÓN RESERVA
   ========================== */
.reservas-boton {
  text-align: center;
  margin-top: 2rem;
}

.btn-reservar {
  background-color: #cd212a;
  color: #fff;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: 2rem;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-reservar:hover {
  background-color: #a2181f;
}

/* ==========================
   RESPONSIVE
   ========================== */
@media (max-width: 768px) {
  .mapa {
    grid-template-columns: repeat(3, 1fr);
  }

  .dias-scroll {
    gap: 0.25rem;
  }

  .dia {
    padding: 0.6rem 1rem;
  }
}

.mensaje-reserva {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.mensaje-reserva h2 {
  font-size: 2.5rem;
  color: #008C45;
  margin-bottom: 1rem;
}

.mensaje-reserva p {
  font-size: 1.2rem;
  margin: 0.8rem 0;
}

