:root {
    --bg-terracota: #A6401B;
    --crema: #D4C9B0;
    --gold: #C4A45A;
    --glass-white: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

.menu-premium-section {
   background-color: var(--bg-terracota);
    padding: 40px 5% 100px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    
    /* --- FUERZA EL CENTRADO DE TODOS LOS BLOQUES HIJOS --- */
    display: flex;
    flex-direction: column;
    align-items: center; /* Esto alineará el divisor, el header y los filtros al centro exacto */
    width: 100%;
    box-sizing: border-box;
}

/* DIVISOR CON PEPITA */
.elegant-divider {
display: flex !important;
    align-items: center !important;      
    justify-content: center !important;  
    gap: 15px;
    margin-bottom: 20px;
    width: 100% !important;
}

.elegant-divider .line {
    height: 1px;                             /* Grosor elegante */
    width: 200px !important;                 /* ← El ancho que tú quieras (puedes probar con 250px, 300px o 350px) */
    min-width: 250px !important;             /* ← ¡CLAVE! Prohíbe rotundamente al navegador encoger la línea */
    flex-shrink: 0 !important;               /* ← Evita que Flexbox la colapse */
    background-color: var(--crema) !important; /* Color sólido continuo */
    opacity: 0.5;                            /* Sofisticado y sutil */
}

.elegant-divider .dot-diamond {
 width: 8px;
    height: 8px;
    background-color: var(--crema);
    transform: rotate(45deg);
    flex-shrink: 0 !important;               /* Protege también al diamante */
}

/* TITULO BICOLOR */
.main-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin: 15px 0;
}

.text-crema {
    color: var(--crema);
}

.text-gold {
    color: var(--gold);
    font-style: italic;
    font-weight: 400;
    margin-left: 10px;
}

.subtitle {
    color: var(--crema);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 50px;
    font-weight: 300;
}

/* BARRA FILTROS */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
}

.filter-item {
    background: var(--glass-white);
    border: 1px solid var(--glass-border);
    color: var(--crema);
    padding: 10px 20px;
    border-radius: 4px;
    /* Estilo más cuadrado como en la imagen */
    cursor: pointer;
    font-size: 0.75rem;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
}

.filter-item.active {
    background: var(--crema);
    color: var(--bg-terracota);
    font-weight: bold;
}

/* TARJETAS GLASS */
.dishes-grid {
   display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas fijas en escritorio */
    gap: 30px;
}

.dish-card {
    background: rgba(210, 168, 168, 0.282);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    text-align: left;
    /* Quitamos el cursor pointer porque ya no hay click para zoom */
    transition: transform 0.3s ease;
}

.dish-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;

}

.dish-content {
    padding: 25px;
}

.dish-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--crema);
    font-size: 1.5rem;
}
/* --- NUEVA JERARQUÍA DE TEXTOS EN LAS TARJETAS --- */

/* 1. Título Principal (Grande y con peso Serif elegante) */
.dish-content .dish-title {
    font-family: 'Playfair Display', serif;
    color: var(--crema);
    font-size: 1.8rem; /* Tamaño dominante */
    font-weight: 700;
    margin-bottom: 4px;
}

/* 2. Frase Destacada / Subtítulo (Más pequeña, estilo Serif itálico muy elegante) */
.dish-content .dish-tagline {
    font-family: 'Playfair Display', serif;
    color: var(--gold); /* Tono dorado para que contraste con estilo */
    font-style: italic;
    font-weight: 400;
    font-size: 1.1rem;
    margin-bottom: 12px;
    opacity: 0.9;
}

/* 3. Párrafo descriptivo */
.dish-content .dish-desc {
    font-family: 'Inter', sans-serif;
    color: var(--crema);
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.75; /* Más opaco para dar prioridad a los títulos anteriores */
    margin-bottom: 15px;
}
.dish-content .price {
    color: var(--gold);
    font-weight: bold;
    margin-top: 10px;
    display: block;
}

/* NAVEGACIÓN MÓVIL */
.mobile-navigation {
   display: flex; /* Ahora se muestra siempre en PC y Móvil */
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
}
.glass-nav-btn:hover {
    background: var(--crema);
    color: var(--bg-terracota);
    transform: scale(1.05);
    transition: all 0.3s ease;
}
.glass-nav-btn {
    background: var(--glass-white);
    border: 1px solid var(--glass-border);
    color: var(--crema);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
}

