/* ==========================================================================
   FUENTES PERSONALIZADAS
   ========================================================================== */

/* Fuente Principal (Slider) */
@font-face {
    font-family: 'Broadway';
    src: url('fonts/BROADW.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Fuente de Cuerpo (Descripciones) */
@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* Fuente Secundaria (Títulos de Secciones, Platillos y Menú) */
@font-face {
    font-family: 'MotterCorpus';
    src: url('fonts/motter.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Fuente Habanero (Guardada en sistema por respaldo) */
@font-face {
    font-family: 'Habanero';
    src: url('fonts/habanero.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ==========================================================================
   ESTILOS GENERALES Y CONFIGURACIÓN BASE
   ========================================================================== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth; 
}

body { 
    font-family: 'Poppins', sans-serif; 
    overflow-x: hidden; 
    background-color: #fdfdfc; 
}

/* Previene que la barra fija tape los títulos al deslizarse por la página */
section {
    scroll-margin-top: 90px; 
}

/* Configura las secciones al tono café arena cálido #e8e0d1 solicitado */
.section-padding { 
    padding: 80px 5%; 
    text-align: center; 
    background-color: #e8e0d1; 
}

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

/* Títulos principales oscuros para contraste perfecto sobre el fondo arena */
h2 { 
    font-family: 'MotterCorpus', 'Impact', sans-serif !important; 
    font-size: clamp(28px, 5vw, 42px); 
    color: #4a2e16; /* Tono café ligeramente más oscuro para mejorar la legibilidad */
    margin-bottom: 20px; 
    letter-spacing: 1px;
}

/* Descripciones de sección más oscuras para asegurar excelente lectura */
.section-desc { 
    font-size: 16px; 
    color: #2b1a0c; 
    max-width: 800px; 
    margin: 0 auto 40px auto; 
    line-height: 1.6; 
}

/* Incrementa el texto explicativo de las secciones en escritorio */
@media (min-width: 1101px) {
    .section-desc {
        font-size: 24px; 
        line-height: 1.7; 
    }
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN (HEADER ESCRITORIO)
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 25px 5%;
    background-color: #ffffff;
    border-bottom: 1px solid #f2f2f2;
    position: sticky;
    top: 0;
    z-index: 3000;
}

.logo-container { 
    display: flex; 
    align-items: center; 
}

.logo-img { 
    height: 145px; 
    width: auto; 
    transition: 0.3s; 
}

.navbar .nav-links { 
    display: flex; 
    align-items: center; 
    gap: 35px; 
}

.navbar .nav-links a { 
    text-decoration: none; 
    color: #694321; 
    font-family: 'MotterCorpus', 'Impact', sans-serif !important; 
    font-weight: normal !important; 
    font-size: 18px; 
    letter-spacing: 0.5px; 
    transition: 0.3s; 
}

.navbar .nav-links a.active { 
    color: #697359; 
}

/* Ocultar contenedor de redes sociales móviles en vista de escritorio */
.mobile-socials {
    display: none;
}

/* Acciones y Botones en Escritorio */
.nav-actions { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.social-circle { 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: 0.3s; 
    background-color: #9a6433; 
    flex-shrink: 0; 
}

.fb-color { 
    background-color: #1877F2 !important; 
}

.fb-color:hover { 
    background-color: #0d5dd1 !important; 
}

.ig-color { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important; 
}

.ig-color:hover { 
    filter: brightness(0.9); 
}

.btn-shop { 
    background-color: #697359; 
    color: #ffffff !important; 
    padding: 14px 28px; 
    text-decoration: none; 
    font-family: 'MotterCorpus', 'Impact', sans-serif !important; 
    font-weight: normal !important; 
    font-size: 16px; 
    border-radius: 10px; 
    transition: 0.3s; 
    border: none; 
    cursor: pointer; 
    display: inline-block; 
    text-align: center; 
}

.btn-shop:hover { 
    background-color: #555e49; 
}

.mobile-shop-btn { 
    display: none; 
}

/* Menú Hamburguesa */
.menu-toggle { 
    display: none; 
    flex-direction: column; 
    cursor: pointer; 
    z-index: 3005; 
    position: relative; 
    padding: 10px;
}

.menu-toggle .bar { 
    width: 25px; 
    height: 3px; 
    background-color: #694321; 
    margin: 4px 0; 
    transition: 0.4s; 
}

/* Animaciones de Líneas a Cruz (X) */
.menu-toggle.active .bar:nth-child(1) { 
    transform: translateY(11px) rotate(45deg); 
}

.menu-toggle.active .bar:nth-child(2) { 
    opacity: 0; 
}

.menu-toggle.active .bar:nth-child(3) { 
    transform: translateY(-11px) rotate(-45deg); 
}

/* ==========================================================================
   DISEÑO EN HÉROE / SLIDER PRINCIPAL
   ========================================================================== */
.hero-slider { 
    position: relative; 
    height: 85vh; 
    width: 100%; 
    background-color: #000; 
    z-index: 1; 
}

.slider-wave-mask-top, .slider-wave-mask-bottom {
    position: absolute; 
    width: 100%; 
    z-index: 10; 
    line-height: 0; 
    pointer-events: none;
}

.slider-wave-mask-top { 
    top: 0; 
}

.slider-wave-mask-bottom { 
    bottom: 0; 
    transform: rotate(180deg); 
}

.slider-wave-mask-top svg, .slider-wave-mask-bottom svg { 
    display: block; 
    width: 100%; 
    height: auto; 
}

.slide { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-size: cover; 
    background-position: center; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    opacity: 0; 
    transition: opacity 1.5s ease-in-out; 
}

.slide.active { 
    opacity: 1; 
    z-index: 1; 
}

.hero-content { 
    text-align: center; 
    color: white; 
    transform: translateY(40px); 
    opacity: 0; 
    transition: 1s cubic-bezier(0.2, 1, 0.3, 1) 0.5s; 
    padding: 0 20px; 
}

.slide.active .hero-content { 
    transform: translateY(0); 
    opacity: 1; 
}

.hero-content h1 { 
    font-family: 'Broadway', 'Impact', sans-serif !important; 
    font-size: clamp(30px, 8vw, 70px); 
    font-weight: normal !important; 
    line-height: 1; 
    margin-bottom: 15px; 
}

.hero-content h1 span { 
    color: #d6d8be; 
}

.hero-content p { 
    font-size: clamp(12px, 3vw, 18px); 
    font-weight: 700; 
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.btn-hero {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background-color: #697359;
    color: #ffffff;
    text-decoration: none;
    font-family: 'MotterCorpus', sans-serif;
    font-size: 18px;
    border-radius: 8px;
    transition: 0.3s;
}

.btn-hero:hover {
    background-color: #555e49;
}

/* ==========================================================================
   MENÚ DE COMIDA (TACOS Y PLATILLOS CHICOS)
   ========================================================================== */
.menu-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
    margin-bottom: 50px; 
}

.menu-item { 
    background: #ffffff; 
    padding: 20px; 
    border-radius: 15px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    transition: 0.3s; 
}

.menu-item:hover { 
    transform: translateY(-5px); 
}

.menu-item img { 
    width: 100%; 
    height: 220px; 
    object-fit: contain; 
    background-color: #fafaf9; 
    border-radius: 10px; 
    margin-bottom: 15px; 
}

.menu-item h3 { 
    font-family: 'MotterCorpus', sans-serif; 
    color: #694321; 
    font-size: 20px; 
    margin-bottom: 10px; 
}

.menu-item p { 
    font-size: 14px; 
    color: #666; 
    margin-bottom: 15px; 
}

.price { 
    font-family: 'Poppins', sans-serif; 
    font-weight: 700; 
    color: #697359; 
    font-size: 18px; 
}

/* ==========================================================================
   OPTIMIZACIÓN DE IMÁGENES DEL SLIDER PRINCIPAL
   ========================================================================== */
.hero img, 
.slider img, 
.carousel-item img {
    width: 100% !important;
    height: 100vh !important; /* Ajusta a 600px o el alto que tenga tu banner si no cubre toda la pantalla */
    object-fit: cover !important; /* Evita que la carne se estire o aplaste */
    object-position: center !important; /* Mantiene el centro de la foto enfocado */
}


/* Incrementa la descripción de los platillos SOLO en pantallas de escritorio */
@media (min-width: 1101px) {
    .menu-item p { 
        font-size: 22px; 
        line-height: 1.6;
    }
}

/* ==========================================================================
   OPTIMIZACIÓN GIGANTE EN COLUMNA PARA CORTES PREMIUM
   ========================================================================== */
#cortes .menu-item {
    padding: 15px;
    margin: 0 auto; 
}

#cortes .menu-item img {
    height: 220px;
    object-fit: contain;
}

/* Forzar una sola columna y escala gigante en pantallas de escritorio */
@media (min-width: 1101px) {
    #cortes .menu-grid {
        display: flex;
        flex-direction: column; 
        gap: 40px; 
        align-items: center;
    }

    #cortes .menu-item {
        width: 100%;
        max-width: 800px; 
        padding: 25px;
    }

    #cortes .menu-item img {
        height: 550px; 
        margin-bottom: 0px; 
    }
}

/* ==========================================================================
   CONFIGURACIÓN VERDE EXCLUSIVA PARA PAQUETES PARRILLEROS
   ========================================================================== */
#paquetes-parrilleros {
    background-color: #697359 !important; /* Verde de tu botón */
}

