/* --- Tipografía --- */
/* Tipografía para Títulos (Ej: h1, h2) */
:root {
    /* Define las fuentes y colores principales como variables CSS */
    --font-title: 'Quintessential', serif;
    --font-body: 'Montserrat', sans-serif;

    --color-primary: #8b6232;
    --color-secondary: #a57c46;
    --color-text-dark: #333;
    --color-text-light: #fff;
    --color-background: #f4f4f4;
    --header-height: 60px;

    /* Nuevos tokens para modernización */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Estilos base con la nueva tipografía de contenido */
body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    background-color: var(--color-background);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    box-sizing: border-box;
    /* Incluir padding en el ancho total */
}

/* Aplicar tipografía de títulos */
h1,
h2,
h3 {
    font-family: var(--font-title);
    font-weight: normal;
    /* La fuente 'Quintessential' se ve mejor con peso normal */
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- CLASES DE UTILIDAD MODERNAS --- */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: var(--glass-shadow);
    padding: 30px;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Tipografía refinada */
p {
    line-height: 1.8;
    letter-spacing: 0.2px;
}

h1,
h2,
h3 {
    letter-spacing: 1px;
}

/* --- HEADER / NAVEGACIÓN --- */

header {
    background-color: #ffffff00;
    /* Transparente por defecto */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

/* Estilo para el header cuando se hace scroll */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    /* Blanco semi-transparente */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    height: var(--header-height, 60px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.navbar {
    /* Eliminamos width: 100vw; que puede causar overflow */
    max-width: 100%;
    width: 100%;
    /* Asegura que ocupe el ancho del padre (header) */
    margin: 0 auto;
    /* Reducimos ligeramente el padding lateral para ganar espacio en desktop medio */
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    /* AÑADIDO: Espacio limpio entre el logo y el nombre */
    gap: 10px;
}

.logo {
    width: 50px;
    /* Tamaño del logo en el header (Desktop) */
    height: 50px;
    /* MODIFICADO: ELIMINAMOS EL MARGEN NEGATIVO */
    margin-right: 0;
    border-radius: 50%;
    /* Si quieres que sea redondo */
}

.restaurant-name {
    font-family: var(--font-title);
    /* MODIFICADO: Reducción inicial para ganar espacio */
    font-size: 1.6em;
    color: var(--color-primary);
    margin: 0;
    transition: font-size 0.3s ease;
}

/* Reducir el tamaño del nombre al hacer scroll */
header.scrolled .restaurant-name {
    font-size: 1.3em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Reducido de 20px para evitar amontonamiento */
}

.nav-links a,
.dropbtn {
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: 700;
    padding: 10px 10px;
    /* Reducido padding horizontal */
    transition: var(--transition-smooth);
    font-size: 0.95em;
    /* Ligeramente más pequeño */
    position: relative;
    white-space: nowrap;
    /* CRÍTICO: Evita que el texto se parta en dos líneas */
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 80%;
}

.nav-links a:hover,
.dropbtn:hover {
    color: var(--color-primary);
}

/* Destacar el botón de Reservar en la navegación */
#nav-reservations {
    background: var(--color-primary);
    color: white;
    border-radius: 25px;
    padding: 8px 20px;
    box-shadow: 0 4px 10px rgba(139, 98, 50, 0.3);
}

/* Hide desktop navbar reservation button ON HOME PAGE ONLY to avoid redundancy with Hero button */
.home-page #nav-reservations {
    display: none;
}


/* DROPDOWN MENU */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 5px;
}

