:root {
    --font-main: 'Montserrat', sans-serif;
}

body {
    background-color: #000;
    margin: 0;
    font-family: var(--font-main);
    height: 100vh; 
    height: 100dvh; 
    overflow: hidden; 
}

/* --- ARQUITECTURA BASE (MÓVIL POR DEFECTO) --- */
.app-wrapper { display: block; width: 100%; height: 100%; }

.panel-video { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }

.panel-ui { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; pointer-events: none; }

/* Permite tocar los botones aunque el panel-ui sea invisible a los toques */
.fixed-header, .desktop-center-cols, #zona-inferior-fija { pointer-events: auto; }

/* Control de visualización */
.desktop-only { display: none !important; }
.mobile-only { display: block; }

/* --- CABECERA Y LOGO --- */
.fixed-header {
    position: absolute; top: 0; left: 0; width: 100%;
    display: flex; justify-content: flex-start; align-items: center; padding: 20px;
    box-sizing: border-box; 
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%);
}
.logo-container { height: 45px; width: 150px; display: block; }
.logo-img { height: 100%; width: 100%; object-fit: contain; object-position: left center; filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.6)); }

/* --- SELECTOR DE IDIOMAS --- */
#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; 
    margin-left: auto; 
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    text-transform: uppercase;
    -webkit-appearance: none;
    appearance: none;
    text-align: center;
    box-sizing: border-box;
}
#lang-select option { color: black; background: white; text-transform: none; }

/* --- ZONA CENTRAL MÓVIL (Las categorías abajo) --- */
.desktop-center-cols {
    position: absolute;
    bottom: 82px; /* <-- AJUSTADO MILIMÉTRICAMENTE PARA LA MISMA DISTANCIA */
    width: 100%;
}

#categorias-fijas { width: 100%; }

.separador-categorias {
    width: 75%; height: 1px; background: rgba(255, 255, 255, 0.4);
    margin: 15px auto; /* <-- DISTANCIA SIMÉTRICA ARRIBA Y ABAJO */
    border-radius: 50px;
}

.contenedor-categorias-scroll {
    display: flex; overflow-x: auto; gap: 15px; width: 100%; padding: 0 20px;
    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.95rem; font-weight: 300; padding: 6px 15px;
    border-radius: 50px; cursor: pointer; transition: all 0.3s ease;
    border: 1px solid transparent; opacity: 0.8; color: white; text-align: left;
}
.cat-item.activa { background-color: white; color: black; font-weight: 600; opacity: 1; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }


