﻿/* Spyro Cards - Menu mobile-first v3
   Estilos limitados al menú; no modifica el sidebar ni el resto de vistas. */
:root {
    --menu-accent: var(--main-bg-color, #b4232f);
    --menu-ink: #202124;
    --menu-muted: #6b7280;
    --menu-line: #ececef;
    --menu-surface: #fff;
    --menu-radius: 16px;
}

.menu-contenido {
    color: var(--menu-ink);
    padding: 8px 0 24px;
}
/* Categorías: navegación horizontal compacta y accesible */
.categorias-sticky {
    position: sticky;
    top: 82px;
    z-index: 1020;
    margin: 0 0 18px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--menu-line);
    box-shadow: 0 4px 14px rgba(20,20,20,.05);
    backdrop-filter: blur(12px);
}

.categorias-scroll {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 12px 14px;
    white-space: nowrap;
}

    .categorias-scroll::-webkit-scrollbar {
        display: none;
    }

.categoria-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 40px;
    padding: 9px 15px;
    border: 1px solid #e8e8eb;
    border-radius: 999px;
    background: #f7f7f8;
    color: #424249;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 650;
    line-height: 1.1;
    transition: background .18s,color .18s,border-color .18s;
}

    .categoria-link:hover, .categoria-link:focus-visible {
        color: var(--menu-accent);
        border-color: var(--menu-accent);
    }

    .categoria-link.active {
        color: #fff;
        background: var(--menu-accent);
        border-color: var(--menu-accent);
    }

.slider-indicador {
    display: none;
}

.menu-contenido .categoria-section {
    scroll-margin-top: 90px;
}

.menu-contenido .categoria-titulo-wrapper {
    position: relative;
    margin: 28px 0 14px;
    padding: 4px 2px 8px;
    text-align: left;
    border-radius: 0;
    overflow: visible;
}

    .menu-contenido .categoria-titulo-wrapper::before {
        content: none;
    }

.menu-contenido .categoria-titulo {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -.025em;
}

    .menu-contenido .categoria-titulo::after {
        content: "";
        display: block;
        width: 38px;
        height: 3px;
        margin: 9px 0 0;
        background: var(--menu-accent);
        border-radius: 4px;
    }
/* Cards: en móvil son filas compactas, en pantallas grandes pasan a grid */
.menu-contenido .card-producto {
    display: grid;
    grid-template-columns: 112px minmax(0,1fr);
    align-items: stretch;
    gap: 0;
    margin: 0 0 12px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(20,20,20,.055);
    border-radius: var(--menu-radius);
    background: var(--menu-surface);
    box-shadow: 0 3px 12px rgba(22,22,25,.045);
}

    .menu-contenido .card-producto > img {
        grid-column: 1;
        grid-row: 1;
        width: 112px;
        height: 100%;
        min-height: 148px;
        max-height: 190px;
        object-fit: cover;
        cursor: zoom-in;
    }

    .menu-contenido .card-producto > .p-3 {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-width: 0;
        padding: 12px !important;
    }

.menu-contenido .producto-idproducto {
    display: none;
}

.menu-contenido .producto-nombre {
    margin: 0 0 5px;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.25;
    color: #202124;
    overflow-wrap: anywhere;
}

.menu-contenido .producto-descripcion {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--menu-muted);
    font-size: .82rem;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.menu-contenido .producto-precio {
    margin-top: auto;
    margin-bottom: 10px;
    color: var(--menu-accent);
    font-size: 1.12rem;
    font-weight: 850;
    line-height: 1.2;
}

.menu-contenido .card-producto .d-flex.align-items-center.justify-content-between {
    align-items: center !important;
    gap: 8px;
    margin-bottom: 0 !important;
    flex-wrap: wrap;
}

.menu-contenido .cantidad-control {
    width: 104px !important;
    max-width: 100%;
    flex: 0 0 104px;
}

    .menu-contenido .cantidad-control .btn {
        min-width: 30px;
        padding: 5px 7px;
        border-color: #dedee3;
        color: #333;
    }

.menu-contenido .cantidad-input {
    min-width: 28px;
    padding: 5px 2px;
    border-color: #dedee3;
    background: #fff;
}

.menu-contenido .btn-agregar {
    width: auto;
    min-height: 38px;
    flex: 1 1 76px;
    padding: 8px 11px !important;
    border: 0;
    border-radius: 10px !important;
    background: var(--menu-accent) !important;
    color: #fff !important;
    font-size: .88rem;
    font-weight: 750;
    line-height: 1.1;
    white-space: nowrap;
}

    .menu-contenido .btn-agregar:active {
        transform: scale(.98);
    }
