@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&family=Inter:wght@300;400;600&family=Poppins:wght@600&display=swap');

:root {
  /* MARCA */
  --color-principal: #f2b705;   /* amarillo hamburguesa */
  --color-secundario: #ffd23f;  /* amarillo brillante */
  --color-acento: #ff8c00;      /* acento cálido */

  /* BASE */
  --color-fondo: #0d0d0d;   /* negro profundo */
  --color-card: #1a1a1a;    /* negro suave */
  --color-borde: #2a2a2a;

  /* TEXTO */
  --color-texto: #ffffff;
  --color-texto-secundario: #bfbfbf;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-fondo);
  color: #f1f1f1;
  font-family: 'Inter', sans-serif;
  padding-bottom: 80px; /* Espacio para el carrito flotante */
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* =====================
    NAV CATEGORIAS - VERTICAL
===================== */
.categorias-nav {
  display: flex;
  flex-direction: column; /* FORZAR VERTICAL */
  gap: 8px;
  margin: 20px 0;
  padding: 15px;
  background: var(--color-card);
  border: 1px solid var(--color-borde);
  border-radius: 16px;
  position: sticky;
  top: 10px;
  z-index: 100;
  max-height: 80vh; /* Para que no ocupe toda la pantalla si hay muchas */
  overflow-y: auto;
}

.categorias-nav::-webkit-scrollbar { width: 5px; }
.categorias-nav::-webkit-scrollbar-thumb { background: var(--color-borde); border-radius: 5px; }

.categorias-nav button {
  width: 100%; /* Ocupar todo el ancho */
  text-align: left; /* Alinear texto a la izquierda */
  background: transparent;
  border: 1px solid transparent;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.categorias-nav button:hover { background: rgba(255,255,255,0.05); }

.categorias-nav button.activo {
  background: var(--color-principal);
  color: #000;
  font-weight: 700;
  border-color: var(--color-principal);
}

/* =====================
    GRID PRODUCTOS
===================== */
.grid-productos {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columnas en móvil */
  gap: 14px;
}

@media (min-width: 768px) {
  .grid-productos { grid-template-columns: repeat(3, 1fr); }
}

.card-producto {
  background: var(--color-card);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--color-borde);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.card-producto:active { transform: scale(0.96); }
.card-producto:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.3); }

/* Contenedor de Imagen o 'Sin Foto' */
.contenedor-media {
  width: 100%;
  height: 130px; /* Altura fija */
  overflow: hidden;
  background: #222; /* Fondo para cuando no hay foto */
  position: relative;
}

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

/* Estilo para productos SIN FOTO */
.sin-foto {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sin-foto::after {
  content: '🍔'; /* Icono por defecto */
  font-size: 2.5rem;
  opacity: 0.2;
}

.card-producto .info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.card-producto .nombre { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.card-producto .precio { color: var(--color-secundario); font-weight: bold; font-size: 1.1rem; }

/* =====================
    CARRITO FLOTANTE
===================== */
.btn-carrito-flotante {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--color-principal);
    color: #000;
    border: none;
    padding: 15px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    z-index: 9999;
    display: none; /* Se activa por JS */
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

#carrito-count {
    background: #000;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.85rem;
    min-width: 20px;
    text-align: center;
}

/* PANEL DEL CARRITO */
.carrito-panel {
  position: fixed;
  bottom: 0; right: 0;
  width: 100%; max-width: 450px;
  height: 80vh;
  background: #fff;
  z-index: 20000;
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
  color: #000;
}

.carrito-panel.activo { transform: translateY(0); }

.carrito-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.carrito-body { flex: 1; overflow-y: auto; padding: 20px; }

.carrito-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f5f5f5;
}

/* =====================
    MODALES
===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 50000;
}

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

.modal-box {
  background: #fff;
  color: #000;
  width: 92%;
  max-width: 450px;
  border-radius: 20px;
  padding: 20px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

/* SELECTOR DE CANTIDAD */
.selector-cantidad-modal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 0;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 12px;
}

.controles-cantidad { display: flex; align-items: center; gap: 15px; }

.controles-cantidad button {
  width: 35px; height: 35px;
  border-radius: 50%;
  border: none;
  background: #ddd;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
}

.controles-cantidad input {
  width: 30px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  font-weight: 700;
}

/* ACOMPAÑAMIENTOS */
.item-acomp {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #f9f9f9;
  margin-bottom: 6px;
  border-radius: 8px;
  cursor: pointer;
}

.item-acomp input[type="radio"] {
  width: 18px; height: 18px;
  accent-color: var(--color-principal);
}

/* PORTADA */
.portada {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 0 0 20px 20px;
  position: relative;
}

.portada-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.2);
}

.portada-logo {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 3px solid var(--color-principal);
  background: #fff;
  object-fit: contain;
}

/* BANNERS DE CATEGORÍA */
/* Estilo para el banner que sale arriba de cada grupo/categoría */
.banner-categoria-grupo {
    width: 100%;
    height: 140px; /* Ajusta la altura a tu gusto */
    margin-bottom: 15px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--color-borde);
}

