@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@300;400;600;800&display=swap');
/* Comentado temporalmente hasta obtener el archivo de fuente
@font-face {
  font-family: 'Adorn Serif';
  src: url('../fonts/AdornSerif-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}
*/

.swiper-button-next, .swiper-button-prev {

    color: #9E9E9E !important;
}

/* Estancia Vigil – Estilos 2025 */
:root {
    /* — PALETA DE ESTANCIA VIGIL — Restaurando la original */
    --background: #f4f4f4;  
    --primary:    #9B9475;  
    --secondary:  #DAC2AF;  
    --text-dark:  #333333;  
    --text-muted: #666666;  
    --accent:     #846F59;  
    --brand-only: #B1B49F;  
    --header-bg: rgba(249, 247, 244, 0.92); 
    --white: #FFFFFF;
    --border-color: rgba(0, 0, 0, 0.1); 
    
    /* Tipografías */
    --font-display: 'Playfair Display', 'Georgia', serif;
    --font-body:    'Fira Sans', sans-serif;
    
    /* Variables de Espaciado y Tamaños basados en grid 8px */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;
    --space-7: 64px;
    --space-8: 80px;
    
    /* Alturas y tamaños estándar */
    --header-height: 56px; /* Altura estándar para mobile */
    --button-height: 48px; /* Altura estándar para botones e inputs */
    --border-radius: 8px; /* Radio consistente */
    --border-radius-sm: 4px; /* Radio más pequeño */
    
    /* Transiciones */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset y Basics */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base según Apple Developer */
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--background);
    line-height: 1.5; /* Según la guía: 1.4-1.5 */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography siguiendo la guía */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-dark);
}

h1 {
    font-size: 1.75rem; /* 28px */
    line-height: 1.2;
    margin-bottom: var(--space-3);
}

h2 {
    font-size: 1.5rem; /* 24px */
    line-height: 1.25;
    margin-bottom: var(--space-2);
}

h3 {
    font-size: 1.25rem; /* 20px */
    line-height: 1.3;
    margin-bottom: var(--space-2);
}

p {
    margin-bottom: var(--space-3);
    color: var(--text-muted);
    font-size: 1rem; /* 16px */
    line-height: 1.5;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover, a:focus { 
    color: var(--primary);
    text-decoration: none;
}

.container {
    width: 100%;
    padding: 0 var(--space-3); /* 16px margen lateral mínimo */
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Contenedores aplicando la guía de espaciado */
.content-section {
    padding: var(--space-4) 0; /* 24px entre secciones */
}

/* Media queries según los breakpoints de la guía */
@media (min-width: 481px) {
    /* Phablet: 481–600 px */
    h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
    h2 { font-size: clamp(1.5rem, 3.5vw, 1.75rem); }
    h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
}

@media (min-width: 601px) {
    /* Tablet y desktop */
    .container { max-width: 1200px; }
    h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
    h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
    h3 { font-size: clamp(1.5rem, 3.5vw, 1.75rem); }
}

/* Botones Modernos 2025 */
.btn {
    display: inline-block;
    height: var(--button-height); /* 48px estándar */
    padding: 0 var(--space-3); /* 16px horizontal */
    border-radius: var(--border-radius);
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    text-align: center;
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px; /* Ancho mínimo según la guía */
}

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

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0, 0.1);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-dark);
    border-color: var(--secondary);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover, .btn-outline:focus {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-large {
    height: 56px;
    padding: 0 var(--space-4);
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* Efectos Modernos para Botones - Ripple Effect */
/* Considerar si el ripple es necesario o simplificar */
.btn {
    position: relative;
    overflow: hidden;
}

.btn:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 0.7s ease-out; /* Slightly faster ripple */
}

@keyframes ripple {
    0% {
        transform: scale(0, 0) translate(-50%, -50%); /* Ensure ripple starts from center */
        opacity: 0.6; /* Slightly more visible start */
    }
    20% {
        transform: scale(25, 25) translate(-50%, -50%);
        opacity: 0.4; /* Adjusted opacity */
    }
    100% {
        opacity: 0;
        transform: scale(40, 40) translate(-50%, -50%);
    }
}

/* Header 2025 - Color sólido */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 var(--space-3);
}

