* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background-color: #f9fafb;
  color: #1f2937;
}

/* Header */
header {
  background-color: rgb(54, 54, 54);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
 width: 48px;
 height: 48px;
 
 /* ➡️ CÓDIGO SUSTITUTO CON RUTA RELATIVA */
 background-image: url('Logo.jpg'); 
 background-size: contain; 
 background-position: center; 
 background-repeat: no-repeat;
 
 border-radius: 50%;
}

.logo-text {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
}

.menu-btn {
  background-color: #1f2937;
  color: white;
  border: none;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-dropdown {
  background-color: #1f2937;
  color: white;
  display: none;
  flex-direction: column;
}

.menu-dropdown.active {
  display: flex;
}

.menu-dropdown button {
  background: none;
  border: none;
  color: white;
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s;
}

.menu-dropdown button:hover {
  background-color: #374151;
}

/* Banner */
.banner {
    /* Mantenemos tus estilos existentes (padding, box-shadow, etc.) */
    
    /* 🛑 Añadimos altura mínima y lógica de imagen */
    height: 120px; 
    color: rgb(255, 255, 255); /* Para que el texto de bienvenida sea visible */
    
    /* ➡️ CÓDIGO SUSTITUTO PARA USAR LA IMAGEN COMO FONDO */
    background-image: url('Banner.webp'); /* ⬅️ Sustituye por tu ruta real */
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    
    /* Aseguramos que el texto esté centrado */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7); /* Para mejorar la legibilidad del texto */
}

/* Contenedor principal */
.main-container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Grid container - 4 columnas en desktop, 2 en móvil */
.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

/* Botones del grid */
.grid-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px;
  transition: transform 0.2s ease;
}

.grid-btn:hover {
  transform: scale(1.05);
}

.grid-btn:active {
  transform: scale(0.98);
}

/* Imágenes cuadradas */
.grid-image {
  width: 150px;
  height: 150px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}

.grid-btn:hover .grid-image {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Imágenes específicas para cada botón */
.grid-image-comida {
  background-image: url('https://res.cloudinary.com/dlemdcb2f/image/upload/v1765313917/AnyConv.com__IMG_2929_f6xajl.webp');
}

.grid-image-bebidas {
  background-image: url('https://res.cloudinary.com/dlemdcb2f/image/upload/v1765313912/IMG_2896_agugjl.webp');
}

.grid-image-productos {
  background-image: url('https://res.cloudinary.com/dlemdcb2f/image/upload/v1765313918/IMG_2893_11zon_s8cpvu.webp');
}

.grid-image-info {
  background-image: url('https://res.cloudinary.com/dlemdcb2f/image/upload/v1765556033/IMG_2963_cm2xn5.webp');
}

/* Texto debajo de las imágenes */
.grid-btn > div:last-child {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  text-align: center;
}

/* Banner */
.banner {
  padding: 20px;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
}

.banner-principal {
  background-color: #f0f0f0;
  color: #333;
}

/* Responsive - 2 columnas en móvil */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .grid-image {
    width: 120px;
    height: 120px;
  }
  
  .grid-btn > div:last-child {
    font-size: 14px;
  }
  
  .banner {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .main-container {
    padding: 15px;
  }
  
  .grid-container {
    gap: 12px;
  }
  
  .grid-image {
    width: 100px;
    height: 100px;
  }
}

/* Secciones */
.section {
  display: none;
}

.section.active {
  display: block;
}

h2 {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 24px;
  color: #1f2937;
}

/* Paquetes */
.paquetes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.paquete-btn {
  padding: 24px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: box-shadow 0.2s;
}

.paquete-btn:hover {
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.paquete-nombre {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #1f2937;
}

.paquete-precio {
  font-size: 28px;
  color: #ef4444;
  font-weight: bold;
}

/* Productos Grid */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.producto-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 16px;
}

.producto-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.producto-nombre {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 8px;
  color: #1f2937;
}

.producto-precio {
  color: #ef4444;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 4px;
}

.producto-disponibilidad {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 12px;
}

.btn-agregar {
  width: 100%;
  background-color: #ef4444;
  color: white;
  padding: 8px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s;
}

.btn-agregar:hover {
  background-color: #dc2626;
}

/* Carrito Inferior */
.carrito-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -1px 3px rgba(0,0,0,0.1);
  z-index: 30;
}

