/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Gustitos Chickens Brand Colors */
    --red-primary: #D41920;
    --red-dark: #A81318;
    --red-light: #FF2D35;
    --yellow-primary: #F5A623;
    --yellow-light: #FFD166;
    --yellow-dark: #CC8400;
    --gold: #E8A820;
    --black: #0D0D0D;
    --dark-bg: #111111;
    --dark-card: #1A1A1A;
    --dark-hover: #222222;
    --dark-surface: #161616;
    --white: #FFFFFF;
    --gray-100: #F5F5F5;
    --gray-200: #E0E0E0;
    --gray-300: #B0B0B0;
    --gray-400: #808080;
    --gray-500: #555555;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50%;

    /* Transitions */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: 0.2s var(--ease-out);
    --transition-med: 0.35s var(--ease-out);
    --transition-slow: 0.5s var(--ease-out);
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--black);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--red-primary);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--red-light);
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(13,13,13,0.98) 0%, rgba(13,13,13,0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 25, 32, 0.2);
    padding: var(--spacing-sm) var(--spacing-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 480px;
    margin: 0 auto;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-circle {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--red-primary), var(--yellow-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 2px 12px rgba(212, 25, 32, 0.4);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { box-shadow: 0 2px 12px rgba(212, 25, 32, 0.4); }
    50% { box-shadow: 0 2px 20px rgba(212, 25, 32, 0.7); }
}

.brand-name {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--white);
    line-height: 1.1;
}

.brand-name span {
    color: var(--yellow-primary);
}

.brand-sub {
    font-size: 9px;
    color: var(--red-primary);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
    padding: 4px 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: #22C55E;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.status-text {
    font-size: 10px;
    font-weight: 700;
    color: #22C55E;
    letter-spacing: 1px;
}

/* ===== HERO BANNER ===== */
.hero-banner {
    position: relative;
    margin: var(--spacing-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red-primary) 40%, #8B0000 100%);
    padding: var(--spacing-xl) var(--spacing-lg);
    min-height: 180px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(245, 166, 35, 0.3);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(245, 166, 35, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(245, 166, 35, 0.2);
    border: 1px solid var(--yellow-primary);
    color: var(--yellow-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: var(--spacing-sm);
    animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(245, 166, 35, 0.2); }
    50% { box-shadow: 0 0 16px rgba(245, 166, 35, 0.5); }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    margin-bottom: var(--spacing-sm);
}

.hero-price {
    display: inline-block;
    background: var(--yellow-primary);
    color: var(--black);
    font-size: 14px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.4);
}

.hero-flames {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.flame {
    font-size: 32px;
    animation: flameFloat 2s ease-in-out infinite;
}

.flame-2 {
    animation-delay: 0.3s;
    font-size: 24px;
    opacity: 0.8;
}

.flame-3 {
    animation-delay: 0.6s;
    font-size: 20px;
    opacity: 0.6;
}

@keyframes flameFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.1); }
}

/* ===== SEARCH BAR ===== */
.search-bar {
    margin: 0 var(--spacing-md) var(--spacing-md);
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    gap: var(--spacing-sm);
    transition: border-color var(--transition-fast);
}

.search-bar:focus-within {
    border-color: var(--red-primary);
    box-shadow: 0 0 0 3px rgba(212, 25, 32, 0.1);
}

.search-icon {
    font-size: 16px;
    opacity: 0.5;
}

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    width: 100%;
    font-weight: 300;
}

.search-bar input::placeholder {
    color: var(--gray-400);
}

/* ===== CATEGORIES NAV ===== */
.categories-nav {
    position: sticky;
    top: 58px;
    z-index: 90;
    background: linear-gradient(180deg, rgba(13,13,13,0.98) 0%, rgba(13,13,13,0.9) 80%, rgba(13,13,13,0) 100%);
    padding: var(--spacing-sm) 0 var(--spacing-md);
}

.categories-scroll {
    display: flex;
    gap: var(--spacing-sm);
    overflow-x: auto;
    padding: 0 var(--spacing-md);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.cat-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--gray-300);
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.cat-btn:hover {
    background: var(--dark-hover);
    border-color: var(--red-primary);
    color: var(--white);
}

.cat-btn.active {
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
    border-color: var(--red-primary);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(212, 25, 32, 0.3);
}

.cat-emoji {
    font-size: 14px;
}

/* ===== MENU CONTENT ===== */
.menu-content {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 var(--spacing-md) var(--spacing-2xl);
}

/* ===== SECTION HEADER ===== */
.section-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red-primary), transparent);
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--yellow-primary);
    letter-spacing: 2px;
    white-space: nowrap;
    text-shadow: 0 0 20px rgba(245, 166, 35, 0.2);
}

/* ===== SECTION IMAGE PLACEHOLDER ===== */
.section-image-placeholder {
    width: 100%;
    height: 120px;
    background: var(--dark-card);
    border: 2px dashed rgba(245, 166, 35, 0.3);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    transition: border-color var(--transition-fast);
}

.section-image-placeholder:hover {
    border-color: var(--yellow-primary);
}

.section-image-placeholder span {
    font-size: 14px;
    color: var(--gray-400);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ===== DISHES GRID ===== */
.dishes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

/* ===== DISH CARD ===== */
.dish-card {
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-med);
    position: relative;
}

.dish-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 25, 32, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 25, 32, 0.1);
}

