/* Custom CSS for Alquería Patach */
:root {
    --primary-color: #165C7D;
    --secondary-color: #2E86AB;
    --accent-color: #A7C6ED;
    --text-dark: #2C1810;
    --text-light: #6E3E05;
    --bg-light: #f3f0ef ;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Modal aviso vacaciones */
.opening-soon-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 11000;
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.opening-soon-modal.is-visible {
    display: flex;
    animation: modalFadeIn 220ms ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-backdrop-blur {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1100px 680px at 12% 14%, rgba(22, 92, 125, 0.1), transparent 62%),
        rgba(16, 18, 22, 0.58);
    backdrop-filter: blur(7px);
}

.opening-soon-content {
    position: relative;
    width: min(620px, 100%);
    max-height: min(90vh, 740px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px;
    border: 1px solid rgba(22, 92, 125, 0.14);
    background: linear-gradient(180deg, #fbfcfd 0%, #f8f5f3 100%);
    box-shadow: 0 22px 54px rgba(7, 10, 15, 0.34);
    animation: modalCardIn 260ms cubic-bezier(0.18, 0.8, 0.22, 1);
}

@keyframes modalCardIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.995);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.opening-soon-content::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 14px;
    border: 1px solid rgba(22, 92, 125, 0.11);
    pointer-events: none;
}

.modal-header-custom {
    display: flex;
    justify-content: center;
    padding: 1.35rem 1rem 0.95rem;
    background: linear-gradient(180deg, rgba(238, 243, 248, 0.95), rgba(244, 246, 248, 0.82));
    border-bottom: 1px solid rgba(22, 92, 125, 0.08);
}

.modal-logo {
    max-width: 232px;
    width: 68%;
    height: auto;
}

.modal-body-custom {
    padding: 1.45rem 2rem 1.7rem;
    text-align: center;
}

.opening-title {
    font-size: clamp(2rem, 3.1vw, 2.6rem);
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    line-height: 1.08;
    letter-spacing: 0.004em;
    text-wrap: balance;
}

.opening-description {
    font-size: 1.02rem;
    color: var(--text-light);
    margin-bottom: 1.2rem;
    max-width: 37ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.48;
    text-wrap: pretty;
}

.opening-description strong {
    color: var(--text-dark);
    font-weight: 600;
}

.opening-divider {
    width: min(440px, 100%);
    height: 1px;
    margin: 0.95rem auto 1.15rem;
    background: linear-gradient(90deg, rgba(22, 92, 125, 0), rgba(22, 92, 125, 0.2), rgba(22, 92, 125, 0));
}

.vacation-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-bottom: 1.3rem;
    width: min(430px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.vacation-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(22, 92, 125, 0.18);
    border-radius: 999px;
    padding: 0.6rem 0.95rem;
    font-size: 0.9rem;
    font-weight: 550;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.vacation-link i {
    color: var(--primary-color);
}

.vacation-link:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
    border-color: rgba(22, 92, 125, 0.35);
    box-shadow: 0 8px 16px rgba(22, 92, 125, 0.14);
}

.opening-soon-close {
    position: absolute;
    top: 0.7rem;
    right: 0.72rem;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    color: rgba(110, 62, 5, 0.92);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.05rem;
    transition: all 0.2s ease;
    z-index: 2;
    backdrop-filter: blur(2px);
}

.opening-soon-close:hover {
    background: rgba(22, 92, 125, 0.11);
    color: var(--primary-color);
}

.opening-soon-continue {
    border: none;
    border-radius: 999px;
    padding: 0.7rem 1.38rem;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.015em;
    color: #fff;
    background: linear-gradient(32deg, #11455d, #263746 78%);
    box-shadow: 0 9px 18px rgba(17, 69, 93, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
}

.opening-soon-continue:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(17, 69, 93, 0.33);
    filter: saturate(1.05);
}

.opening-soon-close:focus-visible,
.opening-soon-continue:focus-visible,
.vacation-link:focus-visible {
    outline: 2px solid rgba(22, 92, 125, 0.55);
    outline-offset: 2px;
}

body.modal-open-vacation {
    overflow: hidden;
}

/* Mientras el modal de vacaciones está abierto, ocultamos cookies para evitar solapes visuales */
body.modal-open-vacation .cookie-banner {
    display: none !important;
}

@media (max-width: 576px) {
    .opening-soon-content {
        border-radius: 16px;
        width: min(560px, 100%);
    }

    .modal-body-custom {
        padding: 1.05rem 1rem 1.15rem;
        text-align: center;
    }

    .opening-title {
        font-size: 1.9rem;
        line-height: 1.12;
    }

    .opening-description {
        font-size: 0.95rem;
        max-width: none;
    }

    .vacation-links {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        width: 100%;
    }

    .vacation-link {
        width: 100%;
        justify-content: center;
        border-radius: 999px;
    }

    .opening-soon-continue {
        width: min(220px, 100%);
    }
}

@media (max-width: 390px) {
    .opening-soon-modal {
        padding: max(0.7rem, env(safe-area-inset-top)) 0.7rem max(0.8rem, env(safe-area-inset-bottom)) 0.7rem;
    }

    .opening-title {
        font-size: 1.62rem;
        line-height: 1.12;
    }

    .modal-logo {
        width: 72%;
    }

    .opening-description {
        font-size: 0.92rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .opening-soon-modal.is-visible,
    .opening-soon-content,
    .vacation-link,
    .opening-soon-close,
    .opening-soon-continue {
        animation: none !important;
        transition: none !important;
    }
}

.reserva-fecha-nota {
    color: var(--primary-color);
    font-size: 0.82rem;
    line-height: 1.35;
    font-weight: 500;
}

/* General Styles */
body {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    padding-top: 0; /* Sin padding para que hero llegue hasta arriba */
    opacity: 1;
    transition: opacity 0.3s ease;
    overflow-x: hidden; /* Evita scroll horizontal */
    margin: 0; /* Eliminar margen por defecto */
}

/* Tipografía: Cormorant para títulos, Montserrat para cuerpo */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.lead {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    letter-spacing: 0.01em;
}

.navbar-nav .nav-link,
.btn,
label,
small,
.footer-tagline,
.footer-copyright,
.footer-legal {
    font-family: 'Montserrat', sans-serif;
}

/* Prevenir scroll horizontal global */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

main {
    margin: 0;
    padding: 0;
}

.container, .container-fluid {
    overflow-x: hidden;
}

/* Asegurar que imágenes no se desborden */
img {
    max-width: 100%;
    height: auto;
}

/* Prevenir desbordamiento en elementos con ancho fijo */
* {
    box-sizing: border-box;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

.col, .col-* {
    padding-left: 15px;
    padding-right: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Evitar desbordamiento de texto */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Espaciado reducido en móvil */
    section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Hero section moderno SIN espacio en móvil */
    .hero-section-modern {
        margin-top: 0 !important;
        padding-top: 0 !important;
        position: relative;
        top: 0;
    }
    
    /* Texto más compacto en móvil */
    .mobile-text p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .mobile-text .lead {
        font-size: 1rem;
    }
}

/* Animación para contenido adicional de historia */
.additional-history-content {
    transition: max-height 0.5s ease, opacity 0.4s ease, padding 0.4s ease;
    /* En desktop siempre visible */
    max-height: none;
    opacity: 1;
    overflow: visible;
    padding: 0;
    margin-top: 1rem;
}

/* Solo en móvil aplicar el colapso */
@media (max-width: 991px) {
    .additional-history-content {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0;
    }
    
    .additional-history-content.expanded {
        max-height: 600px;
        opacity: 1;
    }
}

.additional-history-content p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-light);
}

/* Lead intro historia — ancho máximo para legibilidad */
.historia-intro {
    max-width: 680px;
    color: var(--text-light);
}

/* Estilo del botón de expandir */
#expand-history-btn {
    transition: all 0.3s ease;
    border-radius: 20px;
    font-weight: 500;
}

#expand-history-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 92, 125, 0.2);
}