/* MODAL / X SUPERIOR */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999999;
    /* Flexbox para centrado total */
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    height: auto;
    border-radius: 20px 20px 0 0;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 50px;
    cursor: pointer;
    z-index: 10000000;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .dishes-grid {
       grid-template-columns: repeat(3, 1fr);
    }

    .mobile-navigation {
        display: flex;
    }
}

@media (max-width: 768px) {
    .dishes-grid {
        grid-template-columns: 1fr; /* 1 sola columna en móvil como ya lo tenías */
    }
    
    .mobile-navigation {
        margin-top: 40px; /* Mantiene la separación en celular */
    }
}

/* ==========================================
   PANTALLA DE PRECARGA (PRELOADER)
   ========================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #243529; /* El color verde oscuro corporativo de tu preloader */
    z-index: 99999; /* Máxima prioridad sobre cualquier menú o slider */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, vertical-align 0.6s ease, visibility 0.6s;
    opacity: 1;
    visibility: visible;
}

/* Contenedor centralizado */
.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* El círculo del logo */
.loader-logo-circle {
    width: 90px;
    height: 90px;
    border: 1px solid rgba(130, 142, 101, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 25px;
}

/* Efecto de doble aro sutil del mockup */
.loader-logo-circle::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px solid #828E65; /* Color verde oliva */
    border-radius: 50%;
}

.loader-logo-circle span {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #828E65;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 2;
}

/* Textos informativos de marca */
.loader-brand-title {
    font-family: 'Playfair Display', serif;
    color: #828E65;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 4px;
    margin: 0 0 8px 0;
}

.loader-brand-subtitle {
    font-family: 'Inter', sans-serif;
    color: #828E65;
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.8;
    margin: 0;
}

/* Línea divisoria minimalista */
.loader-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #828E65, transparent);
    width: 60px;
    margin: 20px 0;
    opacity: 0.5;
}

/* ANIMACIÓN DE LOS 3 PUNTOS */
.loader-dots {
    display: flex;
    gap: 8px;
}

.loader-dots span {
    width: 6px;
    height: 6px;
    background-color: #828E65; /* Color oliva para los puntos */
    border-radius: 50%;
    opacity: 0.3;
    animation: blinkDots 1.4s infinite ease-in-out both;
}

/* Desfase de tiempo para que se muevan de forma consecutiva */
.loader-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loader-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes blinkDots {
    0%, 80%, 100% { 
        transform: scale(0.8);
        opacity: 0.3;
    } 
    40% { 
        transform: scale(1.2);
        opacity: 1; /* El punto se ilumina y crece cuando está activo */
    }
}

/* Clase para ocultar suavemente con JavaScript */
#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}




/*MENU PROVICIONAL*/

/* ==========================================
   SECCIÓN SELECCIÓN DE MENÚS (CTA)
   ========================================== */
.cta-menu-section {
    background-color: #A6401B; /* El fondo verde oscuro e identitario de la marca */
    padding: 100px 0;
    width: 100%;
    text-align: center;
    color: #D4C9B0;
    font-family: 'Inter', sans-serif;
    border-bottom: 1px solid rgba(130, 142, 101, 0.1);
}

.cta-menu-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-pretitle {
    font-size: 0.95rem;
    font-style: italic;
    opacity: 0.75;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    line-height: 1.2;
    color: #FFFFFF;
    margin: 0 0 45px 0;
    font-weight: 600;
}

.cta-italic-title {
    font-style: italic;
    font-weight: 300;
    color: #D4C9B0; /* Tono crema sofisticado */
}

/* CONTENEDOR Y BOTÓN DINÁMICO */
.cta-button-wrapper {
    display: flex;
    justify-content: center;
}

.btn-cta-menu {
    background-color: #e1dedd; /* Tu color base exacto */
    color: #151414;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    padding: 18px 50px;
    border-radius: 30px; /* Bordes redondeados idénticos al mockup */
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(166, 64, 27, 0.25);
    transition: background-color 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

/* Efecto hover elegante de alta gama */
.btn-cta-menu:hover {
    background-color: #efd0bd; /* Cambia hacia tu marrón Arcilla al pasar el cursor */
    transform: translateY(-4px); /* Sube suavemente */
    box-shadow: 0 15px 30px rgba(191, 117, 75, 0.4);
    color: #191919;
}

.btn-cta-menu i {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ==========================================
   RESPONSIVO DE LA SECCIÓN
   ========================================== */
@media (max-width: 768px) {
    .cta-menu-section {
        padding: 80px 0;
    }
    
    .btn-cta-menu {
        width: 80%; /* En móviles se ensancha un poco para mejorar el área de click */
        justify-content: center;
        padding: 16px 30px;
    }
}