/* --- VARIABLES Y CONFIGURACIÓN GENERAL --- */
:root {
    --primary-color: #8B733D; /* Dorado oliva predominante */
    --dark-bg: #12161A;      /* Fondo oscuro / negro */
    --light-bg: #FAF8F5;     /* Fondo crema suave */
    --text-dark: #2B2B2B;
    --text-light: #FFFFFF;
    --card-bg: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
}

/* ==========================================
   ESTILOS DE LA BARRA DE NAVEGACIÓN (DESKTOP)
   ========================================== */
.navbar {
    background-color: var(--dark-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    color: var(--text-light);
    position: relative;
    z-index: 1000;
}

/* Tamaño de logo */
.brand-logo {
    width: 150px;
    height: auto;
    margin-top: 10px;
}

.card-icon-svg {
    width: 45px;
    height: 45px;
}

/* Icono de redes*/
.redes {
    width: 20px;
    height: auto;
    padding-right: 5px;
}

.logo .brand-name {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-light);
    display: block;
    line-height: 1;
}

.logo .brand-sub {
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--primary-color);
}

/* Enlaces principales escritorio */
.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    margin: 0; /* Limpiado el margen antiguo que rompía el alineado */
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* --- ESTRUCTURA DROPDOWN (ESCRITORIO) --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-toggle .arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

/* Menú oculto por defecto */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1A1F24;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 5px 0;
    margin-top: 0;
}

.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.dropdown-menu a {
    color: var(--text-light);
    padding: 10px 20px;
    display: block;
    font-size: 14px;
    text-align: left;
}

.dropdown-menu a:hover {
    background-color: #2C3238;
    color: var(--primary-color);
}

/* Mostrar dropdown al pasar el mouse (Escritorio) */
@media (min-width: 993px) {
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    .dropdown:hover .dropdown-toggle .arrow {
        transform: rotate(180deg);
    }
    
}
@media (max-width: 992px) {
    /* ... otros estilos móviles ... */
        /* 1. Contenedor principal del dropdown expandido al 100% */
    .dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .dropdown-menu {
    display: none !important; /* Forzamos el ocultado inicial */
    position: static;
    transform: none;
    width: 100%;
    background-color: #161A1E;
    box-shadow: none;
    padding: 0;
    margin-top: 0;
    }

     /* 3. ACCIÓN CLAVE: Cuando el contenedor tiene la clase .active, mostramos la lista */
    .dropdown.active .dropdown-menu {
        display: block !important;
    }

    /* Estilos del botón para que se alinee idéntico a los demás enlaces */
    .dropdown-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid #1A1F24; /* La línea cruzará limpia de lado a lado */
        color: var(--text-light);
        text-decoration: none;
        font-size: 15px; /* Asegura el mismo tamaño de los otros enlaces */
        text-align: center;
    }

    /* 4. Enlaces de comidas en el entorno móvil */
    .dropdown-menu a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px 0;
        background-color: #171C21;
        border-bottom: 1px solid #1F252C;
        color: #A0A5A9;
    }

    .order-form {
        flex-direction: column; /* Apila los campos uno debajo del otro */
        width: 100%;
        gap: 15px;              /* Deja una separación elegante entre selectores */
        padding: 15px;          /* Ajusta el espacio interno */
    }

    .form-group {
        width: 100%;            /* Hace que cada selector ocupe todo el ancho disponible */
    }

    .btn-submit-order {
        width: 100%;            /* Hace que el botón de WhatsApp ocupe todo el ancho */
        padding: 15px;
        margin-top: 10px;
        text-align: center;
    }
}

/* Botón de acción e interfaz */
.btn-order-nav {
    background-color: var(--primary-color);
    color: white !important;
    padding: 10px 22px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}

.nav-actions-mobile {
    display: none;
}

.menu-toggle {
    display: none;
}