.dropdown-content a {
    color: var(--color-text-dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 1em;
    font-weight: 400;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* --- SELECTOR DE IDIOMA --- */
.language-selector-compact {
    display: flex;
    gap: 5px;
    align-items: center;
}

.lang-btn {
    background: none;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 5px 8px;
    cursor: pointer;
    font-size: 0.9em;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.lang-btn:hover,
.lang-btn.active {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

/* Ocultar selector móvil por defecto */
.language-selector-mobile {
    display: none;
}

/* --- MENÚ MÓVIL (OFF-CANVAS) --- */

/* Ocultar botón de menú móvil en desktop */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn img {
    width: 30px;
    height: 30px;
}

/* Botón de reservas móvil - Mejorado */
.mobile-reservation-btn {
    display: none;
    background: linear-gradient(135deg, #a67c52 0%, #8b6232 100%);
    color: var(--color-text-light);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(139, 98, 50, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: subtle-float 3s ease-in-out infinite;
}

.mobile-reservation-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: translateX(-150%) skewX(-20deg);
    animation: shimmer-sweep 4s infinite;
}

@keyframes shimmer-sweep {
    0% {
        transform: translateX(-150%) skewX(-20deg);
    }

    30%,
    100% {
        transform: translateX(150%) skewX(-20deg);
    }
}

@keyframes subtle-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}


/* Overlay */
/* Overlay Glassmorphism */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    /* Fondo semi-transparente oscuro */
    background-color: rgba(0, 0, 0, 0.4);
    /* Efecto desenfoque Glassmorphism */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;

    /* Configuración de visibilidad para animación suave */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;

    display: flex;
    justify-content: flex-end;
}

.mobile-menu-overlay.active {
    /* Al activar, se hace visible y opaco suavemente */
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    width: 75%;
    max-width: 320px;
    height: 100%;
    background-color: var(--color-background);
    /* Usar variable o blanco/crema */

    /* Sombra más elegante y difusa */
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);

    padding: 30px;
    position: relative;
    transform: translateX(100%);

    /* Animación Physics-based easing (entra rápido, frena suave) */
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

/* --- Estilos para el Botón de Cierre del Menú Móvil --- */

.mobile-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2em;
    font-weight: 300;
    /* Más fino para elegancia */
    color: var(--color-text-dark, #333);
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease, color 0.3s;
}

.mobile-close-btn:hover {
    color: var(--color-primary, #8b6232);
    transform: rotate(90deg);
    /* Pequeño giro elegante al hover */
}

/* --- Enlaces con Animación en Cascada (Staggered) --- */

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    margin-top: 60px;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--color-text-dark);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Línea más sutil */
    font-weight: 500;
    font-size: 1.1em;

    /* Preparación para la animación */
    opacity: 0;
    transform: translateY(20px);
    transition: color 0.3s ease;
}

/* 
   Cuando el menú está activo, los enlaces se animan hacia su posición final.
   Usamos 'forwards' para que se queden en estado final.
*/
.mobile-menu-overlay.active .mobile-nav-links a {
    animation: slideInUp 0.5s ease forwards;
}

/* Definición de la animación Staggered */
@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Retrasos (Delays) para cada elemento */
.mobile-menu-overlay.active .mobile-nav-links a:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-menu-overlay.active .mobile-nav-links a:nth-child(2) {
    animation-delay: 0.2s;
}

.mobile-menu-overlay.active .mobile-nav-links a:nth-child(3) {
    animation-delay: 0.3s;
}

/* Contenedor Menu */
.mobile-menu-overlay.active .mobile-nav-links .mobile-dropdown {
    animation-delay: 0.3s;
}

/* Si es un div */
.mobile-menu-overlay.active .mobile-nav-links a:nth-child(4) {
    animation-delay: 0.4s;
}

.mobile-menu-overlay.active .mobile-nav-links a:nth-child(5) {
    animation-delay: 0.5s;
}

/* El div del dropdown también debe animarse si está al nivel de los links */
.mobile-dropdown {
    border-bottom: none;
    opacity: 0;
    /* Iniciar oculto igual que los enlaces */
    transform: translateY(20px);
}

.mobile-menu-overlay.active .mobile-dropdown {
    animation: slideInUp 0.5s ease forwards;
    animation-delay: 0.3s;
    /* Ajustar posición en la cascada */
}

.mobile-nav-links a:hover {
    color: var(--color-primary);
    padding-left: 10px;
    /* Pequeño desplazamiento a la derecha al hover */
    transition: all 0.3s ease;
}

.mobile-dropdown {
    border-bottom: none;
}

.mobile-dropdown>a {
    padding: 15px 0;
    display: block;
}

.mobile-dropdown-content {
    display: flex;
    flex-direction: column;
    padding-left: 20px;
    padding-bottom: 10px;
}

.mobile-dropdown-content a {
    padding: 8px 0;
    border: none;
    font-weight: 400;
    font-size: 0.9em;
}

.language-selector-mobile {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    justify-content: center;
}

/* --- UTILITIES --- */

@keyframes shimmer {
    0% {
        transform: translateX(-100%) skewX(-15deg);
    }

    50% {
        transform: translateX(100%) skewX(-15deg);
    }

    100% {
        transform: translateX(100%) skewX(-15deg);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0px);
    }
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #8b6232 0%, #6d4c27 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(184, 134, 11, 0.4), 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
    line-height: normal;
    /* Asegura que el texto no se corte */
    animation: float 4s ease-in-out infinite;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: translateX(-100%) skewX(-15deg);
    transition: none;
    z-index: -1;
    animation: shimmer 3s infinite;
}

.btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #a67c52 0%, #8b6232 100%);
    border-color: rgba(255, 215, 0, 0.8);
    color: #fff;
    animation-play-state: paused;
    /* Detener el flote al hacer hover */
}

