@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

@font-face {
    font-family: 'Swift-Light';
    src: url('./fuentes/Swift-Light.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Swift-Bold';
    src: url('./fuentes/Swift-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}



body {
    margin: 0;
    font-family: 'Swift-Light', sans-serif; /* Applied Swift-Light */
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Estilos generales para todas las secciones */
section {
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    position: relative;
    box-sizing: border-box;
    padding-left: 5%;
}

.content-overlay {
    padding: 20px;
    max-width: 80%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: -5%;
}

/* Para los iconos sociales en la parte superior */
.social-icons-top {
    display: flex;
    gap: 15px;
    font-size: 1.5em;
    margin-bottom: 30px;
    color: white;
    margin-top: 150px;
}

.social-icons-top a {
    color: white;
    text-decoration: none;
}

h1 {
    font-family: 'Swift-Bold', serif; /* Applied Swift-Bold */
    font-size: 4em;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 700;
}

p {
    font-family: 'Swift-Light', sans-serif; /* Applied Swift-Light */
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 600px;
}

.read-more {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    display: inline-block;
    margin-top: 10px;
}

.read-more:hover {
    text-decoration: underline;
}

/* Sección 1: Cocineros Vascos - Caserio */
.section1 {
    background-image: url('img/caserio.jpg');
    display: block;
    padding-left: 0;
}

/* Contenedor del logo con fondo */
.logo-sagardi-container {
    position: absolute;
    top: 30px;
    left: 30px;
    background-color: transparent;
    padding: 10px 15px;
    border-radius: 5px;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    position: relative;
}

.section1 .logo-sagardi {
    width: 150px;
    height: auto;
    /* Removed cursor: pointer; and click functionality */
    margin-bottom: 5px;
}

.section1 .content-overlay {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    max-width: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 0;
}

.section1 h1 {
    font-family: 'Swift-Bold', serif; /* Applied Swift-Bold */
    font-size: 5em;
    margin-top: 0;
}

/* Flecha de scroll */
.scroll-arrow-container {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5em;
    color: white;
    animation: bounce 2s infinite;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.scroll-arrow-container i {
    color: white;
}

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

/* Sección 2: Una experiencia vasca - Mar */
.section2 {
    background-image: url('img/mar.png');
}

.section2 .content-overlay {
    max-width: 500px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    align-items: flex-start;
}

/* Sección 3: Nuestras raíces - Imagen1 y Imagen2 */
.section3 {
    background-color: #222;
    display: flex;
    align-items: stretch;
    height: 70vh;
    padding-left: 0;
}

.section3 .content-left {
    background-image: url('img/madera.PNG');
    background-size: cover;
    background-position: center;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    box-sizing: border-box;
    text-align: left;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    align-items: flex-start;
}

.section3 .content-right {
    width: 50%;
    height: 700px; /* Ajusta a la altura deseada */
    overflow: hidden;
    /* Otras propiedades de estilo aquí */
}

.section3 h1 {
    font-family: 'Swift-Bold', serif; /* Applied Swift-Bold */
    font-size: 4em;
    margin-top: 0;
}

.section3 p {
    font-family: 'Swift-Light', sans-serif; /* Applied Swift-Light */
    font-size: 1.1em;
    max-width: 500px;
}

/* Sección 4: Cocina - Fuego */
.section4 {
    background-image: url('img/fuego.png');
}

.section4 .content-overlay {
    max-width: 600px;
    align-items: flex-start;
}

.section4 .icon-links {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 20px;
    width: 100%;
    justify-content: flex-start;
}

.section4 .icon-links a {
    color: white;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: bold;
}

.section4-icon {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
}

.section4 .small-text {
    font-size: 0.9em;
    margin-top: 20px;
    max-width: none;
}

/* Sección 5: Conoce a los cocineros vascos - Cocina */
.section5 {
    background-image: url('img/cocina.png');
}

.section5 .content-overlay {
    max-width: 500px;
    align-items: flex-start;
}

/* Sección 6: Contacto y Horario */
.section6 {
    background-color: #f7f2ea;
    color: #333;
    display: grid;
    grid-template-areas:
        "contact-info contact-details hours-social"
        "carousel carousel carousel";
    grid-template-columns: 1fr 1fr 1fr;
    padding: 50px 5%;
    padding-bottom: 80px;
    height: auto;
    min-height: auto;
    gap: 30px;
    align-items: start;
    text-align: left;
    justify-items: center;
}

.section6 .contact-info {
    grid-area: contact-info;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.section6 .contact-details {
    grid-area: contact-details;
    width: 100%;
}

.section6 .hours-social {
    grid-area: hours-social;
    width: 100%;
}

.section6 .logo-sagardi-bottom {
    width: 200px;
    margin-bottom: 30px;
}

.section6 .logo-manos {
    width: 100%;
    max-width: 500px;
}

.section6 h2 {
    font-family: 'Swift-Bold', serif; /* Applied Swift-Bold */
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #333;
}

.section6 h3 {
    font-family: 'Swift-Bold', serif; /* Applied Swift-Bold */
    font-size: 1.2em;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #333;
}

.section6 p {
    font-family: 'Swift-Light', sans-serif; /* Applied Swift-Light */
    font-size: 1em;
    margin-bottom: 10px;
    color: #555;
    max-width: none;
}

.section6 .view-map {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 15px;
    font-size: 1em;
}

.section6 .view-map:hover {
    text-decoration: underline;
}

.section6 .sagardi-group-logos {
    display: flex;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
}

.section6 .sagardi-group-text {
    width: 120px;
}

.section6 .euskadi-logo {
    width: 100px;
}

/* Iconos sociales de la parte inferior */
.social-icons-bottom {
    display: flex;
    gap: 20px;
    font-size: 1.8em;
    margin-top: 20px;
}

.social-icons-bottom a {
    color: #333;
    text-decoration: none;
}

.social-icons-bottom a i {
    color: #333;
    display: inline-block;
}

/* --- Estilos mejorados para el Carrusel de Imágenes --- */
.carousel-container {
    grid-area: carousel;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    height: 150px;
    margin: 40px auto 0;
}

.carousel-inner {
    display: flex;
    height: 100%;
    align-items: center;
    will-change: transform;
    transition: transform 0.8s ease-in-out;
    gap: 15px;
    padding: 0 20px;
}

.carousel-image {
    width: auto;
    height: 120px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 5px;
    filter: grayscale(100%) brightness(0.2);
    transition: all 0.3s ease;
}

/* --- Estilos para botón Volver Arriba --- */
.scroll-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 50px;
    background-color: rgba(100, 100, 100, 0.7);
    color: white;
    border: none;
    border-radius: 5px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

/* --- NEW Menu Button --- */
.menu-button {
    position: fixed;
    top: 30px;
    right: 30px;
    background-color: transparent; /* Changed to match image background */
    border: 2px solid black; /* Added white border */
    border-radius: 5px; /* Slightly rounded corners */
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    color: black;
    cursor: pointer;
    z-index: 1050; /* Ensure it's above other content */
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.menu-button:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Slight background change on hover */
}

/* --- NEW Menu Styles (replacing .main-menu) --- */
.new-main-menu {
    position: fixed;
    top: 0;
    right: -300px; /* Start off-screen to the right */
    width: 300px; /* Wider menu to accommodate content */
    height: 100%;
    background-color: #f7f2ea; /* Changed to match image background */
    box-shadow: -5px 0px 15px rgba(0, 0, 0, 0.3); /* Shadow on the left */
    transition: right 0.3s ease;
    z-index: 1050;
    padding: 60px 20px 20px 20px;
    box-sizing: border-box;
    color: #333; /* Darker text color for better contrast on light background */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.new-main-menu.open {
    right: 0; /* Slide in from the right */
}

.new-main-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.new-main-menu ul li {
    margin-bottom: 10px; /* Reduced space between items */
    width: 100%;
}

.new-main-menu ul li .menu-link {
    display: block;
    padding: 10px 15px; /* Adjusted padding */
    color: #333; /* Darker text color */
    text-decoration: none;
    font-size: 1.1em; /* Slightly smaller font size */
    font-weight: bold;
    border: none; /* Removed border */
    text-align: left;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.new-main-menu ul li .menu-link:hover {
    background-color: #e0d9cc; /* Light hover background */
    color: #000; /* Darker text on hover */
}

.new-main-menu .language-options {
    margin-top: 20px; /* Space above language options */
    border-top: 1px solid #ccc; /* Separator line */
    padding-top: 15px;
    display: flex; /* Make language options inline */
    gap: 15px; /* Space between language links */
}

.new-main-menu .language-options .menu-link {
    font-size: 1em;
    padding: 5px 10px;
    border: 1px solid #ccc; /* Border around language links */
    border-radius: 3px;
    background-color: transparent;
}

.new-main-menu .language-options .menu-link:hover {
    background-color: #ccc;
    color: #333;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: transparent;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    color: #333; /* Darker color for close button */
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
    z-index: 1060;
}

.close-menu:hover {
    color: #666;
}

body.no-scroll {
    overflow: hidden;
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
    section {
        padding-left: 3%;
        /* Ajuste general del padding para secciones en pantallas medianas */
    }

    .content-overlay {
        margin-left: -3%;
        /* Ajuste general del margen para content-overlay */
    }

    .section1 .content-overlay {
        left: 5%;
        right: auto;
    }

    .social-icons-top {
        font-size: 1.2em;
        gap: 10px;
        margin-top: 100px;
    }

    .section1 h1 {
        font-family: 'Swift-Bold', serif; /* Applied Swift-Bold */
        font-size: 4em;
    }

    /* Ajustes de fuente para headings y párrafos en pantallas medianas */
    h1 {
        font-family: 'Swift-Bold', serif; /* Applied Swift-Bold */
        font-size: 3em; /* Reducir tamaño de títulos */
    }

    p {
        font-family: 'Swift-Light', sans-serif; /* Applied Swift-Light */
        font-size: 1em; /* Reducir tamaño de párrafos */
    }

    .read-more {
        font-size: 1em;
    }

    .scroll-arrow-container {
        bottom: 50px;
        font-size: 2em;
    }

    .section3 {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        padding-left: 0;
        /* Asegurar que el contenido se apile verticalmente */
    }

    .section3 .content-left,
    .section3 .content-right {
        width: 100%;
        height: 100vh;
        padding: 5%;
    }

    .section3 .content-right {
        display:none;
    }

    .section4 .icon-links {
        flex-direction: column;
        /* Apilar los enlaces de iconos verticalmente */
        align-items: flex-start;
        /* Alinear al inicio */
        gap: 15px;
        /* Reducir el espacio entre ellos */
    }

    .section4-icon {
        width: 60px;
        /* Reducir tamaño de los iconos en sección 4 */
    }

    .section6 {
        grid-template-areas:
            "contact-info"
            "contact-details"
            "hours-social"
            "carousel";
        grid-template-columns: 1fr;
        text-align: center;
        padding-bottom: 50px;
        /* Apilar las secciones de contacto verticalmente */
    }

    .section6 .contact-info,
    .section6 .contact-details,
    .section6 .hours-social {
        align-items: center;
        text-align: center;
        /* Centrar texto y elementos en las subsecciones de contacto */
    }

    .section6 .logo-sagardi-bottom {
        width: 150px;
        /* Reducir tamaño del logo en la parte inferior */
    }

    .section6 .logo-manos {
        width: 100%;
        max-width: 250px;
        /* Ajustar tamaño máximo del logo de manos */
    }

    .section6 .sagardi-group-logos {
        flex-direction: column;
        /* Apilar los logos del grupo sagardi */
        gap: 10px;
    }


    .section6 .sagardi-group-text {
        width: 100px;
    }

    .section6 .euskadi-logo {
        width: 80px;
    }

    .social-icons-bottom {
        font-size: 1.5em;
        /* Reducir tamaño de iconos sociales inferiores */
        justify-content: center;
        /* Centrar iconos */
    }

    .carousel-container {
        margin-top: 20px;
        margin-bottom: 20px;
        height: 100px;
        /* Ajustar altura del carrusel */
    }

    .carousel-image {
        width: calc(100vw / 3.5);
        /* Mostrar más imágenes o ajustar el tamaño */
        height: 80px;
        /* Ajustar altura de las imágenes del carrusel */
    }

    .scroll-to-top-btn {
        bottom: 15px;
        right: 30px;
        width: 45px;
        height: 45px;
        font-size: 1.3em;
    }

    /* Responsive adjustments for new menu */
    .menu-button {
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.5em;
    }

    .new-main-menu {
        width: 250px;
        /* Smaller width on mobile */
        right: -250px;
    }

    .close-menu {
        font-size: 1.5em;
        width: 35px;
        height: 35px;
    }

    body.no-scroll {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    section {
        padding-left: 2%;
    }

    .content-overlay {
        padding: 15px;
        max-width: 90%;
        margin-left: -2%;
    }

    .section1 h1 {
        font-family: 'Swift-Bold', serif; /* Applied Swift-Bold */
        font-size: 3em;
        /* Ajuste para pantallas muy pequeñas */
    }

    h1 {
        font-family: 'Swift-Bold', serif; /* Applied Swift-Bold */
        font-size: 2.5em;
        /* Ajuste general para pantallas muy pequeñas */
    }

    p {
        font-family: 'Swift-Light', sans-serif; /* Applied Swift-Light */
        font-size: 0.9em;
        /* Ajuste de párrafos para pantallas muy pequeñas */
    }

    .logo-sagardi-container {
        width: 100px;
        top: 15px;
        left: 15px;
        padding: 6px 10px;
    }

    .section1 .logo-sagardi {
        width: 120px;
        /* Ajustar tamaño del logo inicial */
    }

    .social-icons-top {
        font-size: 0.9em;
        margin-top: 80px;
    }

    .section4 .icon-links {
        align-items: center;
        /* Centrar los iconos en pantallas muy pequeñas si es mejor */
    }

    .section4-icon {
        width: 50px;
    }

    /* Responsive adjustments for new menu */
    .menu-button {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.3em;
    }

    .new-main-menu {
        width: 220px;
        /* Even smaller width on extra small screens */
        right: -220px;
    }

    .close-menu {
        font-size: 1.3em;
        width: 30px;
        height: 30px;
    }

    .carousel-container {
        height: 80px;
        /* Altura del carrusel en pantallas muy pequeñas */
    }

    .carousel-image {
        width: calc(100vw / 3);
        /* Un poco más grandes para que se vean mejor */
        height: 60px;
        /* Altura de las imágenes del carrusel en pantallas muy pequeñas */
    }

    .scroll-to-top-btn {
        bottom: 10px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }

    /* Estilos para el idioma activo en el menú */
    /* Prueba esta versión si la anterior no funciona. ¡Es más específica! */
    nav#new-main-menu ul li.language-options .menu-link.lang-selector.active {
        background-color: #333 !important; /* El !important fuerza la aplicación */
        color: #fff !important;
        font-weight: bold !important;
        border-radius: 5px !important;
        padding: 5px 10px !important;
        pointer-events: none !important;
        cursor: default !important;
    }

    /* Las transiciones y el hover para los inactivos siguen siendo útiles */
    nav#new-main-menu ul li.language-options .menu-link.lang-selector {
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    nav#new-main-menu ul li.language-options .menu-link.lang-selector:not(.active):hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

    /* Estilos mejorados para el selector de idioma */
    nav#new-main-menu ul li.language-options {
        display: flex;
        gap: 10px;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #ddd;
        width: 100%;
    }

    nav#new-main-menu ul li.language-options .menu-link.lang-selector {
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 0.9em;
        transition: all 0.3s ease;
        border: 1px solid transparent;
    }

    nav#new-main-menu ul li.language-options .menu-link.lang-selector.active {
        background-color: #333;
        color: white;
        font-weight: bold;
        border: 1px solid #333;
    }

    nav#new-main-menu ul li.language-options .menu-link.lang-selector:not(.active):hover {
        background-color: #e0e0e0;
        color: #333;
    }
}

/* --- ESTILOS DEL ENCABEZADO FIJO (ACTUALIZADO) --- */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 4%;
    display: flex;
    justify-content: space-between; /* Alinea los 3 bloques principales */
    align-items: center;
    z-index: 1000;
    box-sizing: border-box;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.sticky-header.scrolled {
    background-color: #e0d9cc; /* Tu color de fondo */
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* Contenido Central (Logo y Botones) */
.header-center-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px; /* ¡AQUÍ AJUSTAS LA SEPARACIÓN! Reduce este valor para acercarlos más */
}

.logo-sagardi-container-header {
    position: relative;
    transform: none;
}

.logo-sagardi-header {
    width: 140px;
    height: auto;
}

/* Espaciador a la izquierda para mantener el bloque central perfectamente centrado */
.header-left-spacer {
    /* Debe tener el mismo ancho que el botón de menú */
    width: 50px;
}

/* Ajustamos el botón de menú para que tenga un ancho definido */
.sticky-header .menu-button {
    position: relative;
    top: auto;
    right: auto;
    width: 50px; /* Ancho definido */
    border: 2px solid #333;
    color: #333;
    background-color: transparent;
}

.sticky-header .menu-button .fas.fa-bars {
    color: #333; /* Icono oscuro para que se vea sobre el fondo claro */
}

/* Estilo para los botones Reserva y Regalar */
.header-button {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    padding: 8px 16px;
    border: 2px solid #333;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    white-space: nowrap; /* Evita que el texto se parta en dos líneas */
}

.header-button:hover {
    background-color: #333;
    color: #e0d9cc;
}

/* --- ADAPTACIÓN PARA MÓVILES --- */
@media (max-width: 768px) {
    .sticky-header {
        padding: 10px 4%;
        flex-direction: column; /* Stack items vertically */
        gap: 15px; /* Space between the logo/buttons block and the menu button */
    }

    .header-center-content {
        flex-direction: column; /* Stack logo and buttons vertically */
        gap: 10px; /* Space between logo and buttons */
        width: 100%; /* Ensure it takes full width */
    }

    /* Make the header buttons visible and style them for mobile */
    .header-center-content .header-button {
        display: block; /* Make them visible again */
        width: calc(100% - 40px); /* Adjust width to account for padding/margin */
        max-width: 250px; /* Optional: limit max width */
        text-align: center;
        padding: 10px 0; /* Adjust padding for mobile buttons */
        font-size: 14px;
    }

    /* Reducimos el tamaño del logo en móviles */
    .logo-sagardi-header {
        width: 110px;
    }

    /* Hide the left spacer as it's not needed in column layout */
    .header-left-spacer {
        display: none;
    }

    /* Adjust menu button position for mobile to be top right */
    .sticky-header .menu-button {
        position: absolute; /* Position absolutely within the header */
        top: 10px; /* Adjust as needed */
        right: 15px; /* Adjust as needed */
        border: 2px solid #333;
        color: #333;
        background-color: transparent;
    }
}

/* Contenedor para los botones de la derecha en el header */
.header-buttons-right {
    display: flex; /* Usamos flex para alinear los botones */
    align-items: center;
    gap: 20px; /* Espacio entre los botones */
}

/* Estilo para los nuevos botones del header */
.header-button {
    color: #333; /* Color de texto oscuro para que contraste con el fondo #e0d9cc */
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 8px 16px;
    border: 2px solid #333; /* Borde oscuro */
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.header-button:hover {
    background-color: #333; /* Fondo oscuro al pasar el ratón */
    color: #e0d9cc; /* Texto claro al pasar el ratón */
}

/* Ajuste para el header cuando se hace scroll */
.sticky-header.scrolled {
    background-color: #e0d9cc; /* Tu color de fondo */
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.section6 {
    background-color: #f7f2ea;
    color: #333;
    display: grid;
    grid-template-areas:
        "contact-info contact-details hours-social"
        "carousel carousel carousel"
        "policies policies policies";
    grid-template-columns: 1fr 1fr 1fr;
    padding: 50px 5%;
    padding-bottom: 80px;
    height: auto;
    min-height: auto;
    gap: 30px;
    align-items: start;
    text-align: left;
    justify-items: center;
}

/* UPDATED: Styles for policy links container */
.policy-links {
    display: flex; /* Use flexbox for horizontal layout */
    justify-content: center; /* Center the links */
    align-items: center;
    flex-wrap: wrap; /* Allow links to wrap on smaller screens */
    gap: 10px; /* Space between links and separators */
}

.policy-link {
    color: #555;
    text-decoration: none;
    font-size: 0.9em;
    white-space: nowrap; /* Prevent links from breaking */
    transition: color 0.3s ease;
}

.policy-link:hover {
    text-decoration: underline;
    color: #333;
}

/* NEW: Style for the separator */
.policy-separator {
    color: #888; /* Color for the separator */
    font-size: 0.9em;
}


/* Adjustments for responsiveness for the new policy links */
@media (max-width: 768px) {
    .section6 {
        grid-template-areas:
            "contact-info"
            "contact-details"
            "hours-social"
            "carousel"
            "policies";
        /* Sin esto, las 3 columnas de escritorio seguían activas y cada bloque
           apilado quedaba encajado en la primera columna (pegado a la izquierda) */
        grid-template-columns: 1fr;
        text-align: center;
    }
    .policy-links {
        padding: 0 5%;
    }
}

@media (max-width: 480px) {
    .policy-link {
        font-size: 0.8em;
    }
    .policy-separator {
        font-size: 0.8em;
    }
}

.background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%; /* Experimenta con el segundo valor (vertical) */
}

/* Registro de la fuente personalizada */
@font-face {
    font-family: 'Swift-Light';
    src: url('fuentes/Swift-Light.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    font-family: 'Swift-Light', serif;
}

/* Caja estrecha y estilizada */
.modal-content {
    background-color: #eee4d5;
    width: 85%;
    max-width: 450px;
    height: 580px; /* Altura definida para controlar el 25% de la imagen */
    border-radius: 15px;
    position: relative;
    overflow: hidden; /* Corta la imagen en las esquinas redondeadas */
    display: flex;
    flex-direction: column;
    padding: 0; /* IMPORTANTE: Quitamos el padding de aquí */
}

.modal-header-image {
    width: 100%;
    height: 25%; 
    flex-shrink: 0; /* Evita que la imagen se encoja */
}

.modal-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra el área sin deformarse */
}

.modal-body {
    padding: 30px 35px 40px 35px; /* Margen superior, lateral e inferior */
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1; /* Ocupa el resto del espacio (3/4) */
}

.close-x {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #ffffff; /* Blanco para contrastar con la foto */
    z-index: 10;
    text-shadow: 0 0 8px rgba(0,0,0,0.6); /* Sombra para legibilidad */
    line-height: 1;
}

.modal-title {
    font-size: 1.85rem;
    line-height: 1.1;
    margin-bottom: 15px;
    font-family: 'Swift-Light', serif;
  	color: #333333;
}

.modal-subtitle {
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-family: 'Swift-Light', serif;
	color: #333333;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
}

.btn-solicitar {
    background-color: #a6957a;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    font-family: sans-serif; /* Mantenemos sans-serif para el botón por legibilidad */
}

.btn-skip {
    background: none; border: none;
    color: #a6957a;
    text-decoration: underline;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Swift-Light', serif;
}

.modal-divider {
    border: 0;
    border-top: 1px solid rgba(74, 67, 57, 0.2);
    margin-bottom: 25px;
    width: 100%;
}

.modal-footer-text {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #6b6358;
}