:root {
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-muted: #888888;
    --text-muted-light: #aaaaaa;
    --accent-gold: #c5a974;
    --brand-red: #da291c;
}

/* --- Scrollbar Personalizado --- */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color); 
}
::-webkit-scrollbar-thumb {
    background-color: #333; 
    border-radius: 10px;
    border: 2px solid var(--bg-color);
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-gold); 
}

/* --- Corrección Obligatoria para Lenis (Smooth Scroll) --- */
html.lenis, html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}
.lenis.lenis-stopped {
    overflow: hidden;
}
.lenis.lenis-scrolling iframe {
    pointer-events: none;
}
/* -------------------------------------------------------- */

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

/* --- Header & Navegación --- */
.top-bar {
    position: relative;
    padding-top: 20px;
}

/* --- Switch Interactivo de Idiomas --- */
.lang-toggle-wrapper {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.lang-switch {
    position: relative;
    display: flex;
    width: 130px;
    height: 42px;
    background: #111;
    border-radius: 50px;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.9), 
                inset 0 -1px 2px rgba(255, 255, 255, 0.05),
                0 2px 5px rgba(0,0,0,0.5);
    padding: 4px;
}

.lang-switch input { display: none; }

.lang-switch label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px; 
    font-size: 0.95rem;
    font-weight: 600;
    color: #888; 
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s cubic-bezier(0.5, 1.5, 0.4, 1), filter 0.3s ease;
    user-select: none;
    opacity: 0.5;
    filter: grayscale(100%); 
}

.lang-switch input:checked + label {
    opacity: 1;
    color: #111; 
    filter: grayscale(0%);
    transform: scale(1.05); 
}

.lang-switch .slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(145deg, var(--accent-gold), #a38956);
    border-radius: 50px;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); 
    box-shadow: 0 3px 6px rgba(0,0,0,0.4), 
                inset 0 1px 2px rgba(255,255,255,0.6);
}

.lang-switch input#lang-en:checked ~ .slider { transform: translateX(100%); }

.lang-switch label img {
    width: 18px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.5);
    transition: filter 0.3s ease;
}

.brand-logo {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.35rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'droid-serif-w01-regular', 'droid-serif-w02-regular', 'droid-serif-w10-regular', serif;
    transition: color 0.3s, font-weight 0.3s;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 50%;
    background-color: var(--accent-gold);
    transition: width 0.3s ease, left 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--accent-gold);
    font-weight: bold;
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
    left: 0;
}

/* --- Menú Mobile --- */
.mobile-menu-toggle {
    display: none; 
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    font-size: 1.5rem;
    padding: 6px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 auto 2rem auto;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001; 
}

.mobile-menu-toggle:hover { background: rgba(197, 169, 116, 0.1); }

/* --- Sección Estadísticas --- */
.stats-section { padding: 5rem 0; }

.stats-title {
    color: #8b8882;
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 4rem;
}

.stat-number {
    font-size: 5.5rem;
    font-weight: 200;
    color: #e5e3dc;
    margin-bottom: 0;
    font-family: 'Barlow Condensed', 'din-next-w01-light', sans-serif;
    line-height: 1;
    letter-spacing: 2px;
}

.stat-label {
    font-size: 1.2rem;
    color: #615f5a;
    font-weight: 700;
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: none; 
    margin-top: 5px;
    letter-spacing: 0.5px;
}

/* --- Sección Galería Carrusel 3D --- */
.gallery-section {
    padding: 4rem 0;
    overflow: hidden;
    background-color: #000; 
}

.scene {
    width: 100%;
    height: clamp(350px, 35vw, 600px); 
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-3d {
    width: 45%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    cursor: grab;
    user-select: none;
}

.carousel-3d:active { cursor: grabbing; }

.carousel__cell {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.9s ease, z-index 0s;
}

.carousel__cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0,0,0,0.9);
    border-radius: 12px;
}

.carousel__cell { opacity: 0; transform: scale(0.2) translateZ(-400px); z-index: 1; visibility: hidden; }
.carousel__cell.is-selected { opacity: 1; transform: translateX(0) scale(1) translateZ(0); z-index: 20; visibility: visible; }
.carousel__cell.is-prev1 { transform: translateX(-55%) scale(0.85) translateZ(-50px); opacity: 0.9; z-index: 19; visibility: visible; }
.carousel__cell.is-next1 { transform: translateX(55%) scale(0.85) translateZ(-50px); opacity: 0.9; z-index: 19; visibility: visible; }
.carousel__cell.is-prev2 { transform: translateX(-100%) scale(0.7) translateZ(-100px); opacity: 0.7; z-index: 18; visibility: visible; }
.carousel__cell.is-next2 { transform: translateX(100%) scale(0.7) translateZ(-100px); opacity: 0.7; z-index: 18; visibility: visible; }
.carousel__cell.is-prev3 { transform: translateX(-140%) scale(0.55) translateZ(-150px); opacity: 0.4; z-index: 17; visibility: visible; }
.carousel__cell.is-next3 { transform: translateX(140%) scale(0.55) translateZ(-150px); opacity: 0.4; z-index: 17; visibility: visible; }
.carousel__cell.is-prev4 { transform: translateX(-170%) scale(0.4) translateZ(-200px); opacity: 0.1; z-index: 16; visibility: visible; }
.carousel__cell.is-next4 { transform: translateX(170%) scale(0.4) translateZ(-200px); opacity: 0.1; z-index: 16; visibility: visible; }