.banner-categoria-grupo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.titulo-categoria {
    margin: 10px 0 20px 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    color: var(--color-principal);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* FOOTER */
.footer-menwapp{
  margin-top:60px;
  padding:35px 20px;
  text-align:center;
  background:#0d1b2a; /* azul oscuro elegante */
  border-top:3px solid #1e90ff; /* línea azul viva */
  font-family:'Poppins',sans-serif;
}

/* LOGO */
.footer-menwapp .logo{
  font-size:1.2rem;
  font-weight:700;
  color:#ffffff;
  letter-spacing:0.5px;
}

.footer-menwapp .logo span{
  color:#1e90ff; /* azul marca ASCOMP */
}

/* TEXTO */
.footer-menwapp .descripcion{
  margin-top:8px;
  font-size:0.9rem;
  color:#cfd8dc;
}

/* SOPORTE */
.footer-menwapp .soporte{
  margin-top:15px;
}

/* BOTÓN WHATSAPP */
.footer-menwapp .btn-whatsapp-footer{
  display:inline-block;
  margin-top:8px;
  padding:10px 18px;
  background:#25D366;
  color:white;
  border-radius:25px;
  text-decoration:none;
  font-size:0.9rem;
  font-weight:600;
  transition:0.2s;
}

.footer-menwapp .btn-whatsapp-footer:hover{
  transform:scale(1.05);
}

/* COPYRIGHT */
.footer-menwapp .copyright{
  margin-top:20px;
  font-size:0.8rem;
  color:#90a4ae;
}




/* UTILIDADES */
.btn-cerrar-modal {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0,0,0,0.1);
  border: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.btn-agregar-modal {
  width: 100%;
  padding: 14px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
}

.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  display: none;
  z-index: 60000;
  font-size: 0.85rem;
}
.toast.show { display: block; }



    PORTADA Y DATOS (DISEÑO PREMIUM)
===================== */

.seccion-portada {
    background: var(--color-card);
    border-bottom: 1px solid var(--color-borde);
    position: relative;
}

/* Banner Principal */
.banner-principal {
    width: 100%;
    height: 180px; 
    background-size: cover;
    background-position: center;
    background-color: #222; /* Fondo de carga */
}

@media (min-width: 768px) {
    .banner-principal { height: 260px; }
}

/* Barra de Info */
.portada-info-bar {
    display: flex;
    align-items: flex-end; /* Alinea los botones al fondo mientras el logo sube */
    justify-content: space-between;
    padding: 0 20px 15px 20px; /* Quitamos padding superior para que el logo mande */
    gap: 15px;
    position: relative;
}

/* =====================
    LOGO FLOTANTE MEJORADO
===================== */

.logo-restaurante {
    /* TAMAÑO MÁS GRANDE */
    width: 120px; 
    height: 120px;
    
    border-radius: 50%;
    
    /* BORDE AMARILLO (Recuperado) */
    border: 5px solid var(--color-principal); 
    
    background: #fff;
    object-fit: cover;
    
    /* POSICIONAMIENTO MÁS ABAJO */
    /* Al poner -35px en lugar de -50px, el logo baja más hacia la barra blanca */
    margin-top: -35px; 
    
    z-index: 10;
    box-shadow: 0 6px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .logo-restaurante { 
        width: 170px; 
        height: 170px; 
        margin-top: -50px; /* Ajuste proporcional para PC */
        border-width: 6px;
    }
}

/* Efecto opcional para que se vea interactivo */
.logo-restaurante:hover {
    transform: scale(1.05);
}

/* Ajuste en la barra para dar espacio al logo más grande */
.portada-info-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 20px 20px 20px;
    gap: 15px;
    min-height: 80px; /* Asegura espacio para que los botones no se peguen */
}

/* Contenedor de Botones */
/* Contenedor principal */
.portada-acciones {
    display: flex;
    justify-content: center;
    gap: 10px;          /* Espacio entre botones */
    padding: 15px;
    width: 100%;
    max-width: 500px;   /* Ajusta según tu diseño */
    margin: 0 auto;
}

/* Estilo único para los 3 botones */
.btn-accion-portada {
    flex: 1;            /* Hace que todos midan lo mismo */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    
    background: #222;    /* Fondo oscuro para resaltar */
    color: white;
    border: 1px solid var(--color-principal); /* Borde con tu color de marca */
    padding: 10px 5px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap; /* Evita que el texto se rompa en dos líneas */
}

/* Efecto al pasar el mouse o tocar */
.btn-accion-portada:hover {
    background: var(--color-principal);
    color: #000;
}

@media (max-width: 500px) {
    .portada-info-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .portada-acciones {
        justify-content: center;
        width: 100%;
        padding-bottom: 5px;
    }
    .logo-restaurante {
        margin-top: -45px; /* Mantiene el efecto en móvil */
        margin-bottom: 5px;
    }
}
img {
    transition: opacity 0.3s ease-in-out;
    background: #222; /* Color de fondo mientras carga */
}

img:not([src]) {
    visibility: hidden;
}

.contenedor-img {
    position: relative; /* Para que la estrella flote sobre la imagen */
}

.badge-estrella {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(242, 183, 5, 0.9); /* Tu color amarillo/dorado */
    color: #000;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    pointer-events: none; /* Que no interfiera con el click */
}