*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #ffffff;
    color: #222;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
}

.hero {
    background:
        linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.10)),
        url("banner.jpeg") center center / cover no-repeat;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    background: rgba(255,255,255,0.88);
    padding: 40px 50px;
    border-radius: 14px;
    text-align: center;
    max-width: 600px;
}

.hero-content h1 {
    color: var(--verde-marca);
    font-size: 42px;
    margin-bottom: 10px;
}

.hero-content p {
    color: var(--texto-oscuro);
    font-size: 18px;
    margin-bottom: 25px;
}

.section {
    padding: 60px 40px;
    max-width: 1100px;
    margin: auto;
}

.bg {
    background: #f4f4f4;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,.1);
}

.pedido-form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, select, textarea {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

button {
    background: #111;
    color: #d4af37;
    border: none;
    padding: 14px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background: #000;
}

.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,.3);
}

footer {
    background: #111;
    color: #d4af37;
    text-align: center;
    padding: 15px;
}
.sucursal {
    background: white;
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    border-left: 5px solid var(--verde-marca);
    transition: all 0.25s ease;
    position: relative;
}

.sucursal:hover {
    background: var(--verde-claro);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* Estado ACTIVO (cuando cambia el mapa) */
.sucursal.activa {
    background: var(--verde-claro);
    border-left: 5px solid var(--amarillo-maiz);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.sucursal-botones a {
    transition: 0.25s ease;
}

.sucursal-botones a:hover {
    transform: scale(1.05);
}
.sucursal::after {
    content: "Ver mapa";
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 12px;
    color: var(--verde-marca);
    opacity: 0;
    transition: 0.2s;
}

.sucursal:hover::after {
    opacity: 1;
}


.sucursales {
    background: var(--blanco-principal);
}

.sucursales-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: stretch;
}

.lista-sucursales {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sucursal {
    cursor: pointer;
}

.sucursal.activa {
    background: var(--verde-claro);
    border-left: 5px solid var(--amarillo-maiz);
}


.mapa iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
    border-radius: 12px;
}
.btn-principal {
    background: var(--amarillo-maiz);
    color: var(--texto-oscuro);
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn-principal:hover {
    background: #e6d44f;
}
@media (max-width: 768px) {
    .sucursales-container {
        grid-template-columns: 1fr;
    }

    @media (max-width: 768px) {
    .producto.principal {
        order: -1; /* Tortillas siempre primero */
    }
}

    .hero {
        height: auto;
        padding: 80px 15px;
    }

    .hero-content h1 {
        font-size: 32px;
    }
}
.mapa {
    position: relative;
}

.mapa iframe {
    transition: opacity 0.4s ease;
    opacity: 1;
}

.mapa iframe.fade {
    opacity: 0;
}
/* HEADER */
.header {
   background-color: #259944;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-text {
    color: white;
    font-size: 22px;
    font-weight: 600;
}
/* LINKS DEL MENÚ */
/* NAV DESKTOP */
/* Alinear todos los items del menú */
.nav {
    display: flex;
    align-items: center;   /* 🔥 CLAVE */
    gap: 20px;
    z-index: 4000;
}


.nav a {
    color: white;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

/* BOTÓN HAMBURGUESA (OCULTO EN DESKTOP) */
.menu-toggle {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}
@media (max-width: 768px) {

    .nav a {
        color: white;
        background: transparent;
    }

    .nav a:hover {
        background: rgba(255,255,255,0.15);
    }
    .nav a.activo::after {
        bottom: 0;
        left: 24px;          /* alineada con el texto */
        width: 40px;         /* barra corta, elegante */
    }

}
@media (max-width: 768px) {

    .menu-sistema {
        margin-top: 5px;
        background: rgba(255,255,255,0.25);
    }
}
.nav a.activo {
    background: rgba(255,255,255,0.25);
    border-radius: 6px;
    font-weight: 600;
}
.menu-toggle {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* cuando el menú está abierto */
.menu-toggle.activo {
    transform: rotate(90deg);
}

/* =========================
   MENÚ RESPONSIVE (MÓVIL)
   ========================= */
@media (max-width: 768px) {

    /* Mostrar hamburguesa */
    .menu-toggle {
        display: block;
        font-size: 30px;
        color: white;
        cursor: pointer;
        z-index: 2000;
    }

    /* Ocultar menú horizontal */
    .nav {
        position: absolute;
        top: 65px;
        left: 0;
        width: 100%;
        background: #259944;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 1500;
    }

    /* Menú abierto */
    .nav.activo {
        max-height: 300px;
    }

    .nav a {
        padding: 15px;
        border-top: 1px solid rgba(255,255,255,0.2);
    }
}
.menu-destacado {
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-menu {
    background: #F2E266; /* amarillo maíz */
    color: #1F1F1F;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
}
.horario-header {
    display: block;
    font-size: 12px;
    color: #eaf7ee;
}
.horario-hero {
    font-size: 15px;
    margin-bottom: 20px;
    color: #1F1F1F;
    font-weight: 500;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.producto {
    background: #ffffff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.2s ease;
}

.producto:hover {
    transform: translateY(-4px);
}

/* PRODUCTO PRINCIPAL: TORTILLAS */
.producto.principal {
    background: #F2E266; /* amarillo maíz */
    border: 2px solid #e6d44f;
}

.producto.principal h3 {
    font-size: 20px;
    font-weight: 700;
}

.producto h3 {
    margin-bottom: 8px;
}

.producto p {
    font-size: 14px;
}
/* Acceso al sistema */
.menu-sistema {
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
}
/* =========================
   IR AL SISTEMA - MÓVIL
   ========================= */
@media (max-width: 768px) {

    .menu-sistema {
        display: block;                /* ASEGURA que se vea */
        background: #ffffff;           /* Fondo blanco */
        color: #259944;                /* Verde de la marca */
        margin: 10px;
        padding: 14px;
        text-align: center;
        border-radius: 8px;
        font-weight: 700;
        border: 2px solid #259944;
    }

    .menu-sistema:hover {
        background: #eaf7ee;
    }
}
@media (max-width: 768px) {

    /* Botón hamburguesa */
    .menu-toggle {
        display: block;
        font-size: 30px;
        color: white;
        cursor: pointer;
        z-index: 3000;
    }

    /* Menú desplegable */
    .nav {
        position: fixed;
        top: 65px;
        left: 0;
        width: 100%;
        height: calc(100vh - 65px);
        background: #259944;
        flex-direction: column;
        overflow-y: auto;           /* SCROLL */
        max-height: 0;
        transition: max-height 0.3s ease;
        z-index: 2000;
    }

    /* Menú abierto */
    .nav.activo {
        max-height: calc(100vh - 65px);
    }

    .nav a {
        padding: 18px;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    /* Botón sistema visible */
    .menu-sistema {
        margin: 15px;
        background: #ffffff;
        color: #259944;
        text-align: center;
        border-radius: 8px;
        font-weight: 700;
        border: 2px solid #259944;
    }
}
body.menu-abierto {
    overflow: hidden;
}
.nav a {
    display: flex;             /* 🔥 CLAVE */
    align-items: center;       /* 🔥 CLAVE */
    height: 40px;              /* MISMA ALTURA */
    line-height: 1;
    padding: 0 12px;
}
.badge-menu {
    display: inline-flex;
    align-items: center;
    height: 20px;
    margin-left: 6px;
}
.menu-sistema {
    display: flex;
    align-items: center;
    height: 40px;          /* MISMA ALTURA */
    padding: 0 14px;
}
/* =========================
   MENÚ FINAL LIMPIO
   ========================= */

/* HEADER */
.header {
    background-color: #259944;
    padding: 10px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 3000;
}

/* NAV DESKTOP */
.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav a {
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 12px;
    color: white;
    text-decoration: none;
    font-weight: 500;
}

/* BOTÓN SISTEMA DESKTOP */
.menu-sistema {
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    font-weight: 600;
}

/* BOTÓN HAMBURGUESA */
.menu-toggle {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}



/* =========================
   OVERLAY
   ========================= */
.menu-overlay {
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    height: calc(100vh - 65px);
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 3000;
}

.menu-overlay.activo {
    display: block;
}

/* =========================
   MENÚ MÓVIL DEFINITIVO
   ========================= */

.menu-toggle {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

@media (max-width: 768px) {

    .menu-toggle {
        display: block;
        z-index: 9999;
    }

    .nav {
        position: fixed;
        top: 65px;
        left: 0;
        width: 100%;
        height: calc(100vh - 65px);
        background: #259944;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 9998;
    }

    .nav.activo {
        transform: translateY(0);
    }

    .nav a {
        padding: 18px;
        font-size: 16px;
        color: white;
        text-decoration: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .menu-sistema {
        margin: 15px;
        background: #ffffff;
        color: #259944;
        text-align: center;
        font-weight: 700;
        border-radius: 8px;
        border: 2px solid #259944;
    }
}
@media (max-width: 768px) {

    /* Contenedor del menú */
    .nav {
        align-items: flex-start;   /* 🔥 clave */
        padding-top: 20px;
    }

    /* Links del menú */
    .nav a {
        width: 100%;
        justify-content: flex-start; /* texto a la izquierda */
        text-align: left;
        padding-left: 24px;          /* margen visual */
    }

    /* Pedidos + badge */
    .menu-destacado {
        justify-content: flex-start;
    }

    /* Badge "Pedido rápido" */
    .badge-menu {
        margin-left: 10px;
    }

    /* Botón Ir al sistema */
    .menu-sistema {
        width: calc(100% - 48px);
        margin: 20px 24px 0;
        text-align: center; /* este puede quedarse centrado */
    }
}
/* =========================
   INDICADOR DE MENÚ ACTIVO
   ========================= */

.nav a {
    position: relative;
}

/* Barra inferior */
.nav a.activo::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #F2E266; /* amarillo maíz */
    border-radius: 2px;
}