.btn:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}




/* --- MAIN CONTENT --- */
main {
    padding-top: var(--header-height);
    /* Espacio para el header fijo */
}

section {
    padding: 40px 20px;
    text-align: center;
}

/* --- SECCIÓN HERO --- */

#hero {
    position: relative;
    background-image: url('fotos/prueba\ 2.png');
    /* Asegúrate de tener esta imagen */
    background-size: cover;
    background-position: center;
    height: 100vh;
    /* Altura completa de la ventana */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--color-text-light);
    margin-top: 0;
    padding-top: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 10);
    /* Sombra para mejor legibilidad */
}

#hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

#hero-subtitle {
    font-family: 'Pinyon Script', cursive;
    font-size: 2.8em;
    /* Aumentado ligeramente para compensar la falta de fondo */
    margin-top: 200px;
    /* Movido hacia la zona de las casas */
    margin-bottom: 30px;
    color: #fff;
    /* Sombreado multicapa para máxima legibilidad sin fondo */
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 4px 10px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(139, 98, 50, 0.3);
    line-height: 1.2;
}

/* Hide Hero button on mobile only */
@media (max-width: 1023px) {
    #hero .btn {
        display: none !important;
    }
}


/* --- SECCIÓN BIENVENIDA --- */
#welcome {
    background-color: #fff;
    padding: 60px 20px;
    max-width: 800px;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#welcome h2 {
    color: var(--color-primary);
    font-size: 2em;
    margin-bottom: 20px;
}

#welcome p {
    font-size: 1.1em;
    color: var(--color-text-dark);
}

/* --- SECCIÓN CARROUSEL --- */
#carousel {
    background-color: var(--color-background);
}

#carousel h2 {
    color: var(--color-primary);
    font-size: 2em;
    margin-bottom: 30px;
}

.carousel-container {
    position: relative;
    max-width: 90%;
    margin: 0 auto;
    overflow: hidden;
    /* Mantenemos estos estilos */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);

    /* ELIMINA o COMENTA esta línea: */
    /* background-color: #333; */
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-img {
    min-width: 100%;
    height: 300px;
    /* Altura fija para el carrusel */

    /* CAMBIO CLAVE: Usa 'contain' para que la imagen se ajuste y se vea completa */
    object-fit: cover;

    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    border-radius: 5px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.carousel-btn:hover {
    opacity: 1;
}

#prevBtn {
    left: 10px;
}

#nextBtn {
    right: 10px;
}



/* --- TESTIMONIOS --- */
#testimonials {
    background-color: #fff;
    padding: 60px 20px;
}

#testimonials h2 {
    color: var(--color-primary);
    font-size: 2em;
    margin-bottom: 40px;
}

.testimonial-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--color-background);
    padding: 20px;
    border-left: 5px solid var(--color-secondary);
    border-radius: 5px;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.testimonial-author {
    margin-top: 10px;
    font-style: italic;
    text-align: right;
    color: var(--color-primary);
}

/* --- SECCIÓN DEL DUEÑO --- */
#owner {
    background-color: var(--color-background);
    padding: 60px 20px;
}

