/* ==================================== */
/* Estilos para PC (Ancho mínimo de 1221px) */
/* ==================================== */
/* Inclusión de las fuentes personalizadas */
@font-face {
    font-family: 'AkzidenzGrotesk';
    src: url('./fuentes/Akzidenz_Grotesk_Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Stag';
    src: url('./fuentes/Stag-Light.OTF') format('opentype');
    font-weight: 300;
    font-style: normal;
}
body {
    margin: 0;
    font-family: 'Stag', Arial, sans-serif;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./img/imagenesSagas/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: var(--header-height, 0); /* Usa la variable de CSS para el margen superior */
}

/* Estilos del nuevo header */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #0A3846;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-bottom: 2px solid #C8C6B3; /* Línea divisoria */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10%; /* Ajusta el padding para acercar los elementos al centro */
    flex-wrap: wrap; 
}

.header-left {
    /* Mueve el logo un poco a la derecha */
    margin-right: -40px; 
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
    /* Mueve los links un poco a la izquierda */
    margin-left: -40px; 
}

.sagas-logo-header {
    max-width: 150px;
    height: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav a {
    text-decoration: none;
    color: #C8C6B3; 
    font-weight: bold;
    font-size: 14px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #C8C6B3;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.main-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.language-selector {
    position: relative;
    cursor: pointer;
    font-weight: bold;
    color: #C8C6B3;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.language-arrow {
    color: #C8C6B3;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.language-selector.active .language-arrow {
    transform: rotate(180deg);
}

.lang-options {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: #0A3846;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
    display: none;
    border-radius: 4px;
    z-index: 1001;
    min-width: 50px;
    border: 1px solid #C8C6B3;
}

.lang-options span {
    display: block;
    padding: 8px 12px;
    color: #C8C6B3;
    transition: background-color 0.3s ease;
    border: 1px solid transparent;
}

.lang-options span:hover {
    background-color: #a9a9a9;
}

.language-selector.active .lang-options {
    display: block;
}

.lang-options span.selected-lang {
    background-color: #2e5c6a;
    font-weight: bold;
    color: #C8C6B3;
    border: 1px solid #C8C6B3;
}

.hero-section {
    position: relative;
    height: 100vh; /* Se ha cambiado la altura a 100vh */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding-top: 0;
    background-color: transparent;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./img/imagenesSagas/fondo1.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.sagas-logo {
    max-width: 500px;
    width: 80%;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 18px;
    max-width: 800px;
}

.carousel-section {
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
    background-color: #F4F2EC;
}

.carousel-container {
    position: relative;
    max-width: none;
    width: 100%;
    margin: 0;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-image {
    width: calc(100vw / 3);
    flex-shrink: 0;
    padding: 0 5px;
    box-sizing: border-box;
    height: 40vh;
    object-fit: cover;
}

.carousel-prev-btn,
.carousel-next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    opacity: 0.5;
    cursor: pointer;
    z-index: 10;
    padding: 0 1rem;
    transition: opacity 0.3s ease;
}

.carousel-prev-btn:hover,
.carousel-next-btn:hover {
    opacity: 1;
}

.carousel-prev-btn {
    left: 10px;
}

.carousel-next-btn {
    right: 10px;
}

.info-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background-color: #F4F2EC;
}

.info-logo {
    max-width: 250px;
    width: 60%;
    margin-bottom: 20px;
}

.info-text {
    font-size: 16px;
    color: #444;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.origin-section {
    padding: 60px 20px;
    background-color: #F4F2EC;
    color: #0A3862;
}

.info-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.info-image-bg {
    width: 400px;
    height: 650px;
    background-size: cover;
    background-position: center;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-image 1s ease-in-out;
}

.info-text-content {
    flex-grow: 1;
    max-width: 350px;
    text-align: left;
}

.info-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #0A3862;
}

.info-description {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.info-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
}

.info-links img {
    width: 100px;
    height: auto;
    transition: transform 0.3s ease;
}

.info-links img:hover {
    transform: scale(1.05);
}

.link-label {
    font-size: 0.8rem;
    font-weight: bold;
    color: #0A3862;
    text-transform: uppercase;
}

