/* =========================================
   1. VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================= */
:root {
    /* Paleta Monocromática de Lujo */
    --rich-black: #0a0a0a;
    --charcoal: #1c1c1c;
    --stone-gray: #333333;
    --off-white: #f4f1ea;
    --copper: #c29573; /* Acento de color cobre/bronce */

    /* Tipografía */
    --font-heading: 'Cinzel Decorative', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--rich-black);
    color: var(--off-white);
    line-height: 1.6;
    overflow-x: hidden; /* Evita scroll horizontal */
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* =========================================
   2. TEXTURAS (EFECTO PIEDRA/PAPEL)
   ========================================= */
.mexican-texture-dark {
    background-color: var(--rich-black);
    /* Patrón sutil de ruido */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

.mexican-texture-light {
    background-color: var(--off-white);
    color: var(--rich-black);
    /* Patrón sutil de papel */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.1'/%3E%3C/svg%3E");
}

/* =========================================
   3. NAVEGACIÓN (NAVBAR)
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.98);
    padding: 0.5rem 5%;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

/* Estilos del Logo (Imagen) */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 120px; /* Tamaño grande inicial */
    transition: height 0.4s ease;
    /* Sombra dorada sutil para resaltar sobre negro */
    filter: drop-shadow(0 0 8px rgba(194, 149, 115, 0.2));
}

/* Al hacer scroll, el logo se reduce */
.navbar.scrolled .logo-img {
    height: 80px;
}

/* Enlaces del menú */
.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--copper);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-reserva {
    border: 1px solid var(--off-white);
    padding: 0.5rem 1.5rem;
}

.btn-reserva:hover {
    background-color: var(--off-white);
    color: var(--rich-black);
}

.menu-toggle {
    display: none;
    color: var(--off-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   4. HERO BANNER (PORTADA)
   ========================================= */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    /* IMAGEN LOCAL DEL CALDO EN B&N */
    background: url('../img/caldo_gallina.png') no-repeat center center/cover;

    /* Filtros para asegurar el estilo dramático */
    filter: grayscale(100%) contrast(115%);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Degradado para que el texto blanco se lea perfecto */
    background: linear-gradient(rgba(10,10,10,0.3), rgba(10,10,10,0.8));
    z-index: 1;
}

.hero-content {
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.btn-hero {
    display: inline-block;
    padding: 1rem 3rem;
    border: 2px solid var(--off-white);
    color: var(--off-white);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    transition: all 0.4s;
}

.btn-hero:hover {
    background-color: var(--off-white);
    color: var(--rich-black);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.6;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* =========================================
   5. SECCIONES GENERALES
   ========================================= */
section {
    padding: 7rem 10%;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background-color: var(--copper);
    margin-top: 1rem;
    opacity: 0.8;
}

/* =========================================
   6. SPLIT SECTION (TEXTO + IMAGEN)
   ========================================= */
.split-section {
    display: flex;
    align-items: center;
    padding: 0;
    min-height: 85vh;
}

.split-text {
    flex: 1;
    padding: 6rem 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-text .lead {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--rich-black);
    border-left: 4px solid var(--copper);
    padding-left: 1.5rem;
}

.split-text p {
    margin-bottom: 2rem;
    color: var(--stone-gray);
}

.inline-image {
    max-width: 350px;
    margin-top: 3rem;
    filter: grayscale(100%) contrast(110%);
    box-shadow: 15px 15px 0px rgba(10,10,10,0.1);
}

.split-image {
    flex: 1.2;
    height: 85vh;
    overflow: hidden;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(110%) brightness(0.9);
    transition: transform 0.7s ease;
}

.split-image:hover img {
    transform: scale(1.02);
}

/* =========================================
   7. MENÚ SECTION
   ========================================= */
.menu-section {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.section-subtitle {
    margin-bottom: 5rem;
    font-style: italic;
    color: var(--copper);
    letter-spacing: 1px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 5rem;
    text-align: center;
    margin-bottom: 5rem;
}

.menu-item h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--copper);
    letter-spacing: 3px;
    border-bottom: 1px solid rgba(194, 149, 115, 0.2);
    display: inline-block;
    padding-bottom: 5px;
}

.dish-name {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    margin-bottom: 0.8rem;
    color: var(--off-white);
}

.dish-desc {
    font-size: 0.9rem;
    color: #999;
    font-weight: 300;
    max-width: 80%;
    margin: 0 auto;
}

.btn-outline-light {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--off-white);
    color: var(--off-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

.btn-outline-light:hover {
    background: var(--off-white);
    color: var(--rich-black);
}

/* =========================================
   8. GALERÍA (EL LUGAR)
   ========================================= */
.gallery-section {
    background-color: var(--charcoal);
    padding-bottom: 0;
}

.gallery-text {
    margin-bottom: 5rem;
    max-width: 700px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 650px;
}

.gallery-img {
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) contrast(110%);
    transition: all 0.5s;
    cursor: pointer;
    position: relative;
    border-right: 1px solid var(--rich-black);
}

.gallery-img::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10,10,10,0.3);
    transition: 0.5s;
}