.carrito-btn {
  width: 100%;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.carrito-btn:hover {
  background-color: #f3f4f6;
}

.carrito-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carrito-total {
  font-size: 20px;
  font-weight: bold;
  color: #1f2937;
}

.carrito-contenido {
  display: none;
  border-top: 1px solid #e5e7eb;
  padding: 16px;
  max-height: 240px;
  overflow-y: auto;
  background-color: white;
}

.carrito-contenido.active {
  display: block;
}

.carrito-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 8px;
  background-color: #f3f4f6;
  border-radius: 8px;
}

.item-info {
  flex: 1;
}

.item-nombre {
  font-weight: 600;
  margin: 0;
  color: #1f2937;
}

.item-precio {
  color: #6b7280;
  font-size: 14px;
  margin: 2px 0 0 0;
}

.btn-eliminar {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  transition: color 0.2s;
  margin-left: 8px;
}

.btn-eliminar:hover {
  color: #dc2626;
}

.carrito-acciones {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.btn-entrega {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: white;
  transition: opacity 0.2s;
}

.btn-recoger {
  background-color: #22c55e;
}

.btn-recoger:hover {
  opacity: 0.9;
}

.btn-domicilio {
  background-color: #3b82f6;
}

.btn-domicilio:hover {
  opacity: 0.9;
}

/* Modales */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 50;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background-color: white;
  border-radius: 8px;
  max-width: 448px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content {
  padding: 24px;
}

.modal-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 16px;
  color: #1f2937;
}

.modal-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 16px;
  color: #1f2937;
}

.modal-input::placeholder {
  color: #9ca3af;
}

.guisado-opcion {
  width: 100%;
  text-align: left;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 8px;
  background: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.guisado-opcion:hover {
  background-color: #f3f4f6;
}

.guisado-nombre {
  font-weight: 600;
  margin-bottom: 4px;
  color: #1f2937;
}

.guisado-img {
  width: 100%;
  height: 128px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 8px;
}

.btn-modal {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
  transition: opacity 0.2s;
}

.btn-confirmar {
  background-color: #22c55e;
}

.btn-confirmar:hover {
  opacity: 0.9;
}

.btn-cancelar {
  background-color: #d1d5db;
  color: #1f2937;
}

.btn-cancelar:hover {
  opacity: 0.9;
}

.btn-ubicacion {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  margin-bottom: 12px;
  background: none;
  cursor: pointer;
  transition: background-color 0.2s;
  color: #1f2937;
  font-size: 16px;
}

.btn-ubicacion:hover {
  background-color: #f3f4f6;
}

.costo-envio {
  padding: 12px;
  background-color: #dbeafe;
  border-radius: 8px;
  margin-bottom: 12px;
  color: #1f2937;
}

.costo-envio-titulo {
  font-weight: 600;
  margin-bottom: 4px;
}

.costo-envio-total {
  font-size: 14px;
  color: #6b7280;
}

/* Pantalla Éxito */
.pantalla-exito {
  display: none;
  position: fixed;
  inset: 0;
  background-color: #22c55e;
  z-index: 50;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  text-align: center;
}

.pantalla-exito.active {
  display: flex;
}

.pantalla-exito h1 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 16px;
}

.pantalla-exito p {
  font-size: 20px;
}

/* Espaciador */
.spacer {
  height: 80px;
}



/* Estilos básicos para la sección de información */
.info-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.info-banner {
    width: 100%; /* Ocupa todo el ancho */
    height: auto;
    max-height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.info-text {
    font-size: 1.1em;
    line-height: 1.4;
    text-align: center;
}

.info-horario {
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
}

.info-ubicacion, .info-contacto {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.info-ubicacion .btn-mapa {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.contacto-whatsapp {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-whatsapp {
    background-color: #25D366; /* Verde WhatsApp */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.btn-volver {
    margin-top: 20px;
    width: 100%;
    padding: 10px;
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
}

