:root {
    --color-principal: #0000ff;
    --bg-body: #f8f9fa;
    --text-main: #111827;
    --text-muted: #6b7280;
    --amarillo-cashea: #FFCC00;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Helvetica Neue', Arial, sans-serif; -webkit-tap-highlight-color: transparent; }
body { background: var(--bg-body); color: var(--text-main); padding-bottom: 80px; }

/* HEADER */
.header { position: sticky; top: 0; background: rgba(255,255,255,0.98); padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.logo-container { flex: 1; }
.logo-img { max-height: 40px; width: auto; object-fit: contain; }
.logo-txt { font-size: 20px; font-weight: 900; letter-spacing: -0.5px; text-transform: uppercase; }

.cart-icon { position: relative; cursor: pointer; }
.cart-icon svg { width: 26px; height: 26px; }
.cart-badge { position: absolute; top: -5px; right: -8px; background: var(--color-principal); color: #fff; font-size: 11px; font-weight: bold; width: 20px; height: 20px; border-radius: 50%; display: flex; justify-content: center; align-items: center; }

/* HISTORIAS (CATEGORÍAS) */
.stories-wrapper { background: #fff; padding: 20px 15px; display: flex; gap: 15px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid #eee; }
.stories-wrapper::-webkit-scrollbar { display: none; }
.story { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 72px; cursor: pointer; transition: opacity 0.3s; }
.story.inactive { opacity: 0.5; }
.circle { width: 65px; height: 65px; border-radius: 50%; padding: 2px; border: 2px solid #ccc; transition: border-color 0.3s; display: flex; justify-content: center; align-items: center; background: #fff; overflow: hidden; }
.story:not(.inactive) .circle { border-color: var(--color-principal); }
.circle img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.story-txt { font-size: 10px; font-weight: 700; text-align: center; color: var(--text-main); text-transform: uppercase; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.2; width: 100%; }

/* TARJETAS HORIZONTALES (LIST VIEW) */
.catalogo { padding: 15px; display: flex; flex-direction: column; gap: 12px; }
.prod-card { background: #fff; border-radius: 12px; padding: 15px; display: flex; gap: 15px; align-items: center; box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid #f3f4f6; }
.prod-img-box { width: 90px; height: 90px; flex-shrink: 0; background: #fff; border-radius: 8px; padding: 5px; border: 1px solid #eee; }
.prod-img-box img { width: 100%; height: 100%; object-fit: contain; }
.prod-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.prod-cat { font-size: 10px; color: var(--text-muted); font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.prod-name { font-size: 14px; font-weight: 900; line-height: 1.2; margin-bottom: 5px; color: var(--text-main); }
.prod-vol { font-size: 11px; color: var(--text-muted); font-weight: 500; margin-bottom: 8px; }

/* PRECIOS - DÓLAR PROTAGONISTA */
.price-usd { font-size: 18px; font-weight: 900; color: var(--text-main); display: flex; align-items: center; gap: 6px; }
.price-bs { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.tag-oferta { background: #dcfce7; color: #166534; font-size: 9px; padding: 2px 6px; border-radius: 4px; font-weight: 800; text-transform: uppercase; margin-bottom: 5px; display: inline-block; border: 1px solid #bbf7d0;}

/* CASHEA PILL */
.cashea-pill { background: var(--amarillo-cashea); color: #111; font-size: 10px; font-weight: 900; padding: 4px 8px; border-radius: 6px; display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; margin-bottom: 10px; }
.cashea-pill img { height: 10px; }

/* BOTÓN AGREGAR */
.btn-add { background: var(--color-principal); color: #fff; border: none; width: 100%; padding: 10px; border-radius: 8px; font-weight: 800; font-size: 12px; text-transform: uppercase; cursor: pointer; transition: 0.2s; display: flex; justify-content: center; align-items: center; gap: 5px;}
.btn-add:active { transform: scale(0.97); }
.btn-add.added { background: #16a34a; color: #fff; }

/* FOOTER & BOTON FLOTANTE */
.footer { padding: 40px 20px; text-align: center; border-top: 1px solid #eee; background: #fff; margin-top: 20px;}
.social-icons { display: flex; justify-content: center; gap: 20px; margin-bottom: 15px; }
.social-icons a { color: var(--text-muted); text-decoration: none; }
.social-icons svg { width: 24px; height: 24px; fill: currentColor; }
.copyright { font-size: 11px; color: var(--text-muted); line-height: 1.5; }

.btn-flotante-caja { position: fixed; bottom: 20px; left: 20px; right: 20px; background: #111; color: #fff; text-align: center; padding: 16px; border-radius: 12px; font-weight: 900; text-transform: uppercase; text-decoration: none; box-shadow: 0 5px 15px rgba(0,0,0,0.2); z-index: 900; display: none; align-items: center; justify-content: center; gap: 8px;}