/* style.css - MODIFICADO: Botón flotante negro, Botón WhatsApp visible siempre */
html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

img {
    max-width: 100%; 
    height: auto;    
    display: block;  
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Estilos para el Logo Superior de la Empresa --- */
.company-logo-header {
    width: 100%;
    background-color: #ffffff; 
    padding: 15px 0; 
    text-align: center;
    border-bottom: 1px solid #e0e0e0; 
}
.company-logo-image {
    margin: 0 auto; 
}

/* Header Principal del Sitio (Título y Subtítulo) */
.site-header {
    background-color: #2c3e50; 
    color: #fff;
    padding: 25px 15px; 
    text-align: center;
    margin-bottom: 30px; 
}
.site-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    margin: 0 0 8px 0;
    color: #ecf0f1; 
}
.site-header .subtitle {
    font-size: 1.05em;
    color: #bdc3c7; 
    margin: 0;
    min-height: 1.2em;
}

/* Secciones Generales y Títulos H2 */
.menu-section, .gallery-section, .info-images-section, .info-section {
    padding-top: 25px; 
    padding-bottom: 25px; 
    margin-bottom: 30px;
}
.menu-section, .info-section { 
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    padding-left: 20px; 
    padding-right: 20px;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    color: #34495e; 
    text-align: center;
    margin-top: 0; 
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
h2::after { 
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #e74c3c; 
    margin: 8px auto 0;
}

/* Sección Menú del Día */
.menu-date {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.7em;
    color: #2c3e50;
    text-align: center;
    white-space: pre-line; 
    margin-bottom: 20px;
}
.menu-image-container {
    text-align: center;
    margin-bottom: 20px;
    max-width: 650px; 
    margin-left: auto;
    margin-right: auto;
}
.menu-image {
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Botón de Reservas (AHORA WHATSAPP Y SIEMPRE VISIBLE) */
.booking-button {
    display: block; /* Visible por defecto */
    width: fit-content; /* Ancho se ajusta al contenido */
    max-width: 320px; /* Ancho máximo para que no sea excesivo en pantallas grandes */
    margin: 25px auto; /* Centrado y con margen vertical */
    background-color: #25D366; /* Verde WhatsApp */
    color: #ffffff !important; /* Texto blanco, !important para asegurar */
    text-decoration: none;
    padding: 12px 25px; /* Padding más generoso */
    border-radius: 25px; /* Bordes redondeados tipo píldora */
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.booking-button:hover {
    background-color: #1DAE50; /* Verde WhatsApp más oscuro */
    transform: scale(1.03); /* Ligero efecto al pasar el ratón */
}

/* === Estilos para el Slider de "Nuestros Platos" === */
.gallery-section { 
    margin-bottom: 30px;
}
.dish-slider-container {
    position: relative; 
    width: 100%;
    max-width: 750px; 
    margin: 0 auto; 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}
.dish-slider {
    display: flex; 
    transition: transform 0.5s ease-in-out; 
    background-color: #e9e9e9; 
    min-height: 250px; 
}
.dish-slide {
    min-width: 100%; 
    flex-shrink: 0;  
    box-sizing: border-box; 
}
.dish-slide img {
    width: 100%; 
    object-fit: cover; 
    min-height: 250px; 
    max-height: 450px; 
    display: block; 
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(44, 62, 80, 0.6); 
    color: white;
    border: none;
    padding: 0; 
    width: 38px;  
    height: 38px; 
    font-size: 18px;
    line-height: 38px; 
    text-align: center;
    cursor: pointer;
    border-radius: 50%; 
    z-index: 10; 
    transition: background-color 0.2s ease;
    opacity: 0.9;
}
.slider-btn:hover {
    background-color: rgba(44, 62, 80, 0.9);
    opacity: 1;
}
.prev-slide { left: 10px; }
.next-slide { right: 10px; }
.slider-btn[style*="display: none"] { display: none !important; }

/* === Estilos para la Cuadrícula de Imágenes Informativas === */
.info-images-section {
    margin-bottom: 30px;
}
.info-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px; 
}
.info-image-item img {
    width: 100%; 
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Sección Info Restaurante y Mapa */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: center;
}
.restaurant-image-container img {
    border-radius: 6px;
}
.map-container iframe {
    border-radius: 6px;
    width: 100%;
    height: 330px; 
    border: none; 
}
.directions-button { /* Este es el botón "Cómo llegar" debajo del mapa */
    display: none; /* Sigue oculto por defecto, se muestra en móvil si es necesario */
    background-color: #3498db; 
    color: #fff !important; 
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    margin-top: 12px;
    /* display: block; No es necesario aquí, se controla en media query */
}
.directions-button:hover {
    background-color: #2980b9;
}

/* Footer */
.site-footer-bottom {
    background-color: #34495e; 
    color: #bdc3c7; 
    text-align: center;
    padding: 20px 15px; 
    font-size: 0.85em;
}
.site-footer-bottom p {
    margin: 5px 0;
}
.site-footer-bottom a {
    color: #ecf0f1; 
    text-decoration: none;
}
.site-footer-bottom a:hover {
    text-decoration: underline;
}

/* --- Navegación Inferior Fija para Móviles (Estilo Oscuro) --- */
.mobile-bottom-nav {
    display: none; 
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2c3e50; 
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 1000; 
    border-top: 1px solid #34495e; 
}
.mobile-bottom-nav .nav-button {
    flex-grow: 1; 
    text-align: center;
    color: #ecf0f1; 
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    line-height: 1.2; 
    padding: 8px 3px; 
    font-size: 0.75em; 
}
.mobile-bottom-nav .nav-button:hover,
.mobile-bottom-nav .nav-button:active { 
    background-color: #34495e; 
}
.mobile-bottom-nav .nav-button .nav-icon {
    margin-bottom: 3px; 
    line-height: 1; 
    display: inline-block; 
}
.mobile-bottom-nav .nav-button .nav-icon svg {
    display: block; 
    margin: 0 auto; 
    fill: currentColor; 
    width: 20px; 
    height: 20px;
}

/* Estilos para el icono de Lupa y Lightbox */
.menu-image-link {
    position: relative; 
    display: inline-block; 
    cursor: zoom-in;
    line-height: 0; 
}
.menu-image-link .menu-image { 
    vertical-align: middle; 
}
.menu-image-zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.65); 
    color: white;
    padding: 10px; 
    border-radius: 50%;
    opacity: 0; 
    transition: opacity 0.3s ease;
    pointer-events: none; 
    display: flex; 
    align-items: center;
    justify-content: center;
}
.menu-image-zoom-icon svg { 
    width: 28px; 
    height: 28px;
    fill: white;
}
.menu-image-link:hover .menu-image-zoom-icon { 
    opacity: 1; 
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); 
    z-index: 2000; 
    display: none; 
    align-items: center;
    justify-content: center;
    padding: 20px; 
    box-sizing: border-box;
    cursor: zoom-out; 
}
.lightbox-inner-container { 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 95%;
    max-height: 95%;
}
.lightbox-content {
    max-width: 100%; 
    max-height: calc(100% - 45px); 
    display: block; 
    box-shadow: 0 0 35px rgba(0,0,0,0.7);
    border: 2px solid white; 
    cursor: default; 
    object-fit: contain; 
}
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #fff;
    font-size: 45px; 
    font-weight: 300; 
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
    text-shadow: 0 1px 3px black; 
}
.lightbox-close:hover {
    color: #ccc;
}
.lightbox-zoom-hint { 
    display: none; 
    color: #cccccc;
    font-size: 0.85em;
    text-align: center;
    margin-top: 10px;
    padding: 0 10px;
}