/* Forza los títulos a blanco dentro de la sección verde */
#paquetes-parrilleros h2 {
    color: #ffffff !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

/* Forza las descripciones generales a blanco dentro de la sección verde */
#paquetes-parrilleros .section-desc {
    color: #ffffff !important;
}

/* Mantiene el fondo blanco de las tarjetas individuales */
#paquetes-parrilleros .paquete-card-container {
    background-color: #ffffff;
}

/* --- CONFIGURACIÓN PARA CRUNCHWRAPS (Mantiene tu diseño actual en móviles) --- */
.crunchwrap-card {
    padding: 20px;
    max-width: 450px;
    margin: 0 auto;
}

.crunchwrap-card .img-crunchwrap {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain; 
    padding: 10px;
}

/* --- AJUSTE EXCLUSIVO DE CRUNCHWRAPS PARA COMPUTADORAS DE ESCRITORIO --- */
@media (min-width: 1101px) {
    .crunchwrap-card {
        max-width: 600px; 
        padding: 30px;    
    }
    .crunchwrap-card .img-crunchwrap {
        max-height: 480px; 
        padding: 10px;      
        object-fit: contain; 
    }
}

.sub-section-title h3 { 
    font-family: 'MotterCorpus', sans-serif; 
    font-size: clamp(24px, 4vw, 36px); /* Escala menor que los títulos H2 para marcar jerarquía */
    color: #ffffff; 
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5); 
    margin: 40px 0 20px 0; 
    text-align: center; 
}

