/* Variables de Color y Tipografía */
:root {
    --color-rojo: #a02521; /* Rojo de Wendy's, más oscuro y apagado */
    --color-rojo-claro: #e64942; /* Rojo para botones CTA, menos intenso */
    --color-amarillo: #f4d03f; 
    --color-whatsapp: #25d366; 
    --color-gris-oscuro: #333;
    --color-blanco: #fff;
    --font-heading: 'Bebas Neue', cursive;
    --font-body: 'Roboto', sans-serif;
}

/* Reset Básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    background-color: #fafafa;
    color: var(--color-gris-oscuro);
    scroll-behavior: smooth;
}

/* --- NUEVOS ESTILOS DEL HEADER (Doble Barra) --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* BARRA SUPERIOR (Barra Clara con Logo y Botón Principal) */
.header-top {
    background-color: var(--color-blanco);
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
}

.main-logo {
    height: 55px; /* Ajusta el tamaño del logo */
    vertical-align: middle;
}

/* Estilo del botón de WhatsApp */
.cta-button-whatsapp {
    background-color: var(--color-whatsapp);
    color: var(--color-blanco) !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9em;
    text-decoration: none;
    transition: background-color 0.3s;
}

.cta-button-whatsapp:hover {
    background-color: #1eac52;
}

/* BARRA INFERIOR (Barra Roja de Navegación) */
.header-nav {
    background-color: var(--color-rojo);
    display: flex;
    justify-content: center; /* Centrar enlaces */
    padding: 10px 5%;
}

.header-nav a {
    color: var(--color-blanco);
    text-decoration: none;
    margin: 0 25px;
    font-family: var(--font-heading);
    font-size: 1.2em;
    padding: 5px 0;
    transition: color 0.3s;
}

.header-nav a:hover {
    color: var(--color-amarillo);
}

/* Botón de Menú Móvil (Posición para este nuevo header) */
.mobile-menu-btn {
    display: none; /* Ocultar por defecto */
    background: none;
    border: none;
    color: var(--color-gris-oscuro); /* Color oscuro para la barra clara */
    font-size: 30px;
    cursor: pointer;
}

/* --- Fin Estilos del Header --- */

/* --- Sección Hero/Banner --- */
.hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--color-blanco);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4em;
    text-shadow: 2px 2px var(--color-rojo-claro); /* Usamos el color rojo menos oscuro para el texto */
}

.cta-button {
    display: inline-block;
    background-color: var(--color-rojo-claro);
    color: var(--color-blanco);
    padding: 12px 30px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.5em;
    border: 3px solid var(--color-amarillo);
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #d83c3c; 
    transform: scale(1.05);
}

/* --- Sección del Menú --- */
.menu-container {
    padding: 40px 5%;
    text-align: center;
}

.menu-container h2 {
    font-family: var(--font-heading);
    font-size: 3em;
    color: var(--color-rojo);
    margin-bottom: 30px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.menu-item {
    background-color: var(--color-blanco);
    border: 2px solid var(--color-amarillo);
    border-left: 10px solid var(--color-rojo-claro); /* Usamos el rojo más claro aquí */
    border-radius: 8px;
    padding: 20px;
    padding-top: 0; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: left;
    cursor: pointer; 
    transition: transform 0.3s, box-shadow 0.3s;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.menu-item h3 {
    font-family: var(--font-heading);
    font-size: 1.8em;
    color: var(--color-rojo-claro);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
}

.menu-item .price {
    color: var(--color-amarillo);
    background-color: var(--color-rojo-claro);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
}

/* --- Placeholders Visuales --- */
.product-visual {
    width: calc(100% + 40px); 
    height: 150px;
    margin: 0 -20px 15px -20px; 
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4em;
    color: var(--color-blanco);
    font-family: var(--font-heading);
    text-shadow: 2px 2px var(--color-gris-oscuro);
}

.hamburguesa .product-visual { background-color: #a84242; }
.hotdog .product-visual { background-color: #925828; }
.papas .product-visual { background-color: #f0c330; }

.product-type-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1em;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 5px;
}

/* --- Sección de Contacto y Footer --- */
.contact-section {
    background-color: var(--color-gris-oscuro);
    padding: 40px 5%;
    text-align: center;
    color: var(--color-blanco);
}

.delivery-message h2 {
    font-family: var(--font-heading);
    font-size: 3em;
    color: var(--color-amarillo);
    margin-bottom: 20px;
}

.phone-link {
    display: block;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-amarillo);
    text-decoration: none;
    margin: 10px 0;
}

/* --- Redes Sociales (Aseguramos color blanco) --- */
.social-media {
    margin-top: 15px; 
    padding: 10px 0;
    width: 100%;
    text-align: center;
}

.social-media .social-link {
    color: var(--color-blanco) !important; 
    text-decoration: none !important; 
    font-family: var(--font-body); 
    font-weight: 700;

    margin: 0 12px;
    padding: 5px 0;
    transition: color 0.3s;
    display: inline-block;
}

.social-media .social-link:hover {
    color: var(--color-amarillo) !important; 
    text-decoration: underline !important;
}

footer {
    background-color: var(--color-rojo);
    color: var(--color-blanco);
    text-align: center;
    padding: 15px 0;
}


/* ==================================== */
/* ESTILOS DEL MODAL (ACTUALIZADO)      */
/* ==================================== */

.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.8); 
}

.modal-content {
    background-color: var(--color-blanco);
    margin: 5% auto; 
    padding: 30px;
    width: 90%; 
    max-width: 600px; 
    border-radius: 10px;
    position: relative;
    animation-name: animatetop;
    animation-duration: 0.4s;
}

@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 5%; opacity: 1}
}

.close-btn {
    color: var(--color-rojo-claro); /* Usamos el rojo más claro aquí */
    float: right;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

#modal-title {
    font-family: var(--font-heading);
    font-size: 2.5em;
    color: var(--color-rojo-claro);
    border-bottom: 3px solid var(--color-amarillo);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.modal-product-image {
    width: 100%; 
    max-height: 250px;
    object-fit: cover; 
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid var(--color-amarillo);
}

.modal-price {
    font-family: var(--font-heading);
    font-size: 2em;
    color: var(--color-amarillo);
    background-color: var(--color-rojo-claro);
    padding: 5px 15px;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 20px;
}

.modal-action {
    text-align: center;
    margin-top: 30px;
}

.whatsapp-cta {
    background-color: var(--color-whatsapp);
    border-color: #1eac52;
}

.whatsapp-cta:hover {
    background-color: #1eac52;
}


/* ==================================== */
/* RESPONSIVIDAD (MÓVIL)                */
/* ==================================== */

@media (max-width: 768px) {
    /* Mostrar el botón de menú móvil */
    .mobile-menu-btn {
        display: block;
    }
    
    /* Ocultar la navegación inferior y el botón de WhatsApp en la barra superior */
    .header-nav, .contact-action {
        display: none; 
    }
    
    /* Estilo del menú flotante que aparece con JS */
    #main-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 76px; /* Ajuste debajo del header-top */
        left: 0;
        width: 100%;
        box-shadow: 0 4px 4px rgba(0,0,0,0.2);
    }
    
    #main-nav.active a {
        padding: 15px 5%;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0;
        text-align: center;
    }
}