#expand-history-btn i {
    transition: transform 0.3s ease;
}

#expand-history-btn.expanded i {
    transform: rotate(180deg);
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-reserva-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.02em;
    background: linear-gradient(45deg, #165c7d, #2c3e50);
    border: 2px solid transparent;
    padding: 12px 30px;
    border-radius: 50px;
    min-height: 44px;
    box-shadow: 0 4px 15px rgba(22, 92, 125, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-reserva-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 92, 125, 0.6);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.bg-light {
    background-color: var(--bg-light) !important;
}

/* Navigation - Inmersivo */
.navbar {
    background-color: transparent !important;
    backdrop-filter: none;
    transition: all 0.4s ease;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid transparent;
    z-index: 1050; /* Bootstrap fixed navbar z-index */
}

/* Navbar cuando se hace scroll - transición más natural */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(218, 165, 32, 0.2);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

/* Navbar responsive */
@media (max-width: 768px) {
    .navbar {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        min-height: 52px;
    }
    
    .navbar.scrolled {
        padding-top: 0.2rem;
        padding-bottom: 0.2rem;
    }
    
    .navbar-brand img {
        height: 40px !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.25rem 1rem !important;
        font-size: 0.85rem;
    }
    
    /* Estilos para el menú colapsado en móvil */
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        border-radius: 12px;
        margin-top: 0.5rem;
        padding: 1.25rem;
        backdrop-filter: blur(20px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    /* Forzar colores oscuros para TODOS los enlaces del menú móvil */
    .navbar-collapse .navbar-nav .nav-link {
        color: var(--text-dark) !important;
        text-shadow: none !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        margin-bottom: 0.4rem;
        padding: 0.75rem 0.5rem !important;
        border-radius: 6px;
        transition: all 0.3s ease;
    }
    
    /* Hover en enlaces del menú móvil */
    .navbar-collapse .navbar-nav .nav-link:hover {
        color: var(--primary-color) !important;
        /* background-color: rgba(22, 92, 125, 0.08); */
        text-shadow: none !important;
    }
    
    /* Enlaces activos en menú móvil */
    .navbar-collapse .navbar-nav .nav-link.active {
        color: var(--primary-color) !important;
        /* background-color: rgba(22, 92, 125, 0.12); */
        font-weight: 600;
        /* border-bottom: 2px solid var(--primary-color); */
    }
    
    /* Iconos sociales en menú móvil */
    .navbar-collapse .social-links a,
    .navbar-collapse .navbar-nav + div a {
        color: var(--text-dark) !important;
        filter: none;
        transition: all 0.3s ease;
    }
    
    .navbar-collapse .social-links a:hover,
    .navbar-collapse .navbar-nav + div a:hover {
        color: var(--primary-color) !important;
        transform: scale(1.1);
    }
    
    /* Botón de idioma en menú móvil */
    .navbar-collapse .language-toggle {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        border-left: none;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Menú de idiomas en móvil: aparece inline, no flotante */
    .navbar-collapse .language-toggle #lang-menu {
        position: static !important;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.12);
        border: 1px solid #dee2e6;
    }
    
    .navbar-collapse .language-toggle .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        color: var(--text-dark) !important;
        border-color: var(--text-dark) !important;
        background-color: transparent;
    }
    
    .navbar-collapse .language-toggle .btn:hover {
        color: var(--primary-color) !important;
        border-color: var(--primary-color) !important;
        background-color: rgba(22, 92, 125, 0.08);
    }
    
    /* Separadores visuales en menú móvil */
    .navbar-collapse .navbar-nav {
        margin-bottom: 0.5rem;
    }
    
    .navbar-collapse .navbar-nav + div {
        padding-top: 0.75rem;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        margin-top: 0.75rem;
        text-align: center;
    }
    
    /* Ajustes para el botón del menú en móvil */
    .navbar-toggler {
        padding: 0.6rem 0.75rem;
        min-width: 44px;
        min-height: 44px;
    }
    
    .navbar-toggler-icon {
        width: 24px;
        height: 24px;
    }
    
    /* Eliminar margen del navbar en móvil */
    .navbar-brand {
        margin-bottom: 0;
        padding: 0;
    }
    
    /* Container del navbar más compacto */
    .navbar .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

.navbar-brand {
    font-weight: bold;
    color: var(--primary-color) !important;
    transition: all 0.3s ease;
    filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.3));
}