.full-view-img { 
    width: 100%; 
    max-width: 900px;
}

/* ==========================================================================
   CONTENEDORES UNIFICADOS PARA IMÁGENES GRANDES (MENÚ Y PAQUETES)
   ========================================================================== */
.menu-completo-stack,
.paquetes-completo-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
    width: 100%;
}

.menu-completo-container,
.paquete-card-container {
    width: 100%;
    max-width: 750px;       
    margin: 0 auto;
    padding: 25px;          
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
}

.menu-completo-container:hover,
.paquete-card-container:hover {
    transform: translateY(-4px); 
}

.menu-completo-img,
.paquete-completo-img {
    width: 100%;
    height: auto;           
    display: block;
    border-radius: 10px;
}

/* ==========================================================================
   SECCIÓN DE UBICACIÓN (GOOGLE MAPS RESPONSIVO)
   ========================================================================== */
.map-responsive {
    overflow: hidden;
    position: relative;
    height: 450px !important; 
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100% !important;
    width: 100% !important;
    position: absolute;
    border: none;
}

/* Incrementa el texto de dirección y horario solo en pantallas de escritorio */
@media (min-width: 1101px) {
    .info-ubicacion {
        font-size: 20px !important; 
        line-height: 1.8 !important; 
        margin-bottom: 40px !important; 
    }
}