.gallery-img:hover::after {
    background: rgba(10,10,10,0);
}

/* Imágenes Placeholder (Reemplazar con fotos reales de tu local oscuro) */
.img1 { background-image: url('../img/luna.jpeg'); }
.img2 { background-image: url('https://images.unsplash.com/photo-1552566626-52f8b828add9?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80'); background-position: bottom center; }
.img3 { background-image: url('https://images.unsplash.com/photo-1550966871-3ed3cdb5ed0c?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80'); }

/* =========================================
   9. FOOTER
   ========================================= */
.footer-section {
    padding: 6rem 10% 3rem;
    border-top: 1px solid var(--stone-gray);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-col h3 {
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--off-white);
    font-size: 1.5rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: var(--off-white);
    letter-spacing: 2px;
}

.footer-col p {
    color: #999;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.social-icons a {
    font-size: 1.3rem;
    margin-right: 1.5rem;
    color: var(--off-white);
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--copper);
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    letter-spacing: 1px;
}

/* =========================================
   SECCIÓN GRAN INAUGURACIÓN
   ========================================= */
.grand-opening {
    padding: 6rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--rich-black);
}

.opening-content {
    width: 100%;
    max-width: 800px;
    padding: 10px;
    /* Efecto de doble borde sutil */
    border: 1px solid rgba(194, 149, 115, 0.3);
}

.opening-border {
    border: 2px solid var(--copper);
    padding: 4rem 2rem;
    position: relative;
    background: linear-gradient(rgba(10,10,10,0.9), rgba(10,10,10,0.9));
}

/* Detalles decorativos en las esquinas (opcional, para más lujo) */
.opening-border::before, .opening-border::after {
    content: '✦';
    position: absolute;
    color: var(--copper);
    font-size: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
}
.opening-border::before { top: -18px; background: var(--rich-black); padding: 0 10px; }
.opening-border::after { bottom: -18px; background: var(--rich-black); padding: 0 10px; }

.opening-subtitle {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    color: #888;
    display: block;
    margin-bottom: 1rem;
}

.grand-opening h2 {
    font-size: 2.5rem;
    color: var(--off-white);
    margin-bottom: 2rem;
    letter-spacing: 3px;
}
/* Quitamos la línea decorativa estándar de los h2 para este diseño específico */
.grand-opening h2::after { display: none; }

.date-display {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    color: var(--copper);
}

.date-display .day {
    font-family: var(--font-heading);
    font-size: 6rem;
    line-height: 1;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(194, 149, 115, 0.2);
}

.date-display .month {
    font-family: var(--font-body);
    font-size: 1.5rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    border-top: 1px solid var(--copper);
    border-bottom: 1px solid var(--copper);
    padding: 5px 20px;
    margin-top: 10px;
}

.opening-details {
    font-size: 1.1rem;
    color: #ccc;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 3rem;
    font-style: italic;
}

/* Botón Dorado Especial */
.btn-gold {
    display: inline-block;
    background-color: var(--copper);
    color: var(--rich-black);
    padding: 1rem 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.4s ease;
    border: 1px solid var(--copper);
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--copper);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(194, 149, 115, 0.4);
}

/* Ajuste Responsivo */
@media (max-width: 768px) {
    .date-display .day { font-size: 4rem; }
    .grand-opening h2 { font-size: 1.8rem; }
    .opening-border { padding: 2rem 1rem; }
}

/* Estilo para el logo dentro de la invitación */
.opening-logo {
    width: 120px; /* Tamaño discreto y elegante */
    height: auto;
    margin-bottom: 1.5rem; /* Espacio antes del subtítulo */
    display: block;
    margin-left: auto;
    margin-right: auto;
    /* Sombra dorada para integrarlo al estilo 'Lujo' */
    filter: drop-shadow(0 0 8px rgba(194, 149, 115, 0.4));
}

