/* =====================================================
   LA SALA — Cliente CSS (rediseño moderno v2)
===================================================== */

:root {
    /* === Paleta LA SALA Mérida === */
    --turquesa:       #95e0d9;
    --turquesa-soft:  #b8eae3;
    --turquesa-dark:  #2dbfb0;
    --amarillo:       #e8b347;
    --amarillo-soft:  #f4cc6b;
    --amarillo-dark:  #c69327;
    --negro:          #0a0a0a;
    --negro-soft:     #27272a;

    /* === Aliases semánticos === */
    --primary: var(--negro);
    --primary-dark: #000;
    --primary-light: var(--turquesa-soft);
    --accent: var(--amarillo);
    --success: #16a34a;
    --danger: #dc2626;
    --bg: #fafaf7;
    --surface: #ffffff;
    --surface-2: #f5f5f1;
    --border: #e7e5e0;
    --text: var(--negro);
    --text-2: #3f3f46;
    --muted: #71717a;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --shadow: 0 4px 14px rgba(0,0,0,.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,.12);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --header-h: 64px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: var(--text); text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* =====================================================
   PROMO BANNER
===================================================== */
.promo-banner {
    background: var(--turquesa);
    color: var(--negro);
    padding: 9px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border-bottom: 2px solid var(--negro);
}
.promo-banner strong { color: var(--negro); font-weight: 800; }
.promo-icon { font-size: 14px; }

/* =====================================================
   HEADER
===================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--turquesa);
    border-bottom: 2px solid var(--negro);
    height: var(--header-h);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: flex; align-items: center;
    height: 100%;
}
.brand img.brand-logo {
    height: 48px;
    width: auto;
    display: block;
}

.nav-actions { display: flex; gap: 8px; }
.cart-btn {
    width: 44px; height: 44px;
    background: var(--negro);
    border: 2px solid var(--negro);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--amarillo);
    position: relative;
    transition: background .15s, transform .1s;
}
.cart-btn:hover { background: #1a1a1a; }
.cart-btn:active { transform: scale(.94); }
.cart-badge {
    position: absolute; top: -4px; right: -4px;
    background: var(--amarillo);
    color: var(--negro);
    font-size: 11px;
    font-weight: 800;
    min-width: 20px; height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid var(--negro);
    line-height: 1;
}

/* =====================================================
   MAIN
===================================================== */
.site-main { min-height: calc(100vh - 60px); padding-bottom: 60px; }

/* =====================================================
   HERO
===================================================== */
.hero {
    position: relative;
    background: var(--turquesa);
    color: var(--negro);
    overflow: hidden;
    padding: 56px 22px 60px;
    text-align: center;
}
.hero-bg {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 18% 30%, rgba(232,179,71,.30), transparent 55%),
        radial-gradient(circle at 82% 70%, rgba(255,255,255,.30), transparent 55%);
    pointer-events: none;
}
.hero-content { position: relative; max-width: 720px; margin: 0 auto; }

/* Si la página de inicio quiere mostrar el logo grande en el hero */
.hero-logo {
    max-width: 380px;
    width: 75%;
    height: auto;
    margin: 0 auto 22px;
    display: block;
}