/* Especialidades de la casa */
.menu-contenido .categoria-titulo-wrapper:has(+ .card) {
    margin-top: 20px;
}

.menu-contenido .menu-especiales .card.shadow-sm.mb-3 {
    overflow: hidden;
    border: 1px solid var(--menu-line);
    border-radius: var(--menu-radius);
    box-shadow: 0 3px 12px rgba(22,22,25,.045) !important;
}

    .menu-contenido .menu-especiales .card.shadow-sm.mb-3 img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

    .menu-contenido .menu-especiales .card.shadow-sm.mb-3 h5 {
        font-weight: 750;
    }

    .menu-contenido .menu-especiales .card.shadow-sm.mb-3 .text-success {
        color: var(--menu-accent) !important;
        font-weight: 850;
    }
/* Carrito siempre visible, respetando safe-area de iPhone */
.carrito-float {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--menu-accent) !important;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.22);
}

    .carrito-float svg {
        width: 25px;
        height: 25px;
    }

.contador-badge {
    top: -3px;
    right: -3px;
    min-width: 22px;
    min-height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px 6px;
    font-size: .72rem;
}

.carrito-modal {
    border: 0;
    border-radius: 20px;
    overflow: hidden;
}

    .carrito-modal .modal-body {
        max-height: 75dvh;
        overflow-y: auto;
    }

.carrito-total {
    background: #f5f5f6;
    border-radius: 12px;
}

.btn-confirmar-pedido {
    width: 100%;
    min-height: 52px;
    padding: 14px;
    border: 0;
    border-radius: 12px;
    background: var(--menu-accent) !important;
    font-size: 1rem;
    font-weight: 750;
}

.modal-elegante .modal-content {
    background: #111;
    border-radius: 18px;
    overflow: hidden;
}

.modal-elegante .modal-dialog {
    max-width: 560px;
    margin: 12px auto;
}

.contenedor-imagen {
    display: flex;
    align-items: center;
    justify-content: center;
    height: min(70dvh,520px);
    background: #050505;
    overflow: hidden;
}

