/* =========================
   RESET + BASE
========================= */
html, body {
  margin: 0;
  padding: 0;
}

/* =========================
   PANEL (RESERVA)
========================= */
.reserva-panel {
  position: fixed;
  inset: 0;

  display: none;
  justify-content: center;
  align-items: center;

  background-image: url("../IMAGENES/logoclarocom.jpg");
  background-size: cover;
  background-position: center;

  z-index: 999;
  opacity: 0;
  transform: translateX(-100%);
  transition: all 0.4s ease;
}

.reserva-panel.show {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}

/* =========================
   CONTENEDOR
========================= */
.reserva-container {
  display: flex;
  width: 90%;
  max-width: 1200px;
  height: 85%;

  background: url("../IMAGENES/cont.jpg") center / cover no-repeat;

  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

/* overlay oscuro */
.reserva-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 0;
}

.reserva-container > * {
  position: relative;
  z-index: 1;
}

/* =========================
   SIDEBAR
========================= */
.reserva-sidebar {
  width: 25%;
  padding: 20px;
  overflow-y: auto;

  background: url("../IMAGENES/sliderofi.jpg") no-repeat center center;
  background-size: cover;
}

.reserva-sidebar h3 {
  position: sticky;
  top: 10px;

  margin: 0 10px 15px;
  padding: 12px;

  text-align: center;
  font-size: 1rem;
  background: #c0392b;
  border-radius: 14px;
}

/* lista */
.reserva-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.reserva-sidebar li {
  padding: 12px;
  margin: 0 10px;
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
}

.reserva-sidebar li.active,
.reserva-sidebar li:hover {
  background: #c07f2bde;
}

/* =========================
   CONTENIDO
========================= */
.reserva-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

/* =========================
   GRID ITEMS
========================= */
.reserva-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

/* =========================
   ITEM
========================= */
.item {
  background: #222;
  border-radius: 12px;
  padding: 10px;
}

.item-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-img {
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.25);
}

.item-content h4 {
  margin: 10px 0 5px;
}

.price {
  color: #f39c12;
  font-weight: bold;
}

/* =========================
   BOTONES ITEM
========================= */
.item-buttons {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.ver-btn,
.reservar-btn {

  flex: 1;

  border: none;

  padding: 10px;

  border-radius: 10px;

  cursor: pointer;

  font-weight: bold;

  transition: 0.3s;
}

.ver-btn {
  background: #e74c3c;
  color: white;
}

.ver-btn:hover {
  background: #c0392b;
}

.reservar-btn {
  background: #25D366;
  color: white;
}

.reservar-btn:hover {
  background: #1ea952;
}

/* =========================
   BOTÓN CERRAR
========================= */
.reserva-close-btn {
  position: absolute;
  top: 25px;
  left: 25px;
  background: black;
  border: 2px solid white;
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
}

/* =========================
   MODAL
========================= */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  transform: scale(0.95);
  transition: 0.3s;
  z-index: 2000;
}

.modal.show {
  opacity: 1;
  transform: scale(1);
}

.modal-content {
  position: relative;
  background: #111;
  padding: 20px;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
}

.modal-content img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
}

.close-modal {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: white;
  cursor: pointer;
}

/* =========================
   BOTÓN FLOTANTE CARRITO
========================= */
#carritoBtn {

  position: fixed;

  right: 20px;
  bottom: 20px;

  background: #25D366;

  color: white;

  border: none;

  padding: 14px 18px;

  border-radius: 50px;

  font-weight: bold;

  cursor: pointer;

  z-index: 999999;

  box-shadow: 0 8px 20px rgba(0,0,0,0.3);

  display: none;
}

/* =========================
   PANEL CARRITO
========================= */
#pedidoPanel {

  position: fixed;

  top: 50%;
  right: 20px;

  transform: translateY(-50%);

  width: 340px;
  max-height: 85vh;

  overflow-y: auto;

  background: #111;

  border-radius: 18px;

  padding: 20px;

  z-index: 999999;

  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* =========================
   HEADER CARRITO
========================= */
.pedido-header {

  display: flex;

  align-items: center;
  justify-content: space-between;

  margin-bottom: 15px;
}

.pedido-header h3 {
  margin: 0;
}

/* =========================
   BOTÓN MINIMIZAR
========================= */
#minimizarCarrito {

  background: white;

  border: none;

  color: black;

  width: 38px;
  height: 38px;

  border-radius: 10px;

  cursor: pointer;

  font-size: 1rem;

  font-weight: bold;

  transition: 0.3s;
}

#minimizarCarrito:hover {

  background: #e5e5e5;

}

/* =========================
   ITEMS PEDIDO
========================= */
.pedido-item {

  background: rgba(255,255,255,0.06);

  padding: 10px 12px;

  border-radius: 10px;

  margin-bottom: 10px;
}

/* =========================
   FORMULARIO
========================= */
.cliente-form {

  display: flex;
  flex-direction: column;

  gap: 10px;

  margin-top: 15px;
}

.cliente-form input,
.cliente-form textarea {

  width: 100%;

  padding: 12px;

  border-radius: 10px;

  border: none;

  background: #222;

  color: white;

  box-sizing: border-box;

  font-size: 16px;
}

.cliente-form textarea {

  min-height: 90px;

  resize: vertical;
}

/* =========================
   BOTÓN WHATSAPP
========================= */
#enviarWhatsapp {

  width: 100%;

  margin-top: 15px;

  background: #25D366;

  color: white;

  border: none;

  padding: 14px;

  border-radius: 12px;

  font-weight: bold;

  cursor: pointer;
}

/* =========================
   RESPONSIVE MÓVIL
========================= */
@media (max-width: 768px) {

  .reserva-panel {
    background-image: url("../IMAGENES/fondopagcelcom.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .reserva-container {
    background-image: url("../IMAGENES/contenedorcel.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .reserva-sidebar {
    background-image: url("../IMAGENES/slidercel.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .reserva-sidebar {
    width: 34%;
    min-width: 34%;
    padding: 10px;
  }

  .reserva-content {
    width: 66%;
    padding: 12px;
  }

  .reserva-items {
    grid-template-columns: 1fr;
  }

  .reserva-sidebar h3,
  .reserva-sidebar li {
    margin: 0 8px 12px;
    width: calc(100% - 16px);
    box-sizing: border-box;
    border-radius: 14px;
    text-align: center;
  }

  .reserva-sidebar h3 {
    padding: 10px 8px;

    position: sticky;
    top: 8px;
    z-index: 20;

    font-size: 0.85rem;
    line-height: 1.1;

    white-space: normal;

    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
  }

  .reserva-sidebar li {
    padding: 10px 8px;
    font-size: 0.82rem;
    line-height: 1.05;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  .reserva-sidebar li.active {
    font-weight: 600;
  }

  .reserva-close-btn {

    position: absolute;

    bottom: 15px;
    left: 15px;

    top: auto;

    background: rgba(0,0,0,0.7);

    padding: 12px 16px;

    z-index: 9999;

    border-radius: 50px;
  }

  /* carrito móvil */
  #pedidoPanel {

    top: auto;
    right: 10px;
    left: 10px;
    bottom: 10px;

    transform: none;

    width: auto;

    max-height: 70vh;
  }

  #carritoBtn {

    right: 15px;
    bottom: 15px;

    width: auto;

    padding: 12px 16px;

    border-radius: 50px;
  }

}

/* ocultar título */
#reservaCategoryTitle {
  display: none !important;
}