/* Imagen destacada / publicidad / recomendado del día */
.hero-feature {
    max-width: 560px;
    margin: 0 auto 22px;
    border: 3px solid var(--negro);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 6px 6px 0 var(--negro);
    background: #fff;
    transition: transform .15s, box-shadow .15s;
}
.hero-feature:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 var(--negro);
}
.hero-feature img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.hero-eyebrow {
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--negro);
    font-weight: 700;
    margin-bottom: 10px;
    opacity: .65;
}
.hero-title {
    font-size: clamp(38px, 9vw, 64px);
    font-weight: 900;
    margin: 0 0 10px;
    letter-spacing: -1.5px;
    line-height: 1;
    color: var(--amarillo);
    text-shadow:
        3px 3px 0 var(--negro),
        -1px -1px 0 var(--negro),
         1px -1px 0 var(--negro),
        -1px  1px 0 var(--negro);
}
.hero-sub {
    font-size: 15.5px;
    color: var(--negro);
    margin: 0 auto 22px;
    max-width: 480px;
    font-weight: 500;
    opacity: .85;
}
.hero-meta {
    display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.hero-badge {
    background: var(--negro);
    color: var(--turquesa);
    border: none;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 12.5px;
    font-weight: 600;
}

/* =====================================================
   CATEGORÍAS STICKY (chips horizontales)
===================================================== */
.cat-nav {
    position: sticky;
    top: var(--header-h);
    z-index: 40;
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--border);
    margin-top: 0;
}
.cat-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
    padding: 12px 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-chip {
    flex-shrink: 0;
    padding: 9px 18px;
    background: var(--surface-2);
    color: var(--text-2);
    border-radius: 99px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all .15s;
    border: 2px solid transparent;
}
.cat-chip:hover { background: var(--turquesa-soft); color: var(--negro); }
.cat-chip.active {
    background: var(--negro);
    color: var(--amarillo);
    border-color: var(--negro);
}

/* =====================================================
   CATÁLOGO
===================================================== */
.catalog { max-width: 1200px; margin: 0 auto; padding: 0 18px; }
.cat-section { padding: 30px 0 8px; scroll-margin-top: 130px; }
.cat-head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 18px;
}
.cat-head h2 {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -.5px;
}
.cat-count {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

.prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.prod-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.prod-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--negro);
}
.prod-card:active { transform: translateY(-1px); }
.prod-img {
    aspect-ratio: 4/3;
    background: var(--surface-2);
    overflow: hidden;
    position: relative;
}
.prod-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.prod-card:hover .prod-img img { transform: scale(1.05); }
.prod-img-empty {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 56px;
    background: linear-gradient(135deg, #fafaf9, #e7e5e4);
    color: var(--muted);
}
.prod-body {
    padding: 14px 16px 16px;
    display: flex; flex-direction: column;
    flex: 1;
}
.prod-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.3;
    color: var(--text);
}
.prod-desc {
    font-size: 13.5px;
    color: var(--muted);
    margin: 0 0 14px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.prod-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}
.prod-price {
    font-size: 19px;
    font-weight: 900;
    color: var(--negro);
    letter-spacing: -.3px;
}
.btn-add {
    width: 40px; height: 40px;
    border: 2px solid var(--negro);
    background: var(--turquesa);
    color: var(--negro);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: transform .12s, background .15s;
    box-shadow: 2px 2px 0 var(--negro);
}
.btn-add:hover { background: var(--amarillo); }
.btn-add:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--negro); }
.btn-add.added {
    background: var(--success);
    color: #fff;
    animation: addedPop .35s;
}
@keyframes addedPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* =====================================================
   FAB CARRITO (botón flotante)
===================================================== */
.cart-fab {
    position: fixed;
    bottom: 22px; right: 22px;
    z-index: 45;
    background: var(--negro);
    color: var(--amarillo);
    padding: 14px 20px;
    border-radius: 99px;
    box-shadow: 0 8px 24px rgba(0,0,0,.30);
    display: flex; align-items: center; gap: 10px;
    font-weight: 700;
    font-size: 15px;
    transition: transform .15s;
    animation: fabIn .3s;
    border: 2px solid var(--amarillo);
}
@keyframes fabIn {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: none; opacity: 1; }
}
.cart-fab:hover { transform: translateY(-2px); background: #1a1a1a; }
.cart-fab:active { transform: scale(.96); }
.fab-count {
    background: var(--amarillo);
    color: var(--negro);
    min-width: 22px; height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    font-size: 12px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    line-height: 1;
}

/* =====================================================
   PÁGINAS GENÉRICAS (carrito, checkout)
===================================================== */
.page-head {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 18px 8px;
}
.page-head h1 {
    font-size: 30px;
    font-weight: 800;
    margin: 6px 0 0;
    letter-spacing: -.5px;
}
.page-sub {
    color: var(--muted);
    margin: 4px 0 0;
    font-size: 14.5px;
}
.back-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 0;
}
.back-link:hover { color: var(--text); }