/* === Estilos para el Botón Flotante "Volver a Restaurante" (Escritorio) === */
.desktop-floating-web-button {
    display: none; 
    position: fixed;
    right: 25px; 
    top: 50%;
    transform: translateY(-50%);
    background-color: #000000; /* CAMBIADO A NEGRO/GRIS OSCURO */
    color: #ffffff !important; 
    padding: 12px 20px; 
    text-decoration: none;
    font-size: 0.95em; 
    font-weight: 600;
    border-radius: 8px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.25); 
    z-index: 998; 
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.desktop-floating-web-button:hover {
    background-color: #444444; /* CAMBIADO A GRIS MÁS CLARO PARA HOVER */
    transform: translateY(-50%) scale(1.03); 
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}


/* === Media Queries para Responsividad === */
@media (min-width: 769px) { /* Solo para Escritorio */
    .desktop-floating-web-button {
        display: inline-block; 
    }
    /* El botón de WhatsApp (.booking-button) ya es visible por defecto con los nuevos estilos base */
}

@media (max-width: 992px) { /* Tablets */
    .site-header h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    .menu-date { font-size: 1.5em; }
    .dish-slider-container { max-width: 600px; }
    .dish-slider, .dish-slide img { min-height: 220px; max-height: 400px; }
}

@media (max-width: 768px) { /* Móviles grandes y tablets pequeñas */
    body {
        padding-bottom: 70px; 
    }
    .container {
        width: 95%;
    }
    
    .site-header { padding: 20px 15px; margin-bottom: 25px; }
    .site-header h1 { font-size: 1.9em; }
    .site-header .subtitle { font-size: 0.95em; }
    h2 { font-size: 1.6em; margin-bottom: 20px; }
    h2::after { width: 40px; height: 2px; margin-top: 6px;}
    
    .menu-section, .info-section { padding: 20px 15px; margin-bottom: 25px;}
    .menu-date { font-size: 1.3em; margin-bottom: 15px; }
    .menu-image-container { max-width: 100%; }

    /* La regla .booking-button.mobile-only ya no es necesaria si .booking-button es siempre visible */
    /* Si quieres estilos específicos para .booking-button en móvil, los pones aquí directamente: */
    .booking-button { 
        /* width: auto;  Ya es fit-content */
        padding: 10px 20px; /* Ligeramente menos padding en móvil si es necesario */
        margin: 20px auto; /* Margen mantenido */
    }

    .menu-image-link .menu-image-zoom-icon {
        opacity: 0.75; 
    }
    .menu-image-link:hover .menu-image-zoom-icon {
        opacity: 0.9; 
    }

    .lightbox-zoom-hint {
        display: block;
    }
    .lightbox-content { 
        max-height: calc(100% - 45px);
    }

    .dish-slider-container { max-width: 100%; } 
    .dish-slider, .dish-slide img { min-height: 200px; max-height: 350px; }
    .slider-btn { width: 32px; height: 32px; line-height: 32px; font-size: 16px; }
    .prev-slide { left: 8px; }
    .next-slide { right: 8px; }

    .info-image-grid {
        grid-template-columns: 1fr; 
        gap: 15px;
    }

    .info-grid {
        grid-template-columns: 1fr; 
    }
    .restaurant-image-container {
        margin-bottom: 15px;
    }
    .directions-button.mobile-only { /* Este botón sigue siendo solo para móvil y debajo del mapa */
        display: inline-block; 
        margin-top: 10px;
        padding: 8px 15px;
        font-size: 0.9em;
    }
    .map-container iframe {
        height: 280px;
    }

    .mobile-bottom-nav {
        display: flex; 
    }
    .mobile-bottom-nav .nav-button { 
        font-size: 0.8em; 
        padding: 10px 3px; 
    }
    .mobile-bottom-nav .nav-button .nav-icon svg { 
        width: 18px;  
        height: 18px;
        margin-bottom: 2px;
    }
}

@media (max-width: 480px) { 
    .site-header h1 { font-size: 1.7em; }
    .site-header .subtitle { font-size: 0.9em; }
    h2 { font-size: 1.4em; }
    .menu-date { font-size: 1.15em; }
    
    .menu-image-link .menu-image-zoom-icon svg {
        width: 24px; 
        height: 24px;
    }
    .menu-image-zoom-icon {
        padding: 8px;
    }

    .dish-slider, .dish-slide img { min-height: 180px; max-height: 300px; }

    .site-footer-bottom { font-size: 0.8em; padding: 15px 10px;}
    
    .mobile-bottom-nav .nav-button { 
        font-size: 0.7em; 
        padding: 8px 2px; 
    }
    .mobile-bottom-nav .nav-button .nav-icon svg { 
        width: 16px;  
        height: 16px;
        margin-bottom: 1px;
    }
    body { 
        padding-bottom: 60px; 
    } 
}