.header-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    margin-left: var(--space-3);
    flex: 1;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition-smooth);
}

#menuToggle {
    width: 48px; /* Target área de 48x48px según guía WCAG */
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 24px;
    cursor: pointer;
    z-index: 1002;
    transition: var(--transition-smooth);
}

#menuToggle:hover, #menuToggle:focus {
    color: var(--primary);
}

/* Mobile Menu siguiendo la guía de UX */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 280px;
    height: 100vh;
    background-color: var(--white);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: var(--header-height);
    transition: right 0.35s cubic-bezier(0.645, 0.045, 0.355, 1);
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-container {
    text-align: left;
    width: 100%;
    padding: var(--space-3); /* 16px según guía */
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    margin-bottom: 0;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    transition-delay: calc(var(--item-index) * 0.07s);
}

.mobile-menu.active .mobile-nav-links li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav-links a {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-body);
    position: relative;
    padding: var(--space-2) 0; /* 8px según guía */
    display: block;
    border-bottom: 1px solid var(--border-color);
    min-height: 44px; /* Área mínima táctil según WCAG */
    display: flex;
    align-items: center;
}

.mobile-nav-links li:last-child a {
    border-bottom: none;
}

.mobile-nav-links a:hover, .mobile-nav-links a:focus {
    color: var(--primary);
    background-color: rgba(155, 148, 117, 0.05);
}

.close-menu-btn {
    position: absolute;
    top: calc((var(--header-height) - 48px) / 2);
    right: var(--space-2);
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-menu-btn:hover, .close-menu-btn:focus {
    color: var(--primary);
    transform: rotate(90deg);
}

/* Botón flotante de Reservas - siguiendo la guía */
.floating-reserve-btn {
    position: fixed;
    bottom: var(--space-3);
    right: var(--space-3);
    background-color: var(--primary);
    color: var(--white) !important;
    height: 48px;
    padding: 0 var(--space-3);
    border-radius: 24px;
    font-weight: 500;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0, 0.18);
    z-index: 990;
    opacity: 1;  /* Siempre visible */
    visibility: visible;  /* Siempre visible */
    transform: translateY(0);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
}

.floating-reserve-btn span {
    color: var(--white);
}

.floating-reserve-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-reserve-btn:hover, .floating-reserve-btn:focus {
    background-color: var(--accent);
    box-shadow: 0 6px 15px rgba(0,0,0, 0.22);
    transform: translateY(-2px);
    color: var(--white) !important;
}

/* Carrusel de Secciones Principal - Diseño Moderno 2025 */
.main-carousel {
    width: 100%;
    padding: 50px 0; /* Adjusted padding */
    position: relative;
    overflow: hidden;
    background-color: var(--background);
}

.carousel-inner {
    width: 100%;
    max-width: 1200px; /* Consistent max width */
    margin: 0 auto;
    display: flex;
    transition: transform 0.7s cubic-bezier(0.645, 0.045, 0.355, 1); /* Smoother transition */
    margin-bottom: 30px; /* Adjusted margin */
    margin-top: 30px; /* Adjusted margin */
}

.carousel-item {
    min-width: 100%;
    padding: 0 15px; /* Add horizontal padding to items */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-hero-image {
    width: 100%;
    height: 500px; /* Adjusted height */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding: 30px; /* Adjusted padding */
    border-radius: 12px; /* Softer border radius */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08); /* Softer shadow */
    background-color: var(--secondary); /* Use secondary color as base */
}

.section-hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.35)); /* Softer gradient */
    z-index: 0;
    border-radius: 12px; /* Match parent */
}

.section-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 750px; /* Adjusted max-width */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px; /* Adjusted padding */
    background-color: rgba(var(--background-rgb, 242, 242, 242), 0.8); /* Light background with alpha */
    border-radius: 10px; /* Softer radius */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Subtle shadow */
}

.section-hero-image h2 {
    position: relative;
    z-index: 1;
    font-size: clamp(2rem, 4.5vw, 2.8rem); /* Adjusted size */
    margin-bottom: 15px; /* Adjusted margin */
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.25); /* Softer shadow */
    color: var(--text-dark); /* Darker text for better contrast on light background */
}