/* =====================================================
   CARRITO
===================================================== */
.cart-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 18px 80px;
}
.empty-state-big {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
    margin: 24px 0;
    border: 1px solid var(--border);
}
.empty-state-big .empty-icon {
    font-size: 64px;
    margin-bottom: 12px;
}
.empty-state-big h3 {
    font-size: 22px;
    margin: 0 0 6px;
    font-weight: 700;
}
.empty-state-big p {
    color: var(--muted);
    margin: 0 0 22px;
}

.free-ship-bar {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin: 16px 0;
    border: 1px solid #fde68a;
}
.free-ship-bar.success {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border-color: #86efac;
    color: #166534;
    text-align: center;
    font-weight: 600;
}
.fs-text { font-size: 13.5px; color: #92400e; margin-bottom: 8px; }
.fs-text strong { font-weight: 700; }
.fs-progress {
    height: 6px;
    background: rgba(146,64,14,.15);
    border-radius: 3px;
    overflow: hidden;
}
.fs-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    border-radius: 3px;
    transition: width .4s;
}

.cart-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.cart-row {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 12px;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    align-items: center;
}
.cart-img {
    width: 80px; height: 80px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface-2);
}
.cart-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-img .prod-img-empty { font-size: 32px; }
.cart-info { min-width: 0; }
.cart-info h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cart-price-each {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
}
.cart-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.qty-control {
    display: inline-flex; align-items: center;
    background: var(--surface-2);
    border-radius: 99px;
    padding: 3px;
}
.qty-control button {
    width: 30px; height: 30px;
    border: none; background: transparent;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    transition: background .12s;
}
.qty-control button:hover { background: #fff; }
.qty-control button:active { transform: scale(.88); }
.qty-num {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
}
.btn-remove {
    width: 34px; height: 34px;
    border: none;
    background: transparent;
    color: var(--muted);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background .12s, color .12s;
}
.btn-remove:hover { background: #fee2e2; color: var(--danger); }
.cart-subtotal {
    font-weight: 800;
    font-size: 16px;
    color: var(--text);
    text-align: right;
}

.cart-summary {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.sum-row {
    display: flex; justify-content: space-between;
    padding: 6px 0;
    font-size: 15px;
    color: var(--text-2);
}
.sum-row.total {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 2px solid var(--negro);
    font-size: 19px;
    color: var(--text);
}
.sum-row.total strong {
    font-size: 22px;
    font-weight: 800;
    color: var(--amarillo-dark);
}

/* =====================================================
   CHECKOUT
===================================================== */
.checkout-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 18px 80px;
}
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    margin-top: 18px;
}
@media (max-width: 860px) {
    .checkout-grid { grid-template-columns: 1fr; }
}
.checkout-form { display: flex; flex-direction: column; gap: 16px; }
.form-section {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 22px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.form-section h2 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    display: flex; align-items: center; gap: 8px;
}
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 6px;
}
.field label .muted { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--text);
    box-shadow: 0 0 0 3px rgba(0,0,0,.08);
}
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

.pay-section { background: linear-gradient(135deg, #fafaf9, #f5f5f4); }
.pay-info {
    display: flex; align-items: center; gap: 14px;
    background: #fff;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.pay-icon {
    font-size: 26px;
    width: 44px; height: 44px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.pay-info strong { display: block; font-size: 14px; }
.pay-info p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }

.btn-pay {
    background: var(--amarillo);
    color: var(--negro);
    margin-top: 4px;
    border: 2px solid var(--negro);
    box-shadow: 4px 4px 0 var(--negro);
    transition: transform .12s, box-shadow .12s;
}
.btn-pay:hover { background: var(--amarillo-soft); }
.btn-pay:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--negro);
}
.terms-note {
    font-size: 12.5px;
    color: var(--muted);
    text-align: center;
    margin: 6px 0 0;
}

.checkout-summary { position: sticky; top: 80px; align-self: start; }
.sum-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 22px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.sum-card h3 { margin: 0 0 14px; font-size: 16px; font-weight: 700; }
.sum-items {
    list-style: none; padding: 0; margin: 0 0 14px;
    display: flex; flex-direction: column; gap: 6px;
}
.sum-items li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    font-size: 14px;
    color: var(--text-2);
    align-items: baseline;
}
.sum-qty { font-weight: 700; color: var(--text); }
.sum-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sum-price { font-weight: 600; color: var(--text); }
.sum-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}

