/* ============================================= */
/* 0. GLOBALES Y RESETEO (ACTUALIZADO)           */
/* ============================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    /* Tipografías importadas en el HTML */
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    /* Un color de fondo texturizado sutil, como en la ref */
    background-color: #fcfaf8;
    color: #444;
}

h2, h3 {
    font-family: 'Merriweather', serif;
    font-weight: 400;
}

h3 {
    font-size: 0.9rem;
    color: #a73a2e; /* Color rojo/vino de la referencia */
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

h2 {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* ============================================= */
/* 1. ESTILOS DE NAVBAR (ACTUALIZADO CON NEÓN)   */
/* ============================================= */
.navbar {
    background-color: #111827; /* fondo oscuro */
    color: white;
    padding: 10px 20px;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    position: sticky; /* Hacemos que se quede pegado arriba */
    top: 0;
    z-index: 100; /* Nos aseguramos que esté sobre todo */
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Ocultamos el logo tradicional, si aún lo tuvieras */
.navbar-left .logo {
    display: none; 
}

/* Estilo para el texto de neón */
.neon-text {
    font-family: 'Dancing Script', cursive; /* Fuente para el efecto */
    font-size: 2.2rem; /* Tamaño ajustable */
    font-weight: 700;
    color: #fff; /* Color base del texto */
    text-shadow: 
        0 0 7px #fff,
        0 0 10px #fff,
        0 0 21px #fff,
        0 0 42px #0fa, /* Color verde neón, similar a la imagen 1 */
        0 0 82px #0fa,
        0 0 92px #0fa,
        0 0 102px #0fa,
        0 0 151px #0fa;
    transition: all 0.3s ease-in-out; /* Transición suave para el parpadeo */
    line-height: 1; /* Para que el texto no ocupe demasiado alto */
    padding: 5px 0; /* Un poco de padding para el brillo */
    cursor: pointer; /* Para indicar que es un elemento interactivo */
}

/* Animación de parpadeo para el neón */
@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 29%, 31%, 37%, 39%, 45%, 49%, 51%, 100% {
        text-shadow: 
            0 0 7px #fff,
            0 0 10px #fff,
            0 0 21px #fff,
            0 0 42px #0fa,
            0 0 82px #0fa,
            0 0 92px #0fa,
            0 0 102px #0fa,
            0 0 151px #0fa;
        color: #fff;
    }
    20%, 22%, 30%, 38%, 46%, 50% {
        text-shadow: none; /* Apagado */
        color: rgba(255, 255, 255, 0.4); /* Un color tenue cuando "parpadea" */
    }
}

/* Clase que activa el parpadeo, la agregará JS */
.flickering {
    animation: neon-flicker 5s infinite alternate ease-in-out; 
}


.navbar-center a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.navbar-center a:hover {
    color: #fbbf24; /* amarillo tipo KFC */
}

.navbar-right .telefono {
    color: #fefefe;
    font-weight: bold;
}

/* ============================================= */
/* 2. TUS ESTILOS DE HERO (SIN CAMBIOS)          */
/* ============================================= */
.hero {
    position: relative;
    /* Asegúrate que la ruta es correcta desde tu CSS */
    background-image: url('../imagenes/hero.jpg'); 
    background-size: cover;
    background-position: center;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-family: 'Segoe UI', sans-serif;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(4px); /* desenfoque del fondo */
    background-color: rgba(0, 0, 0, 0.5); /* oscurece un poco para que resalte el texto */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center; /* centra horizontalmente */
    justify-content: center; /* centra verticalmente dentro del hero */
    gap: 8px;
    padding: 0 12px; /* evita que el logo toque los bordes en pantallas pequeñas */
}

.hero-logo {
    height: 130px;
    width: 130px;
    margin: 0 auto 12px; /* centrado y espacio inferior */
    display: block;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
}

.hero h3 {
    font-size: 20px;
    font-weight: 400;
    margin: 0;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
    /* Sobreescribimos el color rojo de h3 global */
    color: white; 
}

.hero h1 {
    font-size: 50px;
    font-weight: 800;
    margin: 10px 0 0;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.8s;
}

.hero h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 10px 0 0;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1s;
    color: #ffff;
}

/* La animación (Tu código) */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================= */
/* 3. LAYOUT Y CONTENEDORES (NUEVO)              */
/* ============================================= */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto; /* Centra el contenido */
}

.content-section {
    padding: 80px 0;
}

/* Layout de 2 columnas (para Historia y Carta) */
.two-column-layout {
    display: flex;
    align-items: center;
    gap: 40px; /* Espacio entre columnas */
}

.image-column,
.text-column {
    flex: 1; /* Cada columna toma 50% */
}

/* Clase para invertir el orden (Texto a la izq, Imagen a la der) */
.two-column-layout.reverse {
    flex-direction: row-reverse;
}

/* Estilo de tarjeta para la sección 3 */
.text-column.card-style {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 3px solid #a73a2e;
}

