/* ----- 1. VARIABLES GLOBALES Y CONFIGURACIÓN ----- */
:root {
    /* Paleta de Colores (Extraída del logo) */
    --color-rojo: #E62224;
    --color-amarillo: #FFD230;
    --color-naranja: #D93B00;
    /* Un rojo más oscuro para el footer-bottom */
    --color-texto: #333333;
    --color-blanco: #FFFFFF;
    --color-fondo: #F9F9F9;
    --color-footer-texto: #ffffffcc;
    /* Blanco semi-transparente para texto de footer */

    /* Tipografía */
    --font-titulos: 'Bebas Neue', sans-serif;
    --font-cuerpo: 'Lato', sans-serif;

    /* Otros */
    --sombra-suave: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Reseteo Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-cuerpo);
    color: var(--color-texto);
    background-color: var(--color-fondo);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 5rem 0;
}

.section-title {
    font-family: var(--font-titulos);
    font-size: 3rem;
    letter-spacing: 1.5px;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-texto);
}

.section-title.left-align {
    text-align: left;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.8rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-rojo);
    color: var(--color-blanco);
}

.btn-primary:hover {
    background-color: var(--color-naranja);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--color-amarillo);
    color: var(--color-texto);
}

.btn-secondary:hover {
    background-color: #ffc90d;
    transform: translateY(-3px);
}

.btn-small {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ----- 0. NAVEGACIÓN ----- */

.logo {
    height: 100px; 
    width: auto;   
    display: block;
}


.navbar {
    background-color: var(--color-blanco);
    padding: 1rem 0; 
    box-shadow: var(--sombra-suave);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-texto);
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-rojo);
}

/* ESTILOS PARA EL BOTÓN HAMBURGUESA (AÑADIDO) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-texto);
    cursor: pointer;
    z-index: 110;
}

/* ----- 1. HERO SECTION ----- */
.hero {
    min-height: 100vh;
    padding: 4rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url("img/Hero.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content {
    color: var(--color-blanco);
}

.hero-content h1 {
    font-family: var(--font-titulos);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* ----- 2. SECCIÓN SOBRE NOSOTROS (NUEVA) ----- */
.about-section {
    padding: 5rem 0;
    background-color: var(--color-blanco);
    position: relative;
    overflow: hidden;
}

.about-section .container {
    position: relative;
    z-index: 2;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -15%;
    width: 450px;
    height: 600px;
    background-color: var(--color-rojo);
    border-radius: 40% 60% 70% 30% / 40% 50% 50% 60%;
    transform: rotate(15deg);
    opacity: 0.7;
    z-index: 1;
    animation: blobAnimation 10s infinite alternate ease-in-out;
}

.about-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -15%;
    width: 500px;
    height: 700px;
    background-color: var(--color-amarillo);
    border-radius: 30% 70% 50% 50% / 60% 40% 60% 40%;
    transform: rotate(-20deg);
    opacity: 0.6;
    z-index: 1;
    animation: blobAnimation 12s infinite alternate-reverse ease-in-out;
}

@keyframes blobAnimation {
    0% {
        transform: scale(1) rotate(15deg);
    }

    50% {
        transform: scale(1.05) rotate(18deg);
    }

    100% {
        transform: scale(1) rotate(15deg);
    }
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #555;
    font-size: 1.05rem;
}

.about-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.about-list li {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-texto);
}