.section-hero-image .leyenda {
    position: relative;
    z-index: 1;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem); /* Adjusted size */
    max-width: 550px; /* Adjusted max-width */
    margin-bottom: 25px; /* Adjusted margin */
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2); /* Softer shadow */
    color: var(--text-muted); /* Muted text color */
}

.btn-ver-mas {
    position: relative;
    z-index: 1;
    background-color: var(--primary); /* Primary color for button */
    color: var(--white);
    padding: 12px 32px; /* Adjusted padding */
    border-radius: 30px; /* Rounded button */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px; /* Adjusted spacing */
    font-size: 0.9rem; /* Adjusted font size */
    transition: var(--transition-smooth);
    box-shadow: 0 8px 20px rgba(0,0,0, 0.15); /* Softer shadow */
}

.btn-ver-mas:hover, .btn-ver-mas:focus {
    background-color: var(--accent); /* Accent color on hover */
    color: var(--white);
    transform: translateY(-3px); /* Slight lift */
    box-shadow: 0 12px 25px rgba(0,0,0, 0.2); /* Enhanced shadow */
}

/* Controles del Carrusel */
.carousel-controls {
    position: absolute;
    bottom: 15px; /* Adjusted position */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px; /* Adjusted gap */
    z-index: 10;
}

.carousel-dot {
    width: 10px; /* Adjusted size */
    height: 10px; /* Adjusted size */
    border-radius: 50%;
    background-color: rgba(var(--text-dark-rgb, 51, 51, 51), 0.25); /* Darker, less opaque dots */
    cursor: pointer;
    transition: var(--transition-smooth);
}

.carousel-dot.active {
    background-color: var(--primary);
    transform: scale(1.15); /* Slightly larger active dot */
}

.carousel-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    max-width: 1280px; /* Consistent max-width */
    display: flex;
    justify-content: space-between;
    padding: 0 15px; /* Adjusted padding */
    z-index: 10;
    left: 50%;
    transform: translate(-50%, -50%);
}

.carousel-arrow {
    width: 40px; /* Adjusted size */
    height: 40px; /* Adjusted size */
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--white);
    font-size: 1rem; /* Adjusted icon size */
    box-shadow: 0 4px 12px rgba(0,0,0, 0.12); /* Softer shadow */
}

.carousel-arrow:hover, .carousel-arrow:focus {
    background-color: var(--accent); /* Accent color on hover */
    transform: scale(1.08); /* Slight scale on hover */
}

/* Sección Newsletter Moderna */
.section-newsletter {
    padding: 80px 0; /* Adjusted padding */
    background-color: var(--accent);
    position: relative;
    overflow: hidden;
}

.section-newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/img/pattern.png') repeat; /* Corrected path assuming pattern.png is in img folder */
    opacity: 0.04; /* Slightly less visible pattern */
    z-index: 0;
}

.newsletter-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 15px; /* Add horizontal padding */
}

.newsletter-text {
    color: var(--white);
    max-width: 600px; /* Adjusted max-width */
    margin: 0 auto 30px; /* Adjusted margin */
    font-size: 1.2rem; /* Adjusted font size */
    line-height: 1.7; /* Improved line height */
}

.newsletter-form {
    display: flex;
    gap: var(--space-2);
    width: 100%;
    max-width: 550px;
    flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    height: var(--button-height);
    padding: 0 var(--space-3);
    border: 1px solid transparent;
    border-radius: 24px; /* Input redondeados para newsletter */
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(155, 148, 117, 0.2);
}

.newsletter-form .btn-submit {
    height: var(--button-height);
    padding: 0 var(--space-4);
    border-radius: 24px; /* Botón redondeado para newsletter */
    min-width: auto;
}

/* Donde Estamos Teaser */
.section-donde-estamos-teaser {
    padding: 100px 0; /* Adjusted padding */
    background-color: var(--white);
    text-align: center;
}

.section-donde-estamos-teaser h2 {
    color: var(--primary);
    margin-bottom: 40px; /* Adjusted margin */
   font-size: 2rem;
}

.mapa-o-foto {
    width: 100%;
    max-width: 1100px; /* Adjusted max-width */
    height: 450px; /* Adjusted height */
    border-radius: 12px; /* Softer radius */
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); /* Softer shadow */
    margin: 0 auto 35px; /* Adjusted margin */
}