/* =====================================================
   BOTONES GENERALES
===================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px;
    border: 2px solid var(--negro);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: transform .12s, background .15s, box-shadow .12s;
    line-height: 1.2;
    background: #fff;
    color: var(--negro);
}
.btn:active { transform: scale(.98); }
.btn-primary {
    background: var(--negro);
    color: var(--amarillo);
    border-color: var(--negro);
}
.btn-primary:hover { background: #1a1a1a; color: var(--amarillo-soft); }
.btn-secondary {
    background: var(--turquesa);
    color: var(--negro);
}
.btn-secondary:hover { background: var(--turquesa-soft); }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { background: #15803d; }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 24px; font-size: 16px; border-radius: 12px; }

/* =====================================================
   POPUP PROMOCIÓN
===================================================== */
.popup-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    padding: 18px;
    animation: fadeIn .25s;
}
.popup-overlay[hidden] { display: none; }
.popup-card {
    background: #fff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: popupIn .3s cubic-bezier(.4,0,.2,1);
}
@keyframes popupIn {
    from { transform: translateY(20px) scale(.96); opacity: 0; }
    to   { transform: none; opacity: 1; }
}
.popup-close {
    position: absolute; top: 12px; right: 12px;
    width: 36px; height: 36px;
    border: none;
    background: rgba(255,255,255,.95);
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    color: var(--text);
    z-index: 2;
    box-shadow: var(--shadow-sm);
}
.popup-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: var(--surface-2);
}
.popup-body { padding: 22px 24px 24px; }
.popup-body h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.3px;
}
.popup-content {
    color: var(--text-2);
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 18px;
}

/* =====================================================
   TOAST NOTIFICATIONS
===================================================== */
.toast-container {
    position: fixed;
    bottom: 90px; left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex; flex-direction: column-reverse; gap: 8px;
    pointer-events: none;
}
.toast {
    background: var(--negro);
    color: var(--amarillo);
    padding: 12px 20px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0,0,0,.30);
    display: flex; align-items: center; gap: 8px;
    animation: toastIn .25s cubic-bezier(.4,0,.2,1);
    pointer-events: auto;
    max-width: 360px;
    border: 2px solid var(--amarillo);
}
.toast.success {
    background: var(--success);
    color: #fff;
    border-color: #fff;
}
.toast.error {
    background: var(--danger);
    color: #fff;
    border-color: #fff;
}
@keyframes toastIn {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: none; opacity: 1; }
}
.toast.out { animation: toastOut .25s forwards; }
@keyframes toastOut {
    to { transform: translateY(20px); opacity: 0; }
}