/* Ajuste para móviles para que no se vea enorme */
@media (max-width: 768px) {
    .opening-logo {
        width: 90px;
    }
}
/* =========================================
   10. RESPONSIVE DESIGN (MÓVIL)
   ========================================= */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
        justify-content: space-between;
    }

    .nav-links, .btn-reserva {
        display: none; /* Menú hamburguesa simplificado */
    }

    .menu-toggle {
        display: block;
    }

    /* Ajuste de logo en móvil */
    .logo-img {
        height: 90px;
    }

    .navbar.scrolled .logo-img {
        height: 70px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .split-section {
        flex-direction: column;
    }

    .split-text {
        padding: 4rem 5%;
    }

    .split-image {
        height: 50vh;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .gallery-img {
        height: 350px;
        border-bottom: 1px solid var(--rich-black);
    }
}

/* =========================================
   SECCIÓN UBICACIÓN / MAPA
   ========================================= */
.location-section {
    padding: 6rem 10%;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Texto ocupa menos, mapa más */
    gap: 4rem;
    align-items: center;
}

.location-info h2 {
    color: var(--off-white);
    margin-bottom: 0.5rem;
}

.location-info .section-subtitle {
    margin-bottom: 3rem;
    text-align: left; /* Alineado a la izquierda para esta sección */
}

.info-block {
    margin-bottom: 2.5rem;
    border-left: 2px solid var(--copper);
    padding-left: 1.5rem;
}

.info-block h4 {
    font-family: var(--font-heading);
    color: var(--copper);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.info-block p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Estilos del Mapa */
.map-wrapper {
    width: 100%;
    height: 450px;
    overflow: hidden;
    border: 1px solid var(--copper); /* Borde dorado fino */
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
    /* TRUCO DE LUJO: Filtro para desaturar el mapa y que combine con la web negra */
    filter: grayscale(100%) invert(90%) contrast(85%);
    transition: filter 0.5s ease;
}

/* Al pasar el mouse, el mapa recupera un poco de color original */
.map-wrapper:hover iframe {
    filter: grayscale(0%);
}

/* Ajuste Responsivo para Celulares */
@media (max-width: 900px) {
    .location-grid {
        grid-template-columns: 1fr; /* Una sola columna */
        gap: 2rem;
    }

    .map-wrapper {
        height: 350px; /* Un poco más bajo en celular */
    }

    .location-info {
        text-align: center;
    }

    .location-info .section-subtitle {
        text-align: center;
    }

    .info-block {
        border-left: none;
        border-bottom: 1px solid var(--copper);
        padding-left: 0;
        padding-bottom: 1rem;
    }
}

/* =========================================
   10. RESPONSIVE DESIGN (MÓVIL)
   ========================================= */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }

    /* El menú está oculto por defecto */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Justo debajo de la barra */
        left: 0;
        width: 100%;
        background-color: var(--rich-black); /* Fondo negro */
        padding: 2rem 0;
        border-bottom: 1px solid var(--copper);
        box-shadow: 0 10px 15px rgba(0,0,0,0.5);
    }

    /* ESTA CLASE SE AGREGA CON JS PARA MOSTRAR EL MENÚ */
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-links li {
        margin: 1.5rem 0;
        text-align: center;
    }

    /* Ocultar botón reserva en el header móvil para no saturar */
    .btn-reserva { display: none; }

    /* Mostrar el icono de hamburguesa */
    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 1.8rem;
        color: var(--off-white);
    }

    /* Ajustes generales móvil */
    .logo-img { height: 80px; }
    .hero h1 { font-size: 2.5rem; }
    .split-section { flex-direction: column; }
    .gallery-grid { grid-template-columns: 1fr; height: auto; }
    .gallery-img { height: 300px; }

    /* Animación suave al abrir */
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* =========================================
   SECCIÓN RESERVA WHATSAPP
   ========================================= */
.reservation-section {
    padding: 6rem 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.reservation-container {
    max-width: 700px;
    border: 2px solid var(--rich-black); /* Marco negro elegante */
    padding: 10px; /* Doble borde efecto */
}

.reservation-content {
    border: 1px solid var(--rich-black);
    padding: 4rem 2rem;
    background-color: transparent;
}

.reservation-icon {
    font-size: 3rem;
    color: var(--rich-black);
    margin-bottom: 1.5rem;
}

.reservation-section h2 {
    color: var(--rich-black);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.reservation-section h2::after {
    background-color: var(--rich-black); /* Línea decorativa negra */
    margin: 1rem auto;
}

.reservation-text {
    color: var(--stone-gray);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

/* BOTÓN DE WHATSAPP DE LUJO */
.btn-whatsapp-luxury {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: var(--rich-black);
    color: var(--off-white);
    padding: 1rem 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid var(--rich-black);
    transition: all 0.4s ease;
    text-decoration: none;
}

.btn-whatsapp-luxury:hover {
    background-color: transparent;
    color: var(--rich-black);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.availability-note {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .reservation-container {
        border: none;
        padding: 0;
    }
    .reservation-content {
        border: none;
        padding: 2rem 0;
    }
    .btn-whatsapp-luxury {
        width: 100%; /* Botón completo en celular */
        padding: 1rem;
    }
}