.owner-container {
    display: flex;
    flex-direction: column;
    /* Pila en móvil */
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.owner-photo {
    margin-bottom: 20px;
}

.owner-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--color-primary);
}

.owner-description h2 {
    color: var(--color-primary);
    font-size: 2em;
    margin-bottom: 10px;
}

/* --- FOOTER --- */
footer {
    background-color: var(--color-text-dark);
    color: var(--color-text-light);
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: var(--color-secondary);
    text-decoration: none;
}



.floating-delivery-btn:hover {
    transform: scale(1.1);
}



#subscriptionForm input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

#subscriptionForm button {
    width: 100%;
}


/* --- ANIMACIÓN DE REVELADO (Fade In) --- */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Icono de Regalo en Navegación --- */
/* --- Icono de Regalo en Navegación (Desktop) --- */
/* --- Animación de Palpitación --- */
@keyframes giftPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

/* --- Icono de Regalo en Navegación (Desktop) --- */
.nav-links .nav-icon-gift {
    color: #800020;
    font-size: 2rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
    /* Quitamos transform de transition porque choca con animation */
    animation: giftPulse 1.5s infinite ease-in-out;
}

/* Increased specificity to override .social-links-mobile a */
.social-links-mobile .nav-icon-gift-mobile {
    color: #800020 !important;
    /* Forcing wine red to be absolutely sure against any other overrides */
    font-size: 32px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    animation: giftPulse 1.5s infinite ease-in-out;
}

.nav-links .nav-icon-gift:hover,
.social-links-mobile .nav-icon-gift-mobile:hover {
    color: var(--color-secondary) !important;
    animation: none;
    /* Detener animación al hacer hover para feedback estático o cambiar efecto */
    transform: scale(1.2);
    /* Efecto hover estático */
    transition: transform 0.3s ease;
}

/* --- Media Queries (Desktop) --- */
@media (min-width: 768px) {

    /* .nav-links rules removed from here to allow mobile menu on tablet */


    /* Hero */
    #hero {
        min-height: 50vh;
        /* Cambiado de height: 70vh a min-height: 80vh */
        height: auto;
        margin-top: 0;
        /* Eliminado el margen superior que empujaba hacia abajo */
        padding: 100px 20px 60px 20px;
        /* Padding para dar aire */
    }

    #hero-title {
        font-size: 5em;
    }

    /* Testimonios */
    .testimonial-grid {
        flex-direction: row;
    }

    /* Dueño */
    .owner-container {
        flex-direction: row;
        text-align: left;
        padding: 40px;
    }

    .owner-photo {
        margin-right: 40px;
        margin-bottom: 0;
    }

    .owner-photo img {
        width: 200px;
        height: 200px;
    }

    .carousel-img {
        height: 500px;
        /* Mayor altura en desktop */
    }

    /* Ocultar elementos móviles */
    /* .language-selector-mobile y .mobile-reservation-btn se mantienen visibles en Tablet */
}

/* --- Media Queries (Desktop Real - Navegación Completa) --- */
@media (min-width: 1024px) {

    /* Header/Navegación Desktop SOLO a partir de 1024px */
    .mobile-menu-btn {
        display: none;
    }

    .nav-links {
        display: flex !important;
    }

    .logo-container {
        margin-right: 20px;
    }

    /* Ocultar elementos móviles en Desktop */
    .language-selector-mobile {
        display: none;
    }

    .mobile-reservation-btn {
        display: none;
    }

    /* Ajuste de margen del subtítulo para desktop real */
    #hero-subtitle {
        margin-top: 50px;
        /* Reducido drásticamente de 200px */
        margin-bottom: 40px;
    }
}

