/* ============================================
   VARIABLES — Salsa / Elote / Nopal / Tortilla / Carbón / Agua
   ============================================ */

:root {
    --salsa: #E8432D;
    --salsa-dark: #C9331E;
    --elote: #FFC233;
    --nopal: #2E9E5B;
    --nopal-dark: #24824A;
    --tortilla: #FFF7EA;
    --carbon: #2A1C14;
    --agua: #12A3A3;
    --paper: #FFFFFF;
    --text-dark: var(--carbon);
    --text-light: #7A6B5D;
    --border: #F0E4D3;

    --font-display: 'Fredoka', sans-serif;
    --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 4px 16px rgba(42, 28, 20, 0.08);
    --shadow-hover: 0 16px 32px rgba(42, 28, 20, 0.16);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--paper);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    color: var(--carbon);
}

h1 { font-size: 3.1rem; }
h2 { font-size: 2.3rem; }
h3 { font-size: 1.1rem; }

p { color: var(--text-light); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   EYEBROW — estrella decorativa, como en un letrero de taquería
   ============================================ */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--salsa);
    margin-bottom: 10px;
}
.eyebrow::before, .eyebrow::after { content: '✦'; font-size: 0.7rem; color: var(--elote); }
.eyebrow-light { color: var(--elote); }
.eyebrow-light::before, .eyebrow-light::after { color: var(--paper); }

/* ============================================
   BUNTING — papel picado decorativo
   ============================================ */

.bunting {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--tortilla);
    position: relative;
}
.bunting::before {
    content: '';
    position: absolute;
    top: 10px; left: 10%; right: 10%;
    height: 1px;
    background: var(--border);
}
.bunting span {
    width: 0; height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 14px solid var(--salsa);
    flex-shrink: 0;
}
.bunting span:nth-child(3n+2) { border-top-color: var(--elote); }
.bunting span:nth-child(3n) { border-top-color: var(--nopal); }

/* ============================================
   BOTONES
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary { background: var(--salsa); color: var(--paper); box-shadow: 0 6px 16px rgba(232, 67, 45, 0.35); }
.btn-primary:hover { background: var(--salsa-dark); transform: translateY(-2px); }

.btn-outline { border-color: var(--paper); color: var(--paper); }
.btn-outline:hover { background: var(--paper); color: var(--salsa); }

.btn-outline-dark { border-color: var(--carbon); color: var(--carbon); }
.btn-outline-dark:hover { background: var(--carbon); color: var(--paper); }

.btn-light { background: var(--paper); color: var(--salsa); }
.btn-light:hover { background: var(--tortilla); transform: translateY(-2px); }

.btn-card, .btn-order {
    display: inline-block;
    background: var(--carbon);
    color: var(--paper);
    padding: 10px 20px;
    border-radius: 50px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.82rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.btn-card:hover, .btn-order:hover { background: var(--salsa); transform: translateY(-2px); }

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

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

.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { font-size: 1.7rem; }
.logo-text {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.logo-name { font-size: 1.3rem; font-weight: 700; color: var(--salsa); letter-spacing: 0.5px; }

.nav-menu { display: flex; gap: 1.8rem; }
.nav-link {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 3px;
    border-radius: 2px;
    background: var(--elote);
    transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.btn-cta {
    background: var(--salsa);
    color: var(--paper);
    padding: 11px 24px;
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(232, 67, 45, 0.35);
    transition: var(--transition);
    white-space: nowrap;
}
.btn-cta:hover { background: var(--salsa-dark); transform: translateY(-2px); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 3px; border-radius: 2px; background: var(--carbon); transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */

.hero {
    background: linear-gradient(100deg, var(--nopal) 0%, var(--nopal) 46%, var(--salsa) 50%, var(--salsa) 100%);
    padding: 60px 0 0;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 70px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.5);
    color: var(--paper);
    padding: 7px 16px;
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 { color: var(--paper); font-size: 3rem; margin-bottom: 16px; }
.hero-subtitle { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin-bottom: 30px; max-width: 420px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-image {
    position: relative;
    animation: floatSlow 4s ease-in-out infinite;
}
.hero-image img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 24px 50px rgba(0,0,0,0.25);
    border: 6px solid rgba(255,255,255,0.3);
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* ============================================
   CATEGORÍAS
   ============================================ */

.categories-section { padding: 80px 0; background: var(--tortilla); text-align: center; }
.categories-section h2 { margin-bottom: 44px; }

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    text-align: left;
}

.category-card {
    border-radius: var(--radius);
    padding: 22px;
    color: var(--paper);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.category-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }

.cat-salsa { background: var(--salsa); }
.cat-nopal { background: var(--nopal); }
.cat-elote { background: var(--elote); color: var(--carbon); }
.cat-agua { background: var(--agua); }

.category-image {
    width: 100%;
    height: 130px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 14px;
}
.category-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.category-card:hover .category-image img { transform: scale(1.08); }

.category-emoji { font-size: 1.6rem; display: block; margin-bottom: 6px; }
.category-card h3 { color: inherit; margin-bottom: 6px; }
.category-card p { color: inherit; opacity: 0.9; font-size: 0.88rem; margin-bottom: 16px; min-height: 42px; }

/* ============================================
   FAVORITOS / PRODUCTOS
   ============================================ */

.favorites-section { padding: 80px 0; background: var(--paper); text-align: center; }
.favorites-section h2 { margin-bottom: 44px; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: left;
}

.product-card {
    background: var(--tortilla);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.product-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--elote);
    color: var(--carbon);
    padding: 5px 14px;
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.product-image { height: 190px; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.product-card:hover .product-image img { transform: scale(1.08); }

.product-info { padding: 18px 20px; }
.product-info h3 { margin-bottom: 6px; font-size: 1.05rem; }
.product-info p { font-size: 0.88rem; margin-bottom: 14px; min-height: 40px; }

.product-footer { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--salsa); }

/* ============================================
   PROMOCIONES
   ============================================ */

.promo-section { padding: 80px 0; background: var(--carbon); text-align: center; }
.promo-title { color: var(--paper); margin-bottom: 40px; }

.promo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    text-align: left;
}

.promo-card {
    background: linear-gradient(135deg, var(--salsa), var(--salsa-dark));
    border-radius: var(--radius);
    padding: 40px 34px;
    color: var(--paper);
}
.promo-card:nth-child(2) { background: linear-gradient(135deg, var(--nopal), var(--nopal-dark)); }

.promo-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.promo-card p { color: rgba(255,255,255,0.9); margin-bottom: 22px; font-size: 1rem; }

/* ============================================
   EXPERIENCIA
   ============================================ */

.experience-section { padding: 80px 0; background: var(--tortilla); }
.experience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.experience-image img { border-radius: var(--radius); box-shadow: var(--shadow-hover); }
.experience-content h2 { margin-bottom: 18px; }
.experience-content p { font-size: 1.05rem; max-width: 460px; }

/* ============================================
   POR QUÉ ELEGIRNOS
   ============================================ */

.why-section { padding: 80px 0; background: var(--paper); text-align: center; }
.why-section h2 { margin-bottom: 44px; }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: left; }

.why-item { opacity: 0; transform: translateY(20px); transition: var(--transition); }
.why-item.visible { opacity: 1; transform: translateY(0); }

.why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    background: var(--tortilla);
    border-radius: 50%;
    font-size: 1.6rem;
    margin-bottom: 16px;
}
.why-item h3 { margin-bottom: 8px; font-size: 1rem; }
.why-item p { font-size: 0.9rem; }

/* ============================================
   GALERÍA — grid dinámico
   ============================================ */