.mapa-o-foto iframe { /* Style iframe directly */
    width: 100%;
    height: 100%;
    border: 0;
}

.btn-como-llegar {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 14px 36px; /* Adjusted padding */
    border-radius: 30px; /* Rounded button */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px; /* Adjusted spacing */
    font-size: 1rem; /* Adjusted font size */
    transition: var(--transition-smooth);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb, 155, 148, 117), 0.25); /* Shadow with primary color */
}

.btn-como-llegar:hover, .btn-como-llegar:focus {
    background-color: var(--accent); /* Accent color on hover */
    color: var(--white);
    transform: translateY(-3px); /* Slight lift */
    box-shadow: 0 12px 30px rgba(var(--accent-rgb, 132, 113, 89), 0.3); /* Shadow with accent color */
}

/* Footer - Siguiendo grid 8px */
.site-footer {
    background-color: var(--text-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-6) 0 var(--space-4);
    position: relative;
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-4);
    align-items: flex-start;
}

.footer-logo, .footer-social-icons, .footer-links, .footer-contact {
    width: 100%;
    margin-bottom: var(--space-3);
}

.footer-logo img {
    height: 48px;
    width: auto;
    margin-bottom: var(--space-2);
    filter: brightness(0) invert(1);
}

.footer-logo p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-social-icons {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-1);
}

.footer-social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-smooth);
}

.footer-social-icons a:hover, .footer-social-icons a:focus {
    background-color: var(--primary);
    transform: translateY(-2px);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-smooth);
    padding: var(--space-1) 0;
    display: inline-block;
}

.footer-links a:hover, .footer-links a:focus {
    color: var(--white);
    text-decoration: underline;
}

.footer-brand-phrase {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--secondary);
    margin-top: var(--space-4);
    width: 100%;
    text-align: center;
}

/* Media queries refinados según la guía */
@media (max-width: 360px) {
    /* Compact: ≤ 360px */
    :root {
        --space-3: 12px; /* Reducir espaciado lateral a 12px en pantallas muy pequeñas */
    }
    
    .btn {
        min-width: 140px; /* Botones un poco más pequeños */
    }
    
    .page-hero-content {
        max-width: 95%;
    }
}

@media (min-width: 481px) {
    /* > Mobile */
    .footer-logo, .footer-social-icons {
        width: auto;
    }
}

@media (min-width: 768px) {
    /* > Tablet */
    .footer-logo, .footer-social-icons, .footer-links, .footer-contact {
        width: auto;
        margin-bottom: 0;
    }
    
    .footer-links {
        min-width: 180px;
    }
    
    .footer-brand-phrase {
        margin-top: var(--space-6);
    }
}

/* Adding RGB variables for colors used with alpha, assuming these are the RGB equivalents */
/* Add these to your :root if not already defined elsewhere or use actual RGB values */
:root {
    /* ... other variables ... */
    --background-rgb: 242, 242, 242;
    --primary-rgb: 155, 148, 117;
    --accent-rgb: 132, 113, 89;
    --white-rgb: 255, 255, 255;
    --text-dark-rgb: 51, 51, 51;
}

/* Animaciones y Efectos 2025 */
.fade-in {
    opacity: 0;
    transform: translateY(25px); /* Adjusted distance */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out; /* Ease-out for smoother end */
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.95); /* Adjusted scale */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.stagger-item {
    opacity: 0;
    transform: translateY(15px); /* Adjusted distance */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--item-index) * 0.08s); /* Adjusted delay */
}

/* General Page Structure - Solves Header Overlap */
/* Apply to main content wrapper of each page if not .content-section or .page-hero */
main, .main-content, .page-wrapper { /* Generic selectors, use what's appropriate in your HTML */
    padding-top: var(--header-height);
    flex-grow: 1; /* Para sticky footer si body es flex */
}

/* If using a wrapper div after header for all page content */
.site-wrap > .content-section:first-child,
.site-wrap > .page-hero:first-child {
    margin-top: var(--header-height);
    padding-top: var(--header-height); /* Asegurar que el padding se aplique */
}