/* --- HERO --- */
.hero {
    background-image: linear-gradient(rgba(18, 22, 26, 0.75), rgba(18, 22, 26, 0.75)), url('../img/slider.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: var(--text-light);
    display: flex;
    padding: 80px 8%;
    align-items: center;
    min-height: 80vh;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content .highlight {
    color: var(--primary-color);
}

.hero-buttons {
    margin: 30px 0;
}

.btn-whatsapp {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 25px;
    margin-right: 15px;
    display: inline-block;
}

.btn-outline {
    border: 1px solid white;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 25px;
    display: inline-block;
}

.hero-features {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    font-size: 12px;
}

/* --- SECCIÓN PLANES --- */
.plans-section {
    text-align: center;
    padding: 60px 8%;
}

.section-subtitle {
    color: var(--primary-color);
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.plans-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
}

.plans-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.plan-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 30px;
    width: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-header .card-icon {
    font-size: 32px;
    color: var(--primary-color);
}

.plan-options {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.plan-options li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.btn-plan {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

/* --- FORMULARIO PEDIDO RÁPIDO --- */
.quick-order {
    background-color: #1A1F24;
    color: white;
    padding: 40px 8%;
    border-radius: 8px;
    margin: 40px 8%;
}

.order-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.order-form {
    display: flex;
    gap: 15px;
    background: #2C3238;
    padding: 20px;
    border-radius: 8px;
    flex-grow: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.form-group label {
    font-size: 12px;
    margin-bottom: 5px;
    color: #A0A5A9;
}

.form-group select {
    background: transparent;
    border: 1px solid #4F555A;
    color: white;
    padding: 10px;
    border-radius: 4px;
}

.btn-submit-order {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.delivery-notice {
    text-align: center;
    font-size: 12px;
    margin-top: 15px;
    color: #A0A5A9;
}

/* --- PRODUCTO ADICIONAL --- */
.addon-product {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding: 60px 8%;
}

.addon-info .price {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 15px 0;
}

.btn-add-cart {
    background-color: var(--dark-bg);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* --- CÓMO FUNCIONA --- */
.how-it-works {
    text-align: center;
    padding: 60px 8%;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 20px;
}

.step {
    flex: 1;
}

.step-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

/* --- FOOTER --- */
footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 50px 8% 20px 8%;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    border-bottom: 1px solid #232930;
    padding-bottom: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h5 {
    color: #A0A5A9;
    margin-bottom: 15px;
    font-size: 12px;
    letter-spacing: 1px;
}

.footer-column a {
    color: white;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 12px;
    color: #6C7278;
}

/* ==========================================
   DISEÑO RESPONSIVO (MÓVILES Y TABLETAS)
   ========================================== */
@media (max-width: 992px) {
    .nav-actions {
        display: none;
    }

    /* Navbar contenedor */
    .navbar {
        flex-direction: row; /* CORREGIDO: Mantiene el logo a la izquierda y hamburguesa a la derecha */
        justify-content: space-between;
        padding: 15px 5%;
        gap: 0;
    }

    /* Botón hamburguesa visible */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1002;
    }

    .menu-toggle .bar {
        width: 100%;
        height: 3px;
        background-color: var(--text-light);
        transition: all 0.3s ease;
    }

    /* Animación menú abierto */
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

    /* Menú móvil cortina */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark-bg);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        box-shadow: 0 10px 15px rgba(0,0,0,0.3);
    }

    /* Estado abierto por JavaScript */
    .nav-links.active {
        max-height: 500px;
        padding-bottom: 25px;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid #1A1F24;
        margin: 0;
    }
    
    .nav-links.active {
        max-height: 700px; /* Se aumentó de 500px a 700px para dar espacio al submenú extendido */
        padding-bottom: 25px;
    }


    /* ==========================================
   ESTILOS ESPECÍFICOS DE LA PÁGINA DE MENÚS
   ========================================== */
.menu-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* --- HERO DE LA CHEF --- */
.menu-hero-chef {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: #1A1F24;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.chef-video-wrapper {
    flex: 1;
    max-width: 450px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.chef-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.chef-info-text {
    flex: 1.2;
    color: white;
}

.tag-category {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

.chef-info-text h1 {
    font-size: 36px;
    margin: 10px 0 20px 0;
    line-height: 1.2;
}

.gold-text { color: var(--primary-color); }

.chef-quote {
    font-style: italic;
    color: #A0A5A9;
    font-size: 16px;
    line-height: 1.6;
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 25px;
}

.chef-features-mini span {
    display: inline-block;
    background-color: #2C3238;
    padding: 8px 16px;
    border-radius: 6px;
    margin-right: 10px;
    font-size: 13px;
}

/* --- SECCIÓN SLIDER INTERACTIVO --- */
.dishes-slider-section {
    text-align: center;
    margin-bottom: 60px;
}

.slider-title {
    font-size: 24px;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.slider-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 25%;
    width: 50%;
    height: 3px;
    background-color: var(--primary-color);
}

.slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    min-height: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.slide-card {
    display: none;
    flex-direction: column;
    width: 100%;
    height: 100%;
    animation: fadeIn 0.5s ease-in-out;
}

.slide-card.active {
    display: flex;
}

.slide-img-box {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.slide-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-info-box {
    padding: 25px;
    text-align: left;
    background-color: white;
}

.slide-info-box h4 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.slide-info-box p {
    color: #6C7278;
    font-size: 14px;
}

.slider-arrow {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: transform 0.2s;
}

.slider-arrow:hover { transform: scale(1.1); }

.slider-dots {
    margin-top: 15px;
}

.slider-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #D1D5DB;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.slider-dots .dot.active {
    background-color: var(--primary-color);
    width: 24px;
    border-radius: 10px;
}

/* --- CUADRÍCULA DETALLADA DEL MENÚ --- */
.menu-grid-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.menu-category-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border-top: 4px solid #1A1F24;
}

.menu-category-box.pricing-box {
    border-top-color: var(--primary-color);
    background-color: #FAF8F5;
}

.cat-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-list {
    list-style: none;
}

.cat-list li {
    padding: 10px 0;
    border-bottom: 1px solid #F3F4F6;
    font-size: 14px;
    color: #4B5563;
}

.category-note {
    font-size: 11px;
    color: var(--primary-color);
    margin-top: 15px;
    font-style: italic;
}

.pricing-list {
    list-style: none;
    margin-bottom: 20px;
}

.pricing-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #E5E7EB;
    font-size: 13px;
}

.pricing-list li strong { color: var(--primary-color); }

.chili-addon {
    background-color: #FEF2F2;
    padding: 8px !important;
    border-radius: 4px;
    margin-top: 10px;
}

.btn-order-now-menu {
    display: block;
    background-color: var(--primary-color);
    color: white !important;
    text-align: center;
    text-decoration: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    margin-top: 15px;
    transition: background 0.3s;
}

.btn-order-now-menu:hover { background-color: #725E31; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- RESPONSIVO --- */
@media (max-width: 992px) {
    .menu-hero-chef {
        flex-direction: column;
        text-align: center;
    }
    .chef-quote {
        border-left: none;
        border-top: 2px solid var(--primary-color);
        padding-left: 0;
        padding-top: 15px;
    }
    .slider-arrow { display: none; } /* Ocultar flechas en móvil para usar swipe/dots */
}



/* --- ESTILOS PARA INPUTS DE CANTIDAD EN LISTAS --- */
.cat-list-inputs {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cat-list-inputs li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #F3F4F6;
    font-size: 14px;
    color: #4B5563;
    gap: 10px;
}

.dish-name {
    text-align: left;
    line-height: 1.3;
    flex: 1;
}

/* El cuadro numérico estilizado */
.quantity-input {
    width: 60px;
    padding: 6px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    background-color: #FAF8F5;
    color: var(--text-dark);
    outline: none;
}

.quantity-input:focus {
    border-color: var(--primary-color);
    background-color: white;
}