.small-note {
    font-size: 0.8rem;
    font-style: italic;
    color: #0A3862;
}

/* Nuevos estilos para la sección de 'restaurante' */
.restaurant-section {
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    background-color: transparent;
    z-index: 1;
    min-height: 80vh;
}

.restaurant-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.70);
    z-index: -1;
}

.restaurant-section h1 {
    font-size: 1.8rem; /* Tamaño de letra del título más pequeño */
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center; /* Centramos el título */
}

.restaurant-section p {
    font-size: 0.9rem; /* Tamaño de letra del texto más pequeño */
    line-height: 1.6;
    margin: 0 auto;
    max-width: 1000px; /* Eliminamos el límite de ancho para que el texto sea más ancho */
}

.gallery-section {
    padding: 0;
    background-color: #F4F2EC;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 85vh;
}

.gallery-container {
    display: flex;
    justify-content: center;
    gap: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
}

.gallery-image-wrapper {
    width: 50%;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 0;
    box-shadow: none;
}

.gallery-image-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease-in-out;
}

#contacto, #unete {
    background-color: #F4F2EC;
}

/* Estilos para la sección de información de Barcelona */
.bcn-section {
    padding: 60px 0;
    background-color: #F4F2EC;
    color: #444;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bcn-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    gap: 40px;
    align-items: flex-start;
    text-align: left;
    padding: 0 20px;
}

.bcn-text-content {
    flex: 1;
    text-align: center;
}

.bcn-section h2 {
    font-size: 2.5rem;
    color: #0A3862;
    margin-bottom: 20px;
}

.bcn-section p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.bcn-contact-info p {
    margin: 5px 0;
}

.bcn-contact-info a {
    color: #0A3862;
    text-decoration: none;
    font-weight: bold;
}

