/* Paleta de colores: Toldo Amarillo - Invertido
   Fondo principal: Negro Suave (#222222)
   Fondo Secundario (Claro): Amarillo Adamo (#FFC72C)
   Acento principal: Amarillo Adamo (#FFC72C) - Usado para fondos, títulos, etc.
   Texto Principal: Blanco (#FFFFFF) sobre fondos oscuros, Negro Suave (#222222) sobre fondos claros.
   Texto Secundario: Gris Neutro (#666666) sobre fondos claros.
   Fondo de secciones de contenido: Gris Claro (#F8F8F8) o Blanco (#FFFFFF) para contraste.
*/

/* Reset básico y tipografía */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif; 
    color: #FFFFFF; /* Texto blanco por defecto sobre el fondo oscuro de Adamo */
    background-color: #222222; /* Fondo principal Negro Suave */
    line-height: 1.6;
    transition: margin-right 0.3s;
}

/* CLASE CRÍTICA PARA EVITAR EL MOVIMIENTO AL MOSTRAR EL POPUP */
body.no-scroll {
    overflow: hidden;
    padding-right: 15px; /* Compensa la barra de scroll para evitar un salto lateral */
}


a {
    color: inherit;
    text-decoration: none;
}

/* --- Encabezado --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: #FFC72C; /* Amarillo Adamo (fondo del toldo) */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #222222; /* Texto Negro Suave en el header */
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #222222; /* Negro Suave para el logo (como en el toldo) */
}

.main-nav {
    /* Estilos inalterados */
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 5px 0;
    transition: color 0.3s;
    color: #222222; /* Enlaces en Negro Suave */
}

.nav-links a:hover {
    color: #FFFFFF; /* Blanco al pasar el ratón */
}

.menu-toggle {
    display: none; 
    background: none;
    border: none;
    color: #222222; /* Negro Suave */
    font-size: 2rem;
    cursor: pointer;
}

/* --- Selector de Idioma (CUSTOM) --- */
.lang-selector-custom {
    position: relative;
    cursor: pointer;
    font-size: 0.9rem;
    margin-right: 15px;
    z-index: 1010; 
}

.selected-lang {
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #222222; /* Borde Negro Suave */
    color: #222222; /* Texto Negro Suave */
    transition: background-color 0.3s;
}

.selected-lang:after {
    content: ' ▼'; 
    font-size: 0.7rem;
    margin-left: 5px;
}

.lang-options {
    list-style: none;
    position: absolute;
    top: 100%; 
    right: 0;
    margin-top: 5px;
    background-color: #FFFFFF; /* Fondo blanco */
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 150px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: none; /* OCULTO POR DEFECTO */
    padding: 0;
}

.lang-options.active {
    display: block; /* MUESTRA EL DESPLEGABLE */
}

.lang-options li {
    padding: 8px 15px;
    color: #222222; /* Texto de la lista en Negro Suave */
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.lang-options li:hover {
    background-color: #FFC72C; /* Amarillo Adamo al pasar el ratón */
    color: #222222; /* Texto oscuro sobre amarillo */
}

/* Estilo para la bandera de Euskera (Usando SVG) */
.lang-eu {
    padding-left: 30px !important; 
    background-repeat: no-repeat;
    background-position: 8px center; 
    background-size: 18px 12px; 
    /* RUTA IMAGEN: Sube un nivel y entra en 'img/' */
    background-image: url('../img/ikurrina.svg');
}
/* Estilo para el selected-lang cuando Euskera es el idioma activo */
.lang-selector-custom .selected-lang.lang-eu-selected {
    padding-left: 30px; /* Igual que en el menú desplegable */
    /* RUTA IMAGEN: Sube un nivel y entra en 'img/' */
    background-image: url('../img/ikurrina.svg');
    background-repeat: no-repeat;
    background-position: 8px center;
    background-size: 18px 12px;
}
/* --- Fin Selector de Idioma CUSTOM --- */


/* --- Estilos de Botones Globales --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    margin: 0 5px; 
    border: 2px solid;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
    text-align: center;
    border-radius: 4px;
}

.btn-primary {
    background-color: #222222; /* Negro Suave */
    border-color: #222222;
    color: #FFC72C; /* Texto en Amarillo Adamo */
}