.text-block {
    margin-bottom: var(--space-4);
    color: var(--text-dark);
    line-height: 1.7; /* Interlineado mejorado */
}

.text-block h1, .text-block h2, .text-block h3 { 
    color: var(--text-dark); /* Encabezados más oscuros para contraste */
    margin-bottom: var(--space-2); 
}

.text-block p {
    color: var(--text-muted);
    font-size: 0.95rem; 
    margin-bottom: var(--space-3); 
}

.text-block p:last-child {
    margin-bottom: 0; /* Remove margin from last paragraph */
}

.text-block a {
    font-weight: 500; /* Slightly bolder links in text */
}

.text-center { /* Utility class */
    text-align: center;
}

/* Ajuste para evitar solapamiento del título con el header */
/* Replaced by more specific rules above (.page-main-content, etc.) */
/* header + .content-section {
    margin-top: var(--header-height);
} */

/* Asegurar que .page-hero tiene suficiente padding-top */
.page-hero {
    position: relative;
    background-color: var(--background);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: calc(var(--header-height) + var(--space-4));
    padding-bottom: var(--space-4);
    min-height: 180px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    padding: var(--space-3);
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 85%;
    width: auto;
    margin: var(--space-2);
}

.page-hero-content h1 {
    color: var(--primary);
    margin-bottom: var(--space-2);
    font-size: 1.5rem;
}

.page-hero-content p {
    color: var(--text-dark);
    font-size: 1rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* Specific Page Styles Adjustments - Placeholder for pages.css content if it existed */
/* Contact Page Example */
.contact-section .text-block p {
    max-width: 700px; /* Limit width of intro paragraph */
    margin-left: auto;
    margin-right: auto;
}

/* Gift Card Page Specifics */
.gift-card-hero .page-hero-content {
    background: none; /* Remove background for transparent gift card section */
    box-shadow: none;
}
.gift-card-link {
    display: inline-block;
    text-decoration: none;
}
.gift-card-mockup {
    text-align: center;
}
.gift-card-mockup img {
    max-width: 350px; /* Ajustar tamaño */
    border-radius: 8px; /* Bordes más suaves */
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    margin-bottom: 15px;
}
.gift-card-mockup h1 {
    color: var(--white); 
    text-shadow: 0 1px 8px rgba(0,0,0,0.4); /* Sombra de texto más suave */
    font-size: clamp(2rem, 5vw, 3rem); /* Ajustar tamaño H1 giftcard */
}
.gift-card-cta {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 22px; /* Padding ajustado */
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
}
.gift-card-cta:hover {
    background-color: var(--accent);
}

/* Trabaja Page Specifics */
.careers-section .btn-primary { /* Button to jump to form */
    margin-top: 20px;
    margin-bottom: 30px;
}
.career-form h3 {
    text-align: left; 
    font-size: 1.6rem; /* Tamaño de H3 en formulario de carrera */
    margin-bottom: 20px;
}
.file-upload-container {
    border: 2px dashed var(--border-color); /* Borde más visible */
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-smooth);
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    position: relative;
    background-color: var(--white);
}
.file-upload-container:hover {
    border-color: var(--primary);
    background-color: rgba(155, 148, 117, 0.02);
}
.file-label {
    font-weight: 500;
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
    display: block;
    margin-bottom: 5px;
}
input[type="file"] {
    position: absolute;
    left: -9999px; /* Mover fuera de vista pero mantener en DOM */
    opacity: 0;
    pointer-events: none; /* Evitar que capture eventos directamente */
}
.file-info {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}
.file-name {
    display: block;
    font-size: 0.85rem;
    color: var(--accent);
    margin-top: 8px;
    font-weight: 500;
}

/* Donde Estamos Page */
.page-hero-map {
    padding-top: var(--header-height);
    height: 40vh;
    min-height: 250px;
}
.map-container {
    width: 100%;
    height: 100%;
    border-radius: 0; /* Full width map, no radius needed here */
    box-shadow: none;
    overflow: hidden;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.location-info {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    text-align: center;
}
.location-detail strong {
    color: var(--primary);
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

/* Experiencias Page Specifics */
.calendar-section h2 {
    margin-bottom: 15px;
}
.calendar-section h3 { /* Para el mes actual */
    text-align: center;
    font-size: 1.6rem;
    color: var(--text-dark);
}

.month-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}
.month-selector .current-month {
    margin: 0 15px;
    font-size: 1.5rem;
    font-weight: 500;
}
.month-nav {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--primary);
    cursor: pointer;
    padding: 5px 10px;
}
.month-nav:hover {
    color: var(--accent);
}
/* Basic styling for arrows if using characters, replace with SVGs for better results */
.arrow-left::before { content: "<"; }
.arrow-right::before { content: ">"; }

