/* =========================================================
   RESETEO Y VARIABLES DINÁMICAS
   ========================================================= */
:root {
    --f-tit: 'Montserrat', sans-serif;
    --w-tit: 900;
    --c-tit: #ffffff;
    --s-tit: 1.6rem;
    --f-desc: 'Montserrat', sans-serif;
    --w-desc: 300;
    --c-desc: #cccccc;
    --s-desc: 0.9rem;
    --f-cat: 'Montserrat', sans-serif;
    --w-cat: 400;
    --c-cat: #aaaaaa;
    --s-cat: 0.95rem;
    --cat-bg-act: #ffffff;
    --cat-col-act: #000000;
}

body, html {
    background-color: #000;
    margin: 0;
    padding: 0;
    font-family: var(--f-tit);
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

/* =========================================================
   CABECERA Y LOGO (MÓVIL)
   ========================================================= */
.app-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    box-sizing: border-box;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%);
    pointer-events: none;
}
.app-header > * { pointer-events: auto; }

#enlace-logo {
    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 */
#selector-idiomas { margin-left: auto; display: block; }
#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-family: var(--f-cat);
    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;
}
#lang-select option { color: black; background: white; text-transform: none; }

/* =========================================================
   CARRUSEL Y VÍDEOS
   ========================================================= */
.swiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.swiper-wrapper { height: 100%; }
.swiper-slide {
    position: relative;
    overflow: hidden;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    min-height: 100%;
    min-width: 100%;
    display: block;
}
.swiper-button-next, .swiper-button-prev { display: none; }

/* =========================================================
   INFORMACIÓN DEL PLATO (MÓVIL)
   ========================================================= */
.info-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 20px 20px 145px 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-family: var(--f-desc) !important;
    font-weight: var(--w-desc) !important;
    color: var(--c-desc) !important;
    font-size: var(--s-desc) !important;
    margin-bottom: 5px;
    opacity: 0.8;
    max-width: 85%;
    text-transform: none;
    letter-spacing: 0.5px;
}
.plato-titulo {
    font-family: var(--f-tit) !important;
    font-weight: var(--w-tit) !important;
    color: var(--c-tit) !important;
    font-size: var(--s-tit) !important;
    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;
    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)); }

/* =========================================================
   ZONA INFERIOR FIJA (MÓVIL)
   ========================================================= */
.app-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 110;
    padding-bottom: 20px;
}
.separador-categorias { display: block; width: 90%; height: 1px; background: rgba(255, 255, 255, 0.3); margin: 0 auto 12px auto; }
.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;
    margin-bottom: 15px;
}
.contenedor-categorias-scroll::-webkit-scrollbar { display: none; }
.cat-item {
    font-family: var(--f-cat) !important;
    color: var(--c-cat) !important;
    font-size: var(--s-cat) !important;
    white-space: nowrap;
    font-weight: 300;
    padding: 6px 15px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    opacity: 0.8;
}
.cat-item.activa {
    background-color: var(--cat-bg-act) !important;
    color: var(--cat-col-act) !important;
    font-weight: 600 !important;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.botones-accion-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 90%;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 15px;
}
.btn-accion {
    flex: 1;
    text-align: center;
    font-size: 0.7rem;
    padding: 12px 0;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    text-decoration: none !important;
    transition: 0.3s;
}
.btn-transparente { background-color: transparent; color: #ffffff !important; border: none; opacity: 0.9; }
.btn-solido { background-color: #ffffff; color: #000000 !important; border: none; }

.desktop-menu-list { display: none; }

/* =========================================================
   DISEÑO ESCRITORIO Y HORIZONTAL (50% / 50%)
   ========================================================= */
@media (min-width: 992px), (orientation: landscape) and (min-width: 768px) {
    body { background-color: #000; }
    
    .swiper { width: 50%; left: 50%; top: 0; }
    
    .app-header {
        width: 50%;
        padding: 40px 50px;
        background: transparent;
        justify-content: space-between;
    }
    #selector-idiomas { margin-left: auto; }
    
    .app-footer {
        width: 50%;
        height: 100vh;
        background: transparent;
        z-index: 5;
        top: 0;
        left: 0;
        padding: 0;
        pointer-events: none;
    }
    .app-footer > * { pointer-events: auto; }
    
    .separador-categorias { display: none; }
    .botones-accion-container {
        border-top: none;
        position: absolute;
        bottom: 40px;
        left: 50px;
        width: calc(100% - 100px);
        padding: 0;
        margin: 0;
        justify-content: space-between;
        gap: 15px;
    }
    
    #categorias-fijas {
        position: absolute;
        top: 160px;
        left: 50px;
        width: calc(25vw - 70px);
    }
    
    .contenedor-categorias-scroll {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        gap: 20px;
        overflow: visible;
        margin-bottom: 0;
    }
    
    .cat-item {
        background: transparent !important;
        padding: 0 !important;
        font-size: 1.05rem !important;
        font-weight: 300 !important;
        opacity: 1;
    }
    .cat-item:hover { color: #fff !important; }
    .cat-item.activa {
        background: var(--cat-bg-act) !important;
        color: var(--cat-col-act) !important;
        padding: 6px 16px !important;
        font-weight: 600 !important;
        border-radius: 50px !important;
        margin-left: -16px;
    }
    
    .desktop-menu-list {
        display: block;
        position: absolute;
        top: 160px;
        left: 25vw;
        width: calc(25vw - 50px);
        height: calc(100vh - 280px);
        z-index: 10;
        border-left: 1px solid rgba(255,255,255,0.3);
        padding-left: 20px;
        overflow-y: auto;
        scrollbar-width: none;
    }
    .desktop-menu-list::-webkit-scrollbar { display: none; }
    
    .dish-list-item {
        padding: 10px 22px 10px 0;
        cursor: pointer;
        color: #888;
        font-family: var(--f-desc);
        font-size: 0.95rem;
        transition: 0.3s;
        line-height: 1.3;
    }
    .dish-list-item:hover { color: #ccc; }
    .dish-list-item.active {
        color: #fff;
        font-weight: 600;
        padding-left: 0;
        border: none;
        background: transparent;
    }
    
    .btn-accion { flex: 1; font-size: 0.8rem; letter-spacing: 0.5px; }
    
    .swiper-button-next, .swiper-button-prev {
        display: flex;
        color: rgba(255,255,255,0.6);
        transform: scale(0.6);
        z-index: 50;
    }
    
    .info-container {
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 40px 50px 50px 50px;
        background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    }
}