/* =====================================================
   FOOTER
===================================================== */
.site-footer {
    background: var(--negro);
    color: var(--turquesa-soft);
    padding: 40px 18px 30px;
    margin-top: 60px;
    border-top: 4px solid var(--amarillo);
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-brand {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 18px;
}
.footer-brand img {
    height: 44px;
    width: auto;
    display: block;
}
.footer-brand strong { display: none; } /* el logo ya tiene el nombre */
.footer-info {
    display: flex; flex-wrap: wrap; gap: 14px;
    font-size: 13.5px;
    margin-bottom: 18px;
    color: #d4d4d8;
}
.footer-info a { color: var(--turquesa); }
.footer-info a:hover { color: var(--amarillo); }
.copy {
    font-size: 12px;
    color: #71717a;
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid #292524;
}

/* =====================================================
   EMPTY STATE
===================================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}
.empty-state h3 { font-size: 20px; color: var(--text); margin-bottom: 6px; }

/* =====================================================
   ALERTAS
===================================================== */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 14px;
    border: 1px solid transparent;
}
.alert-success { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.alert-danger  { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.alerta-error  { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; padding: 14px; border-radius: 12px; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 600px) {
    .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .prod-img { aspect-ratio: 1; }
    .prod-name { font-size: 14px; }
    .prod-desc { font-size: 12.5px; -webkit-line-clamp: 2; }
    .prod-price { font-size: 16px; }
    .btn-add { width: 34px; height: 34px; }
    .cat-head h2 { font-size: 22px; }
    .hero { padding: 44px 22px; }
    .cart-row { grid-template-columns: 64px 1fr auto; gap: 10px; }
    .cart-img { width: 64px; height: 64px; }
}

/* =====================================================
   TRACKING DE PEDIDO (nuevo diseño premium)
===================================================== */
.track-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 12px 14px 60px;
}
.track-page .hola {
    text-align: center;
    margin: 8px 0 16px;
    color: var(--muted);
    font-size: 16px;
}
.track-page .hola strong { color: var(--text, #111); font-weight: 700; }

/* Banner verde "Pago confirmado" */
.paid-banner {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid #86efac;
    font-size: 15px;
    text-align: center;
}

/* HERO de estado */
.track-hero {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #fff;
    border-radius: 18px;
    padding: 28px 22px 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(15,23,42,.18);
    margin-bottom: 16px;
}
.track-hero.estatus-pendiente_pago { background: linear-gradient(135deg, #78350f, #451a03); }
.track-hero.estatus-pagado         { background: linear-gradient(135deg, #1e293b, #0f172a); }
.track-hero.estatus-en_cocina      { background: linear-gradient(135deg, #b45309, #78350f); }
.track-hero.estatus-listo          { background: linear-gradient(135deg, #5b21b6, #312e81); }
.track-hero.estatus-en_ruta        { background: linear-gradient(135deg, #1e40af, #1e3a8a); }
.track-hero.estatus-entregado      { background: linear-gradient(135deg, #166534, #14532d); }
.track-hero.estatus-cancelado      { background: linear-gradient(135deg, #991b1b, #7f1d1d); }

.track-hero .hero-icon {
    width: 72px; height: 72px;
    background: rgba(255,255,255,.12);
    border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 38px;
    margin-bottom: 14px;
    backdrop-filter: blur(6px);
}
.track-hero .hero-meta {
    font-size: 11px; letter-spacing: 2px;
    opacity: .75; font-weight: 600;
    margin-bottom: 8px;
}
.track-hero .hero-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.15;
}
.track-hero .hero-sub {
    margin: 0;
    font-size: 14px;
    opacity: .85;
}

/* CARDS genéricas del tracker */
.track-page .card {
    background: #fff;
    border-radius: 14px;
    padding: 18px 18px 16px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    border: 1px solid #f1f5f9;
}
.track-page .card-head {
    font-size: 12px;
    color: #64748b;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
}
.track-page .card-head strong { color: #0f172a; font-weight: 700; }

/* STEPPER NUMERADO HORIZONTAL */
.stepper-card { padding: 18px 14px 14px; }
.stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 4px;
}
.stepper::-webkit-scrollbar { display: none; }
.stepper .step {
    flex: 1;
    min-width: 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.stepper .step + .step::before {
    content: "";
    position: absolute;
    left: -50%; right: 50%;
    top: 17px;
    height: 2px;
    background: #e5e7eb;
    z-index: -1;
}
.stepper .step.done + .step::before,
.stepper .step.done.current::before { background: #16a34a; }

.stepper .circle {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e5e7eb;
    color: #94a3b8;
    margin: 0 auto 6px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all .2s;
}
.stepper .step.done .circle {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}
.stepper .step.current .circle {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(245,158,11,.18);
    animation: stepPulse 1.6s infinite;
}
@keyframes stepPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(245,158,11,.18); }
    50%      { box-shadow: 0 0 0 8px rgba(245,158,11,.10); }
}
.stepper .step-label {
    font-size: 10.5px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.stepper .step.done .step-label,
.stepper .step.current .step-label { color: #0f172a; }

.progress-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin: 12px 4px 8px;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #16a34a, #f59e0b);
    border-radius: 3px;
    transition: width .4s ease;
}
.progress-text {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    margin: 0;
}
.progress-text strong { color: #16a34a; font-weight: 700; }

/* TIMELINE DETALLADO */
.timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 8px;
    position: relative;
}
.timeline li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    position: relative;
}
.timeline li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 11px;
    top: 28px;
    bottom: -10px;
    width: 2px;
    background: #e5e7eb;
}
.timeline li.done:not(:last-child)::after {
    background: #16a34a;
}
.tl-dot {
    width: 24px; height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
    display: flex; align-items: center; justify-content: center;
}
.tl-dot .check {
    width: 24px; height: 24px;
    background: #16a34a;
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 13px;
}
.tl-dot .pulse {
    width: 16px; height: 16px;
    background: #f59e0b;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(245,158,11,.20);
    animation: tlPulse 1.6s infinite;
}
@keyframes tlPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(245,158,11,.20); }
    50%      { box-shadow: 0 0 0 8px rgba(245,158,11,.10); }
}
.tl-dot .empty {
    width: 16px; height: 16px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    background: #fff;
}
.tl-body { flex: 1; min-width: 0; }
.tl-row {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 8px; margin-bottom: 2px; flex-wrap: wrap;
}
.tl-row strong { font-size: 15px; color: #0f172a; font-weight: 600; }
.tl-time { font-size: 12px; color: #94a3b8; white-space: nowrap; }
.tl-sub { font-size: 13px; color: #64748b; }
.timeline li.pending .tl-row strong { color: #94a3b8; font-weight: 500; }
.timeline li.pending .tl-sub { color: #cbd5e1; }
.timeline li.current .tl-row strong { color: #d97706; }

/* RESUMEN ITEMS / TOTALES */
.lista-items {
    list-style: none; margin: 0; padding: 0;
}
.lista-items li {
    display: flex; justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e5e7eb;
    font-size: 14px;
}
.lista-items li:last-child { border-bottom: none; }
.resumen-totales {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}
.resumen-totales > div {
    display: flex; justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
    color: #64748b;
}
.resumen-totales .total-row {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 2px solid #0f172a;
    font-size: 17px;
    color: #0f172a;
    font-weight: 700;
}
.resumen-totales .total-row strong { color: var(--primary, #b91c1c); font-size: 19px; }

.dir-text { margin: 0; font-size: 15px; color: #0f172a; line-height: 1.5; }
.muted.small { font-size: 13px; color: #64748b; margin-top: 4px; }

/* REPARTIDOR CARD */
.card-rider .rider-row {
    display: flex; align-items: center; gap: 12px;
}
.rider-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b91c1c, #7f1d1d);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 20px;
    flex-shrink: 0;
}
.rider-info { flex: 1; min-width: 0; }
.rider-name { font-weight: 700; font-size: 15px; color: #0f172a; }
.rider-tel { font-size: 13px; color: #64748b; margin-top: 2px; }
.btn-call {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff !important;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    text-decoration: none;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(22,163,74,.30);
}

/* CONTACTO (3 botones cuadrados) */
.contact-title {
    font-size: 11px;
    color: #94a3b8;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 600;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.contact-grid:has(.contact-btn:nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
.contact-grid:has(.contact-btn:only-child) { grid-template-columns: 1fr; }
.contact-btn {
    padding: 16px 10px;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    transition: transform .1s;
}
.contact-btn:active { transform: scale(.97); }
.contact-btn .ico { font-size: 26px; margin-bottom: 4px; }
.contact-btn .lbl { font-size: 14px; font-weight: 600; }
.contact-wa   { background: #dcfce7; color: #166534; }
.contact-call { background: #dbeafe; color: #1e40af; }
.contact-mail { background: #fef3c7; color: #92400e; }

/* UBICACIÓN */
.card-loc .loc-name { font-size: 17px; font-weight: 700; color: #0f172a; margin-top: 4px; }
.card-loc .loc-dir { font-size: 14px; color: #64748b; margin: 4px 0 10px; line-height: 1.5; }
.card-loc .loc-link {
    display: inline-block;
    color: var(--primary, #b91c1c);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.card-loc .loc-link:hover { text-decoration: underline; }

.powered-by {
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    margin: 24px 0 0;
}
.powered-by strong { color: #64748b; }

@media (max-width: 480px) {
    .track-hero .hero-title { font-size: 24px; }
    .stepper .step { min-width: 54px; }
    .stepper .step-label { font-size: 9.5px; }
}

/* =====================================================
   MODAL DE DETALLE DEL PRODUCTO
===================================================== */
.prod-modal {
    position: fixed; inset: 0;
    background: rgba(10,10,10,.65);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9000;
    padding: 16px;
    animation: fadeIn .2s;
}
.prod-modal[hidden] { display: none; }

.prod-modal-card {
    background: #fff;
    border: 3px solid var(--negro);
    border-radius: 18px;
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    box-shadow: 8px 8px 0 var(--negro);
    position: relative;
    animation: pmIn .28s cubic-bezier(.34,1.4,.64,1);
}
@keyframes pmIn {
    from { transform: translateY(30px) scale(.94); opacity: 0; }
    to   { transform: none; opacity: 1; }
}
.prod-modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 38px; height: 38px;
    border: 2px solid var(--negro);
    background: var(--turquesa);
    color: var(--negro);
    border-radius: 50%;
    font-size: 22px; line-height: 1;
    font-weight: 700;
    cursor: pointer;
    z-index: 2;
    transition: background .12s, transform .1s;
    box-shadow: 2px 2px 0 var(--negro);
}
.prod-modal-close:hover { background: var(--amarillo); }
.prod-modal-close:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--negro); }

.prod-modal-img {
    aspect-ratio: 16/10;
    background: var(--surface-2);
    overflow: hidden;
    border-bottom: 3px solid var(--negro);
    position: relative;
}
.prod-modal-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.prod-modal-img .prod-img-empty {
    font-size: 88px;
    background: linear-gradient(135deg, var(--turquesa-soft), var(--turquesa));
}

.prod-modal-body {
    padding: 24px 22px 22px;
}
.prod-modal-body h2 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.5px;
    line-height: 1.15;
    color: var(--negro);
}
.prod-modal-desc {
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 18px;
    white-space: pre-wrap;
}
.prod-modal-price {
    display: inline-block;
    background: var(--amarillo);
    color: var(--negro);
    border: 2px solid var(--negro);
    padding: 5px 14px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 22px;
    box-shadow: 2px 2px 0 var(--negro);
}

.prod-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
}

/* Selector de cantidad grande */
.qty-control.qty-big {
    align-self: center;
    background: var(--surface-2);
    border: 2px solid var(--negro);
    padding: 4px;
    border-radius: 99px;
    box-shadow: 3px 3px 0 var(--negro);
}
.qty-control.qty-big button {
    width: 44px; height: 44px;
    background: #fff;
    border: 2px solid var(--negro);
    font-size: 22px;
    font-weight: 800;
    color: var(--negro);
    transition: background .12s, transform .08s;
}
.qty-control.qty-big button:hover { background: var(--turquesa); }
.qty-control.qty-big button:active { transform: scale(.92); }
.qty-control.qty-big .qty-num {
    min-width: 50px;
    font-size: 22px;
    font-weight: 800;
    padding: 0 8px;
}

.prod-modal-actions .btn-primary {
    background: var(--negro);
    color: var(--amarillo);
    border: 2px solid var(--negro);
    box-shadow: 4px 4px 0 var(--amarillo);
    font-size: 16px;
    transition: transform .12s, box-shadow .12s;
}
.prod-modal-actions .btn-primary:hover { background: #1a1a1a; }
.prod-modal-actions .btn-primary:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--amarillo);
}
.prod-modal-actions .btn-primary strong {
    color: var(--amarillo);
    font-weight: 800;
}

@media (max-width: 480px) {
    .prod-modal { padding: 0; align-items: flex-end; }
    .prod-modal-card {
        max-height: 92vh;
        border-radius: 18px 18px 0 0;
        border-bottom: 0;
        box-shadow: none;
        max-width: 100%;
    }
    .prod-modal-body h2 { font-size: 22px; }
    .prod-modal-img { aspect-ratio: 4/3; }
}