/* Quitar sombra cuando se hace scroll */
.navbar.scrolled .navbar-brand {
    filter: none;
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Cambiar color cuando se hace scroll */
.navbar.scrolled .navbar-nav .nav-link {
    color: var(--text-dark) !important;
    text-shadow: none;
}

.navbar-nav .nav-link:hover {
    color: #ffffff !important; /* Blanco en estado transparente */
}

.navbar.scrolled .navbar-nav .nav-link:hover {
    color: var(--primary-color) !important; /* Azul cuando hay scroll */
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #ffffff; /* Blanco por defecto para estado transparente */
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* Cambiar color del subrayado cuando el navbar tiene scroll */
.navbar.scrolled .navbar-nav .nav-link::after {
    background-color: var(--primary-color); /* Azul cuando el navbar tiene fondo blanco */
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Estilos para enlaces activos */
.navbar-nav .nav-link.active {
    color: #ffffff !important;
    font-weight: 600;
}

.navbar.scrolled .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Subrayado para enlaces activos */
.navbar-nav .nav-link.active::after {
    width: 80%;
    background-color: #ffffff; /* Blanco en navbar transparente */
}

.navbar.scrolled .navbar-nav .nav-link.active::after {
    background-color: var(--primary-color); /* Azul en navbar con scroll */
}

/* Navbar Toggler - Botón de menú hamburguesa */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 1.25rem;
    background: none;
    position: relative;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Icono personalizado para estado transparente */
.navbar-toggler-icon {
    background-image: url('../media/icons/menu-white.svg');
    background-size: 100%;
    background-repeat: no-repeat;
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

/* Icono por defecto cuando el navbar tiene scroll */
.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Transformación a X cuando el menú está abierto */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='m6 6l18 18M6 24l18-18'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}

/* X para estado con scroll */
.navbar.scrolled .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='m6 6l18 18M6 24l18-18'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}

/* Indicador visual adicional para cerrar menú */
.navbar-toggler::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.navbar-toggler[aria-expanded="true"]::after {
    /* content: 'Cerrar'; */
    opacity: 1;
}

.navbar.scrolled .navbar-toggler[aria-expanded="true"]::after {
    color: rgba(0, 0, 0, 0.6);
}

.language-toggle {
    display: flex;
    align-items: center;
}

/* Logo Styles - Dinámico según estado del navbar */
.logo-main {
    max-width: 180px; /* Reducimos de 250px a 180px */
    height: auto;
    transition: opacity 0.3s ease;
}

/* Logo blanco por defecto (estado transparente) */
.navbar .logo-main {
    content: url('../media/logos/Blanco/APatach_Marca_V01_Blanco_VAL@4x.png');
}

/* Logo de color cuando el navbar tiene scroll */
.navbar.scrolled .logo-main {
    content: url('../media/logos/Color/APatach_Marca_V01_Color_VAL@4x.png');
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0.25rem 0; /* Reducimos el padding de 0.5rem a 0.25rem */
}

/* Language Toggle */
.language-toggle {
    display: flex;
    align-items: center;
}

.language-toggle .btn {
    border-radius: 20px;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    transition: all 0.3s ease;
}

.language-toggle .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Social Media Icons in Navigation */
.navbar .social-links a,
.navbar-nav + div a {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #ffffff !important;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.4));
}

/* Cambiar color cuando se hace scroll */
.navbar.scrolled .social-links a,
.navbar.scrolled .navbar-nav + div a {
    color: #555555 !important; /* Gris más visible */
    filter: none;
}

.navbar .social-links a:hover,
.navbar-nav + div a:hover {
    transform: translateY(-2px);
    color: #DAA520 !important; /* Dorado elegante */
}

.navbar.scrolled .social-links a:hover,
.navbar.scrolled .navbar-nav + div a:hover {
    color: #B8860B !important; /* Dorado más oscuro */
}

/* Separador visual entre redes sociales y toggle de idioma */
.language-toggle {
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    padding-left: 1rem;
    margin-left: 0.5rem;
}

/* Cambiar color del separador cuando se hace scroll */
.navbar.scrolled .language-toggle {
    border-left: 1px solid rgba(0, 0, 0, 0.2);
}

.language-toggle .btn {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.language-toggle .btn:hover {
    background-color: rgba(218, 165, 32, 0.8) !important;
    border-color: #DAA520 !important;
    color: #ffffff !important;
}

/* Cambiar color cuando se hace scroll */
.navbar.scrolled .language-toggle .btn {
    color: #555555 !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.navbar.scrolled .language-toggle .btn:hover {
    background-color: rgba(184, 134, 11, 0.1) !important;
    border-color: #B8860B !important;
    color: #B8860B !important;
}

.navbar-collapse {
    align-items: center;
}

/* =================================================================
   HERO SECTION MODERNO E INNOVADOR 
================================================================= */

.hero-section-modern {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding-top: 0;
}

/* Slider de imágenes de fondo */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    transform: scale(1.1);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.hero-slide.active {
    opacity: 1;
    animation: kenBurns 8s ease-in-out;
}

@keyframes kenBurns {
    0% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1.2);
    }
}

/* Overlay con gradiente dinámico */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(22, 92, 125, 0.8) 0%,
        rgba(44, 62, 80, 0.7) 30%,
        rgba(0, 0, 0, 0.6) 60%,
        rgba(22, 92, 125, 0.8) 100%
    );
    z-index: 2;
    animation: gradientShift 10s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background: linear-gradient(
            135deg,
            rgba(22, 92, 125, 0.8) 0%,
            rgba(44, 62, 80, 0.7) 30%,
            rgba(0, 0, 0, 0.6) 60%,
            rgba(22, 92, 125, 0.8) 100%
        );
    }
    50% {
        background: linear-gradient(
            135deg,
            rgba(44, 62, 80, 0.8) 0%,
            rgba(22, 92, 125, 0.7) 30%,
            rgba(0, 0, 0, 0.5) 60%,
            rgba(44, 62, 80, 0.8) 100%
        );
    }
}