/* --- Media Queries (Móvil) --- */
/* Móvil (hasta 1023px) */
@media (max-width: 1023px) {

    /* Header/Navegación */
    .navbar {
        /* MODIFICADO: Ajustamos el padding lateral para dejar más espacio */
        padding: 8px 12px;
    }

    /* MODIFICADO: Ajuste del logo para que quepa mejor */
    .logo {
        width: 35px;
        height: 35px;
        object-fit: cover;
    }

    .logo-container {
        gap: 6px;
        /* Espacio más estrecho entre logo y nombre */
    }

    .nav-links {
        display: none;
        /* OCULTA EL MENÚ PRINCIPAL */
    }

    /* MODIFICADO: Reducir tamaño del nombre para mejor proporción mobile */
    .restaurant-name {
        white-space: nowrap;
        font-size: 1.05em;
    }

    /* CRÍTICO: Muestra el botón de Reservas en móvil y lo hace más compacto */
    .mobile-reservation-btn {
        display: inline-block;
        padding: 5px 10px;
        font-size: 0.75em;
        margin-right: 8px;
    }

    .mobile-menu-btn {
        display: block;
        /* MUESTRA EL BOTÓN DE MENÚ */
        margin-right: 0;
        padding: 5px;
        /* Un poco de padding para la zona de toque */
    }

    .language-selector-compact {
        display: none;
        /* Ocultar selector compacto */
    }


    /* Hero */
    /* Optimización global de imágenes de fondo en móvil */
    .parallax-bg {
        background-attachment: scroll !important;
    }

    #hero {
        height: 60vh;
        background-attachment: scroll !important;
        /* Desactivar parallax en móvil para evitar zoom excesivo */
        background-position: center center;
        transition: height 0.3s ease;
    }

    #hero-title {
        font-size: 2.5em;
        margin-bottom: 15px;
    }

    #hero-subtitle {
        font-size: 1.6em;
        margin-top: 100px;
        /* Ajustado para casas en móvil */
        margin-bottom: 20px;
        padding: 0;
    }

    /* Carrusel */
    .carousel-img {
        height: 300px;
    }

    /* Dueño */
    .owner-photo {
        margin-bottom: 15px;
    }
}