.imagen-ajustada {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.overlay-nombre {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 28px 16px 16px;
    background: linear-gradient(transparent,rgba(0,0,0,.8));
    text-align: center;
}

    .overlay-nombre h4 {
        margin: 0;
        color: #fff;
        font-size: 1.05rem;
        font-weight: 700;
    }

.toast-dark {
    color: #fff;
    background: #202124;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
}

@media (min-width:600px) {

    .categorias-sticky {
        margin: 0 0 24px;
    }

    .menu-contenido .categoria-section {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 0 14px;
    }

    .categoria-section > .menu-contenido .categoria-titulo-wrapper {
        grid-column: 1/-1;
    }

    .categoria-section > .menu-contenido .card-producto {
        align-self: stretch;
    }

    .menu-contenido .card-producto {
        grid-template-columns: 120px minmax(0,1fr);
    }

        .menu-contenido .card-producto > img {
            width: 120px;
            min-height: 155px;
        }
}

@media (min-width:900px) {

    .categorias-sticky {
        margin: 0 0 28px;
    }

    .categorias-scroll {
        justify-content: center;
    }

    .menu-contenido .categoria-section {
        grid-template-columns: repeat(3,minmax(0,1fr));
        gap: 0 18px;
    }

    .categoria-section > .menu-contenido .categoria-titulo-wrapper {
        margin-top: 34px;
    }

    .menu-contenido .card-producto {
        display: flex;
        flex-direction: column;
    }

        .menu-contenido .card-producto > img {
            width: 100%;
            height: 185px;
            min-height: 0;
            max-height: none;
        }

        .menu-contenido .card-producto > .p-3 {
            flex: 1;
            padding: 16px !important;
        }

    .menu-contenido .producto-nombre {
        font-size: 1.03rem;
    }

    .menu-contenido .producto-descripcion {
        min-height: 2.3em;
    }

    .carrito-float {
        right: 28px;
        bottom: 28px;
        width: 64px;
        height: 64px;
    }
}

@media (prefers-reduced-motion:reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}


/* ===== ENCABEZADO DEL RESTAURANTE: restaurado y limitado al header ===== */
.header-fijo {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: 110px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px clamp(16px, 6vw, 112px);
    background: var(--main-bg-color, #ff0808);
    color: #fff;
    z-index: 1030;
    border-bottom: 1px solid rgba(255,255,255,.35);
}

    .header-fijo img,
    .header-fijo .logo-img {
        display: block;
        width: 86px;
        height: 86px;
        max-width: 86px;
        flex: 0 0 86px;
        object-fit: contain;
    }

    .header-fijo .logo-wrapper {
        width: 86px;
        height: 86px;
        flex: 0 0 86px;
        border: 2px solid #fff;
        border-radius: 50%;
        overflow: hidden;
        box-shadow: none;
    }

        .header-fijo .logo-wrapper img {
            width: 100%;
            height: 100%;
            max-width: none;
            object-fit: contain;
        }

    .header-fijo .empresa-nombre {
        flex: 1 1 auto;
        min-width: 0;
        margin: 0;
        color: #fff;
        font-size: clamp(1.25rem, 2.3vw, 2.25rem);
        font-weight: 750;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    .header-fijo .empresa-slogan {
        color: rgba(255,255,255,.85);
    }

    .header-fijo .btn-menu {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        margin-left: auto;
        padding: 0;
        border: 0;
        background: transparent;
        color: #fff;
        font-size: 1.8rem;
        line-height: 1;
        cursor: pointer;
    }

/* Deja espacio bajo el header fijo sin cambiar estilos globales de body */
.body-content-ajuste {
    padding-top: 126px;
}

/* ===== SIDEBAR: restaurar comportamiento fuera del lienzo ===== */
.sidebar-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 260px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
    overflow-y: auto;
    background: #111;
    color: #fff;
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform .3s ease;
    padding: 15px;
}

    .sidebar-menu.open {
        transform: translateX(0);
    }

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .menu-list li {
        margin-bottom: 15px;
    }

    .menu-list a {
        display: block;
        padding: 10px;
        border-radius: 10px;
        color: #ccc;
        text-decoration: none;
        font-size: 1rem;
    }

        .menu-list a:hover,
        .menu-list a:focus-visible {
            background: var(--main-bg-color, #ff0808);
            color: #fff;
        }

.overlay-menu {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(0,0,0,.5);
    z-index: 1090;
}

    .overlay-menu.show {
        display: block;
    }

@media (max-width: 600px) {
    .header-fijo {
        min-height: 82px;
        padding: 8px 14px;
        gap: 9px;
    }

        .header-fijo .logo-wrapper,
        .header-fijo img,
        .header-fijo .logo-img {
            width: 58px;
            height: 58px;
            max-width: 58px;
            flex-basis: 58px;
        }

        .header-fijo .empresa-nombre {
            font-size: clamp(1rem, 4.5vw, 1.35rem);
        }

        .header-fijo .btn-menu {
            flex-basis: 42px;
            width: 42px;
            height: 42px;
            font-size: 1.6rem;
        }

    .body-content-ajuste {
        padding-top: 94px;
    }
}

/* ===== CORRECCIÓN DE NAVEGACIÓN DEL SIDEBAR =====
   Se conserva el diseño mobile-first y el header de esta versión.
   Estas reglas permiten alternar las vistas controladas por data-view. */

/* Oculta todas las vistas y muestra únicamente la activa. */
.vista-seccion {
    display: none;
    animation: fadeIn .25s ease;
}

    .vista-seccion.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Asegura que los enlaces del menú reciban los clics. */
#sidebarMenu {
    pointer-events: auto;
}

    #sidebarMenu .menu-list,
    #sidebarMenu .menu-list li,
    #sidebarMenu .menu-list a {
        position: relative;
        pointer-events: auto;
    }

        #sidebarMenu .menu-list a {
            display: block;
            cursor: pointer;
            color: #ccc;
            text-decoration: none;
            -webkit-tap-highlight-color: transparent;
        }

/* El overlay solo intercepta clics cuando está visible. */
#overlayMenu {
    pointer-events: none;
}

    #overlayMenu.show {
        pointer-events: auto;
    }

/* Accesibilidad: respeta la preferencia de movimiento reducido. */
@media (prefers-reduced-motion: reduce) {
    .vista-seccion {
        animation: none;
    }
}


/* ===== RESTAURACIÓN DE ESTILOS ORIGINALES: GALERÍA, CONTACTO Y UBICACIÓN ===== */
/* ===== GALERÍA SPYRO ===== */

.spyro-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

    .spyro-carousel::-webkit-scrollbar {
        display: none;
    }

.spyro-item {
    min-width: 160px;
    flex: 0 0 auto;
    scroll-snap-align: center;
}

.spyro-img-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

    /* IMAGEN */
    .spyro-img-wrapper img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        transition: transform .35s ease;
    }

    /* ZOOM SUAVE */
    .spyro-img-wrapper:hover img {
        transform: scale(1.08);
    }

/* OVERLAY TEXTO */
.spyro-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    font-size: 0.85rem;
    text-align: center;
}

    /* TEXTO */
    .spyro-overlay span {
        display: block;
    }

