:root {
    --primary: #FF4500; /* Se inyecta dinámicamente, pero este es el fallback */
    --text-dark: #2d3436;
    --text-medium: #636e72;
    --text-light: #b2bec3;
    --bg-body: #f7f9fc;
    --bg-card: #ffffff;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-xl: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body { 
    margin: 0; 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
    background: var(--bg-body); 
    color: var(--text-dark); 
    padding-bottom: 100px; /* Espacio para el carrito flotante */
}

/* --- HEADER GLASSMORPHISM --- */
.app-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.brand-area { display: flex; align-items: center; gap: 12px; }
.brand-logo { 
    width: 42px; height: 42px; border-radius: 12px; 
    object-fit: cover; box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}
.brand-name { font-weight: 800; font-size: 1.15rem; margin: 0; letter-spacing: -0.5px; color: var(--text-dark); }
.brand-meta { color: var(--text-medium); font-size: 0.75rem; font-weight: 500; margin-top: 2px; }

.btn-share-native {
    background: rgba(0,0,0,0.04);
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.2s;
}
.btn-share-native:active { transform: scale(0.9); }

/* --- NAVEGACIÓN CATEGORÍAS (ADN Propio) --- */
.cat-scroll {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 15px 20px;
    background: var(--bg-body); /* Se funde con el fondo */
    position: sticky;
    top: 73px; /* Altura aprox del header */
    z-index: 90;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
}
.cat-scroll::-webkit-scrollbar { display: none; }

.cat-pill {
    background: white;
    padding: 10px 20px;
    border-radius: 30px; /* Píldora completa */
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
    color: var(--text-medium);
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    transform: scale(1);
}

.cat-pill.active {
    background: var(--text-dark); /* ADN: Negro sólido o Primary */
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* --- PRODUCT CARDS (ADN AkiMenu) --- */
.menu-section { padding: 10px 20px; scroll-margin-top: 140px; /* Offset para el scroll */ }
.section-title { 
    font-size: 1.4rem; font-weight: 800; margin: 25px 0 15px; 
    color: var(--text-dark); letter-spacing: -0.5px; 
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 15px;
    margin-bottom: 18px;
    display: flex;
    gap: 15px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.02);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.product-card:active { transform: scale(0.98); }

.prod-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.prod-name { font-weight: 700; margin: 0 0 6px; font-size: 1.05rem; color: var(--text-dark); }
.prod-desc { 
    font-size: 0.85rem; color: var(--text-medium); margin: 0 0 12px; 
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; 
    line-height: 1.4;
}
.prod-price { 
    font-weight: 800; color: var(--text-dark); font-size: 1.1rem;
    background: rgba(0,0,0,0.04); padding: 4px 10px; border-radius: 8px;
    align-self: flex-start;
}

.prod-img { 
    width: 110px; height: 110px; border-radius: var(--radius-md); 
    object-fit: cover; background: #eee; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

/* --- CARRITO FLOTANTE (ADN: Floating Bar) --- */
.floating-cart {
    position: fixed;
    bottom: 30px; left: 20px; right: 20px;
    background: var(--text-dark); /* Elegante oscuro */
    color: white;
    padding: 18px 25px;
    border-radius: 50px; /* Super redondo */
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    z-index: 1000;
    font-weight: 600;
    cursor: pointer;
    transform: translateY(150%) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
}
.floating-cart.visible { transform: translateY(0) scale(1); }

/* --- MODAL (Sheet Bottom) --- */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 2000;
    display: none; align-items: flex-end; backdrop-filter: blur(3px);
}
.modal-overlay.open { display: flex; }
.modal-sheet {
    background: var(--bg-card);
    width: 100%;
    border-radius: 30px 30px 0 0;
    padding: 30px 25px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.btn-primary {
    background: var(--primary); color: white; border: none; width: 100%;
    padding: 16px; border-radius: 16px; font-size: 1.1rem; font-weight: 700; 
    cursor: pointer; box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
    transition: transform 0.2s;
}
.btn-primary:active { transform: scale(0.98); }