.about-list li i {
    color: var(--color-rojo);
    margin-right: 0.5rem;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ----- 3. NUESTRAS DESTACADAS ----- */
.menu-highlights {
    padding: 5rem 0;
    background-image: url("img/3eraSection.jpg");
}

.menu-highlights .section-title {
    color: var(--color-blanco);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.menu-card {
    background-color: var(--color-blanco);
    border-radius: 10px;
    box-shadow: var(--sombra-suave);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.menu-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.menu-card h3 {
    font-family: var(--font-titulos);
    font-size: 1.6rem;
    letter-spacing: 1px;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.menu-card p {
    padding: 0 1.5rem;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
    height: 60px;
}

.menu-card .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-rojo);
    display: block;
    margin-bottom: 1.5rem;
}

/* ----- 4. TEXTO LLAMATIVO (NUEVA) ----- */
.cta-banner-text {
    padding: 4rem 0;
    background-color: var(--color-amarillo);
    text-align: center;
}

.cta-banner-text h2 {
    font-family: var(--font-titulos);
    font-size: 2.5rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: var(--color-texto);
}

.cta-banner-text p {
    font-size: 1.1rem;
    color: #333;
    max-width: 600px;
    margin: 0 auto;
}

/* ----- 5. DELIVERY Y RETIRO ----- */
.services {
    background-color: var(--color-blanco);
    padding: 5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}

.service-item i {
    font-size: 3rem;
    color: var(--color-rojo);
    margin-bottom: 1rem;
}

.service-item h3 {
    font-family: var(--font-titulos);
    font-size: 2rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.service-item p {
    font-size: 1rem;
    color: #555;
}

/* ----- 6. UBICACIÓN (DISEÑO MEJORADO) ----- */
.location {
    padding: 5rem 0;
    background-color: var(--color-fondo);
    /* Fondo base de la sección */
    position: relative;
    overflow: hidden;
}

.location::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background-color: var(--color-rojo);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    z-index: 0;
}

.location::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-color: var(--color-amarillo);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    z-index: 0;
    opacity: 0.7;
}

.location .container {
    position: relative;
    z-index: 1;
}

.location .section-title {
    display: inline-block;
    background-color: var(--color-rojo);
    color: var(--color-blanco);
    padding: 0.5rem 2rem;
    border-radius: 50px;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.location-map {
    position: relative;
    z-index: 2;
}

.location-map iframe {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 450px;
}

.location-info {
    background: var(--color-blanco);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 2;
}

.location-info::before {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background-color: var(--color-amarillo);
    border-radius: 50%;
    opacity: 0.4;
    z-index: 1;
}

.location-info>* {
    position: relative;
    z-index: 2;
}

.location-info h3 {
    font-family: var(--font-titulos);
    font-size: 2.2rem;
    letter-spacing: 1px;
    color: var(--color-rojo);
    margin-bottom: 1.5rem;
}

.location-info p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-info p i {
    color: var(--color-rojo);
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

.location-info h4 {
    font-family: var(--font-titulos);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.location-info ul {
    list-style: none;
    font-size: 1.1rem;
    padding: 0;
    text-align: center;
}

.location-info li {
    margin-bottom: 0.5rem;
}

.location-info .btn {
    margin-top: 2rem;
}

/* ----- 7. FOOTER (DISEÑO MEJORADO) ----- */
.footer {
    background-color: var(--color-blanco);
    color: var(--color-rojo);
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}


.logo-footer {
    height: 70px;
    margin-bottom: 1rem;

}

.footer-logo p {
    font-size: 0.9rem;
    max-width: 300px;
    color: var(--color-rojo);
}

.footer h4 {
    font-family: var(--font-titulos);
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: var(--color-rojo);
    margin-bottom: 1rem;
}

.footer-links ul,
.footer-contact {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--color-amarillo);
    font-weight: 700;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-rojo);
    text-decoration: underline;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--color-footer-rojo);
}

.footer-contact i {
    color: var(--color-amarillo);
    margin-right: 0.75rem;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-naranja);

}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--color-rojo);
}

/* ----- 7.5. Animación "Scroll Reveal" (AÑADIDO) ----- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ----- 8. ESTILOS RESPONSIVE (MÓVIL) ----- */
@media (max-width: 768px) {

    .section-title.left-align {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .about-grid,
    .menu-grid,
    .services-grid,
    .location-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        text-align: center;
    }

    .about-image {
        grid-row: 1;
    }

    .about-section::before {
        width: 300px;
        height: 400px;
        top: -5%;
        left: -20%;
        opacity: 0.5;
    }

    .about-section::after {
        width: 350px;
        height: 450px;
        bottom: -5%;
        right: -20%;
        opacity: 0.4;
    }

    .services-grid {
        gap: 3rem;
    }

    .menu-card p {
        height: auto;
    }

    /* ----- UBICACIÓN RESPONSIVE ----- */
    .location {
        padding: 3rem 0;
    }

    .location::before,
    .location::after {
        display: none;
    }

    .location-grid {
        text-align: center;
        gap: 2rem;
    }

    .location-map iframe {
        height: 300px;
    }

    .location-info {
        padding: 2.5rem;
        height: auto;
    }

    .location-info p,
    .location-info ul {
        justify-content: center;
        text-align: center;
    }

    /* ----- FOOTER RESPONSIVE ----- */
    .footer-grid {
        text-align: center;
    }

    .logo-footer {
        margin: 0 auto 1rem auto;
    }

    .footer-contact p {
        justify-content: center;
    }

    /* --- INICIO: AÑADIDO PARA MENÚ MÓVIL --- */
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--color-blanco);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        padding: 1rem 0;
        display: block;
        font-size: 1.2rem;
    }

    /* Esta clase la usará JavaScript para MOSTRAR el menú */
    .nav-links.active {
        display: flex;
    }

    /* Muestra el botón hamburguesa en móvil */
    .nav-toggle {
        display: block;
    }

}