.events-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}
.event-card {
    background: var(--white);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column; /* Apilar fecha y contenido en móviles */
    gap: 10px;
}

@media (min-width: 500px) { /* Para que en pantallas un poco más grandes no se apile */
    .event-card {
        flex-direction: row;
        gap: 15px;
    }
}

.event-date {
    font-size: 1rem; /* Tamaño ajustado */
    font-weight: 600;
    color: var(--primary);
    background-color: rgba(var(--primary-rgb,155, 148, 117), 0.08);
    padding: 8px 12px; /* Padding ajustado */
    border-radius: var(--border-radius);
    text-align: center;
    min-width: 60px;
    height: auto; /* Altura automática */
    align-self: flex-start; /* Alinear a la izquierda si es flex-column */
}
.event-content h4 {
    font-size: 1.15rem; /* Tamaño ajustado */
    margin-bottom: 6px;
    color: var(--text-dark);
}
.event-content p {
    font-size: 0.85rem;
    margin-bottom: 8px;
    line-height: 1.5;
}
.event-time {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
}
.events-note {
    text-align: center;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Mercado Page Specifics */
.product-gallery { /* Assuming Swiper is used */
    margin-bottom: 30px;
}
.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.gallery-item img {
    width: 100%;
    height: 250px; /* Altura ajustada para el carrusel */
    object-fit: cover;
}
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    color: var(--white);
    padding: 12px;
    font-size: 1rem;
    font-weight: 500;
    text-align: left; /* Alinear texto a la izquierda */
}
.hours-info {
    background-color: rgba(var(--primary-rgb,155, 148, 117), 0.04);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 20px;
    text-align: center;
}
.hours-info h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

/* Modal de Confirmación */
.modal {
    position: fixed;
    inset: 0; /* Shorthand for top, right, bottom, left */
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(var(--text-dark-rgb, 51, 51, 51), 0.65); /* Overlay más suave */
    z-index: 10000; /* Ensure modal is on top */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0s 0.25s linear;
    pointer-events: none; /* No capturar eventos de mouse cuando está oculto */
}

.modal.active { 
    visibility: visible;
    opacity: 1;
    transition: opacity 0.25s ease;
    pointer-events: auto; /* Capturar eventos de mouse cuando está activo */
}

.modal-content {
    background: var(--white);
    padding: 25px 30px; 
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); 
    max-width: 90%;
    width: 400px; 
    transform: scale(0.98) translateY(5px); 
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.25s ease;
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-content h3 {
    font-size: 1.6rem; 
    color: var(--primary);
    margin-bottom: 12px; 
}

.modal-content p {
    font-size: 0.95rem; 
    color: var(--text-muted);
    margin-bottom: 20px; 
}

.close-modal { 
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.6rem; 
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    line-height: 1;
    transition: color var(--transition-smooth), transform var(--transition-smooth);
}

.close-modal:hover, .close-modal:focus {
    color: var(--primary);
    transform: rotate(90deg);
}

/* Ensure AOS animations work with opacity transitions */
[data-aos] {
  opacity: 0;
  transition-property: transform, opacity;
  will-change: transform, opacity; /* Para mejor rendimiento de animaciones */
}
.aos-animate {
  opacity: 1 !important; /* Ensure AOS sets opacity to 1 */
  transform: none !important; /* Ensure AOS sets transform */
}

/* Responsive 2025 */
@media (min-width: 769px) { /* Estilos para desktop primero */
    .footer-logo, .footer-contact {
        width: auto; /* Ancho automático para desktop */
        min-width: 200px; /* Un min-width */
    }
    .footer-social-icons {
         justify-content: flex-start; 
    }
    .footer-links {
        width: auto;
        min-width: 150px;
    }
}

