/* =========================================================
   CARTA COMPLETA - ESTILOS BASE Y MÓVIL
   ========================================================= */
:root {
    --bg-carta-completa: #000000;
    --f-tit: 'Montserrat', sans-serif;
    --f-desc: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-carta-completa);
    margin: 0;
    color: white;
    height: 100vh;
    height: 100dvh;
    overflow: hidden; 
    display: flex;
    flex-direction: column; 
    font-family: var(--f-desc);
}

/* --- CABECERA --- */
.carta-header { display: flex; justify-content: space-between; align-items: center; width: 90%; margin: 0 auto; padding: 20px 0; flex-shrink: 0; z-index: 100;}
.logo-img { height: 40px; max-width: 150px; object-fit: contain; object-position: left center; }
#lang-select { background: rgba(255, 255, 255, 0.15); color: white; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 50px; padding: 6px 16px; font-weight: 600; font-size: 0.85rem; cursor: pointer; outline: none; text-transform: uppercase; -webkit-appearance: none; appearance: none; text-align: center; }
#lang-select option { color: black; background: white; text-transform: none; }

/* --- CONTENEDOR PRINCIPAL --- */
.carta-main { flex-grow: 1; overflow-y: auto; width: 100%; padding-bottom: 20px; scrollbar-width: none; scroll-behavior: smooth; }
.carta-main::-webkit-scrollbar { display: none; } 

/* TÍTULO DE CATEGORÍA (Oculto en móvil) */
.titulo-categoria-seccion {
    display: none; 
    width: 90%;
    margin: 40px auto 25px auto;
    font-family: var(--f-tit);
    font-size: 2.2rem;
    font-weight: 800;
    text-align: left;
}

/* Envoltura Grid base */
.grid-platos { width: 100%; }

/* --- TARJETA DE PLATO --- */
.plato-card { display: flex; align-items: center; gap: 15px; width: 90%; margin: 0 auto 35px auto; }
.plato-img { width: 100px; height: 100px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background-color: #222; cursor: pointer; }
.plato-info { display: flex; flex-direction: column; justify-content: center; width: 100%; text-align: left; cursor: pointer;}
.plato-titulo { font-size: 1.1rem; margin: 0 0 5px 0; line-height: 1.2; font-weight: bold;}
.plato-desc { font-size: 0.85rem; margin: 0 0 8px 0; line-height: 1.4; opacity: 0.9;}
.plato-precio-alergenos { display: flex; align-items: center; gap: 12px; }
.precio { font-size: 1.1rem; }
.contenedor-alergenos { display: flex; gap: 5px; }

img.icono-svg { width: 18px; height: 18px; object-fit: contain; filter: brightness(0) saturate(100%) invert(80%) sepia(42%) saturate(583%) hue-rotate(3deg) brightness(92%) contrast(89%); }

/* --- PIE DE PÁGINA SÓLIDO --- */
.carta-footer { width: 100%; background: #000; flex-shrink: 0; padding-top: 15px; padding-bottom: 20px; z-index: 100;}
.separador-footer { width: 90%; height: 1px; background: rgba(255, 255, 255, 0.3); margin: 0 auto;}
.separador-footer.superior { margin-bottom: 15px; }
.separador-footer.inferior { margin-top: 15px; margin-bottom: 15px; }

.contenedor-categorias-scroll { display: flex; overflow-x: auto; gap: 15px; width: 100%; padding: 0 5%; box-sizing: border-box; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.contenedor-categorias-scroll::-webkit-scrollbar { display: none; }
.cat-item { white-space: nowrap; font-size: 0.9rem; padding: 6px 15px; border-radius: 50px; cursor: pointer; transition: 0.3s; color: rgba(255,255,255,0.7);}
.cat-item.activa { background-color: white; color: black !important; font-weight: bold !important; opacity: 1; }

/* =========================================================
   BOTONES FOOTER (AHORA IGUAL QUE EN CARTA INTERACTIVA)
   ========================================================= */
.botones-accion-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 15px; 
    width: 90%; 
    margin: 0 auto;
}

.btn-accion { 
    text-align: center; 
    font-size: 0.7rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    white-space: nowrap; 
    text-decoration: none !important; 
    transition: 0.3s; 
}

/* Los textos laterales quedan como enlaces puros */
.btn-transparente { 
    background-color: transparent !important; 
    color: #ffffff !important; 
    border: none !important; 
    opacity: 0.8; 
    padding: 10px 0; 
    flex: none; /* Destruye el formato de caja */
}

/* El botón central se ve como una pastilla */
.btn-solido { 
    background-color: #ffffff !important; 
    color: #000000 !important; 
    border: none !important; 
    border-radius: 50px;
    padding: 12px 20px;
    flex: 1; /* Ocupa el espacio central restante */
    max-width: 200px;
}

/* --- LIGHTBOX (CAJA DE LUZ) --- */
.lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 9999; display: none; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.lightbox-content { max-width: 95%; max-height: 90%; position: relative; display: flex; flex-direction: column; align-items: center;}
#lightbox-media img, #lightbox-media video { max-width: 100%; max-height: 80vh; border-radius: 10px; object-fit: contain; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.cerrar-lightbox { position: absolute; top: -40px; right: 0; color: white; font-size: 40px; cursor: pointer; font-weight: 300; line-height: 1; z-index: 10000;}