.dish-card.hidden {
    display: none;
}

.dish-img-placeholder {
    width: 100%;
    height: 110px;
    background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.dish-img-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

.dish-img-placeholder span {
    font-size: 11px;
    color: var(--gray-500);
    text-align: center;
    padding: var(--spacing-sm);
    line-height: 1.4;
}

.dish-info {
    padding: var(--spacing-sm) var(--spacing-md) var(--spacing-md);
}

.dish-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
    line-height: 1.3;
}

.dish-desc {
    font-size: 11px;
    color: var(--gray-400);
    line-height: 1.5;
    font-weight: 300;
    margin-bottom: var(--spacing-sm);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dish-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dish-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--yellow-primary);
    text-shadow: 0 0 12px rgba(245, 166, 35, 0.2);
}

.add-btn {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
    border: none;
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(212, 25, 32, 0.3);
}

.add-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(212, 25, 32, 0.5);
}

.add-btn:active {
    transform: scale(0.95);
}

/* ===== COMBO CARDS ===== */
.combo-card {
    border: 1px solid rgba(245, 166, 35, 0.2);
}

.combo-card:hover {
    border-color: rgba(245, 166, 35, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 166, 35, 0.15);
}

.combo-placeholder {
    background: linear-gradient(135deg, #1a1508 0%, #2a2010 100%) !important;
}

.combo-badge {
    display: inline-block;
    background: rgba(245, 166, 35, 0.15);
    color: var(--yellow-light);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 6px;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 16px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-fast);
    text-decoration: none;
    animation: whatsappBounce 3s ease-in-out infinite;
}

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

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-surface);
    border-top: 1px solid rgba(212, 25, 32, 0.2);
    padding: var(--spacing-2xl) var(--spacing-lg);
    text-align: center;
}

.footer-brand {
    margin-bottom: var(--spacing-md);
}

.footer-logo {
    font-size: 36px;
    display: block;
    margin-bottom: var(--spacing-sm);
}

.footer-brand h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 2px;
}

.footer-brand p {
    font-size: 11px;
    color: var(--red-primary);
    font-weight: 600;
    letter-spacing: 2px;
}

.footer-tagline {
    font-size: 13px;
    color: var(--gray-400);
    font-style: italic;
    margin-bottom: var(--spacing-lg);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-link:hover {
    border-color: var(--red-primary);
    background: rgba(212, 25, 32, 0.1);
    transform: translateY(-2px);
}

.footer-copy {
    font-size: 11px;
    color: var(--gray-500);
    margin-bottom: var(--spacing-xs);
}

.footer-dev {
    font-size: 12px;
    color: var(--yellow-primary);
    font-weight: 600;
}

/* ===== MENU SECTION ANIMATION ===== */
.menu-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSection 0.6s var(--ease-out) forwards;
}

.menu-section:nth-child(1) { animation-delay: 0.1s; }
.menu-section:nth-child(2) { animation-delay: 0.2s; }
.menu-section:nth-child(3) { animation-delay: 0.3s; }
.menu-section:nth-child(4) { animation-delay: 0.4s; }
.menu-section:nth-child(5) { animation-delay: 0.5s; }
.menu-section:nth-child(6) { animation-delay: 0.6s; }
.menu-section:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeInSection {
    to { opacity: 1; transform: translateY(0); }
}

/* ===== DISH CARD STAGGER ===== */
.dish-card {
    opacity: 0;
    animation: fadeInCard 0.4s var(--ease-out) forwards;
}

.dishes-grid .dish-card:nth-child(1) { animation-delay: 0.1s; }
.dishes-grid .dish-card:nth-child(2) { animation-delay: 0.15s; }
.dishes-grid .dish-card:nth-child(3) { animation-delay: 0.2s; }
.dishes-grid .dish-card:nth-child(4) { animation-delay: 0.25s; }
.dishes-grid .dish-card:nth-child(5) { animation-delay: 0.3s; }
.dishes-grid .dish-card:nth-child(6) { animation-delay: 0.35s; }
.dishes-grid .dish-card:nth-child(7) { animation-delay: 0.4s; }
.dishes-grid .dish-card:nth-child(8) { animation-delay: 0.45s; }

@keyframes fadeInCard {
    to { opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 380px) {
    .dishes-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 22px;
    }
    .brand-name {
        font-size: 12px;
    }
}

@media (min-width: 481px) {
    body {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: #080808;
    }
    
    .header {
        max-width: 480px;
        width: 100%;
    }

    .hero-banner,
    .search-bar,
    .menu-content {
        max-width: 480px;
        width: 100%;
    }
    
    .categories-nav {
        max-width: 480px;
        width: 100%;
    }

    .footer {
        max-width: 480px;
        width: 100%;
    }

    /* Device frame effect for desktop */
    .header,
    .hero-banner,
    .search-bar,
    .categories-nav,
    .menu-content,
    .footer {
        border-left: 1px solid rgba(255,255,255,0.05);
        border-right: 1px solid rgba(255,255,255,0.05);
    }
}

/* ===== SECTION HIDDEN STATE ===== */
.menu-section.section-hidden {
    display: none;
}

/* ===== SELECTION ===== */
::selection {
    background: var(--red-primary);
    color: var(--white);
}

/* ===== FOCUS VISIBLE ===== */
*:focus-visible {
    outline: 2px solid var(--yellow-primary);
    outline-offset: 2px;
}