@media (max-width: 1200px) {
    :root {
        --header-height: 65px; 
    }

    .container {
        width: 90%; /* Un poco más de aire en tablets */
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%; 
        max-width: 400px; /* Ajustar max-width */
    }
    
    .mapa-o-foto {
        height: 320px; 
    }

    .footer-brand-phrase {
        font-size: 1.2rem;
    }
}

@media (max-width: 992px) {
    :root {
        --header-height: 60px; 
    }

    .container {
        width: 90%; /* Un poco más de aire en tablets */
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%; 
        max-width: 400px; /* Ajustar max-width */
    }
    
    .mapa-o-foto {
        height: 320px; 
    }
    
    .footer-brand-phrase {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) { /* Tablet y móviles grandes */
    :root {
        --section-padding: 60px 0; /* Reducir padding */
        --header-height: 60px; /* Header más pequeño */
    }

    html {
        font-size: 15px; 
    }
    
    h1 { font-size: clamp(1.8rem, 5.5vw, 2.5rem); }
    h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); }
    h3 { font-size: clamp(1.2rem, 4vw, 1.6rem); }
    p { font-size: 0.9rem; }

    .section-hero-image {
        height: auto; 
        min-height: 350px; 
        padding: 15px;
    }
    
    .carousel-arrows {
        display: none;
    }
    
    .newsletter-text {
        font-size: 1rem; 
    }
    
    .footer-content {
        flex-direction: column; /* Apilar elementos */
        align-items: center; /* Centrar items */
        text-align: center; /* Centrar texto dentro de items */
    }
    
    .footer-logo, .footer-social-icons, .footer-links, .footer-contact { 
        width: 100%; /* Ocupar todo el ancho */
        align-items: center;
        margin-bottom: 25px; 
    }
    
    .footer-social-icons {
        justify-content: center; /* Centrar iconos sociales */
        margin-top: 0;
    }

    .footer-links {
        align-items: center; 
    }
    
    .floating-reserve-btn {
        padding: 8px 18px;
        font-size: 0.8rem;
        right: 15px;
        bottom: 15px;
    }
}

@media (max-width: 576px) { /* Móviles pequeños */
    :root {
        --container-padding: 0 15px; 
        --header-height: 80px; 
    }

    .logo img {
      height: 48px; 
    }

    #menuToggle {
          font-size: 20px;
        width: 30px;
        height: 30px;
    }

    .mobile-menu {
        max-width: 260px; 
    }

    .mobile-nav-links a {
        font-size: 1rem;
        padding: 10px 0;
    }
    
    .btn {
        padding: 8px 18px;
        font-size: 0.8rem;
    }

    .btn-large {
        padding: 10px 25px;
        font-size: 0.85rem;
    }
    
    .btn-ver-mas {
        padding: 8px 20px; 
        font-size: 0.8rem; 
    }
    
    .section-newsletter {
        padding: 50px 0; 
        margin-top: 20px; 
    }
    
    .newsletter-text {
        font-size: 0.95rem; 
    }

    .newsletter-form input[type="email"], .newsletter-form .btn-submit {
        font-size: 0.85rem;
        padding: 10px 15px;
    }
    
    .mapa-o-foto {
        height: auto; 
        border-radius: 8px; 
    }
    
    .main-carousel {
        padding: 15px 0; 
    }
    
    .section-hero-image {
        min-height: 300px; 
        padding: 10px; 
    }

    .section-hero-image h2 { font-size: clamp(1.4rem, 4.5vw, 1.8rem); }
    .section-hero-image .leyenda { font-size: clamp(0.75rem, 3vw, 0.85rem); }
    
    .section-hero-content {
        padding: 8px; 
    }

    .floating-reserve-btn {
        padding: 6px 14px;
        font-size: 0.75rem;
        right: 10px;
        bottom: 10px;
        border-radius: 20px;
    }

    .form-container {
        padding: 20px; /* Menos padding en móviles */
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group textarea,
    .form-group select {
        padding: 10px 12px;
        font-size: 0.9rem; /* Ajustar tamaño de fuente para campos */
    }

    .btn-submit {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* Estilos uniformes para formularios según la guía */
.form-container {
    background-color: var(--white);
    padding: var(--space-4);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    margin-bottom: var(--space-4);
}

.form-container h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: var(--space-3);
}

.form-group {
    margin-bottom: var(--space-3); /* 16px entre campos según la guía */
}

.form-group label {
    display: block;
    margin-bottom: var(--space-1);
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.875rem;
}

/* Estilos unificados para todos los inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
    width: 100%;
    height: var(--button-height); /* 48px según guía */
    padding: 0 var(--space-3); /* 16px horizontal */
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius); /* 8px uniforme */
    font-size: 1rem; /* 16px legible */
    color: var(--text-dark);
    transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
    background-color: var(--white);
    font-family: var(--font-body);
}

