/* Inclusión de las fuentes personalizadas */
@font-face {
    font-family: 'Swift';
    src: url('./fuentes/Swift-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Swift';
    src: url('./fuentes/Swift-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

/* Estilos generales y tipografía */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Swift', sans-serif;
    font-weight: 300;
    background-color: #f4f4f4;
    overflow-x: hidden;
    margin-top: 80px;
}

/* ==================================== */
/* Sección del Encabezado (Header)      */
/* ==================================== */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #0E5F41;
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.header-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.header-right-align {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    padding: 0 15px;
    box-sizing: border-box;
}

.contact-info a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Swift', sans-serif;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #c0c0c0;
}

.language-selector {
    position: relative;
    cursor: pointer;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.selected-lang {
    padding: 8px 15px;
    border: 1px solid #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-family: 'Swift', sans-serif;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.selected-lang:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.arrow-down {
    transition: transform 0.3s ease;
}

.dropdown.open .arrow-down {
    transform: rotate(180deg);
}

.lang-options {
    list-style-type: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #0E5F41;
    border: 1px solid #fff;
    border-top: none;
    border-radius: 0 0 10px 10px;
    min-width: 100%;
    z-index: 1;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.lang-options.show {
    display: block;
}

.lang-options li {
    padding: 10px 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.lang-options li:hover {
    background-color: #0c4d3b;
}

.lang-options li.active {
    background-color: #fff;
    color: #0E5F41;
    font-weight: 700;
    font-family: 'Swift', sans-serif;
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Swift', sans-serif;
    border-radius: 20px;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.white-btn {
    background-color: #fff;
    color: #0E5F41;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.white-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------------- */
/* Estilos de responsividad para el Header */
/* --------------------------------------------------------------------- */
@media (max-width: 768px) {
    .sticky-header {
        padding: 10px 0;
    }
    .header-right-align {
        gap: 10px;
        padding: 0 10px;
    }
    .contact-info, .language-selector, .action-buttons {
        margin: 5px 0;
    }
}

/* ==================================== */
/* Sección Principal (Hero)             */
/* ==================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-bg.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    color: #fff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.hero-logo {
    max-width: 250px;
}

.text-spacer {
    position: relative;
    min-height: 80px;
    width: 100%;
}

.hero-text-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: contents;
    justify-content: center;
    align-items: center;
}

.hero-text {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.2;
    font-family: 'Swift', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    padding: 0 15px; /* Mantenemos el padding para el espaciado en general */
    box-sizing: border-box;
}

.hero-text.active {
    opacity: 1;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    color: #0E5F41;
    background-color: #fff;
    border-radius: 25px;
    font-weight: 700;
    font-family: 'Swift', sans-serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 6px 12px rgba(0, 0, 0, 0.2);
}

.contact-lines p {
    font-size: 0.9rem;
    margin: 5px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-family: 'Swift', sans-serif;
    font-weight: 300;
}

@media (max-width: 768px) {
    .text-spacer {
        min-height: 100px;
    }
    
    .hero-text {
        font-size: 1.2rem;
        /* El texto ahora se ajustará automáticamente a varias líneas */
    }
}

/* --------------------------------------------------------------------- */
/* Estilos para pantallas grandes (PC) */
/* --------------------------------------------------------------------- */
@media (min-width: 769px) {
    .hero-text {
        white-space: nowrap; /* Fuerza el texto a una sola línea */
        font-size: 1.4rem; /* Tamaño de fuente normal para PC */
    }
}

/* ==================================== */
/* Iconos de redes sociales             */
/* ==================================== */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-icons a {
    color: white; /* El color de los iconos ahora se controla con la propiedad `color` */
    text-decoration: none;
    font-size: 30px; /* Tamaño del icono */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* ==================================== */
/* Carrusel de menú                     */
/* ==================================== */
.menu-carousel, .menu-carousel-2 {
    padding: 30px 0;
    background-color: #fff;
    text-align: center;
}

.carousel-container, .carousel-container-2 {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
}

.carousel-track-container, .carousel-track-container-2 {
    overflow: hidden;
}

.carousel-track, .carousel-track-2 {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-img {
    flex-shrink: 0;
    width: calc(100% / 3);
    height: auto;
    object-fit: cover;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Estilos de botones de flecha mejorados */
.arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.arrow-btn:hover:not(:disabled) {
    opacity: 0.8;
}

.arrow-btn:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}

.arrow {
    width: 100%;
    height: 100%;
    fill: #ccc; /* Color de la flecha */
}

/* ==================================== */
/* Sección de contenido                 */
/* ==================================== */
.content-section {
    padding: 20px 40px;
    background-color: #fff;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-logo {
    width: 250px; /* Tamaño del logo ahora es más grande */
    margin-bottom: 20px;
}

.about-text {
    font-family: 'Swift', sans-serif;
    font-weight: 300;
    font-style: italic;
    color: #000; /* Color del texto ahora es negro */
    line-height: 1.6;
}

/* ==================================== */
/* Sección de Cultura (nueva)           */
/* ==================================== */
.culture-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    margin-top: 50px;
}

.culture-item {
    flex-grow: 1;
    flex-basis: 350px;
}

.culture-item.text-content {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.culture-item.text-content h3 {
    font-family: 'Swift', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #0E5F41;
    margin-bottom: 10px;
}

.culture-item.text-content p {
    font-family: 'Swift', sans-serif;
    font-weight: 300;
    font-style: italic;
    color: #000;
    line-height: 1.6;
    margin-top: 0;
}

.culture-item img {
    max-width: 100%;
    height: auto;
    display: block;
}

.vertical-rect {
    position: relative;
    height: 700px;
    width: 300px;
    overflow: hidden;
}

.vertical-rect img.fade-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.vertical-rect img.fade-image.active {
    opacity: 1;
}

.euskadi-img {
    height: 150px;
    width: 150px;
    object-fit: contain;
    margin-top: 15px;
}

/* --------------------------------------------------------------------- */
/* Estilos responsivos para la sección de Cultura */
/* --------------------------------------------------------------------- */
@media (max-width: 768px) {
    .culture-grid {
        flex-direction: column;
        gap: 40px;
    }

    .vertical-rect {
        height: 400px;
        width: 100%;
    }
}

/* ==================================== */
/* Sección del Restaurante (nueva)      */
/* ==================================== */
.about-section-two {
    background-color: #fff;
    width: 100%;
    padding: 40px 0;
}

.about-container-inner {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px; /* Más margen */
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.about-content-two {
    flex-basis: 400px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.section-title {
    font-family: 'Swift', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #0E5F41;
    margin-bottom: 20px;
}

.about-text-two {
    font-family: 'Swift', sans-serif;
    font-weight: 300;
    font-style: italic;
    color: #000;
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-links {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.about-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #000;
    font-family: 'Swift', sans-serif;
    font-weight: 700;
    transition: color 0.3s ease;
}

.about-link-item:hover {
    color: #0e5f41;
}

.link-icon {
    width: 75px; /* Iconos más grandes */
    height: 75px; /* Iconos más grandes */
    object-fit: contain;
    margin-bottom: 5px;
}

.disclaimer {
    font-family: 'Swift', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    font-style: italic;
    color: #888;
    margin-top: 10px;
    margin-bottom: 20px;
}

address {
    font-family: 'Swift', sans-serif;
    font-weight: 300;
    font-style: normal;
    line-height: 1.6;
    color: #0E5F41;
    font-size: 1.2em; /* Letras de la dirección más grandes */
    margin-top: 20px; /* Espacio extra sobre la dirección */
}

.image-container-two {
    flex-basis: 600px;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 800px;
    overflow: hidden;
    position: relative;
    height: 500px;
}

.about-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.about-image.active {
    opacity: 1;
}

/* --------------------------------------------------------------------- */
/* Estilos responsivos para la nueva sección del Restaurante */
/* --------------------------------------------------------------------- */
@media (max-width: 768px) {
    .about-section-two {
        padding: 40px 0;
    }
    
    .about-container-inner {
        flex-direction: column;
    }

    .about-content-two {
        align-items: center;
        text-align: center;
    }

    .image-container-two {
        max-height: 260px;
    }
}

/* ==================================== */
/* Sección de Encuentro Cultural        */
/* ==================================== */
.cultural-section {
    position: relative;
    width: 100%;
    min-height: 800px;
    background-image: url('./img/imagenesFondo2/fondo1_2.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.cultural-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.cultural-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px; /* Vuelve a un ancho que se vea bien en general */
    margin: 0 auto;
}

.cultural-content h2 {
    font-family: 'Swift', sans-serif;
    font-weight: 700;
    font-size: 2.8rem;
    margin-bottom: 30px;
}

.cultural-content p {
    font-family: 'Swift', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    font-style: italic;
    white-space: nowrap;
}

/* Estilos del footer */
.main-footer {
    background-color: #0E5F41;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.footer-logo {
    width: 250px;
    height: auto;
    margin-bottom: 20px;
}

.footer-links-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.footer-link-main {
    font-family: 'Swift', sans-serif;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    padding: 0 10px;
}

.footer-link-main:hover {
    color: #c0c0c0;
}

.footer-link-main:not(:last-child)::after {
    content: '|';
    padding-left: 20px;
    color: #fff;
}

.footer-links-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.footer-link-legal {
    font-family: 'Swift', sans-serif;
    font-weight: 300;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    padding: 0 10px;
}

.footer-link-legal:hover {
    color: #c0c0c0;
}

.footer-link-legal:not(:last-child)::after {
    content: '|';
    padding-left: 20px;
    color: #fff;
}

/* ==================================== */
/* Estilos para tablets (769px - 1024px) */
/* ==================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    /* --- Header --- */
    .sticky-header {
        padding: 10px 20px;
    }
    
    .header-content {
        justify-content: space-between;
    }

    .header-right-align {
        gap: 15px;
    }
    
    .hero-logo-sticky {
        width: 120px;
    }

    /* --- Sección principal (Hero) --- */
    .hero-text {
        font-size: 1.5rem;
    }
    
    /* --- Carruseles --- */
    .carousel-container, .carousel-container-2 {
        padding: 0 40px;
    }
    
    .carousel-img {
        width: 50%; /* Dos imágenes por vista */
    }
    
    /* --- Sección de Cultura Vasca --- */
    .culture-grid {
        padding: 0 40px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .culture-item.text-content {
        order: 1;
        width: 100%;
        text-align: left;
        margin-bottom: 20px;
    }
    
    .culture-item.vertical-rect {
        order: 2;
        width: 45%;
        height: 75vh;
    }

    .fade-image, .fade-image-two {
        width: 100%;
        height: auto;
        object-fit: contain; /* Muestra la imagen completa, sin cortarla */
    }

    /* --- Sección de Restaurante --- */
    .about-container-inner {
        flex-direction: column;
        align-items: center;
        padding: 0 40px;
    }
    
    .about-content-two {
        order: 1;
        text-align: center;
    }
    
    .image-container-two {
        order: 2;
        height: auto;
        width: 100%;
    }
    
    .about-image {
        width: 100%;
        height: auto;
        object-fit: contain; /* Muestra la imagen completa, sin cortarla */
    }
}


/* ==================================== */
/* Estilos para móviles (max-width: 768px) */
/* ==================================== */
@media (max-width: 768px) {
    /* --- Header --- */
    .sticky-header {
        flex-direction: column;
        align-items: center;
        padding: 15px 10px;
    }
    
    .header-content {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    
    .hero-logo-sticky {
        width: 150px;
        margin-bottom: 10px;
    }
    
    .contact-info a {
        font-size: 0.9em;
    }

    /* --- Sección principal (Hero) --- */
    .hero-section {
        background-position: center;
        background-size: cover; /* Asegura que la imagen cubra todo el fondo */
        background-repeat: no-repeat;
        min-height: 50vh; /* Ajusta la altura para que la imagen sea visible */
    }
    
    .hero-text {
        font-size: 1.2rem;
        text-align: center;
        white-space: normal;
    }

    .hero-logo {
        max-width: 180px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .hero-btn {
        width: 110px;
        text-align: center;
    }

    .carousel-img {
        width: 100%; /* Una imagen por vista */
    }

    .carousel-container, .carousel-container-2 {
        padding: 0 20px;
    }

    .arrow-btn {
        width: 30px;
        height: 30px;
    }
    
    /* --- Sección de Cultura Vasca --- */
    .culture-grid {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        padding: 0 20px;
    }
    
    .culture-item.text-content {
        order: 1;
        text-align: center;
        align-items: center;
        width: 100%;
    }
    
    .culture-item.vertical-rect {
        order: 2;
        display: block;
        width: 100%;
        height: auto;
        max-height: 400px;
    }
    
    #right-rect {
        display: none;
    }

    .fade-image, .fade-image-two {
        width: 100%;
        height: auto;
        object-fit: contain; /* Muestra la imagen completa, sin cortarla */
    }

    /* --- Sección de Restaurante --- */
    .about-container-inner {
        flex-direction: column;
        align-items: center;
        padding: 0 20px;
    }
    
    .about-content-two {
        order: 1;
        text-align: center;
        width: 100%;
    }
    
    .image-container-two {
        order: 2;
        height: auto;
        width: 100%;
    }
    
    .about-image {
        width: 100%;
        height: auto;
        object-fit: contain; /* Muestra la imagen completa, sin cortarla */
    }

    /* --- Sección de Encuentro Cultural --- */
    .cultural-section {
        min-height: 400px;
    }

    .cultural-content h2 {
        font-size: 2rem;
        white-space: normal;
    }
    
    .cultural-content p {
        font-size: 1rem;
        white-space: normal;
        text-align: center;
    }

    /* --- Footer --- */
    .main-footer {
        padding: 40px 10px;
    }

    .footer-links-main, .footer-links-legal {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }

    .footer-link-main, .footer-link-legal {
        padding: 0;
    }

    .footer-link-main:not(:last-child)::after,
    .footer-link-legal:not(:last-child)::after {
        content: '';
    }
}

/* Estilos para el enlace de la dirección en la sección de inicio */
.contact-lines p,
.contact-lines a,
a[href*="google.es/maps"] {
    color: white !important; /* Forzar el color blanco */
    text-decoration: none !important; /* Forzar la eliminación del subrayado */
}

/* Evita que el enlace de la dirección cambie de color cuando se visita */
.contact-lines p:visited,
.contact-lines a:visited,
a[href*="google.es/maps"]:visited {
    color: white !important;
}

/* Estilos para el enlace de la dirección en la sección de restaurante */
.about-content-two address a {
    color: inherit !important;
    text-decoration: none !important;
}

.about-content-two address a:visited {
    color: inherit !important;
}

/* --- ESTILOS PARA LA SECCIÓN FIJA INFERIOR --- */

.footer-fixed-buttons {
    position: fixed;
    bottom: 50px;
    right: 50px;
    z-index: 1000;
    /* Para ampliar la zona de hover y evitar que el efecto se corte */
    padding: 20px;
}

/* Contenedor que agrupa el botón inicial y el logo */
.initial-elements {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.footer-logo-img {
    height: 70px;
    width: auto;
    cursor: pointer;
}

.main-button {
    background-color: black;
    color: white;
    padding: 12px 25px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    border-radius: 5px;
    border: 1px solid black;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.button-link {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

/* Contenedor de los botones que se despliegan, posicionados de forma absoluta */
.hidden-buttons {
    position: absolute;
    bottom: 110px; /* Posiciona los botones por encima de la zona de hover */
    right: 0;
    transform: translateX(10%); /* Centra el elemento en el eje X */
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Estilos de los botones desplegables: negros con texto blanco */
.hidden-buttons .button-link {
    background-color: black;
    color: white;
    padding: 12px 25px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 5px;
    border: 1px solid black;
    transition: background-color 0.3s ease;
    text-align: center;
}

.hidden-buttons .button-link:hover {
    background-color: #333;
    border-color: #333;
}

/* Lógica del hover: solo oculta el botón inicial y muestra los nuevos */
.footer-fixed-buttons:hover .main-button {
    opacity: 0;
    visibility: hidden;
}

.footer-fixed-buttons:hover .hidden-buttons {
    opacity: 1;
    visibility: visible;
}

/* Media Queries para móviles */
@media (max-width: 768px) {
    .footer-fixed-buttons {
        bottom: 20px;
        right: 20px;
        padding: 10px;
    }

    .footer-logo-img {
        height: 50px;
    }

    .main-button {
        padding: 10px 20px;
        font-size: 16px;
    }

    .hidden-buttons {
        bottom: 70px;
        gap: 8px;
        transform: translateX(10%);
    }
}

/* ==================================== */
/* Sección del Encabezado (Header)      */
/* ==================================== */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #0E5F41;
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px; /* Añade espacio a los lados para que el logo no se pegue */
}

.header-left-align {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 50px; /* Tamaño más grande para PC */
}

.header-right-align {
    display: flex;
    align-items: center;
    gap: 30px;
}

.contact-info a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-buttons .btn {
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
}

/* Estilos para el menú de hamburguesa (visible en móviles) */
.hamburger-menu {
    cursor: pointer;
    font-size: 2em; /* Tamaño del icono más pequeño */
    color: #fff;
    padding: 10px;
}

/* Estilos para el menú móvil desplegable */
.mobile-menu-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #0c4d3b;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    transform: translateY(0%);
    border-bottom: 2px solid #fff; /* Borde inferior blanco */
    border-left: 2px solid #fff; /* Borde izquierdo blanco */
    border-right: 2px solid #fff; /* Borde derecho blanco */
    border-top: 2px solid #fff; /* Borde superior blanco */
}

.mobile-menu-container.open {
    display: block;
    transform: translateY(0);
}

.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    margin-bottom: 20px;
}

/* Estilos para los enlaces del menú móvil */
.mobile-menu a {
    display: inline-block; /* Para que el padding y el border funcionen */
    padding: 10px 20px;
    text-decoration: none;
    font-family: 'Swift', sans-serif;
    font-weight: 700;
    font-size: 1.2em;
    border-radius: 20px; /* Bordes redondeados */
    background-color: #fff; /* Fondo blanco */
    color: #0E5F41; /* Color de texto del logo */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra suave */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-menu a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------------- */
/* Estilos de responsividad para el Header (768px o menos)              */
/* --------------------------------------------------------------------- */
@media (max-width: 768px) {
    .header-content {
        justify-content: space-between;
        padding: 0 15px;
    }
    
    .header-right-align {
        gap: 10px;
        justify-content: flex-end;
    }

    .header-logo {
        height: 50px; /* Tamaño del logo para móviles */
    }

    .contact-info, .language-selector {
        margin: 5px 0;
    }
    .action-buttons {
        display: none;
    }
    .hamburger-menu {
        display: block;
    }
}

/* ==================================== */
/* Estilos para el menú móvil */
/* ==================================== */
.mobile-menu-container {
    position: absolute; /* Posiciona el menú en relación con un contenedor padre */
    top: 100%; /* Lo coloca justo debajo del encabezado */
    right: 0;
    width: auto; /* Ocupará solo el ancho de su contenido */
    height: auto; /* Se adaptará al contenido */
    background-color: rgba(14, 95, 65, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Oculta el contenido extra durante la animación */
    max-height: 0; /* Oculta el menú inicialmente */
    opacity: 0; /* Opacidad inicial para el efecto de desvanecimiento */
    visibility: hidden; /* Oculta el menú pero mantiene su espacio para la animación */
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, visibility 0s 0.5s;
}

/* Estado 'open' del menú móvil */
.mobile-menu-container.open {
    max-height: 340px; /* ESTE VALORA AJUSTA EL TAMAÑO DEL MENU DESPLEGABLE */
    opacity: 1; /* Transiciona a visible */
    visibility: visible;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, visibility 0s;
}

/* Estilos para el icono del menú de hamburguesa */
.hamburger-menu i {
    transition: transform 0.5s ease-in-out, color 0.5s ease-in-out;
}

.hamburger-menu-open i.ri-menu-line {
    transform: rotate(360deg);
    color: transparent;
}

.hamburger-menu-open i.ri-close-line {
    color: #fff;
}

/* Estilos para el texto del menú */
.mobile-menu a {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.mobile-menu-container.open .mobile-menu li:nth-child(1) a {
    opacity: 1;
    transition-delay: 0.3s;
}
.mobile-menu-container.open .mobile-menu li:nth-child(2) a {
    opacity: 1;
    transition-delay: 0.4s;
}
.mobile-menu-container.open .mobile-menu li:nth-child(3) a {
    opacity: 1;
    transition-delay: 0.5s;
}
.mobile-menu-container.open .mobile-menu li:nth-child(4) a {
    opacity: 1;
    transition-delay: 0.6s;
}

.mobile-menu-container.open .mobile-menu li:nth-child(5) a {
    opacity: 1;
    transition-delay: 0.7s;
}


#carta-restaurante {
    scroll-margin-top: 150px;
}

/* AGREGAR AQUI DEBAJO SI SE AGREGA UN SEXTO BOTON */

/* ==================================== */
/* Estilos adicionales para el menú móvil */
/* ==================================== */

/* Estilos para los botones dentro del menú móvil */
.mobile-menu a {
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    background-color: transparent;
    border: none;
    padding: 10px 0;
    transition: color 0.3s ease;
    display: block; /* Asegura que el enlace ocupe todo el ancho */
    text-align: center;
}

.mobile-menu a:hover {
    color: #c0c0c0;
}

/* Estilos para los iconos sociales dentro del menú móvil */
.mobile-social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.mobile-social-icons a {
    color: #fff;
    font-size: 30px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
}

.mobile-social-icons a:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Asegura que el contenedor del menú pueda acomodar los iconos */
.mobile-menu-container.open {
    max-height: 440px; /* Ajusta el tamaño del menú para incluir los nuevos elementos */
}

/* ==================================== */
/* Estilos para el menú móvil */
/* ==================================== */
/* Estilos para ocultar y mostrar el menú */
.mobile-menu-container {
    position: absolute;
    top: 100%;
    right: 0;
    width: auto;
    height: auto;
    background-color: rgba(14, 95, 65, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    max-height: 0; /* Lo ocultamos inicialmente con esta propiedad */
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, visibility 0s 0.5s;
}

/* Estado 'open' del menú móvil */
.mobile-menu-container.open {
    max-height: 440px; /* Ajusta la altura máxima para mostrar todo el contenido */
    opacity: 1;
    visibility: visible;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, visibility 0s;
}

/* Estilos para el icono del menú de hamburguesa */
.hamburger-menu {
    cursor: pointer;
    font-size: 2em;
    color: #fff;
    padding: 10px;
    display: block; /* Asegura que el botón esté visible */
}

/* Estilos para los enlaces del menú */
.mobile-menu a {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    background-color: transparent;
    border: none;
    padding: 10px 0;
    display: block;
    text-align: center;
    opacity: 0; /* Ocultamos los enlaces inicialmente */
}

.mobile-menu a:hover {
    color: #c0c0c0;
}

/* Animación de los enlaces al abrir el menú */
.mobile-menu-container.open .mobile-menu a {
    opacity: 1;
    transition-delay: var(--transition-delay);
}

.mobile-menu-container.open .mobile-menu li:nth-child(1) a {
    transition-delay: 0.3s;
}
.mobile-menu-container.open .mobile-menu li:nth-child(2) a {
    transition-delay: 0.4s;
}
.mobile-menu-container.open .mobile-menu li:nth-child(3) a {
    transition-delay: 0.5s;
}
.mobile-menu-container.open .mobile-menu li:nth-child(4) a {
    transition-delay: 0.6s;
}
.mobile-menu-container.open .mobile-menu li:nth-child(5) a {
    opacity: 1;
    transition-delay: 0.7s;
}

/* Estilos para los iconos sociales dentro del menú móvil */
.mobile-social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.mobile-social-icons a {
    color: #fff;
    font-size: 30px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
    opacity: 0; /* Ocultamos los iconos sociales inicialmente */
}

.mobile-menu-container.open .mobile-social-icons a {
    opacity: 1;
    transition-delay: 0.8s; /* Aplica el retraso después de los enlaces */
}

.mobile-social-icons a:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .sticky-header {
        padding: 8px 15px; 
    }

    .header-right-align {
        width: 100%;
        display: flex;
        flex-wrap: wrap; /* Permite que los elementos se envuelvan a la siguiente línea */
        justify-content: space-between; /* Distribuye los elementos en ambas líneas */
        align-items: center;
        gap: 8px;
    }
    
    .header-logo {
        max-width: 80px;
    }
    
    .contact-info {
        font-size: 0.8rem;
    }
    
    .language-selector {
        font-size: 0.8rem;
    }

    /* Esta es la regla clave que fuerza un salto de línea después del selector de idioma */
    .language-selector::after {
        content: '';
        flex-basis: 100%; /* Ocupa todo el ancho, empujando los siguientes elementos hacia abajo */
    }

    /* Estilos para los elementos de la segunda fila */
    .hero-btn {
        padding: 8px 12px;
        font-size: 0.7rem;
    }

    .hamburger-menu {
        font-size: 1.5rem;
    }
}

@media (min-width: 472px) and (max-width: 589px) {
    .hero-btn {
        width: 120px;
    }
}