.cta-link {
    color: #a73a2e;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ============================================= */
/* 4. EFECTO PARALLAX (NUEVO)                    */
/* ============================================= */
.text-block {
    padding: 80px 0;
    text-align: center;
    max-width: 700px; /* Hacemos el texto más angosto */
    background-color: #fcfaf8; /* Fondo para que tape la imagen parallax */
    position: relative; /* Para que se ponga sobre las imágenes */
    z-index: 2;
}

.parallax-image {
    height: 450px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    z-index: 1;
}

/* Aquí pones tus imágenes */
#parallax-1 {
    /* Asegúrate que la ruta es correcta desde tu CSS */
    background-image: url('../imagenes/restauranteWeb/chilaquiles.png');
}

#parallax-2 {
    /* Asegúrate que la ruta es correcta desde tu CSS */
    background-image: url('../imagenes/restauranteWeb/cocineros.png');
}


/* ============================================= */
/* 5. ANIMACIÓN JS (NUEVO)                       */
/* ============================================= */
.hidden-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible-fade {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================= */
/* 6. RESPONSIVE (NUEVO)                         */
/* ============================================= */

/* Estilos del botón hamburguesa */
.hamburger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    .navbar-right {
        display: none;
    }

    .navbar-center {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #1a2635;
        flex-direction: column;
        width: 100%;
        padding: 20px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    }

    .navbar-center.active {
        display: flex;
    }

    .navbar-center a {
        padding: 12px 20px;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: block;
    }

    .navbar-center a:hover {
        background-color: rgba(251, 191, 36, 0.1);
    }

    h2 {
        font-size: 2rem;
    }

    /* Ocultamos el menú en móvil (simplificado) */
    .navbar-center {
        display: none;
    }

    /* Apila las columnas una encima de otra */
    .two-column-layout {
        flex-direction: column !important; /* !important para sobreescribir el .reverse */
    }

    .content-section,
    .text-block {
        padding: 40px 0;
    }

    /* Desactivamos el parallax en móviles por rendimiento */
    .parallax-image {
        background-attachment: scroll;
        height: 300px; 
    }

    .neon-text {
        font-size: 1.8rem; /* Ajuste para móviles */
    }
}

/* ========================= */
/* PIE DE PÁGINA             */
/* ========================= */
.site-footer {
    background: #6a0f0f; /* granate oscuro similar a la referencia */
    color: #fff;
    margin-top: 60px;
}

.site-footer a { color: #f7e6e6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-top { display:flex; gap:30px; padding: 48px 0; align-items:flex-start; }
.footer-contact { flex: 1; }
.footer-contact h4 { font-family: 'Merriweather', serif; font-size: 1rem; color:#fff; margin-bottom:12px; }
.footer-contact p, .footer-contact .address, .footer-contact .hours { color: rgba(255,255,255,0.9); margin-bottom:8px; }

.footer-map { flex: 1; display:flex; align-items:center; justify-content:center; }
.map-placeholder { width: 320px; height: 220px; background:#fff; color:#222; display:flex; align-items:center; justify-content:center; border-radius:6px; }

.footer-right { flex: 1; display:flex; flex-direction:column; gap:18px; }
.subscribe-style h4 { margin:0; color:#fff; font-family: 'Merriweather', serif; }
.subscribe-style .muted { color: #f7e6e6; }
.subscribe-input { display:flex; gap:8px; margin-top:8px; }
.subscribe-input input { flex:1; padding:10px 12px; border-radius:4px; border:1px solid rgba(255,255,255,0.2); background:transparent; color:#fff; }
.subscribe-input input::placeholder { color: rgba(255,255,255,0.7); }
.btn-sub { background:#a73a2e; color:#fff; border:none; padding:10px 14px; border-radius:4px; cursor:pointer; }

.footer-logos { display:flex; gap:20px; align-items:center; margin-top:6px; }
.footer-logos .logo-item img { width:140px; opacity:0.95; filter:brightness(1.05) contrast(1.05); }

/* Estilos para iconos de redes sociales */
.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icons a img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.9;
}

.social-icons a:hover img {
    transform: scale(1.15);
    opacity: 1;
    filter: brightness(1.2);
}

.footer-bottom { border-top:1px solid rgba(255,255,255,0.06); padding:18px 0; }
.footer-bottom-inner { display:flex; justify-content:space-between; align-items:center; color: rgba(255,255,255,0.85); }
.foot-links a { margin-left:18px; font-size:0.95rem; }

@media (max-width:900px) {
    .footer-top { flex-direction:column; align-items:stretch; }
    .footer-map .map-placeholder { width:100%; max-width:100%; height:200px; }
    .footer-logos { justify-content:flex-start; }
    .footer-bottom-inner { flex-direction:column; gap:8px; text-align:center; }
}

.footer-map a img {
    transition: transform 0.3s ease; /* Suaviza la animación */
    cursor: pointer; /* Pone la manita del mouse */
}

/* Efecto zoom al pasar el mouse (opcional, se ve elegante) */
.footer-map a img:hover {
    transform: scale(1.05); /* Crece un poquito */
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2); /* Brillo suave */
}