/* --- Estilos para Redes Sociales Flotantes (social-float-container) --- */
.social-float-container {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 10px 5px;
    background-color: var(--color-secondary, rgba(255, 255, 255, 0.9));
    border-radius: 0 5px 5px 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.social-float-container a {
    color: var(--color-primary, #3c0c0c);
    font-size: 24px;
    margin: 8px 0;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 5px;
}

.social-float-container a:hover {
    color: var(--color-accent, #e44d26);
    transform: scale(1.1);
}

/* --- Estilos para Redes Sociales en el Navbar (Escritorio) --- */
.social-links-desktop {
    display: none;
    /* Oculto en móvil */
    align-items: center;
}

.social-links-desktop a {
    color: var(--color-text-dark, #333);
    font-size: 18px;
    margin: 0 5px;
    transition: color 0.3s ease;
}

/* --- Estilos para Redes Sociales en el Footer --- */
.social-links-footer {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.social-links-footer a {
    color: white;
    /* Asumiendo un footer oscuro */
    font-size: 24px;
    transition: color 0.3s ease;
}

/* --- Estilos para Redes Sociales en el Menú Móvil --- */
.social-links-mobile {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links-mobile a {
    color: var(--color-text-dark, #333);
    font-size: 30px;
    transition: color 0.3s ease;
}

/* --- Media Queries (Responsividad) --- */
@media (min-width: 768px) {
    .social-links-desktop {
        display: flex;
    }
}

@media (max-width: 1024px) {
    .social-float-container {
        display: none;
    }
}



/*
 * MODIFICACIÓN CLAVE: ESTILOS PARA EL MENÚ MÓVIL
 * Asegura que los enlaces se vean dentro del overlay
 */
.mobile-menu-overlay {
    /* (Mantiene tus estilos originales: posición fija, 100% alto/ancho, etc.) */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    /* Ejemplo de fondo oscuro */
    z-index: 999;
    display: none;
    /* Oculto por defecto */
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-content {
    /* (Mantiene tus estilos originales del contenedor de enlaces) */
    background-color: white;
    /* Asumiendo que el menú es blanco/claro */
    /* ... otros estilos de posicionamiento/tamaño que ya tengas ... */
    padding: 20px;
}

/* 4. ESTILOS DE REDES SOCIALES EN EL MENÚ MÓVIL */
.social-links-mobile {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #ccc;
    /* Separador visual */
    display: flex;
    justify-content: center;
    gap: 25px;
    width: 100%;
    /* Asegura que ocupe todo el ancho */
}

.social-links-mobile a {
    /* Usa un color que contraste con el fondo del menú móvil (asumido blanco) */
    color: var(--color-primary, #3c0c0c);
    font-size: 32px;
    transition: color 0.3s ease;
}

.social-links-mobile a:hover {
    color: var(--color-accent, #e44d26);
}

/*
 * REVISIÓN DEL FOOTER (Solo confirmar que existen)
 */
.social-links-footer {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links-footer a {
    color: white;
    /* Color típico si el footer es oscuro */
    font-size: 24px;
    transition: color 0.3s ease;
}

/* Estilos para el botón de Google Reviews */
.testimonial-link-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.btn-google {
    display: inline-flex;
    /* Para alinear el icono con el texto */
    align-items: center;
    gap: 10px;
    background-color: #8b6232;
    /* Color de Google Blue */
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-google:hover {
    background-color: #9aac4d;
}

.btn-google .fab {
    font-size: 1.2em;
}

/* =========================================================
//  ESTILOS DEL NUEVO CARRUSEL DE PLATOS
// ========================================================= */

/* El contenedor principal de la modal (si es necesario un estilo diferente al general) */


/* 1. Contenedor de cada item: CLAVE para la superposición (relative) */
.new-carousel-item {
    min-width: 100%;
    /* Cada slide ocupa todo el ancho */
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    position: relative;
    /* <-- CLAVE: Esto posiciona la caption */
}

/* Imagen dentro del Carrusel */
.new-carousel-item img {
    width: 100%;
    max-height: 80vh;
    /* Para que quepa bien en la pantalla */
    height: auto;
    object-fit: contain;
    /* Asegura que la imagen se vea completa */
    display: block;
}

/* 2. Contenedor de la descripción: CLAVE para la superposición (absolute) */
.new-carousel-caption {
    position: absolute;
    /* <-- CLAVE: Se superpone al padre (.new-carousel-item) */
    bottom: 0;
    /* Lo pega al borde inferior */
    left: 0;
    width: 100%;
    padding: 15px 10px;
    background-color: rgba(0, 0, 0, 0.75);
    /* Fondo oscuro semi-transparente para legibilidad */
    color: white;
    text-align: center;
    box-sizing: border-box;
    pointer-events: none;
}

.new-carousel-caption h3 {
    font-family: var(--font-title, 'Quintessential', serif);
    font-size: 1.6em;
    margin: 0 0 5px 0;
    color: white;
}

.new-carousel-caption p {
    font-size: 0.95em;
    margin: 0;
    color: #ccc;
}

/* Responsive: Ocultar descripción larga en móviles pequeños */
@media (max-width: 550px) {
    .new-carousel-caption p {
        display: none;
    }
}

/* --- Página de Tarjetas de Regalo (Gift Cards) --- */

.gift-page-container {
    padding: 100px 20px 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
}

.page-title {
    font-size: 3em;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 40px;
}

/* Corrección de Título y Subtítulo Centrados */
.text-center {
    text-align: center;
}

/* Contenedor Grid */
.gift-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    /* Separación equilibrada */
    flex-wrap: wrap;
}

/* Wrapper para Caja + Etiqueta */
.gift-box-wrapper {
    position: relative;
    width: 250px;
    /* Ancho ajustado para que no ocupe tanto */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

/* Etiqueta debajo del regalo */
.gift-label {
    margin-top: 20px;
    font-size: 1.5em;
    color: var(--color-primary);
    font-family: var(--font-title);
    text-align: center;
    z-index: 1;
}

/* La Caja de Regalo (Estilo base) */
.gift-box {
    position: relative;
    width: 200px;
    height: 200px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gift-box.open {
    cursor: default;
    transform: none;
    pointer-events: none;
    /* Evitar doble clic */
}

.gift-body {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 85%;
    background-color: var(--color-primary);
    border-radius: 0 0 5px 5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.gift-lid {
    position: absolute;
    top: 0;
    left: -5%;
    width: 110%;
    height: 25%;
    background-color: var(--color-secondary);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.gift-lid::before {
    /* Cinta vertical en la tapa */
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 100%;
    background-color: #800020;
    /* Rojo vino */
}

.gift-body::before {
    /* Cinta vertical en el cuerpo */
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 100%;
    background-color: #800020;
}

.gift-bow {
    /* El lazo */
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 30px;
    background-color: #800020;
    border-radius: 50% 50% 0 0;
    z-index: 3;
}

.gift-bow::before,
.gift-bow::after {
    content: '';
    position: absolute;
    top: 10px;
    width: 30px;
    height: 30px;
    background-color: #800020;
    border-radius: 50%;
    z-index: -1;
}

.gift-bow::before {
    left: -15px;
}

.gift-bow::after {
    right: -15px;
}

/* Estados de animación */

.gift-box.open .gift-lid {
    transform: translateY(-50px) rotate(-10deg);
    opacity: 0;
}

.gift-box.open .gift-body {
    height: 0;
}

/* Contenido Revelado (Modo Modal Centrado) */
.gift-card-content {
    /* Estado inicial hidden */
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gift-card-content.revealed {
    display: flex;
    opacity: 1;
    /* CRUCIAL: Hacer visible */
    flex-direction: column;
    align-items: center;
    justify-content: center;

    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 90%;
    max-width: 450px;
    /* Tamaño contenido */
    max-height: 85vh;

    background: white;
    padding: 50px 20px 20px 20px;
    /* Aumentado padding superior para botón cerrar */
    border-radius: 12px;
    border: 2px solid var(--color-primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    /* Sombra para destacar */

    z-index: 2000;
    overflow-y: auto;
}

/* Clases para alternar vistas (Tarjeta vs Formulario) */
.card-view,
.form-view {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ocultar visualmente pero mantener en DOM */
.hidden {
    display: none !important;
}

/* Estilos del Formulario de Regalo */
.gift-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--color-primary);
    font-size: 0.9em;
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    /* Previene desbordamientos */
}

.form-group textarea {
    resize: vertical;
}

/* Botones del formulario */
.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background-color: #666;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.card-title {
    font-family: var(--font-title);
    font-size: 1.8em;
    color: var(--color-primary);
    margin-bottom: 20px;
    text-align: center;
}

/* Imagen en la vista inicial (Tarjeta) */
.card-preview {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin: 0 auto 20px auto;
    /* Margen estándar */
    display: block;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
}

/* Imagen en el formulario (con margen extra para bajarla) */
.form-card-preview {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin: 250px auto 20px auto;
    /* Margen superior extra para "bajarla" */
    display: block;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
}

.close-gift-btn {
    position: absolute;
    top: 5px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--color-primary);
    cursor: pointer;
    line-height: 1;
    z-index: 2001;
}

.close-gift-btn:hover {
    color: #800020;
    transform: scale(1.1);
}

.btn-download {
    display: inline-block;
    padding: 10px 20px;
    background-color: #25d366;
    /* WhatsApp Green */
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-download:hover {
    background-color: #128c7e;
}

@media (max-width: 768px) {
    .gift-grid {
        flex-direction: column;
        align-items: center;
    }
}


@media (max-width: 1023px) {

    /* Eliminamos el padding extra ya que no hay barra inferior */
    body {
        padding-bottom: 0px;
    }

    /* Reactivamos el botón de reserva del header */
    .mobile-reservation-btn {
        display: inline-block !important;
    }
}

/* Ocultar el botón de reserva del header cuando el menú está abierto */
#mobileMenuOverlay.active+header .mobile-reservation-btn {
    display: none !important;
}


/* --- TOUCH FEEDBACK & MICRO-INTERACTIONS --- */
@media (hover: none) {

    .btn:active,
    .bottom-bar-btn:active,
    .nav-links a:active,
    .mobile-nav-links a:active,
    .glass-card:active {
        transform: scale(0.94);
        /* Pulsación un poco más marcada */
        transition: transform 0.1s ease;
    }
}

/* Refinamiento de la animación del menú móvil overlay */
.mobile-menu-overlay {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
}

.mobile-menu-content {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}