.btn-primary:hover {
    background-color: #000000; /* Negro puro */
    border-color: #000000;
    color: #FFFFFF; /* Texto blanco en hover */
}

.btn-secondary {
    background-color: transparent;
    border-color: #222222; /* Borde Negro Suave */
    color: #222222; /* Texto Negro Suave */
}

.btn-secondary:hover {
    background-color: #222222;
    color: #FFFFFF;
}

/* --- Sección Héroe --- */
.hero-section {
    /* RUTA IMAGEN: Sube un nivel y entra en 'img/' */
    background-image: url('../img/adamo-fondo.png'); 
    background-size: 100%;        
    background-repeat: no-repeat; 
    background-attachment: fixed; 
    background-position: center center; 
    background-color: #222222; 

    height: 70vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4); 
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #FFC72C; 
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ffffff;
}


/* --- Sección de Menú (Carta) --- */
.menu-section {
    padding: 80px 5%;
    text-align: center;
    background-color: #222222; /* Fondo Oscuro */
    color: #FFFFFF; 
}

.menu-section h2 {
    font-size: 2.5rem;
    color: #FFC72C; 
    margin-bottom: 10px;
}

.menu-section .subtitle {
    margin-bottom: 50px;
    font-size: 1.1rem;
    color: #FFFFFF; 
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
    margin-bottom: 40px;
}