/* ==========================================================================
   ESTILOS RESPONSIVOS (MÓVILES)
   ========================================================================== */
@keyframes cactusBailando {
    0% { transform: scale(1) rotate(-5deg); }
    100% { transform: scale(1.05) rotate(5deg); }
}

@media (max-width: 1100px) {
    .navbar { 
        padding: 15px 5%; 
        height: 90px; 
    }
    
    .menu-toggle { 
        display: flex; 
        order: 3; 
    }
    
    .logo-container { 
        order: 2; 
        position: absolute; 
        left: 50%; 
        transform: translateX(-50%); 
    }
    
    .navbar .nav-links {
        position: fixed; 
        top: 90px; 
        left: -100%; 
        flex-direction: column;
        background-color: #f7f3eb !important; 
        width: 100%; 
        padding: 20px 0 40px 0; 
        gap: 0px;
        text-align: center; 
        transition: left 0.4s ease-in-out, opacity 0.4s ease-in-out; 
        box-shadow: 0 10px 15px rgba(0,0,0,0.1); 
        z-index: 2500;
        height: calc(100vh - 90px); 
        overflow-y: auto; 
        justify-content: flex-start; 
        pointer-events: none;
        opacity: 0;
        background-image: 
            linear-gradient(90deg, rgba(105, 67, 33, 0.015) 1px, transparent 1px),
            linear-gradient(0deg, rgba(105, 67, 33, 0.01) 2px, transparent 2px) !important;
        background-size: 50px 30px !important;
    }
    
    .navbar .nav-links.active { 
        left: 0; 
        opacity: 1;
        pointer-events: all;
    }
    
    .navbar .nav-links .mobile-socials {
        display: flex;
        justify-content: center; 
        gap: 30px; 
        padding: 25px 0; 
        width: 100%; 
        margin-top: 10px; 
        flex-shrink: 0; 
        position: relative; 
        z-index: 2;
    }
    
    .navbar .nav-links::before {
        content: ""; position: absolute; top: 20px; left: 20px; width: 38px; height: 38px;
        background-image: url('../img/cactus.png'); background-size: contain; background-repeat: no-repeat;
        opacity: 0.7; pointer-events: none; z-index: 1; transform-origin: bottom center;
        animation: cactusBailando 1.2s ease-in-out infinite alternate;
    }
    
    .navbar .nav-links::after {
        content: ""; position: absolute; top: 20px; right: 20px; width: 38px; height: 38px;
        background-image: url('../img/cactus.png'); background-size: contain; background-repeat: no-repeat;
        opacity: 0.7; pointer-events: none; z-index: 1; transform-origin: bottom center;
        animation: cactusBailando 1.2s ease-in-out infinite alternate; animation-delay: -0.6s;
    }
    
    .navbar .nav-links a { 
        font-size: 20px; 
        width: 100%; 
        padding: 12px 0; 
        display: block; 
        position: relative; 
        z-index: 2; 
    }
    
    .navbar .nav-links a:hover, .navbar .nav-links a:active { 
        background-color: rgba(105, 115, 89, 0.15); 
        color: #697359; 
    }
    
    .mobile-shop-btn { 
        display: inline-block; 
        width: 85%; 
        margin: 15px auto; 
        padding: 14px 0; 
        font-family: 'Poppins', sans-serif !important; 
        font-weight: 700 !important; 
        font-size: 16px; 
        box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
        flex-shrink: 0; 
        position: relative; 
        z-index: 2; 
    }
    
    .mobile-social-link {
        width: 55px !important;
        height: 55px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 14px !important;
        transition: 0.3s;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        overflow: hidden !important;
    }

    .mobile-social-link svg {
        width: 100% !important;
        height: 100% !important;
        max-width: 27px !important;  
        max-height: 27px !important;
        display: block !important;
    }
    
    .navbar .nav-links .mobile-socials::before {
        content: ""; position: absolute; bottom: -5px; left: 20px; width: 38px; height: 38px;
        background-image: url('../img/cactus.png'); background-size: contain; background-repeat: no-repeat;
        opacity: 0.7; pointer-events: none; transform-origin: bottom center; animation: cactusBailando 1.2s ease-in-out infinite alternate;
    }

    .navbar .nav-links .mobile-socials::after {
        content: ""; 
        position: absolute; 
        bottom: -5px; 
        right: 20px; 
        width: 38px; 
        height: 38px;
        background-image: url('../img/cactus.png'); 
        background-size: contain; 
        background-repeat: no-repeat;
        opacity: 0.7; 
        pointer-events: none; 
        transform-origin: bottom center; 
        animation: cactusBailando 1.2s ease-in-out infinite alternate; 
        animation-delay: -0.6s;
    }
}

