:root {
    --primary-color: #2e8b57; /* Verde mar */
    --secondary-color: #4caf50; /* Verde más brillante */
    --text-color-dark: #333333;
    --text-color-light: #ffffff; /* Blanco */
    --button-text-color: #ffffff;
    --item-bg-color: rgba(46, 139, 87, 0.1); /* Fondo verde semitransparente */
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Lobster', serif;
}

/* Sección Hero */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: url('img3.JPG');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    color: var(--text-color-light);
    overflow: hidden;
}

.hero-logo {
    padding: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-logo img {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    max-width: 90%;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    flex-grow: 1;
    margin-top: 20px;
}

.hero-content p {
    font-size: 1.2em;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 350px;
}

.hero-images {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.hero-images img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--text-color-light);
}

.hero-images img:hover {
    transform: scale(1.08) rotate(0deg);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.hero-images .image-left {
    transform: rotate(-10deg);
}

.hero-images .image-center {
    transform: rotate(0deg);
}

.hero-images .image-right {
    transform: rotate(10deg);
}

.hero-button {
    background-color: var(--primary-color);
    color: var(--button-text-color);
    padding: 10px 25px;
    border: none;
    border-radius: 30px;
    font-family: 'Lobster', sans-serif;
    font-size: 0.95em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(46, 139, 87, 0.5);
}

.hero-button:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.8);
}

/* Sección de Banderas */
.language-section {
    padding: 20px 0;
    text-align: center;
}

.flags-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.flag-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.flag-item img {
    width: 40px;
    height: 25px;
    border-radius: 3px;
    transition: transform 0.3s ease;
    border: none;
    box-shadow: none;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.flag-item:hover img {
    animation: pop 0.3s ease-in-out;
}

/* Sección de Botones de Filtro */
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 0;
}

.filter-btn {
    background-color: transparent;
    color: var(--text-color-dark);
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    font-family: 'Lobster', sans-serif;
    font-size: 0.9em;
    font-weight: 700;
    text-transform: capitalize;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Sección de Artículos del Menú */
.menu-section {
    padding: 20px;
     font-family: 'Montserrat', sans-serif;
}

.menu-section h2 {
    font-size: 1.8em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-family: 'Lobster', serif;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 30px;
}
.menu-items2 {
    display: flex;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
    gap: 15px;
    margin-bottom: 30px;
}
.menu-item2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--item-bg-color);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--item-bg-color);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.menu-item span:first-child {
    font-weight: 700;
    color: var(--text-color-dark);
    font-family: 'Montserrat', sans-serif;
}
.menu-item2 span:first-child {
    font-weight: 700;
    color: var(--text-color-dark);
    font-family: 'Montserrat', sans-serif;
}

.menu-item .price-bubble {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--text-color-dark);
    border-radius: 50px;
    padding: 5px 10px;
    font-weight: 700;
    font-family: 'Lobster', sans-serif;
    white-space: nowrap;
}
.menu-item2 .price-bubble {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--text-color-dark);
    border-radius: 50px;
    padding: 5px 10px;
    font-weight: 700;
    font-family: 'Lobster', sans-serif;
    white-space: nowrap;
}

/* Botón de volver arriba */
.back-to-top-btn {
    position: relative;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5em;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.back-to-top-btn.show {
    opacity: 1;
}





/* Media Queries para ajuste en pantallas más pequeñas */
@media (max-width: 480px) {
    .hero-logo img {
        max-width: 120px;
    }
    .hero-content p {
        font-size: 0.95em;
    }
    .hero-images img {
        width: 80px;
        height: 80px;
    }
    .hero-button {
        padding: 8px 20px;
        font-size: 0.9em;
    }
    .flag-item img {
        width: 35px;
        height: 22px;
    }
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8em;
    }
    .menu-item {
        /* Se asegura de que se mantenga en una sola fila y evita que el texto se parta */
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        padding: 10px;
    }
    .menu-item span:first-child {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .menu-item .price-bubble {
        margin-top: 0;
        white-space: nowrap;
        flex-shrink: 0; /* Evita que la burbuja de precio se encoja */
    }
}

.carousel-container {
    width: 100%;
    overflow-x: auto; /* Permite el scroll horizontal */
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* Mejora el deslizamiento en iOS */
}

.carousel-container img {
    width: 150px;
    height: 150px;
    display: inline-block;
    margin-right: 10px; /* Espacio entre imágenes */
}

/* Nuevo div de mensaje de bienvenida */
.welcome-message {
    background-color: var(--primary-color); /* Usamos el verde principal */
    color: var(--text-color-light); /* Texto blanco para contraste */
    padding: 30px 20px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.3em;
    line-height: 1.6;
    margin-bottom: 20px; /* Espacio debajo del div */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Sutil sombra */
}

.welcome-message p {
    margin: 0; /* Elimina el margen por defecto del párrafo */
    max-width: 600px; /* Limita el ancho del texto para mejor legibilidad */
    margin-left: auto;
    margin-right: auto;
}

/* Ajuste para pantallas más pequeñas si es necesario */
@media (max-width: 480px) {
    .welcome-message {
        font-size: 1.1em; /* Ajusta el tamaño de fuente para móviles */
        padding: 20px 15px;
    }
}

/* Estilos para el icono de información en el menú */
.item-info-icon {
    margin-left: 10px;
    color: var(--primary-color);
    font-size: 1.2em;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.item-info-icon:hover {
    transform: scale(1.2);
}

/* Estilos para el modal (superposición y contenido) */
#modalOverlay {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: var(--text-color-light);
    color: var(--text-color-dark);
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    font-family: 'Lobster', sans-serif;
    animation: fadeInScale 0.3s ease-out;
}

/* Animación de entrada para el modal */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2em;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--primary-color);
}