textarea {
    height: auto;
    min-height: 120px;
    padding: var(--space-3);
    line-height: 1.5;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(155, 148, 117, 0.15);
}

input::placeholder,
textarea::placeholder,
select::placeholder {
    color: #9A9A9A;
    opacity: 0.75;
}

.form-group.full-width {
    width: 100%;
}

/* Botón de envío unificado */
button[type="submit"],
.btn-submit {
    height: var(--button-height);
    padding: 0 var(--space-4);
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    min-width: 160px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-3);
}

button[type="submit"]:hover,
.btn-submit:hover,
button[type="submit"]:focus,
.btn-submit:focus {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0, 0.15);
}

/* Consistencia para el formulario de newsletter con bordes más redondeados */
.newsletter-form input[type="email"] {
    height: var(--button-height);
    padding: 0 var(--space-4);
    border-radius: 24px; /* Más redondeado para newsletter */
    background-color: rgba(255, 255, 255, 0.95);
}

.newsletter-form .btn-submit {
    height: var(--button-height);
    padding: 0 var(--space-4);
    border-radius: 24px; /* Más redondeado para newsletter */
    min-width: auto;
    margin-top: 0;
}

/* Grupo de inputs en fila */
.input-row {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.input-row .form-group {
    flex: 1 1 calc(50% - var(--space-3));
    min-width: 250px;
}

@media (max-width: 576px) {
    .input-row {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .input-row .form-group {
        width: 100%;
        flex: auto;
    }
}

/* Estructura principal - solución al solapamiento */
/* Clase para aplicar a la primera sección de contenido después del header */
.page-main-content {
    padding-top: calc(var(--header-height) + var(--space-3)) !important;
}

/* Para páginas con hero section */
.page-hero {
    position: relative;
    padding-top: 80px;
    padding-bottom: 80px;
    min-height: 220px;
    background-color: var(--background);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    padding: var(--space-3);
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 85%;
    width: auto;
    margin: var(--space-2);
    text-align: center;
}

/* Solución al solapamiento de contenido en el index y páginas internas */
main, .main-content, .page-wrapper {
    padding-top: 0; /* Quitamos padding para index que ya tiene margin-top en hero-section */
}

.page-main-content {
    padding-top: calc(var(--header-height) + var(--space-3));
}

/* Ajuste para los botones de formulario centrados */
.form-group.text-center button[type="submit"],
.form-group.text-center .btn-submit,
.lead-form button[type="submit"],
.lead-form .btn-submit {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* Loader - Restaurado */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #FFFFFF;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader img {
    width: 100px;
    animation: logoLoadAnimation 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes logoLoadAnimation {
    0% { opacity: 0; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

/* Hero Section Video - Restaurado */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-main-button {
    display: inline-block;
    background-color: rgba(155, 148, 117, 0.85);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 15px 35px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 25px rgba(0,0,0, 0.2);
    border-radius: 0;
}

.hero-main-button:hover, .hero-main-button:focus {
    background-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0, 0.25);
}

/* Ajustes de espaciado para evitar solapamiento */
.page-hero, .page-hero-map {
    margin-top: var(--header-height);
}

.content-section.page-main-content {
    margin-top: var(--header-height);
}

/* Estilos específicos para el modal de idioma */
#langModal {
    pointer-events: none; /* Por defecto no captura eventos */
}

#langModal.active {
    pointer-events: auto; /* Captura eventos cuando está activo */
}

#langModal .card {
    pointer-events: auto; /* El contenido del modal siempre puede capturar eventos */
}

