/* ------------------------------------- */
/* 1. VARIABLES, RESET Y TIPOGRAFÍA */
/* ------------------------------------- */

:root {
    --color-principal: #ff6347; /* Rojo/Naranja de Taquería */
    --color-secundario: #4b4b4b; /* Gris oscuro para texto */
    --color-fondo: #f4f4f9; /* Fondo claro */
    --color-acento: #4CAF50; /* Verde para acentos/CTA */
    --color-dorado: #ffd700; /* Dorado para destacar */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: var(--color-fondo);
    color: var(--color-secundario);
}

a {
    text-decoration: none;
    color: var(--color-principal);
}

/* ------------------------------------- */
/* 2. BARRA DE NAVEGACIÓN (HEADER) */
/* ------------------------------------- */

.navbar {
    background-color: #ffffff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap; 
}

/* ESTILO DEL LOGO */
.logo-img {
    height: 40px; 
    width: auto;
    display: block;
}

.navbar .logo h1 {
    font-size: 1.8em;
    color: var(--color-principal);
}

.navbar nav ul {
    list-style: none;
    display: flex;
}

.navbar nav ul li {
    margin-left: 25px;
}

.navbar nav ul li a {
    color: var(--color-secundario);
    font-weight: bold;
    padding: 5px 10px;
    transition: color 0.3s;
}

.navbar nav ul li a:hover,
.navbar nav ul li a.active {
    color: var(--color-principal);
    border-bottom: 2px solid var(--color-principal);
}

/* ------------------------------------- */
/* 3. HERO Y BOTONES GENERALES */
/* ------------------------------------- */

.hero-section {
    /* *** CORRECCIÓN DE RUTA: RUTA RELATIVA. Sale de /css/ para ir a /imagenes/ *** */
    background: 
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('../imagenes/Taqueria.jpg'); 
    
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* ******************************************* */
    
    height: 70vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.hero-content h2 {
    font-size: 3.5em;
    margin-bottom: 10px;
    color: var(--color-dorado);
}

.btn-cta {
    display: inline-block;
    background-color: var(--color-acento);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-cta:hover {
    background-color: #38761d;
}

.aviso-recoger {
    background-color: #ffe0b2; 
    color: #e65100; 
    padding: 10px;
    border-radius: 4px;
    margin-top: 25px;
    font-weight: bold;
    font-size: 1em;
    display: inline-block;
}

/* ------------------------------------- */
/* 4. PIE DE PÁGINA (FOOTER) */
/* ------------------------------------- */

.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}

/* ------------------------------------- */
/* 5. ESTILOS DE PÁGINAS DE CONTENIDO (NOSOTROS) */
/* ------------------------------------- */

.content-wrapper {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.historia-section, .ubicacion-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.historia-section h2, .ubicacion-section h2 {
    color: var(--color-principal);
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 2em;
}

/* *** NUEVO ESTILO: IMAGEN DE LA TAQUERÍA EN NOSOTROS.HTML *** */
.taqueria-img {
    width: 100%;
    max-width: 600px; 
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mapa-container {
    margin-top: 20px;
    overflow: hidden; 
    border-radius: 6px;
}
.mapa-container iframe {
    display: block;
}

/* ------------------------------------- */
/* 6. ESTILOS DE MENÚ Y CARRITO (COMPLETOS) */
/* ------------------------------------- */

.menu-layout {
    display: flex;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    gap: 30px;
}

.catalogo {
    flex: 3; 
}
.carrito-sidebar {
    flex: 1; 
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    height: fit-content; 
    position: sticky; 
    top: 20px;
}

.aviso-no-delivery {
    background-color: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 25px;
    border: 1px solid #ffeeba;
}
.aviso-no-delivery h3 {
    margin-top: 0;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.producto-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--color-principal);
}

/* ESTILO IMAGEN DE TACO EN EL MENÚ */
.producto-img {
    width: 100%; 
    height: 150px; 
    object-fit: cover; 
    border-radius: 4px;
    margin-bottom: 15px;
}

.producto-nombre {
    color: var(--color-secundario);
    font-size: 1.3em;
    margin-bottom: 5px;
}

.producto-precio {
    color: var(--color-acento);
    font-weight: bold;
    margin-bottom: 10px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.cantidad-input {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.btn-agregar {
    background-color: var(--color-principal);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-agregar:hover {
    background-color: #cc5038;
}

/* Estilos del Carrito */
.carrito-vacio-msg {
    text-align: center;
    color: #888;
    padding: 20px 0;
}

.carrito-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.item-info {
    flex-grow: 1;
}

.item-nombre {
    font-weight: bold;
}

.item-cantidad {
    color: var(--color-acento);
    margin-right: 10px;
}

.btn-eliminar {
    background: none;
    border: none;
    color: var(--color-principal);
    cursor: pointer;
    font-size: 1.1em;
    padding: 0 5px;
}

.carrito-resumen {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #ddd;
}

.total-line {
    display: flex;
    justify-content: space-between;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.btn-whatsapp {
    width: 100%;
    background-color: #25d366; 
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-whatsapp:hover:not(:disabled) {
    background-color: #128c7e;
}

.btn-whatsapp:disabled {
    background-color: #b3e3c8;
    cursor: not-allowed;
}

.btn-limpiar {
    width: 100%;
    background: none;
    border: 1px solid var(--color-principal);
    color: var(--color-principal);
    padding: 8px;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-limpiar:hover {
    background-color: var(--color-principal);
    color: white;
}


/* ------------------------------------- */
/* 7. ADAPTATIVIDAD (Media Queries) */
/* ------------------------------------- */

@media (max-width: 800px) {
    /* Diseño del Menú: Pasa a columna y mueve el carrito arriba */
    .menu-layout {
        flex-direction: column;
    }
    .carrito-sidebar {
        position: static; 
        width: 100%;
        order: -1; 
        margin-bottom: 20px;
    }
    
    /* Diseño del Header: Pasa a columna */
    .navbar {
        flex-direction: column;
    }
    .navbar nav {
        margin-top: 10px;
        width: 100%;
    }
    .navbar nav ul {
        /* Centrar elementos de navegación en vertical */
        flex-direction: column;
        gap: 5px;
        align-items: center; 
    }
    .navbar nav ul li {
        margin: 0;
        padding: 5px 0;
    }

    /* Corrección del Hero Section en móvil */
    .hero-section {
        /* Reducimos la altura para que el contenido no quede tan abajo */
        height: 50vh; 
    }
    .hero-content h2 {
        /* Reducimos el tamaño de la fuente para evitar el solapamiento */
        font-size: 2.5em; 
    }
}

/* ------------------------------------- */
/* 8. ESTILOS DE NOTIFICACIONES TOAST */
/* ------------------------------------- */

#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000; 
}

.toast {
    background-color: var(--color-acento);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
    opacity: 0; 
    transition: opacity 0.3s, transform 0.3s;
    transform: translateX(100%); 
    font-weight: bold;
    display: flex;
    align-items: center;
}

.toast-show {
    opacity: 1;
    transform: translateX(0); 
}

.toast-icon {
    margin-right: 10px;
    font-size: 1.2em;
}