/* Estilos para el título y la descripción del modal */
#modalTitle {
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 10px;
}

#modalDescription {
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Estilos para los iconos de alérgenos */
.allergens-icons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.allergens-icons-container img {
    width: 40px;
    height: 40px;
    transition: transform 0.2s ease;
}

.allergens-icons-container img:hover {
    transform: scale(1.1);
}



/* Estilos para el footer principal */
.main-footer {
    margin-top: 100px;
    background-color: var(--secondary-color); /* Color de fondo gris claro */
    padding: 20px;
    color: #333; /* Color de texto oscuro */
    font-family: sans-serif; /* Tipo de letra genérico */
}

/* Contenedor principal para centrar el contenido y limitar el ancho */
.footer-container {
    max-width: 1200px;
    margin: 0 auto; /* Centra el contenedor */
    display: flex;
    flex-direction: column; /* Coloca los elementos uno debajo del otro */
    gap: 20px; /* Espacio entre las secciones */
    text-align: center; /* Alineación por defecto para el texto general */
}

/* Sección superior del footer (logos y reseñas) */
.footer-top-aligned {
    display: flex;
    justify-content: space-between; /* Alinea los elementos a los extremos (izquierda y derecha) */
    align-items: center; /* Centra verticalmente los elementos */
    flex-wrap: wrap; /* Permite que los elementos se envuelvan en pantallas pequeñas */
    gap: 20px; /* Espacio entre los bloques izquierdo y derecho */
}

/* Contenedor para el logo de la marca y el icono de Instagram (izquierda) */
.footer-left-aligned {
    display: flex; /* Para que el logo de la marca y el de Instagram estén en paralelo */
    align-items: center; /* Centra verticalmente los elementos dentro de este contenedor */
    gap: 15px; /* Espacio entre el logo de la marca y el icono de Instagram */
    /* Nueva propiedad para alinear a la izquierda */
    justify-content: flex-start;
}

/* Estilos para el logo de la marca */
.footer-logo {
    height: 80px; /* Tamaño del logo */
    max-width: 100%; /* Asegura que no se desborde en pantallas pequeñas */
}

/* Estilos para el icono de Instagram cuando está en línea con el logo de la marca */
.instagram-icon-inline {
    height: 40px; /* Tamaño del icono de Instagram */
    max-width: 100%;
}

/* Sección derecha (reseñas) */
.footer-right-aligned {
    text-align: right; /* Alinea el texto a la derecha */
    /* Nueva propiedad para alinear a la derecha */
    justify-content: flex-end;
}

.review-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.review-link {
    color: var(--text-color-dark); /* Color de enlace azul */
    text-decoration: none; /* Quita el subrayado del enlace */
    font-weight: bold;
    transition: color 0.3s ease; /* Transición suave al pasar el cursor */
}

.review-link:hover {
    color: #000000; /* Color de enlace más oscuro al pasar el cursor */
}

/* Sección inferior con el texto pequeño */
.footer-bottom-text {
    margin-top: 10px;
    text-align: center; /* Asegura que este texto esté centrado */
}

.small-text {
    font-size: 12px;
    color: #666; /* Color de texto gris más claro */
    text-decoration: none;
}

.small-text:hover {
    text-decoration: underline; /* Subraya el enlace al pasar el cursor */
}

/* Media query para pantallas más pequeñas */
@media (max-width: 768px) {
    .footer-top-aligned {
        flex-direction: column; /* Apila los elementos en pantallas pequeñas */
        align-items: center; /* Centra los elementos */
        text-align: center; /* Centra el texto */
    }

    .footer-left-aligned, .footer-right-aligned {
        justify-content: center; /* Centra los elementos horizontalmente en pantallas pequeñas */
        text-align: center;
        width: 100%; /* Ocupa todo el ancho disponible */
    }
}

.hidden {
    display: none;
}
/* Estilos de la Sección de Contacto */
#contact-section {
    padding: 40px 20px;
    background-color: var(--item-bg-color); /* Usamos el color de fondo semitransparente */
    text-align: center;
    font-family: 'Roboto', sans-serif;
    color: var(--text-color-dark);
}

#contact-section h2 {
    font-family: 'Lobster', sans-serif;
    text-transform: uppercase;
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

#contact-section p {
    font-size: 1.3em;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Estilos para los iconos de redes sociales */
.contact-social-media {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.contact-icon:hover {
    transform: scale(1.1);
}

/* Estilos para la sección de detalles de contacto */
.contact-details {
    margin-bottom: 20px;
}

/* Estilos para el enlace de reseñas */
.contact-reviews {
    margin-top: 30px;
}

.review-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--button-text-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.review-link:hover {
    background-color: var(--secondary-color);
}


.map-container {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden; /* Oculta cualquier parte del iframe que se salga de los bordes redondeados */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Agrega una sombra sutil */
}

/* Estilos para el iframe del mapa, asegurando que sea responsivo */
.map-container iframe {
    width: 100%;
    height: 450px;
}