/* Contenido principal */
.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-content .container {
    overflow: hidden !important;
}

/* Logo con efectos modernos */
.hero-logo-container {
    margin-bottom: 2rem;
    animation: logoEntrance 1.5s ease-out;
}

.hero-logo-modern {
    max-width: 320px;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4));
    transition: all 0.3s ease;
}

/* .hero-logo-modern:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 12px 30px rgba(0,0,0,0.6));
} */

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Título con efecto de escritura */
.hero-title-container {
    margin-bottom: 2.5rem;
}

.hero-title-modern {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.title-line-1, .title-line-2 {
    display: block;
    opacity: 0;
    animation: typeWriter 1s ease-out forwards;
}

.title-line-1 {
    animation-delay: 0.5s;
}

.title-line-2 {
    animation-delay: 1s;
    background: linear-gradient(45deg, #165c7d, #ffffff, #c19b74);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: typeWriter 1s ease-out forwards, gradientText 3s ease-in-out infinite;
    animation-delay: 1s, 2s;
}

@keyframes typeWriter {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gradientText {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Subtitulo con animaciones */
.hero-subtitle-container {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 1.5s;
}

.hero-subtitle-modern {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.decorative-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c19b74, transparent);
    margin: 1.5rem auto;
    border-radius: 2px;
    animation: lineGrow 1s ease-out;
    animation-delay: 2s;
    animation-fill-mode: both;
}

@keyframes lineGrow {
    0% {
        width: 0;
    }
    100% {
        width: 80px;
    }
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Botones de acción modernos */
.hero-actions {
    margin: 2.5rem 0;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 2.5s;
}

.btn-modern {
    position: relative;
    display: inline-block;
    padding: 12px 30px;
    margin: 0 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    min-height: 44px; /* Mejorar área de toque */
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary-modern {
    background: linear-gradient(45deg, #165c7d, #2c3e50);
    color: white;
    box-shadow: 0 4px 15px rgba(22, 92, 125, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(22, 92, 125, 0.6);
    color: white;
}

.btn-secondary-modern {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary-modern:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: white;
}

.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn-modern:hover .btn-ripple {
    width: 300px;
    height: 300px;
}

/* Características destacadas */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: -1rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 3s;
}

.feature-item {
    text-align: center;
    color: white;
    transition: transform 0.3s ease;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.feature-text {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Navegación del slider */
.hero-navigation {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
}

.nav-dots {
    display: flex;
    gap: 12px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 44px; /* írea de toque mínima */
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.nav-dot::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    transition: all 0.3s ease;
}

.nav-dot.active::before,
.nav-dot:hover::before {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

/* Indicador de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    right: 30px;
    text-align: center;
    color: white;
    opacity: 0.8;
    z-index: 15;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.scroll-indicator:hover .scroll-arrow {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.scroll-text {
    font-size: 0.8rem;
    font-weight: 500;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE DESIGN MODERNO */

/* Tablets en orientación portrait */
@media (max-width: 992px) and (min-width: 769px) {
    .hero-title-modern {
        font-size: 2.8rem;
    }
    
    .hero-subtitle-modern {
        font-size: 1.2rem;
    }
    
    .hero-features {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section-modern {
        min-height: 100vh;
    }
    
    .hero-logo-modern {
        max-width: 200px;
    }
    
    .hero-title-modern {
        font-size: 2.2rem;
        line-height: 1.1;
    }
    
    .hero-subtitle-modern {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-features {
        display: none;
    }
    
    /* Mejorar navegación en móvil */
    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem 0;
        border-top: 1px solid rgba(0,0,0,0.1);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .language-toggle {
        justify-content: center;
        margin-top: 1rem;
    }
    
    /* Ajustar espaciado entre secciones */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

@media (max-width: 576px) {
    .hero-logo-modern {
        max-width: 150px;
    }
    
    .hero-title-modern {
        font-size: 1.8rem;
        padding: 0 1rem;
    }
    
    .hero-subtitle-modern {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
    
    .hero-features {
        display: none;
    }
    
    .scroll-indicator {
        right: 15px;
        bottom: 15px;
    }

    .scroll-text {
        display: none;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin: 1.5rem 0;
    }

    .btn-modern {
        width: 78%;
        text-align: center;
        margin: 0;
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

/* ================================================================= */

/* =================================================================
   MEJORAS DE ACCESIBILIDAD Y UX
================================================================= */

/* Mejorar contraste para textos pequeños */
.feature-text {
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Indicador visual para elementos enfocables */
.btn-modern:focus,
.nav-dot:focus,
.scroll-indicator:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Animación suave para scroll */
html {
    scroll-behavior: smooth;
}

/* Prevenir zoom en inputs en iOS */
@media screen and (max-width: 768px) {
    input, textarea, select {
        font-size: 16px;
    }
}

/* Soporte para modo oscuro del sistema */
@media (prefers-color-scheme: dark) {
    .hero-overlay {
        background: linear-gradient(
            135deg,
            rgba(22, 92, 125, 0.9) 0%,
            rgba(44, 62, 80, 0.8) 30%,
            rgba(0, 0, 0, 0.7) 60%,
            rgba(22, 92, 125, 0.9) 100%
        );
    }
}

/* Reducir animaciones para usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .particle,
    .hero-slide,
    .btn-modern,
    .nav-dot,
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ================================================================= */

/* Footer logo */
footer .logo-footer {
    filter: brightness(1.2);
    transition: transform 0.3s ease;
    height: 60px;
    width: 60px;
}

footer .logo-footer:hover {
    transform: scale(1.05);
}

/* Footer brand styles */
.footer-brand h6 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Footer text styles */
.footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.2;
    font-style: italic;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.3;
}

/* Footer legal links */
.footer-legal a {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45) !important;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.25rem;
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Cookie consent banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 30, 30, 0.97);
    color: #fff;
    padding: 1rem 1.5rem;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    border-top: 2px solid var(--primary-color, #8B6914);
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
    min-width: 200px;
}

.cookie-link {
    color: #c8a94a;
    text-decoration: underline;
    margin-left: 0.4rem;
}

.cookie-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-actions .btn {
    min-height: 44px;
    padding: 0.5rem 1rem;
}

@media (max-width: 576px) {
    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }
    .cookie-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Footer divider */
.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 1rem 0 !important;
}

/* Footer social links */
footer .social-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.4rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

footer .social-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Smooth section animations - SIN parpadeo inicial */
section {
    opacity: 1; /* Siempre visible por defecto */
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Solo animar cuando se añade la clase específica */
section.fade-in-animation {
    animation: gentleFadeIn 0.8s ease-out;
}

@keyframes gentleFadeIn {
    0% {
        opacity: 0.7;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Preload sections to avoid flashing */
section:first-of-type {
    opacity: 1;
    transform: translateY(0);
}

/* Active navigation state */
.navbar-nav .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.scroll-indicator:hover{
    cursor: pointer;
    scale: 1.05;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

footer .social-links a {
    transition: color 0.3s ease, transform 0.3s ease;
}

footer .social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

.carousel-inner {
    height: 100vh;
}

.carousel-item img {
    height: 100vh;
    object-fit: cover;
    filter: brightness(0.7);
}

.carousel-caption {
    bottom: 30% !important;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 2rem;
}

/* Hero responsive */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh; /* Reducimos altura en móvil */
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    .carousel-inner {
        height: 70vh;
    }
    
    .carousel-item img {
        height: 70vh;
        object-position: center center; /* Centrar imagen */
    }
    
    .carousel-caption {
        bottom: 15% !important;
        padding: 0.8rem;
        left: 5% !important;
        right: 5% !important;
        background: rgba(0, 0, 0, 0.6);
        border-radius: 8px;
    }
    
    .hero-logo {
        max-width: 150px !important;
        height: 150px !important;
        width: 150px;
        height: auto;
        margin-bottom: 0.5rem !important;
    }
    
    .carousel-caption h1 {
        font-size: 1.3rem !important;
        margin-bottom: 0.5rem;
    }
    
    .carousel-caption h2 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem;
    }
    
    .carousel-caption .lead,
    .carousel-caption .hero-subtitle{
        font-size: 0.85rem;
        margin-bottom: 0;
    }
    
}

@media (max-width: 576px) {
    .hero-section {
        height: 60vh; /* Aún más pequeño en móviles pequeños */
    }
    
    .carousel-inner {
        height: 60vh;
    }
    
    .carousel-item img {
        height: 60vh;
    }
    
    .carousel-caption h1 {
        font-size: 1.1rem !important;
    }
    
    .carousel-caption .lead,
    .carousel-caption .hero-subtitle {
        font-size: 0.8rem;
    }
}

.carousel-caption h1,
.carousel-caption h2 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.carousel-caption p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-size: 1.2rem;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.7;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* Sections */
section {
    scroll-margin-top: 76px;
}

.display-5 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* About Section */
#quienes-somos {
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(255, 248, 220, 0.5) 100%);
}

/* Menu Cards */
.menu-card {
    transition: all 0.6s ease;
    border: none;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
}

.menu-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.menu-card img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    position: relative;
}

.menu-card:hover img {
    transform: scale(1.1);
}

/* Add watermark effect to menu images */
.menu-card img::after {
    content: 'Alquería Patach';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    color: rgba(255, 255, 255, 0.3);
    font-size: 2rem;
    font-weight: bold;
    pointer-events: none;
    z-index: 2;
}

.menu-card .card-body {
    padding: 1.5rem;
}

.menu-card .card-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.menu-examples {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.menu-examples small {
    line-height: 1.6;
}

/* Special Menus */
.menu-specials-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 20px;
}

.special-menu-item {
    padding: 20px;
    transition: transform 0.3s ease;
}

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

.special-menu-item i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.special-menu-item:hover i {
    transform: scale(1.2);
}

.special-menu-item h6 {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.menu-version-info {
    margin-top: 1rem;
}

.menu-version-info .badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.menu-info-card {
    background: linear-gradient(135deg, #fff 0%, rgba(255, 248, 220, 0.3) 100%);
    border: none;
}

.info-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Carta Images Viewer Styles */
.menu-pdf-section {
    max-width: 900px;
    margin: 0 auto;
}

/* Carta intro text responsive */
.carta-intro-text {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 1rem;
    font-weight: 400;
}

.carta-images-container {
    position: relative;
    background: #f8f9fa;
    min-height: 600px;
    max-height: 700px;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    /* Custom scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: #6c757d #f8f9fa;
}

.carta-images-container::-webkit-scrollbar {
    width: 8px;
}

.carta-images-container::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.carta-images-container::-webkit-scrollbar-thumb {
    background: #6c757d;
    border-radius: 4px;
}

.carta-images-container::-webkit-scrollbar-thumb:hover {
    background: #495057;
}

.carta-images-viewer {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.carta-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: zoom-in;
    display: block;
    margin: 0 auto;
}

.carta-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.carta-controls {
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(10px);
}

/* Zoom functionality */
.carta-image.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
    z-index: 10;
    position: relative;
}

/* Loading and error states for carta images */
.carta-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.carta-image.loaded {
    animation: none;
    background: none;
}

.carta-image.error {
    background: #f8d7da;
    border: 2px dashed #dc3545;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: #721c24;
    font-weight: bold;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.carta-controls .btn {
    transition: all 0.3s ease;
}

.carta-controls .btn:hover {
    transform: translateY(-1px);
}

.carta-info i {
    color: var(--primary-color);
}

/* Responsive Carta Images Viewer */
@media (max-width: 768px) {
    .carta-intro-text {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .carta-images-container {
        max-height: 500px;
    }
    
    .carta-images-viewer {
        padding: 10px;
        gap: 10px;
    }
    
    .carta-image {
        border-radius: 6px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }
    
    .carta-controls {
        padding: 1rem !important;
    }
    
    .carta-controls .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .carta-actions {
        display: flex;
        gap: 0.5rem;
        justify-content: center;
    }
    
    /* Responsive logo styles */
    .logo-main {
        max-width: 140px; /* Reducimos de 180px a 140px para móviles */
        height: auto;
    }
    
    .hero-logo {
        max-width: 200px;
        height: 200px !important;
        width: 200px;
    }
    
    /* Language toggle responsive */
    .language-toggle {
        margin-top: 1rem;
        justify-content: center;
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        border-top: 1px solid #dee2e6;
        padding-top: 1rem;
    }
    
    /* Social links responsive */
    .navbar-nav + div {
        margin-top: 0.5rem;
        text-align: center;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #dee2e6;
    }
    
    /* Navbar collapse improvements for mobile */
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #dee2e6;
    }
    
    footer .logo-footer {
        height: 45px;
        width: 45px;
        margin-bottom: 0.5rem;
    }
    
    .footer-brand h6 {
        font-size: 1rem;
    }
    
    .footer-tagline {
        font-size: 0.8rem;
    }
    
    .footer-copyright {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    footer .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    footer .py-4 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .carta-actions .btn {
        flex: 1;
        max-width: 120px;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .carta-intro-text {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-bottom: 1.25rem;
        padding: 0 1.5rem;
        color: #777;
    }
    
    .menu-pdf-section {
        margin: 0 -15px;
    }
    
    .carta-images-container {
        max-height: 400px;
    }
    
    .carta-actions .btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
    
    /* Footer extra small devices */
    footer .logo-footer {
        height: 35px;
        width: 35px;
        margin-bottom: 0.5rem;
    }
    
    .footer-brand h6 {
        font-size: 0.95rem;
    }
    
    .footer-tagline {
        font-size: 0.75rem;
        line-height: 1.1;
    }
    
    .footer-copyright {
        font-size: 0.7rem;
    }
    
    footer .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
        margin: 0 0.5rem;
    }
    
    .footer-copyright {
        font-size: 0.65rem;
        line-height: 1.1;
        padding: 0 1rem;
    }
    
    footer .social-links a {
        font-size: 1rem;
        margin: 0 1rem;
    }
    
    footer .py-3 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    footer .container .row > div {
        margin-bottom: 1rem;
    }
    
    footer .container .row > div:last-child {
        margin-bottom: 0;
    }
}

/* Reservations Section */
#reservas {
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(255, 248, 220, 0.3) 100%);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 0.75rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 69, 19, 0.15);
}

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

/* Contact Section */
#contacto .card {
    border: none;
    transition: transform 0.3s ease;
}

#contacto .card:hover {
    transform: translateY(-5px);
}

@media (hover: none) {
    #contacto .card:hover {
        transform: none;
    }
}

.social-links a {
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    transform: translateY(-2px);
}

.map-container {
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.map-container iframe {
    flex: 1;
    min-height: 300px;
    transition: filter 0.3s ease;
}

.map-container:hover iframe {
    filter: brightness(1.05);
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.map-overlay .btn {
    transition: all 0.3s ease;
}

.map-overlay .btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .map-overlay {
        position: static;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        border-top: 1px solid rgba(0,0,0,0.1);
    }

    .map-overlay > div {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
}

footer .social-links a {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    color: var(--accent-color) !important;
    transform: scale(1.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.8s ease forwards;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
    }
    
    .carousel-inner {
        height: 70vh;
    }
    
    .carousel-item img {
        height: 70vh;
    }
    
    .carousel-caption {
        bottom: 20% !important;
        padding: 1rem;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption .lead,
    .carousel-caption .hero-subtitle {
        font-size: 1rem;
    }
    

    .display-5 {
        font-size: 2rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .language-toggle {
        order: -1;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 60vh;
    }
    
    .carousel-inner {
        height: 60vh;
    }
    
    .carousel-item img {
        height: 60vh;
    }
    
    .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .menu-card img {
        height: 150px;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== RESERVAS SECTION ===== */
.reservas-section {
    background: #f8f9fa;
    padding: 5rem 0 4.5rem;
    border-top: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.reservas-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #165C7D;
    margin-bottom: 0.6rem;
}

.reservas-subtitle {
    color: rgba(0,0,0,0.45);
    font-size: 0.92rem;
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.7;
}

.reservas-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    text-decoration: none;
    color: #1a1a1a;
    transition: background 0.2s, border-color 0.2s, transform 0.18s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.reservas-card:hover {
    background: #fff;
    border-color: #A7C6ED;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22,92,125,0.1);
}

.reservas-card--whatsapp:hover {
    border-color: #25d366;
    box-shadow: 0 6px 20px rgba(37,211,102,0.1);
}

.reservas-card--whatsapp .reservas-card-icon {
    background: rgba(37,211,102,0.1);
    color: #1a9e4a;
}

.reservas-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(22,92,125,0.08);
    color: #165C7D;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.reservas-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 2px;
    min-width: 0;
}

.reservas-card-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(0,0,0,0.38);
    line-height: 1;
}

.reservas-card-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reservas-card-arrow {
    color: rgba(0,0,0,0.18);
    font-size: 0.75rem;
    transition: color 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.reservas-card:hover .reservas-card-arrow {
    color: #165C7D;
    transform: translateX(3px);
}

.reservas-note {
    text-align: center;
    color: rgba(0,0,0,0.35);
    font-size: 0.8rem;
    margin-top: 2.5rem;
    margin-bottom: 0;
}

.btn-carta-mobile {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--primary-color);
    text-decoration: none;
    background: transparent;
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    min-height: 44px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-carta-mobile i {
    font-size: 1rem;
}

.btn-carta-mobile:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 92, 125, 0.3);
}

/* ===== CARTA PDF VIEWER ===== */
.carta-pdf-wrapper {
    width: 100%;
    max-width: 816px;   /* A4 @ 96dpi */
    margin: 0 auto 2.5rem;
}

.carta-pdf-canvas-container {
    width: 100%;
    background: #e8e8e8;
    padding: 16px;
    box-sizing: border-box;
    border-radius: 4px;
}

.carta-pdf-canvas-container canvas {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.carta-pdf-canvas-container canvas:last-child {
    margin-bottom: 0;
}

.carta-pdf-loading {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
    font-size: 1rem;
}

.carta-pdf-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    text-align: center;
    color: #666;
}

/* ===== RESERVAS ===== */
.reserva-cta-primary {
    text-align: center;
    margin-bottom: 1rem;
}

.reserva-subtitulo {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    color: #888;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.reserva-aviso-confirmacion {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: #888;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 0;
}

.reserva-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.reserva-cta-phone-hours {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: #aaa;
    margin-top: 0.5rem;
    margin-bottom: 0;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Columna derecha de CTAs — separador vertical en desktop */
.reserva-cta-col {
    border-left: 1px solid rgba(0,0,0,0.08);
    padding-left: 2.5rem;
}

@media (max-width: 991px) {
    .reserva-cta-col {
        border-left: none;
        border-top: 1px solid rgba(0,0,0,0.08);
        padding-left: 0;
        padding-top: 2rem;
    }

    .reserva-cta-phone-hours {
        text-align: left;
        margin-left: 0;
        max-width: 100%;
    }
}

/* WhatsApp debajo del formulario: ancho máximo controlado */
.btn-reserva-whatsapp--form {
    width: 100%;
    justify-content: center;
    max-width: 360px;
}

@media (max-width: 767px) {
    .btn-reserva-whatsapp--form {
        max-width: 100%;
    }
}

.btn-reserva-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #25D366;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 12px 30px;
    border-radius: 50px;
    border: 2px solid transparent;
    min-height: 44px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-reserva-whatsapp i {
    font-size: 1.4rem;
}

.btn-reserva-whatsapp:hover {
    background-color: #1ebe5d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.reserva-cta-note {
    margin-top: 0.85rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 0;
}

.reserva-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 1rem 0;
    color: #bbb;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.reserva-divider::before,
.reserva-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #ddd;
}

.btn-reserva-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 0.02em;
    background: transparent;
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    min-height: 44px;
    transition: all 0.3s ease;
    cursor: pointer;
}

@media (max-width: 576px) {
    .btn-reserva-phone {
        width: 100%;
        justify-content: center;
    }
}

.btn-reserva-phone i {
    font-size: 1.1rem;
}

.btn-reserva-phone:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 92, 125, 0.3);
}

/* ===== HORARIO BRIEF (Reservas, inline) ===== */
.reserva-horario-brief {
    display: flex;
    gap: 0.6rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 1.25rem;
    margin-top: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    color: #666;
}

.reserva-horario-brief i {
    color: var(--primary-color);
    opacity: 0.6;
    flex-shrink: 0;
}

.reserva-aviso-sep {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
}

/* ===== HORARIO BLOCK (Contacto) ===== */
.reserva-horario-block {
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 2rem;
    margin-top: 0.5rem;
}

.reserva-horario-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.reserva-horario-header i {
    font-size: 0.9rem;
    color: var(--primary-color);
    opacity: 0.6;
}

.reserva-horario-header strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #888;
}

.reserva-horario-content {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.reserva-horario-days {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rh-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    line-height: 1.7;
}

.rh-day {
    color: var(--text-dark);
    font-weight: 400;
}

.rh-hours {
    color: var(--text-dark);
    font-weight: 400;
    white-space: nowrap;
}

.rh-closed {
    color: #aaa;
}

.rh-divider {
    width: 1px;
    background-color: #ccc;
    margin: 0 1.5rem;
    align-self: stretch;
}

.rh-cocina-note {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    color: var(--text-dark);
    line-height: 1.4;
    min-width: 90px;
}

.rh-cocina-hora {
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-color);
}

.rh-reserva-previa {
    margin-top: 1.2rem;
    text-align: center;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-dark);
    letter-spacing: 0.01em;
}

/* Horario block — mobile: stack vertically */
@media (max-width: 576px) {
    .reserva-horario-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .rh-divider {
        width: 100%;
        height: 1px;
        margin: 0;
    }

    .rh-cocina-note {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        align-items: baseline;
        min-width: unset;
    }

    .rh-cocina-hora {
        font-size: 0.95rem;
    }

    .rh-row {
        font-size: 0.85rem;
    }
}

/* Fix iOS auto-zoom: inputs need font-size >= 16px on mobile */
@media (max-width: 768px) {
    .reserva-input,
    .reserva-input:focus {
        font-size: 16px !important;
    }
}

/* ===== FORMULARIO DE RESERVA ===== */
.reserva-form .form-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 0.35rem;
}

.reserva-input {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.55rem 0.9rem;
    min-height: 44px;
    color: var(--text-dark);
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reserva-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(22, 92, 125, 0.1);
    outline: none;
}

.reserva-date-control {
    position: relative;
}

.reserva-date-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.reserva-date-trigger.is-empty {
    color: #6c757d;
}

.reserva-date-trigger i {
    color: var(--primary-color);
    font-size: 1rem;
}

.reserva-date-picker {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.reserva-form .form-check-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: var(--text-dark);
}

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

@media (max-width: 768px) {
    .reserva-cta-primary {
        margin-bottom: 1.5rem;
    }

    .btn-reserva-whatsapp {
        display: flex;
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        padding: 12px 30px;
        min-height: 56px;
        border-radius: 50px;
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    }

    .btn-reserva-whatsapp i {
        font-size: 1.6rem;
    }

    .reserva-cta-note {
        font-size: 0.68rem;
        letter-spacing: 0.06em;
    }

    .reserva-divider {
        margin: 1.25rem 0;
        font-size: 0.65rem;
    }

    .btn-reserva-phone {
        min-height: 48px;
        border-radius: 50px;
    }

    .reserva-info-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding-top: 1.5rem;
    }

    /* Reduce excessive bottom margin before info grid */
    #reservas .col-lg-8 .text-center.mb-5 {
        margin-bottom: 1.5rem !important;
    }
}

/* ===== SECTION HEADINGS ===== */
.section-heading {
    margin-bottom: 1.25rem;
}

.section-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 0.65rem;
}

.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.6rem, 6vw, 2.75rem);
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
}

.section-rule {
    width: 36px;
    height: 1px;
    background-color: var(--primary-color);
    opacity: 0.35;
    margin-bottom: 0;
}

/* ===== MOBILE TYPOGRAPHY ===== */
@media (max-width: 768px) {

    /* Hero — reducir peso y tamaño */
    .hero-title-modern {
        font-size: 1.85rem;
        font-weight: 400;
        font-family: 'Cormorant Garamond', Georgia, serif;
        line-height: 1.2;
    }

    .title-line-2 {
        font-size: 2.1rem;
    }

    .hero-subtitle-modern {
        font-size: 0.95rem;
        font-weight: 300;
        letter-spacing: 0.02em;
    }

    .hero-description {
        font-size: 0.85rem;
        letter-spacing: 0.01em;
    }

    /* Sección label — menos letter-spacing en pantallas pequeñas */
    .section-label {
        font-size: 0.6rem;
        letter-spacing: 0.18em;
    }

    /* Lead — más compacto */
    .lead {
        font-size: 0.95rem !important;
        line-height: 1.65;
    }

    /* Cuerpo de texto */
    p {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    /* Títulos de card (h4, h5) */
    h4, .card-title {
        font-size: 1.25rem;
    }

    h5 {
        font-size: 1.05rem;
    }

    h6 {
        font-size: 0.9rem;
    }

    /* Texto adicional historia */
    .additional-history-content p {
        font-size: 0.88rem;
    }

    /* Info label de reservas */
    .reserva-info-item p {
        font-size: 0.82rem;
    }

    .btn-reserva-phone {
        font-size: 1rem;
    }
}

/* ===== HISTORY GALLERY ===== */
.history-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-main {
    overflow: hidden;
    border-radius: 3px;
}

.gallery-main .gallery-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
    filter: brightness(0.97);
}

.gallery-main:hover .gallery-img {
    transform: scale(1.04);
    filter: brightness(1);
}

.gallery-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 3px;
}

.gallery-item .gallery-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
    filter: brightness(0.97);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.04);
    filter: brightness(1);
}

@media (max-width: 768px) {
    .gallery-main .gallery-img {
        height: 240px;
    }
    .gallery-item .gallery-img {
        height: 140px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .carousel-control-prev,
    .carousel-control-next,
    #reservas {
        display: none !important;
    }
    
    .hero-section {
        height: auto;
        page-break-after: always;
    }
    
    body {
        padding-top: 0;
    }
}