/* --- Sección Nuestra Carta (Menú) --- */
.menu-section {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

.menu-controls {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu-search {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-bottom: 2rem;
}

.menu-search input {
    width: 100%;
    padding: 12px 45px 12px 25px;
    border-radius: 30px;
    background: #111;
    border: 1px solid #333;
    color: var(--text-main);
    outline: none;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.menu-search input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 8px rgba(197, 169, 116, 0.3);
}

.menu-search i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.menu-tab-btn {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
}

.menu-tab-btn.active, .menu-tab-btn:hover {
    background: var(--accent-gold);
    color: #050505;
}

.menu-category-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: var(--text-main);
    margin-bottom: 2rem;
    margin-top: 3rem;
    text-transform: uppercase;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 15px; 
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
    background-color: transparent;
    border: 1px solid transparent;
}

/* --- Nuevo efecto Hover en la Carta --- */
.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.03); 
    transform: translateY(-5px); 
    border-color: rgba(197, 169, 116, 0.2); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.5); 
}

.menu-item-info {
    flex: 1;
    padding-right: 20px;
}

.menu-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.menu-item-desc {
    font-size: 0.85rem;
    color: var(--text-muted-light);
    line-height: 1.4;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-item-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.menu-item-img-container {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.menu-item-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease; 
}

/* Zoom en la imagen al hacer hover en el contenedor del plato */
.menu-item:hover .menu-item-img-container img {
    transform: scale(1.1);
}

/* --- Formularios y Wizard --- */
.proposal-section {
    padding: 5rem 0;
    background-color: #0a0a0a;
    border-top: 1px solid #222;
}

.proposal-form-container {
    background: #111;
    border-radius: 10px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border: 1px solid #222;
    max-width: 830px;
    margin: 0 auto;
}

.form-label {
    font-size: 0.85rem;
    color: #ccc;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.required-asterisk {
    color: var(--brand-red);
    margin-left: 2px;
}

.form-control, .form-select {
    background-color: #050505;
    border: 1px solid #333;
    color: #fff;
    padding: 12px 15px;
    border-radius: 6px;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    background-color: #000;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.25rem rgba(197, 169, 116, 0.25);
    color: #fff;
}

.form-control::placeholder { color: #555; }

.form-control[type="date"], .form-control[type="time"] {
    color-scheme: dark; 
}

.form-text.text-muted {
    color: #a0a0a0 !important; 
}

.form-check-input {
    background-color: #222;
    border-color: #444;
}

.form-check-input:checked {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.form-check-label {
    font-size: 0.9rem;
    color: #dddddd; 
    cursor: pointer;
}

.other-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.other-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #555;
    color: #fff;
    padding: 2px 5px;
    width: 100%;
    outline: none;
    transition: border-color 0.3s;
}

.other-input:focus { border-bottom-color: var(--accent-gold); }

.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.stepper-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.stepper-item::before {
    position: absolute;
    content: "";
    border-bottom: 2px solid #333;
    width: 100%;
    top: 20px;
    left: -50%;
    z-index: 1; 
    transition: border-color 0.4s ease;
}

.stepper-item:first-child::before { content: none; }

.stepper-item.completed::before, 
.stepper-item.active::before {
    border-bottom-color: var(--accent-gold);
}

.step-counter {
    position: relative;
    z-index: 5; 
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #111; 
    border: 2px solid #333;
    margin-bottom: 8px;
    color: #555;
    font-weight: bold;
    transition: all 0.4s ease;
}

.stepper-item.active .step-counter, 
.stepper-item.completed .step-counter {
    border-color: var(--accent-gold);
    background: var(--accent-gold);
    color: #050505;
}

.step-name {
    font-size: 0.75rem;
    color: #555;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.4s ease;
    letter-spacing: 1px;
}

.stepper-item.active .step-name, 
.stepper-item.completed .step-name { color: var(--accent-gold); }

.form-step {
    display: none;
    animation: fadeInStep 0.4s ease;
}

.form-step.step-active { display: block; }

@keyframes fadeInStep {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px dashed #333;
}

.btn-prev {
    background: transparent;
    border: 1px solid #555;
    color: #aaa;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-prev:hover {
    background: #222;
    color: #fff;
    border-color: #777;
}

.btn-next, .submit-btn {
    background-color: var(--accent-gold);
    color: #050505;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    margin-left: auto; 
}

.btn-next:hover, .submit-btn:hover {
    background-color: #dfbf86;
    transform: translateY(-2px);
}

/* El botón enviar hereda la elegancia del botón 'Siguiente', solo le añadimos un pequeño resplandor al hacer hover para destacarlo */
.submit-btn:hover {
    box-shadow: 0 5px 15px rgba(197, 169, 116, 0.4);
}

/* --- Animación de Errores de Validación (Deslizamiento de Derecha a Izquierda) --- */
.error-msg-custom {
    color: var(--brand-red);
    font-size: 0.9rem;
    margin-top: 1rem;
    display: none;
    background: rgba(218, 41, 28, 0.1);
    padding: 10px;
    border-radius: 6px;
    border-left: 4px solid var(--brand-red);
    animation: slideFromRight 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Animar también los mensajes de error por defecto de Bootstrap */
.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-select:invalid ~ .invalid-feedback {
    display: block;
    animation: slideFromRight 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideFromRight {
    from {
        opacity: 0;
        transform: translateX(40px); /* Empieza desplazado a la derecha */
    }
    to {
        opacity: 1;
        transform: translateX(0); /* Termina en su posición original moviéndose a la izquierda */
    }
}

/* --- Animación de los mensajes de error de Derecha a Izquierda --- */
.form-control.is-invalid ~ .invalid-feedback,
.form-select.is-invalid ~ .invalid-feedback {
    display: block;
    animation: slideFromRight 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* --- Animación del ícono nativo de Bootstrap --- */
.form-control.is-invalid {
    animation: slideIconRightToLeft 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slideIconRightToLeft {
    from {
        /* 100% es el borde derecho. +40px lo esconde completamente por la derecha */
        background-position: calc(100% + 40px) center; 
    }
    to {
        /* Bootstrap posiciona el ícono a unos ~12px del borde derecho */
        background-position: calc(100% - 12px) center; 
    }
}
/* --- Quitar ícono de validación en los selects y dejar solo el borde rojo --- */
.form-select.is-invalid {
    /* Restaura solo la flecha original del select */
    background-image: var(--bs-form-select-bg-img) !important;
    /* Evita que quede un espacio vacío a la derecha donde iba el ícono */
    padding-right: 2.25rem !important; 
}

/* --- Sección Contacto --- */
.contact-section {
    padding-top: 4rem;
    padding-bottom: 0;
}

.contact-header { margin-bottom: 3rem; }

.contact-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 8px;
    font-size: 2.5rem;
    text-transform: uppercase;
    color: #b5b5ac;
}

.contact-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.contact-blocks {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 250px;
    text-align: center;
    padding: 2rem;
    text-decoration: none; 
    position: relative;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

.contact-box:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    z-index: 10;
}

.contact-box i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.contact-box p {
    font-size: 0.85rem;
    margin: 0;
    letter-spacing: 1px;
}

.box-email { background-color: #f4f4f4; color: #333; }
.box-email i { color: #555; }
.box-phone { background-color: var(--brand-red); color: white; }
.box-insta {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('../img/11062b_6d938a0f36204f6c910b0741a716f54e~mv2.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
}
.box-insta i {
    border: 2px solid white;
    border-radius: 8px;
    padding: 10px;
    font-size: 2rem;
}

/* --- Animaciones de Transición de Idioma y Scroll (Reveal) --- */
[data-i18n] {
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: inline-block; 
}

.lang-transition-hide {
    opacity: 0 !important;
    transform: translateY(-5px) !important;
}

.reveal-element {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.reveal-element.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1) !important;
}

.reveal-up { transform: translateY(60px); }
.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }

/* ==========================================
   DISEÑO RESPONSIVO Y MENÚ MÓVIL
   ========================================== */
@media (max-width: 991px) {
    
    /* 1. Mostramos el botón de hamburguesa arriba a la derecha */
    .mobile-menu-toggle {
        display: block; 
        position: absolute;
        top: 20px;
        right: 20px;
        margin: 0; /* Esto quita el centrado que tenía antes */
    }

    /* 2. Movemos el idioma a la izquierda para que no choquen */
    .lang-toggle-wrapper {
        right: auto;
        left: 20px;
    }

    /* 3. El menú a pantalla completa (este ya lo tenías) */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        margin: 0;
        gap: 2.5rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }

    /* 3. Cuando el JS le añade la clase 'open', el menú aparece suavemente */
    .main-nav.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* 4. Agrandamos un poco la letra para que sea fácil de tocar con el dedo */
    .main-nav a {
        font-size: 1.8rem;
    }
    
    /* Ajuste fino para la imagen 3D en móviles */
    .carousel-3d {
        width: 75%;
    }
    
    /* Ajustes para las estadísticas en celulares */
    .stat-number {
        font-size: 3.5rem;
    }
}

@media (max-width: 576px) {
    .brand-logo img {
        max-width: 280px; /* Logo un poco más pequeño en celulares */
    }
    .contact-title {
        font-size: 1.8rem;
    }
}