.map-link {
    display: inline-block;
    color: #0A3862;
    text-decoration: none;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 20px;
    padding: 10px 0;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.map-link:hover {
    color: #a9a9a9;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* Corrección de los íconos de Font Awesome */
.social-links a i {
    font-size: 45px;
    color: #0A3862;
    display: inline-block;
    min-width: 45px;
}

.social-links a i:hover {
    color: #a9a9a9;
}

.bcn-gallery-wrapper {
    flex: 2;
    position: relative;
    width: 100%;
    height: 450px;
    max-width: 850px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 50px;
}

.bcn-gallery-image {
    width: 100%;
    height: 100%;
    background-size: cover; /* Mantenemos 'cover' para la galería en general */
    background-position: center;
    transition: background-image 1s ease-in-out;
    /* --- CAMBIO CRÍTICO AQUÍ --- */
    object-fit: contain; /* Cambiado a 'contain' para que la imagen se vea completa */
}

/* Estilos del Footer */
.site-footer {
    background-color: #0A3846;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0 15px;
    white-space: nowrap;
    transition: color 0.3s ease;
    display: contents
}

.footer-links a:hover {
    color: #a9a9a9;
}

.footer-legal-links {
    margin-top: 10px;
    
}

.footer-legal-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0 10px;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #a9a9a9;
}

/* Estilos para los enlaces legales más pequeños */
.legal-link {
    font-size: 0.6em !important;
}

.scroll-down-arrow {
    position: absolute;
    bottom: 25%; /* Ajusta esta propiedad para que la flecha se acerque al texto. */
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem; /* Tamaño de la flecha más pequeño */
    color: #a9a9a9; /* Color gris */
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
    text-decoration: none;
    cursor: pointer;
    animation: bounce 2s infinite;
}

.scroll-down-arrow:hover {
    color: #fff; /* Color blanco al pasar el cursor */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}


/* Ocultar elementos de menú móvil en pantallas grandes */
@media (min-width: 1221px) {
    .hamburger-menu,
    .mobile-menu-items,
    .mobile-social-links {
        display: none;
    }
}

/* Selectores específicos para los títulos, aplicando la fuente AkzidenzGrotesk */
h1, h2, h3, h4, h5, h6, .info-title, .bcn-section h2, .restaurant-section h1 {
    font-family: 'AkzidenzGrotesk', sans-serif;
}

@media (max-width: 1220px) {

    .restaurant-section p {
        margin: 0 4rem; /* Añade un margen de 1rem a los lados en dispositivos móviles */
    }

    .sagas-logo-header {
        max-width: 100px;
        height: auto;
        object-fit: contain;
    }

    /* --- MENÚ DE HAMBURGUESA Y NUEVOS ENLACES --- */
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 25px;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger-menu .bar {
        width: 100%;
        height: 3px;
        background-color: #C8C6B3;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    /* Animación de la hamburguesa a una X */
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #0A3846;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        padding-top: 0px; /* Evitamos que el menú se superponga con el header */
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    .main-nav a {
        font-size: 1.5rem;
        padding: 15px 0;
        border-bottom: 1px solid rgba(200, 198, 179, 0.2);
    }

    /* Mostramos los nuevos enlaces de reserva y carta */
    .header-right {
        gap: 15px;
        flex-grow: 1;
        justify-content: flex-end;
    }

    .mobile-menu-items {
        display: flex;
        gap: 20px;
        /* ANTES: order: -1; */
        /* ANTES: margin-right: auto; */
    }

    .mobile-nav-link {
        text-decoration: none;
        color: #C8C6B3; 
        font-weight: bold;
        font-size: 13px;
        text-transform: uppercase;
        position: relative;
    }

    .header-container {
        padding: 15px 5%;
    }
    /* --- FIN MENÚ DE HAMBURGUESA Y NUEVOS ENLACES --- */

    /* --- CARRUSEL --- */
    .carousel-image {
        /* Muestra una sola imagen en pantallas pequeñas */
        width: 100vw;
    }

    /* --- IMAGEN DE ORIGEN --- */
    .info-container {
        flex-direction: column;
        align-items: center; 
        gap: 15px; 
    }
    
    .info-text-content {
        order: -1; 
        text-align: center;
    }
    
    .info-image-bg {
        width: 100%;
        max-width: 320px;
        height: 480px;
    }

    .info-image-bg:nth-of-type(1) {
        /* Aseguramos que la imagen se vea entera */
        background-size: contain;
        background-repeat: no-repeat;
    }

    .info-image-bg:nth-of-type(2) {
        display: none;
    }
    
    /* --- GALERÍA Y OTROS --- */
    .gallery-container {
        flex-direction: column;
        gap: 10px;
    }
    .gallery-image-wrapper {
        width: 100%;
        min-height: 40vh;
    }
    .bcn-container {
        flex-direction: column;
        height: auto;
        width: 100%;
        box-sizing: border-box;
    }
    .bcn-text-content {
        text-align: center;
    }
    .bcn-gallery-wrapper {
        flex: none;
        width: 100%;
        height: 200px;
        margin-top: 20px;
    }

    /* 1. RESERVA */
    .main-nav a[data-es="RESERVA"] {
        order: 1;
    }
    
    /* 2. REGALA */
    .main-nav a[data-es="REGALA"] {
        order: 2;
    }
    
    /* 3. CARTA */
    .main-nav a[data-es="CARTA"] {
        order: 3;
    }
    
    /* 4. CONTACTO */
    .main-nav a[data-es="CONTACTO"] {
        order: 4;
    }
    
    /* 5. ÚNETE AL EQUIPO */
    .main-nav a[data-es="ÚNETE AL EQUIPO"] {
        order: 5;
    }

    .mobile-social-links {
        display: flex; /* Asegura que los iconos estén en línea */
        gap: 30px; /* Espacio entre iconos */
        padding-top: 40px; /* Espacio por encima de los enlaces del menú */
    }

    .mobile-social-links a {
        /* Restablecer los estilos de enlace que usa el menú principal */
        border-bottom: none; 
        padding: 0; 
        font-size: 2rem; /* Tamaño del icono */
    }

    .mobile-social-links a i {
        color: #C8C6B3; /* Color de los iconos */
        transition: color 0.3s ease;
    }

    .mobile-social-links a i:hover {
        color: #fff; /* Pequeño efecto hover */
    }
    
    /* Nota: Usamos 'order: 6' para asegurar que aparezca al final de la lista si es necesario. */
    .mobile-social-links {
        order: 6; 
    }
}