/* =========================
   ESTILOS GENERALES
========================= */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: url('IMAGENES/LOGO_DEFINITIVO.jpg') no-repeat center center fixed;
  background-size: cover;
  color: white;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  gap: 20px;
  padding: 20px;
  box-sizing: border-box;
}

.logo img {
  width: 320px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 10px;
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 80%;
  max-width: 350px;
}

.btn {
  background: #1e1e1e;
  border: none;
  color: #fff;
  padding: 15px;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background: #cfa731;
}

.social {
  margin-top: 30px;
}

.social p {
  font-weight: bold;
  margin-bottom: 10px;
}

.icons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.icons img {
  width: 30px;
  filter: invert(1);
}

/* =========================
   PANEL DE MENÚ
========================= */
.menu-panel {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: url('IMAGENES/FONDO_PAGINA.jpg') no-repeat center center fixed;
  background-size: cover;
  background-color: rgba(20, 20, 20, 0.85);
  z-index: 999;
  opacity: 0;
  transform: translateX(-100%);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

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

.menu-container {
  display: flex;
  width: 90%;
  max-width: 1200px;
  height: 85%;
  background: #141414;
  border-radius: 16px;
  overflow: hidden;
}

/* =========================
   SIDEBAR
========================= */
.sidebar {
  position: relative;
  width: 25%;
  padding: 20px;
  overflow-y: auto;
  background: url("IMAGENES/slider_hover.jpg") center / cover no-repeat;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 0;
}

.sidebar * {
  position: relative;
  z-index: 1;
}

.sidebar h3 {
  text-align: center;
  margin-bottom: 20px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

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

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

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

.item {
  background: #222;
  border-radius: 12px;
  padding: 10px;
  transition: transform 0.2s ease;
  overflow: hidden;
}

.item:hover {
  transform: scale(1.03);
}

.item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

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

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

.ver-btn {
  margin-top: 5px;
  background: #e74c3c;
  border: none;
  padding: 6px 12px;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}

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

.close-btn {
  position: absolute;
  top: 25px;
  left: 25px;
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
}

/* =========================
   MODAL PRODUCTO
========================= */
.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 {
  background: #111;
  padding: 20px;
  max-width: 500px;
  width: 90%;
  border-radius: 16px;
  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: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

#categoryTitle {
  display: none;
}

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

  /* BLOQUEA SCROLL EN EL INICIO */
  body {
    height: 100vh;
    overflow: hidden;
  }

  /* El contenedor principal ocupa toda la pantalla */
  .container {
    height: 100vh;
    overflow: hidden;
  }

  /* ================= MENU ================= */

  .menu-container {
    flex-direction: row;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  /* Sidebar a la izquierda */
  .sidebar {
    width: 35%;
    min-width: 35%;
    padding: 10px;
    overflow-y: auto; /* scroll SOLO aquí */
  }

  .sidebar h3 {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  .sidebar ul {
    display: block;
  }

  .sidebar li {
    font-size: 0.85rem;
    padding: 10px;
  }

  /* Contenido con scroll */
  .menu-content {
    padding: 12px;
    overflow-y: auto; /* scroll SOLO aquí */
  }

  /* Cards */
  .items {
    grid-template-columns: 1fr;
  }

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

  /* Botón cerrar */
  .close-btn {
    position: fixed;
    bottom: 15px;
    left: 15px;
    top: auto;          /* importante */
    z-index: 3000;
    background: rgba(0,0,0,0.7);
    padding: 8px 16px;
  }

}