/* Cambiar el color del título Paquete del Mes */
.sub-section-title h3 {
    color: #694321; /* Reemplaza este código por tu color preferido */
}

/* ==========================================================================
   RESPONSIVO PARA CELULARES
   ========================================================================== */
@media (max-width: 991px) {
    .navbar {
        padding: 15px 5%;
        justify-content: space-between;
    }

    /* 1. Reducir tamaño del logo en celular para ganar espacio */
    .logo-img { 
        height: 85px; /* Evita que el logo y sombrero se encimen con los lados */
    }

    /* 2. Ocultar los botones de escritorio arriba */
    .navbar .nav-actions { 
        display: none !important; 
    }

    /* 3. Mostrar el botón de hamburguesa con tus líneas originales */
    .menu-toggle { 
        display: flex; 
    }

    /* 4. Convertir el menú horizontal en un panel vertical desplegable */
    .navbar .nav-links { 
        display: flex; 
        flex-direction: column; 
        align-items: center;
        justify-content: flex-start;
        position: fixed; /* Cubre la pantalla correctamente */
        top: 116px; /* Ajusta este número si tu header mide más o menos de alto */
        left: -100%; /* Oculto inicialmente a la izquierda */
        width: 100%; 
        height: calc(100vh - 116px); 
        background-color: #ffffff; /* Fondo blanco para hacer match con tu estilo */
        transition: 0.4s ease; 
        padding: 40px 20px; 
        gap: 25px; 
        box-sizing: border-box;
        overflow-y: auto;
    }

    /* Clase activa que dispara tu JavaScript al presionar la hamburguesa */
    .navbar .nav-links.active { 
        left: 0; 
    }

    /* Ajuste de enlaces en móvil */
    .navbar .nav-links a {
        font-size: 22px; /* Un poco más grandes para que sean fáciles de tocar */
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    /* 5. Activar el botón verde "ORDENA AQUÍ" solo dentro del menú desplegable */
    .mobile-shop-btn { 
        display: inline-block !important; 
        width: 85%; /* Se adapta estéticamente al ancho del celular */
        margin-top: 10px;
    }

    /* 6. Activar y centrar las redes sociales al fondo del menú móvil */
    .mobile-socials {
        display: flex !important;
        justify-content: center;
        gap: 20px;
        margin-top: auto; /* Las empuja de forma limpia hasta abajo */
        padding-top: 20px;
        width: 100%;
    }

    /* Copia tus círculos exactos pero optimizados para menú móvil */
    .mobile-social-link {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .mobile-social-link svg {
        width: 20px;
        height: 20px;
    }
}

/* ==========================================================================
   CARTEL QR DE OPINIONES
   ========================================================================== */
.qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 45px; /* Separa el cartel del carrusel de opiniones de arriba */
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.qr-banner-img {
    max-width: 450px; /* Tamaño ideal y legible en computadoras */
    width: 100%;
    height: auto;
    border-radius: 15px; /* Redondea sutilmente las esquinas del cartel */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); /* Le da un sombreado elegante para que resalte */
    transition: transform 0.3s ease;
}

/* Efecto visual cuando pasas el mouse por encima en computadora */
.qr-banner-img:hover {
    transform: scale(1.02);
}

/* Ajuste responsivo para celulares */
@media (max-width: 480px) {
    .qr-container {
        margin-top: 30px;
    }
    .qr-banner-img {
        max-width: 100%; /* Permite que abarque el ancho del celular de forma cómoda */
    }
}