.gallery-section { padding: 80px 0; background: var(--tortilla); text-align: center; }
.gallery-section h2 { margin-bottom: 40px; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 160px;
    gap: 14px;
}
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; opacity: 0; transform: scale(0.96); transition: var(--transition); }
.gallery-item.visible { opacity: 1; transform: scale(1); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item.big { grid-column: span 2; grid-row: span 2; }

/* ============================================
   RESEÑAS
   ============================================ */

.reviews-section { padding: 80px 0; background: var(--paper); text-align: center; }
.reviews-note { max-width: 520px; margin: 0 auto 24px; font-size: 0.92rem; }

.google-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--tortilla);
    padding: 12px 24px;
    border-radius: 50px;
    margin-bottom: 40px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
}
.google-stars { color: var(--elote); letter-spacing: 2px; }

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: left; }

.review-card { background: var(--tortilla); border-radius: var(--radius); padding: 28px; }
.review-stars { color: var(--elote); letter-spacing: 2px; margin-bottom: 14px; }
.review-card p { color: var(--text-dark); font-style: italic; margin-bottom: 16px; }
.review-card strong { font-family: var(--font-display); font-size: 0.9rem; }

/* ============================================
   UBICACIÓN
   ============================================ */

.location-section { padding: 80px 0; background: var(--nopal); text-align: center; }
.location-section h2 { color: var(--paper); margin-bottom: 10px; }
.location-subtitle { color: rgba(255,255,255,0.9); font-size: 1.05rem; margin-bottom: 44px; }

.location-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    text-align: left;
}
.location-card { background: rgba(255,255,255,0.12); border-radius: var(--radius); padding: 26px; }
.location-icon { font-size: 1.6rem; display: block; margin-bottom: 12px; }
.location-card h3 { color: var(--paper); font-size: 0.95rem; margin-bottom: 6px; }
.location-card p { color: rgba(255,255,255,0.85); font-size: 0.9rem; }

/* ============================================
   CTA PEDIDOS
   ============================================ */

.order-cta { padding: 80px 0; background: var(--elote); text-align: center; }
.order-cta h2 { margin-bottom: 12px; }
.order-cta p { font-size: 1.05rem; color: var(--carbon); opacity: 0.8; margin-bottom: 32px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   FOOTER
   ============================================ */

.footer { background: var(--carbon); color: rgba(255,255,255,0.65); padding: 56px 0 20px; }

.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }

.footer-brand .logo-text { color: rgba(255,255,255,0.6); }
.footer-brand .logo-name { color: var(--elote); }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.9rem; margin: 14px 0 18px; max-width: 300px; }

.footer-socials { display: flex; gap: 16px; }
.footer-socials a { font-size: 0.88rem; transition: var(--transition); }
.footer-socials a:hover { color: var(--elote); }

.footer-column h4 { font-family: var(--font-display); font-size: 0.95rem; color: var(--paper); margin-bottom: 16px; }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-column a { transition: var(--transition); }
.footer-column a:hover { color: var(--elote); }

.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.12);
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.9rem; }

    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 140px; }
    .location-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .experience-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu, .btn-cta { display: none; }
    .hamburger { display: flex; }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--paper);
        padding: 20px 24px;
        gap: 16px;
        box-shadow: var(--shadow-hover);
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

    .hero-container { grid-template-columns: 1fr; padding: 30px 20px 60px; text-align: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-image { order: -1; max-width: 320px; margin: 0 auto; }
    .hero-buttons { justify-content: center; }

    .categories-section, .favorites-section, .promo-section,
    .experience-section, .why-section, .gallery-section,
    .reviews-section, .location-section, .order-cta { padding: 56px 0; }

    .categories-grid, .products-grid, .why-grid,
    .promo-grid, .reviews-grid, .location-grid { grid-template-columns: 1fr; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
    .gallery-item.big { grid-column: span 2; grid-row: span 1; }

    .cta-buttons { flex-direction: column; }
    .cta-buttons .btn { width: 100%; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .navbar-container { padding: 12px 18px; }

    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.4rem; }

    .hero-badge { font-size: 0.76rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 110px; }
}

/* ============================================
   ANIMACIONES / ACCESIBILIDAD
   ============================================ */

a:focus-visible, button:focus-visible { outline: 2px solid var(--salsa); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