.menu-item {
    background-color: #F8F8F8; 
    padding: 20px;
    border-radius: 5px;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.menu-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

.menu-item h3 {
    color: #222222; 
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.menu-item .description {
    color: #666666; 
    margin-bottom: 10px;
    min-height: 40px; 
}

.menu-item .price {
    display: block;
    color: #222222; 
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.btn-menu {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #222222; 
    color: #FFC72C; 
    text-align: center;
    border-radius: 3px;
    font-weight: bold;
}

.btn-menu:hover {
    background-color: #000000;
    color: #FFFFFF;
}

.btn-view-all {
    display: inline-block;
    padding: 12px 30px;
    margin-top: 20px;
    border: 2px solid #FFC72C; 
    color: #FFC72C; 
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
}

.btn-view-all:hover {
    background-color: #FFC72C;
    color: #222222; 
}

/* -------------------------------------- */
/* --- ESTILOS: SECCIÓN TORTILLA (GALERÍA) --- */
/* -------------------------------------- */

.tortilla-section {
    padding: 80px 5%;
    text-align: center;
    background-color: #F8F8F8; /* Fondo Claro */
    color: #222222;
}

.tortilla-section h2 {
    font-size: 2.5rem;
    color: #FFC72C; /* Amarillo Adamo */
    margin-bottom: 10px;
    font-weight: 600;
}

.tortilla-section .subtitle {
    margin-bottom: 50px;
    font-size: 1.1rem;
    color: #666666; 
}

/* Contenedor principal de la galería (Masonry-like con Grid) */
.gallery-grid {
    display: grid;
    /* Columnas flexibles: 3 columnas de 1fr cada una */
    grid-template-columns: repeat(3, 1fr); 
    grid-auto-rows: 150px; /* Altura base de cada fila (ajusta si es necesario) */
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.4s ease-out; 
    display: block;
}

/* Efecto de Zoom al pasar el ratón (solo en escritorio) */
.gallery-item:hover img {
    transform: scale(1.05);
}

/* Definición de Tamaños para el efecto Masonry (Combinación de filas y columnas) */
.size-small {
    grid-column: span 1;
    grid-row: span 1;
}
.size-medium {
    grid-column: span 1;
    grid-row: span 2;
}
.size-large {
    grid-column: span 2;
    grid-row: span 2;
}

/* -------------------------------------- */
/* --- FIN ESTILOS: SECCIÓN TORTILLA --- */
/* -------------------------------------- */


/* --- Sección de BARES --- */
.restaurants-section {
    padding: 80px 5%;
    background-color: #F8F8F8; /* Fondo Claro */
    text-align: center;
    color: #222222; 
}

.restaurants-section h2 {
    font-size: 2.5rem;
    color: #FFC72C; 
    margin-bottom: 10px;
}

.restaurants-section .subtitle {
    margin-bottom: 50px;
    font-size: 1.1rem;
    color: #666666; 
}

.restaurant-info-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.restaurant-card {
    background-color: #FFFFFF; /* Fondo Blanco */
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #222222; 
}

.restaurant-card h3 {
    color: #FFC72C; 
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.restaurant-card p {
    color: #666666; 
    margin-bottom: 5px;
}

.restaurant-card .map-placeholder {
    height: 200px; 
    background-color: #CCCCCC; 
    margin: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #222222; 
    overflow: hidden; 
}
/* --- FIN SECCIÓN BARES --- */


/* --- Pie de Página (Fondo Amarillo - Confirmado) --- */
.main-footer {
    background-color: #FFC72C; /* Fondo Amarillo */
    padding: 40px 5% 20px;
    color: #222222; /* Texto Negro Suave */
}

.footer-grid {
    display: flex;
    justify-content: space-around;
    padding-bottom: 30px;
    border-bottom: 1px solid #E0AE1B; 
}

.footer-info, .footer-links {
    max-width: 300px;
}

.footer-info h3, .footer-links h3 {
    color: #222222; 
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #666666; 
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #222222; 
}

.copyright {
    text-align: center;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #444444; 
}


/* --- POPUP DE COOKIES (Z-INDEX Y POSITION FIXED - CLAVE) --- */
.cookie-popup {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 2000; /* <-- Esto asegura que esté por encima de todo (Header tiene 1000) */
}

.cookie-popup.visible {
    display: flex;
}

.cookie-content {
    background-color: #ffffff; 
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    text-align: left;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    max-height: 90vh; 
    overflow-y: auto;
}

.cookie-content h3 {
    color: #222222; 
    margin-bottom: 15px;
}

.cookie-content p {
    font-size: 0.95rem;
    color: #333; 
    margin-bottom: 20px;
}

.cookie-toggles {
    margin-bottom: 20px;
    border-top: 1px solid #ccc;
    padding-top: 15px;
}

.toggle-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 5px 0;
}

.toggle-group label {
    font-weight: bold;
    color: #333;
}

.status-mandatory {
    color: #5cb85c; 
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.cookie-buttons .btn {
    padding: 10px 15px;
    font-size: 0.9rem;
    margin: 0 5px;
    flex-grow: 1;
}

.cookie-links {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
}

.cookie-links a {
    color: #222222; 
    text-decoration: underline;
}


/* --- Adaptación Móvil (Responsive Design) --- */
@media (max-width: 768px) {
    /* Menú hamburguesa */
    .menu-toggle {
        display: block;
    }
    .main-nav {
        display: none; /* Ocultar por defecto */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Justo debajo del header */
        left: 0;
        width: 100%;
        background-color: #FFC72C;
        box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    .main-nav.active {
        display: flex; /* Mostrar cuando se activa */
    }
    .nav-links {
        flex-direction: column;
        padding: 10px 0;
        width: 100%;
    }
    .nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    .nav-links a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #E0AE1B;
    }
    .nav-links li:last-child a {
        border-bottom: none;
    }
    .lang-selector-custom {
        margin: 15px auto; /* Centrar el selector en el menú desplegable */
        right: auto;
        left: auto;
    }
    .lang-selector-custom .selected-lang {
        border-color: #FFFFFF;
        color: #FFFFFF;
    }
    .lang-options {
        right: 0; /* Asegurar que se mantiene a la derecha del selector */
        left: 0;
    }

    /* Sección Héroe */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }

    /* Galería de tortilla en móvil: cambia a 2 columnas */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 120px;
    }

    /* En móvil, todas las imágenes ocupan 1 columna, para un flujo más predecible */
    .size-small, .size-medium, .size-large {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    /* En móvil, quitamos la superposición al pasar el ratón */
    .gallery-item:hover img {
        transform: scale(1);
    }

    /* Footer en móvil */
    .footer-grid {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        align-items: center;
    }

    .footer-info, .footer-links {
        max-width: 100%;
        text-align: center;
    }
    .footer-links ul {
        padding: 0;
    }
}
@media (max-width: 600px) {
    /* Galería de tortilla en móvil: 1 sola columna */
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .cookie-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .cookie-buttons .btn {
        margin: 0;
    }
}