/* MOBILE TOUCH FEEL */
.spyro-carousel {
    -webkit-overflow-scrolling: touch;
}

    .spyro-carousel::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        width: 40px;
        height: 100%;
        background: linear-gradient(to left, #0f0f10, transparent);
    }





/* ===== ESTILO SPYRO ===== */

.spyro-section {
    padding: 20px 15px;
}

.spyro-title {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.spyro-card {
    background-image: linear-gradient(120deg, var(--main-bg-color) 0%, #000 100%);
    border-radius: 18px;
    padding: 18px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #fff;
    text-shadow: 2px 2px 2px #000000;
    border-style: solid;
    border-color: var(--main-bg-color);
    border-width: medium;
}

.spyro-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-weight: 500;
    margin-top: 10px;
    transition: .3s;
    text-decoration: none;
    color: white;
}

.spyro-btn-primary {
    background: #131413b8;
    color: #fff;
}

.spyro-btn-dark {
    background: #1f1f1f;
    color: #fff;
}

.spyro-btn:hover {
    transform: scale(1.03);
}

/*.spyro-card:hover {
transform: translateY(-3px);
}*/
/* GALERÍA */
.spyro-gallery img {
    border-radius: 14px;
    transition: .3s;
}

    .spyro-gallery img:hover {
        transform: scale(1.05);
    }

/* ICONOS */
.spyro-icon {
    font-size: 18px;
    margin-right: 8px;
}


/* SPYRO + ICONOS CLÁSICOS */
.spyro-social {
    margin-top: 10px;
}

    .spyro-social li {
        display: inline-block;
        margin: 6px;
    }

        .spyro-social li a {
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            text-decoration: none;
            justify-content: center;
            border-radius: 50%;
            background: var(--main-bg-color);
            color: #fff;
            font-size: 18px;
            transition: .3s;
        }

            .spyro-social li a:hover {
                box-shadow: 0 0 10px var(--main-bg-color);
                background: var(--main-bg-color);
                transform: scale(1.1);
            }


.vcard-profile-pic {
    width: 200px;
    height: 200px;
    overflow: hidden;
    margin: 0 auto;
    margin-bottom: 20px;
    position: relative;
}

    .vcard-profile-pic img {
        width: 100%;
        border-radius: 100%;
        -moz-border-radius: 100%;
        -webkit-border-radius: 100%;
        border: 6px solid #ddd;
        -webkit-transition: all 0.6s ease-in-out;
        -moz-transition: all 0.6s ease-in-out;
        transition: all 0.6s ease-in-out;
        position: absolute;
        top: 0;
        left: 0;
    }


.color1 {
    color: var(--main-bg-color);
}

.TitleSection {
    color: whitesmoke;
    text-shadow: 2px 2px 2px black;
    font-size: 1.5em;
}


/* CONTENEDOR */
.spyro-slider-container {
    position: relative;
    overflow: hidden;
}

/* SLIDER */
.spyro-slider {
    display: flex;
    transition: transform 0.4s ease;
}

/* SLIDE */
.spyro-slide {
    min-width: 100%;
    flex: 0 0 100%;
}

/* IMAGEN */
.spyro-img-wrapper {
    position: relative;
    height: 260px;
    overflow: hidden;
    border-radius: 16px;
}

    .spyro-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .4s ease;
    }

/* ZOOM ACTIVO */
.spyro-slide.active img {
    transform: scale(1.05);
}
/* CONTENEDOR RESPONSIVO */
.spyro-img-wrapper {
    position: relative;
    width: 100%;
    /* 🔥 Altura dinámica inteligente */
    height: clamp(220px, 45vh, 420px);
    border-radius: 16px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .spyro-img-wrapper {
        height: clamp(200px, 40vh, 300px);
    }
}

/* IMAGEN */
.spyro-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spyro-img-wrapper {
    aspect-ratio: 16 / 9;
    width: 100%;
}

.spyro-slide {
    transition: transform .4s ease, opacity .3s;
}

/* OVERLAY */
.spyro-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: #fff;
    text-align: center;
    font-size: 0.9rem;
}

/* DOTS */
.spyro-dots {
    text-align: center;
    margin-top: 10px;
}

.spyro-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 4px;
    background: #666;
    border-radius: 50%;
    transition: .3s;
}

    .spyro-dot.active {
        width: 18px;
        border-radius: 10px;
        background: var(--main-bg-color);
    }


.spyro-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}

    .spyro-modal img {
        max-width: 95%;
        max-height: 90%;
    }

.spyro-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}