/* --- BOTONES DE ACCIÓN INFERIORES --- */
#zona-inferior-fija {
    position: absolute; bottom: 0; left: 0; width: 100%; padding-bottom: 20px; 
}
.botones-accion-container {
    display: flex; justify-content: center; align-items: center; gap: 5px; 
    width: 85%; 
    margin: 0 auto; /* <-- QUITAMOS EL MARGEN EXTRA PARA QUE LA LÍNEA QUEDE CENTRADA */
}
.btn-accion {
    flex: 1; text-align: center; font-size: 0.7rem; padding: 10px 0; border-radius: 50px;
    font-weight: 600; text-transform: uppercase; white-space: nowrap; text-decoration: none !important; 
}
.btn-transparente { background-color: transparent; color: #ffffff !important; border: none; opacity: 0.9; }
.btn-solido { background-color: #ffffff; color: #000000 !important; border: none; }


/* --- CARRUSEL Y MULTIMEDIA --- */
.swiper { width: 100%; height: 100%; }
.swiper-slide { position: relative; overflow: hidden; background-color: #111; }
.video-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

.swiper-button-next.flecha-nav, .swiper-button-prev.flecha-nav { color: white; width: 15px; height: 15px; margin-top: -10px; }
.swiper-button-next::after, .swiper-button-prev::after { display: none; }
.flecha-nav img { width: 100%; height: 100%; filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.8)); opacity: 0.8; }

.info-container {
    position: absolute; bottom: 0; left: 0; width: 100%; z-index: 10;
    padding: 20px 20px 140px 20px; 
    text-align: center; color: white;
    display: flex; flex-direction: column; align-items: center; box-sizing: border-box;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
}
.plato-desc-corta { font-size: 0.9rem; margin-bottom: 5px; opacity: 0.8; max-width: 85%; text-transform: none; letter-spacing: 0.5px; }
.plato-titulo { font-size: 1.6rem; font-weight: 800; margin: 0 0 10px 0; line-height: 1; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,0.8); padding: 0 20px;}
.plato-precio-badge { background-color: transparent; color: white; font-weight: 500; padding: 12px 30px; border-radius: 50px; font-size: 1.2rem; display: inline-block; box-shadow: none; margin-bottom: 5px; }
.contenedor-alergenos { display: flex; gap: 15px; justify-content: center; margin-top: 15px; padding: 5px 10px; background: rgba(255, 255, 255, 0.1); border-radius: 50px; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
img.icono-svg { width: 22px; height: 22px; object-fit: contain; filter: drop-shadow(0px 2px 2px rgba(0,0,0,0.5)); }


/* =========================================================
   DISEÑO ESCRITORIO (PANTALLAS HORIZONTALES GRANDES)
========================================================= */
@media (min-width: 1024px) and (orientation: landscape) {
    
    .mobile-only { display: none !important; }
    .desktop-only { display: block !important; }

    .app-wrapper { display: flex; flex-direction: row; }
    
    .panel-ui {
        position: relative;
        width: 50%;
        min-width: 400px;
        background: #000;
        display: flex;
        flex-direction: column;
        padding: 40px;
        box-sizing: border-box;
    }

    .panel-video {
        position: relative;
        width: 50%;
        flex-grow: 1;
    }

    .fixed-header {
        position: relative;
        padding: 0;
        background: none; 
        margin-bottom: 60px;
    }

    .desktop-center-cols {
        position: relative;
        bottom: auto; 
        flex: 1; 
        display: flex;
        flex-direction: row;
        overflow: hidden; 
        margin-bottom: 40px;
    }

    /* Columna 1: Categorías Verticales */
    #categorias-fijas { width: 45%; height: 100%; overflow-y: auto; }
    .contenedor-categorias-scroll {
        flex-direction: column; 
        align-items: flex-start; 
        padding: 0;
        gap: 24px; 
    }

    /* La fina línea blanca */
    .vertical-divider {
        width: 1px;
        background: rgba(255, 255, 255, 0.2);
        margin: 0 30px; 
    }

    /* Columna 2: Nombres de Platos Verticales */
    #platos-desktop-list { 
        width: 45%; height: 100%; overflow-y: auto; 
        display: flex; flex-direction: column; 
        gap: 117px; 
    }
    
    .dish-list-item {
        color: rgba(255, 255, 255, 0.4);
        font-size: 0.95rem;
        cursor: pointer;
        transition: 0.3s;
        text-align: left;
        line-height: 1.4;
        padding: 6px 0; 
    }
    .dish-list-item:hover { color: white; }
    .dish-list-item.active {
        color: white;
        font-weight: 600; 
    }

    #zona-inferior-fija {
        position: relative;
        padding: 0;
    }
    .botones-accion-container { width: 100%; margin: 0; }
    .btn-accion { padding: 15px 0; font-size: 0.8rem; }

    #categorias-fijas::-webkit-scrollbar, #platos-desktop-list::-webkit-scrollbar { width: 0px; background: transparent; }
    
    /* --- ALINEACIÓN Y TEXTOS DEL PANEL DERECHO --- */
    
    .info-container { 
        padding: 40px; 
    }
    
    .info-container > :last-child { 
        margin-bottom: 0 !important; 
    }

    .plato-titulo { 
        font-size: 1.75rem; 
        margin-bottom: 10px;
    }
    
    .plato-desc-corta { 
        font-size: 1rem; 
        margin-bottom: 8px; 
    }
    
    .plato-precio-badge { 
        font-size: 1.2rem; 
        margin-bottom: 0; 
    }
    
    .contenedor-alergenos { 
        margin-top: 15px; 
    }
}