/* ============================================================================
   LOS AMIGOS DE SIEMPRE — Tienda Online (Takeaway)
   Sistema visual: carbón del escudo + naranja brasa del borde del logo + crema.
   Tipografías: Fraunces (títulos, eco del logotipo), Barlow Condensed (rótulos
   y precios, estilo cartel de parrilla) e Inter (texto).
   Mobile-first: todo se diseña para 360px y se amplía desde 640 / 960px.
   ============================================================================ */

:root {
    --shop-bg: #f6f2ec;
    --shop-surface: #ffffff;
    --shop-surface-alt: #f1ebe2;
    --shop-coal: #0d0c0b;
    --shop-coal-soft: #1b1815;
    --shop-coal-line: #2c2723;
    --shop-text: #171412;
    --shop-muted: #6b635b;
    --shop-faint: #9a9189;
    --shop-primary: #df5a22;
    --shop-primary-dark: #bf4613;
    --shop-primary-soft: #fdeee6;
    --shop-accent: #f4a11d;
    --shop-accent-soft: #fff4e0;
    --shop-border: #e6dfd5;
    --shop-border-strong: #d4cabd;
    --shop-success: #15803d;
    --shop-success-soft: #e6f6ec;
    --shop-danger: #b42318;
    --shop-danger-soft: #fdecea;

    --font-serif-brand: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-condensed: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(13, 12, 11, .06), 0 2px 8px rgba(13, 12, 11, .04);
    --shadow-md: 0 8px 24px rgba(13, 12, 11, .08);
    --shadow-lg: 0 18px 44px rgba(13, 12, 11, .22);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --header-h: 60px;
    --gutter: 16px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 72px); }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--shop-bg);
    color: var(--shop-text);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overflow-x: clip;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--shop-primary-dark); }
h1, h2, h3 { margin: 0; line-height: 1.2; color: var(--shop-text); }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(223, 90, 34, .55); outline-offset: 2px; border-radius: 6px; }

.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.2em; }
.muted { color: var(--shop-muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: #fff; color: var(--shop-coal); font-weight: 700; }
.skip-link:focus { top: 10px; }

.font-brand-serif { font-family: var(--font-serif-brand); letter-spacing: -.01em; }
.font-parrilla-condensed, .eyebrow {
    font-family: var(--font-condensed);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
}
.eyebrow { font-size: .78rem; color: var(--shop-primary); display: inline-block; }

/* Las tres barras de la parrilla del logo, usadas como separador de marca */
.grill-bars { display: grid; gap: 4px; justify-items: center; margin: 14px auto; width: 72px; }
.grill-bars span { display: block; height: 2px; border-radius: 2px; background: currentColor; opacity: .85; }
.grill-bars span:nth-child(1) { width: 60%; }
.grill-bars span:nth-child(2) { width: 80%; }
.grill-bars span:nth-child(3) { width: 100%; }

/* ---------- Encabezado ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--shop-coal);
    border-bottom: 3px solid var(--shop-primary);
}
.site-header__inner {
    max-width: 1180px;
    margin: 0 auto;
    height: var(--header-h);
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.site-brand img { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    color: #eae4dc;
    text-decoration: none;
    font-weight: 600;
    font-size: .88rem;
    transition: background .15s var(--ease), color .15s var(--ease);
}
.site-nav__link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.site-nav__link--primary { background: var(--shop-primary); color: #fff; }
.site-nav__link--primary:hover { background: var(--shop-primary-dark); }
.site-nav__label-long { display: none; }
@media (min-width: 640px) { .site-nav__label-long { display: inline; } .site-brand img { height: 44px; } }

/* ---------- Contenedor y avisos ---------- */
.shop-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 20px var(--gutter) 48px; flex: 1; }
.page-narrow { max-width: 560px; margin: 0 auto; }
.page-medium { max-width: 760px; margin: 0 auto; }

.shop-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: .92rem;
    font-weight: 500;
    border: 1px solid transparent;
}
.shop-alert .ico { margin-top: 2px; }
.shop-alert-success { background: var(--shop-success-soft); color: #0f5a2c; border-color: #bfe5cd; }
.shop-alert-error { background: var(--shop-danger-soft); color: #8a1c13; border-color: #f5c6c0; }

.notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: var(--shop-accent-soft);
    border: 1px solid #f6d9a6;
    color: #6b4206;
    font-size: .88rem;
}
.notice--dark { background: rgba(244, 161, 29, .12); border-color: rgba(244, 161, 29, .35); color: #f8dfb5; }
.notice .ico { margin-top: 2px; color: var(--shop-accent); }

/* ---------- Botones ---------- */
.btn-shop, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border: 1.5px solid transparent;
    border-radius: var(--radius-pill);
    background: var(--shop-primary);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    line-height: 1.1;
    transition: background .15s var(--ease), transform .1s var(--ease), box-shadow .15s var(--ease), border-color .15s;
    -webkit-user-select: none;
    user-select: none;
}
.btn-shop:hover, .btn:hover { background: var(--shop-primary-dark); }
.btn-shop:active, .btn:active { transform: scale(.98); }
.btn-shop:disabled, .btn:disabled { background: #c9c0b6; border-color: transparent; color: #fff; cursor: not-allowed; transform: none; }
.btn--dark { background: var(--shop-coal); }
.btn--dark:hover { background: var(--shop-coal-soft); }
.btn--outline { background: transparent; color: var(--shop-text); border-color: var(--shop-border-strong); }
.btn--outline:hover { background: var(--shop-surface-alt); }
.btn--ghost { background: transparent; color: var(--shop-muted); }
.btn--ghost:hover { background: var(--shop-surface-alt); color: var(--shop-text); }
.btn--on-dark { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .18); }
.btn--on-dark:hover { background: rgba(255, 255, 255, .18); }
.btn--danger { background: transparent; color: var(--shop-danger); border-color: #f0c2bc; }
.btn--danger:hover { background: var(--shop-danger-soft); }
.btn--success { background: var(--shop-success); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: .86rem; }
.btn--lg { min-height: 54px; padding: 0 24px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--split { justify-content: space-between; }
.btn--split strong { white-space: nowrap; font-family: var(--font-condensed); font-size: 1.15rem; letter-spacing: .02em; }

.icon-btn {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    border: none;
    background: var(--shop-surface-alt);
    color: var(--shop-text);
    flex-shrink: 0;
}
.icon-btn:hover { background: var(--shop-border); }

.text-link { color: var(--shop-primary-dark); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--shop-muted);
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    margin-bottom: 14px;
}
.back-link:hover { color: var(--shop-text); }

/* ---------- Tarjetas genéricas ---------- */
.card, .product-card {
    background: var(--shop-surface);
    border: 1px solid var(--shop-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}
.card__title { font-family: var(--font-serif-brand); font-size: 1.25rem; font-weight: 700; margin-bottom: 4px; }
.card__lead { color: var(--shop-muted); font-size: .92rem; margin-bottom: 18px; }
.card + .card { margin-top: 16px; }

/* ---------- Estado del local ---------- */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}
.status-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-pill--open { background: var(--shop-success-soft); color: var(--shop-success); }
.status-pill--open::before { box-shadow: 0 0 0 3px rgba(21, 128, 61, .18); animation: livePulse 2s infinite; }
.status-pill--closed { background: var(--shop-accent-soft); color: #8a5300; }
.status-pill--on-dark.status-pill--open { background: rgba(34, 197, 94, .14); color: #86efac; }
.status-pill--on-dark.status-pill--closed { background: rgba(244, 161, 29, .14); color: #fcd38d; }
@keyframes livePulse { 50% { box-shadow: 0 0 0 6px rgba(21, 128, 61, 0); } }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: var(--font-condensed);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.3;
}
.badge--ember { background: var(--shop-primary-soft); color: var(--shop-primary-dark); }
.badge--new { background: var(--shop-success-soft); color: var(--shop-success); }
.badge--soldout { background: #ece7e1; color: var(--shop-muted); }
.badge--neutral { background: var(--shop-surface-alt); color: var(--shop-muted); }

/* ---------- Inicio ---------- */
.hero {
    position: relative;
    overflow: hidden;
    margin: -20px calc(-1 * var(--gutter)) 0;
    padding: 24px var(--gutter) 40px;
    text-align: center;
    color: #f3ede6;
    background:
        radial-gradient(120% 90% at 50% 120%, rgba(223, 90, 34, .38) 0%, rgba(223, 90, 34, 0) 60%),
        var(--shop-coal);
}
.hero__logo { width: min(200px, 55%); margin: 0 auto; }
@media (min-width: 760px) { .hero__logo { width: 280px; } }
.hero .grill-bars { color: #fff; }
.hero__title {
    font-family: var(--font-serif-brand);
    color: #fff;
    font-size: clamp(1.75rem, 6vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -.015em;
    margin-top: 6px;
}
.hero__lead { max-width: 560px; margin: 10px auto 0; color: #cfc6bc; font-size: 1rem; }
@media (min-width: 960px) {
    .hero { margin: -20px 0 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 48px 32px 56px; }
}

.steps {
    list-style: none;
    margin: -22px 0 28px;
    padding: 0;
    display: grid;
    gap: 10px;
    position: relative;
    z-index: 1;
}
.steps__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    background: var(--shop-surface);
    border: 1px solid var(--shop-border);
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: var(--shadow-sm);
}
.steps__num {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--shop-coal);
    color: #fff;
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 0 0 2px var(--shop-primary);
}
.steps { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.steps__title { display: block; font-weight: 700; font-size: .82rem; line-height: 1.25; }
.steps__text { display: none; color: var(--shop-muted); font-size: .86rem; }
@media (min-width: 760px) {
    .steps { margin: -28px 16px 36px; gap: 12px; }
    .steps__item { flex-direction: row; gap: 12px; padding: 14px; }
    .steps__title { font-size: .95rem; }
    .steps__text { display: block; }
}

.section-heading, .section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--font-serif-brand);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 14px;
}
.section-title small { font-family: var(--font-sans); font-size: .85rem; font-weight: 500; color: var(--shop-muted); }

.resume-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 24px;
    border-radius: var(--radius-md);
    background: var(--shop-primary-soft);
    border: 1px solid #f6cfba;
}
.resume-banner__text { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.resume-banner__text .ico { color: var(--shop-primary); width: 1.4em; height: 1.4em; }
.resume-banner__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.store-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .store-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }

.store-card {
    display: flex;
    flex-direction: column;
    background: var(--shop-surface);
    border: 1px solid var(--shop-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.store-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.store-card__top {
    background: var(--shop-coal);
    color: #fff;
    padding: 18px 20px 16px;
    border-bottom: 3px solid var(--shop-primary);
}
.store-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.store-card__name { font-family: var(--font-serif-brand); color: #fff; font-size: 1.4rem; font-weight: 700; }
.store-card__prep { display: inline-flex; align-items: center; gap: 5px; color: #f3c3a8; font-size: .84rem; font-weight: 600; }
.store-card__body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.store-card__desc { color: var(--shop-muted); font-size: .92rem; }
.store-card__actions { display: flex; gap: 8px; margin-top: auto; }
.store-card__actions .btn-shop:first-child { flex: 1; }

.meta-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; }
.meta-list li { display: flex; gap: 10px; align-items: flex-start; }
.meta-list .ico { color: var(--shop-primary); margin-top: 2px; }

/* ---------- Carta del local ---------- */
.store-head {
    margin: -20px calc(-1 * var(--gutter)) 0;
    padding: 18px var(--gutter) 20px;
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(223, 90, 34, .25) 0%, rgba(223, 90, 34, 0) 55%),
        var(--shop-coal);
    color: #ede6de;
}
.store-head__back { display: inline-flex; align-items: center; gap: 4px; color: #bdb3a8; font-size: .86rem; font-weight: 600; text-decoration: none; margin-bottom: 10px; }
.store-head__back:hover { color: #fff; }
.store-head__title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.store-head__name { font-family: var(--font-serif-brand); color: #fff; font-size: clamp(1.55rem, 5.5vw, 2.2rem); font-weight: 700; }
.store-head__desc { color: #bdb3a8; font-size: .92rem; margin-top: 6px; max-width: 640px; }
.store-head__meta {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.store-head__meta::-webkit-scrollbar { display: none; }
.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 7px 12px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #e9e2da;
    font-size: .84rem;
    text-decoration: none;
    white-space: nowrap;
}
.meta-chip .ico { color: #f08a55; }
a.meta-chip:hover { background: rgba(255, 255, 255, .14); }
.store-head .notice { margin-top: 14px; }
@media (min-width: 960px) {
    .store-head { margin: -20px 0 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 24px 28px 26px; }
    .store-head__meta { flex-wrap: wrap; overflow: visible; }
}

/* Buscador + categorías fijos bajo el encabezado */
.catalog-toolbar {
    position: sticky;
    top: var(--header-h);
    z-index: 30;
    margin: 0 calc(-1 * var(--gutter)) 18px;
    padding: 12px var(--gutter) 10px;
    background: rgba(246, 242, 236, .94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--shop-border);
}
@media (min-width: 960px) { .catalog-toolbar { margin: 0 0 22px; border-radius: 0 0 var(--radius-md) var(--radius-md); } }
.search-bar-wrap { display: flex; gap: 8px; align-items: center; }
.search-input-box { position: relative; flex: 1; }
.search-input-box .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--shop-faint); pointer-events: none; }
.search-input-box input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 42px;
    border: 1.5px solid var(--shop-border);
    border-radius: var(--radius-pill);
    background: var(--shop-surface);
    font-size: 16px; /* evita el zoom automático de iOS */
    transition: border-color .15s, box-shadow .15s;
}
.search-input-box input:focus { outline: none; border-color: var(--shop-primary); box-shadow: 0 0 0 4px rgba(223, 90, 34, .15); }

.category-pills {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}
.category-pills::-webkit-scrollbar { display: none; }
.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    scroll-snap-align: start;
    min-height: 38px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    background: var(--shop-surface);
    border: 1.5px solid var(--shop-border);
    color: var(--shop-text);
    font-weight: 600;
    font-size: .88rem;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}
.category-pill:hover { border-color: var(--shop-border-strong); }
.category-pill.active { background: var(--shop-coal); border-color: var(--shop-coal); color: #fff; }
.cat-count-badge {
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    display: inline-grid;
    place-items: center;
    border-radius: var(--radius-pill);
    background: var(--shop-surface-alt);
    color: var(--shop-muted);
    font-size: .74rem;
    font-weight: 700;
}
.category-pill.active .cat-count-badge { background: var(--shop-primary); color: #fff; }

.menu-section { margin-bottom: 30px; }

/* Combos: tarjetas oscuras en carrusel horizontal (móvil) / grilla (escritorio) */
.combo-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(270px, 84%);
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter));
    padding: 2px var(--gutter) 6px;
}
.combo-rail::-webkit-scrollbar { display: none; }
@media (min-width: 760px) {
    .combo-rail { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); overflow: visible; margin: 0; padding: 0; }
}
.combo-card {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(100% 100% at 100% 0%, rgba(223, 90, 34, .3) 0%, rgba(223, 90, 34, 0) 60%),
        var(--shop-coal);
    color: #e9e2da;
    border: 1px solid var(--shop-coal-line);
    box-shadow: var(--shadow-md);
}
.combo-card.in-cart-active { box-shadow: 0 0 0 2px var(--shop-primary), var(--shadow-md); }
.combo-card__top { display: flex; gap: 12px; }
.combo-card__title { font-family: var(--font-serif-brand); color: #fff; font-size: 1.15rem; font-weight: 700; margin: 6px 0 4px; }
.combo-card__desc { color: #bdb3a8; font-size: .86rem; }
.combo-card .dish__thumb { width: 64px; height: 64px; font-size: 1.7rem; background: #231f1b; border-color: var(--shop-coal-line); }
.combo-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.combo-card__price-label { display: block; font-family: var(--font-condensed); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #f08a55; }
.combo-card .product-price { color: #fff; }

/* Platos de la carta */
.product-grid, .menu-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .product-grid, .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (min-width: 1100px) { .product-grid, .menu-grid { grid-template-columns: repeat(3, 1fr); } }

.dish {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    background: var(--shop-surface);
    border: 1px solid var(--shop-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: border-color .15s, box-shadow .2s var(--ease);
}
.dish:hover { box-shadow: var(--shadow-md); }
.dish.in-cart-active { border-color: #f2b597; box-shadow: inset 4px 0 0 var(--shop-primary), var(--shadow-sm); }
.dish.sold-out { opacity: .62; }
.dish__main { display: flex; gap: 12px; align-items: flex-start; }
.dish__main[role="button"] { cursor: pointer; }
.dish__info { flex: 1; min-width: 0; }
.dish__tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.dish__cat { font-family: var(--font-condensed); text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; font-weight: 700; color: var(--shop-primary); }
.product-title, .dish__title { font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.product-desc, .dish__desc {
    margin-top: 4px;
    color: var(--shop-muted);
    font-size: .86rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dish__allergens { display: flex; gap: 5px; align-items: center; margin-top: 6px; color: var(--shop-faint); font-size: .76rem; }
.dish__allergens .ico { width: 14px; height: 14px; }
.dish__thumb, .product-avatar {
    width: 92px;
    height: 92px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    place-items: center;
    font-size: 2.2rem;
    background:
        radial-gradient(80% 80% at 70% 20%, rgba(223, 90, 34, .18) 0%, rgba(223, 90, 34, 0) 70%),
        var(--shop-surface-alt);
    border: 1px solid var(--shop-border);
}
.dish__thumb img, .product-avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 400px) { .dish__thumb, .product-avatar { width: 104px; height: 104px; } }
.dish__foot, .product-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.dish__price-label { display: block; font-size: .74rem; color: var(--shop-muted); font-weight: 600; }
.product-price {
    font-family: var(--font-condensed);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--shop-text);
    line-height: 1;
}
.btn-add-pill { min-height: 40px; padding: 0 16px; font-size: .88rem; }
.btn-add-pill.is-added { background: var(--shop-success); }
.product-in-cart-pill, .in-cart-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: var(--shop-primary);
    color: #fff;
    font-size: .74rem;
    font-weight: 700;
}

.empty-state {
    text-align: center;
    padding: 36px 20px;
    background: var(--shop-surface);
    border: 1.5px dashed var(--shop-border-strong);
    border-radius: var(--radius-lg);
}
.empty-state__icon { width: 52px; height: 52px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 50%; background: var(--shop-surface-alt); color: var(--shop-muted); }
.empty-state__icon .ico { width: 24px; height: 24px; }
.empty-state h3 { font-size: 1.08rem; margin-bottom: 4px; }
.empty-state p { color: var(--shop-muted); font-size: .9rem; margin-bottom: 16px; }

/* ---------- Barra del carrito (móvil: barra inferior / escritorio: botón flotante) ---------- */
.cart-bar-spacer { height: 84px; }
.cart-fab-btn {
    position: fixed;
    z-index: 45;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 8px 10px 8px 8px;
    border: none;
    border-radius: 18px;
    background: var(--shop-coal);
    color: #fff;
    box-shadow: 0 0 0 2px var(--shop-primary), var(--shadow-lg);
    text-align: left;
    animation: fabIn .35s var(--ease);
}
.cart-fab-btn:hover { background: var(--shop-coal-soft); }
.cart-fab-icon-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--shop-primary);
}
.cart-fab-icon-wrap .ico { width: 22px; height: 22px; }
.cart-fab-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--shop-coal);
    font-size: .74rem;
    font-weight: 800;
    border: 2px solid var(--shop-coal);
}
.cart-fab-text { flex: 1; line-height: 1.15; }
.cart-fab-label { display: block; font-size: .78rem; color: #bdb3a8; font-weight: 600; }
.cart-fab-total { font-family: var(--font-condensed); font-size: 1.3rem; font-weight: 700; letter-spacing: .02em; }
.cart-fab-cta { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: .9rem; color: #f3c3a8; padding-right: 4px; }
.cart-fab-btn.pulse { animation: fabPulse .45s var(--ease); }
@keyframes fabIn { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fabPulse { 40% { transform: scale(1.03); } }
@media (min-width: 760px) {
    .cart-fab-btn { left: auto; right: 24px; bottom: 24px; width: 360px; }
}

/* ---------- Hojas inferiores / paneles (carrito y opciones del plato) ---------- */
.cart-drawer-backdrop, .modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(13, 12, 11, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s var(--ease), visibility .2s;
}
.cart-drawer-backdrop.open, .modal-backdrop.open { opacity: 1; visibility: visible; }
.cart-drawer-panel, .modal-dialog {
    width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    display: flex;
    flex-direction: column;
    background: var(--shop-surface);
    border-radius: 22px 22px 0 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(100%);
    transition: transform .28s var(--ease);
    padding-bottom: env(safe-area-inset-bottom);
}
.open > .cart-drawer-panel, .open > .modal-dialog { transform: none; }
.sheet-handle { width: 40px; height: 4px; border-radius: 4px; background: var(--shop-border-strong); margin: 8px auto 0; flex-shrink: 0; }
.sheet-head { flex-shrink: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 18px 12px; border-bottom: 1px solid var(--shop-border); }
.sheet-title { font-family: var(--font-serif-brand); font-size: 1.3rem; font-weight: 700; }
.sheet-sub { color: var(--shop-muted); font-size: .84rem; margin-top: 2px; }
.sheet-body, .modal-scroll-area { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 18px; }
.sheet-foot { flex-shrink: 0; padding: 12px 18px 16px; border-top: 1px solid var(--shop-border); background: var(--shop-surface); }
@media (min-width: 760px) {
    .cart-drawer-backdrop { justify-content: flex-end; align-items: stretch; }
    .cart-drawer-panel { width: 420px; max-height: none; height: 100%; border-radius: 0; transform: translateX(100%); }
    .cart-drawer-panel .sheet-handle { display: none; }
    .modal-backdrop { align-items: center; padding: 24px; }
    .modal-dialog { max-width: 520px; max-height: 86vh; border-radius: 22px; transform: translateY(24px) scale(.98); opacity: 0; transition: transform .25s var(--ease), opacity .2s; }
    .modal-backdrop.open > .modal-dialog { opacity: 1; }
    .modal-dialog .sheet-handle { display: none; }
}

.modal-hero { height: 180px; flex-shrink: 0; background: var(--shop-surface-alt) center / cover no-repeat; border-radius: 22px 22px 0 0; }
.modal-hero[hidden] { display: none; }
@media (min-width: 760px) { .modal-hero { border-radius: 22px 22px 0 0; } }

/* Progreso al pedido mínimo */
.min-order-progress-box { padding: 12px 18px; background: var(--shop-surface-alt); border-bottom: 1px solid var(--shop-border); font-size: .86rem; flex-shrink: 0; }
.min-order-text { font-weight: 600; color: #8a5300; }
.min-order-text.is-ok { color: var(--shop-success); }
.min-order-bar-track { height: 6px; border-radius: 6px; background: #e3dbd0; margin-top: 8px; overflow: hidden; }
.min-order-bar-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--shop-accent), var(--shop-primary)); transition: width .3s var(--ease); }
.min-order-text.is-ok + .min-order-bar-track .min-order-bar-fill { background: var(--shop-success); }

.cart-warning { display: flex; gap: 8px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--shop-accent-soft); color: #6b4206; font-size: .84rem; margin-bottom: 10px; }

/* Línea de producto en carrito / resumen */
.cart-line { padding: 14px 0; border-bottom: 1px solid var(--shop-border); }
.cart-line:last-child { border-bottom: none; }
.cart-line__top { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.cart-line__qty { color: var(--shop-primary); margin-right: 2px; }
.cart-line__price { font-family: var(--font-condensed); font-size: 1.12rem; white-space: nowrap; letter-spacing: .02em; }
.cart-line__detail { color: var(--shop-muted); font-size: .84rem; margin-top: 2px; }
.cart-line__note { display: flex; gap: 5px; align-items: center; color: var(--shop-primary-dark); font-size: .82rem; font-weight: 600; margin-top: 4px; }
.cart-line__note .ico { width: 14px; height: 14px; }
.cart-line__actions { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.link-danger { display: inline-flex; align-items: center; gap: 4px; border: none; background: none; color: var(--shop-danger); font-size: .84rem; font-weight: 600; padding: 6px 0; }
.link-danger .ico { width: 16px; height: 16px; }

.qty-stepper { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--radius-pill); background: var(--shop-surface-alt); border: 1px solid var(--shop-border); }
.qty-stepper button { width: 34px; height: 34px; display: grid; place-items: center; border: none; border-radius: 50%; background: var(--shop-surface); color: var(--shop-text); box-shadow: var(--shadow-sm); }
.qty-stepper button:hover { color: var(--shop-primary); }
.qty-stepper button .ico { width: 16px; height: 16px; }
.qty-stepper span { min-width: 30px; text-align: center; font-weight: 700; }
.qty-stepper--lg button { width: 40px; height: 40px; }

.coupon-row { display: flex; gap: 8px; margin-bottom: 12px; }
.coupon-row .input { height: 42px; border-radius: var(--radius-pill); text-transform: uppercase; }
.coupon-row .input::placeholder { text-transform: none; }

.totals { display: grid; gap: 4px; font-size: .92rem; margin-bottom: 12px; }
.totals__row { display: flex; justify-content: space-between; gap: 10px; }
.totals__row--discount { color: var(--shop-success); font-weight: 600; }
.totals__row--total { margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--shop-border-strong); font-weight: 700; font-size: 1rem; align-items: baseline; }
.totals__row--total strong { font-family: var(--font-condensed); font-size: 1.5rem; letter-spacing: .02em; color: var(--shop-text); }

/* Opciones del plato */
.option-group { margin-bottom: 18px; }
.option-group__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.option-group__title { font-weight: 700; font-size: .95rem; }
.option-choice-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 10px 14px;
    margin-bottom: 8px;
    border: 1.5px solid var(--shop-border);
    border-radius: var(--radius-md);
    background: var(--shop-surface);
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.option-choice-card:hover { border-color: var(--shop-border-strong); }
.option-choice-card:has(input:checked) { border-color: var(--shop-primary); background: var(--shop-primary-soft); }
.option-choice-card__label { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.option-choice-card input { width: 20px; height: 20px; accent-color: var(--shop-primary); flex-shrink: 0; margin: 0; }
.option-choice-card__price { color: var(--shop-muted); font-size: .86rem; font-weight: 600; white-space: nowrap; }
.option-choice-card__price.is-extra { color: var(--shop-primary-dark); }

.field-label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.quick-note-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.quick-note-chip { min-height: 34px; padding: 0 12px; border-radius: var(--radius-pill); border: 1.5px solid var(--shop-border); background: var(--shop-surface); font-size: .84rem; font-weight: 500; }
.quick-note-chip:hover { border-color: var(--shop-border-strong); }
.quick-note-chip.active { background: var(--shop-coal); border-color: var(--shop-coal); color: #fff; }

.modal-foot { display: flex; align-items: center; gap: 10px; }
.modal-foot .btn-shop { flex: 1; }

/* ---------- Formularios ---------- */
.field { margin-bottom: 16px; }
.field label, .field__label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field__label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.field__label-row label { margin: 0; }
.field__hint { display: block; color: var(--shop-muted); font-size: .8rem; margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.optional { color: var(--shop-faint); font-weight: 500; font-size: .84rem; }
.input, .shop-input-modern {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1.5px solid var(--shop-border);
    border-radius: 12px;
    background: var(--shop-surface);
    font-size: 16px;
    transition: border-color .15s, box-shadow .15s;
}
textarea.input, textarea.shop-input-modern { min-height: 84px; resize: vertical; }
.input:focus, .shop-input-modern:focus { outline: none; border-color: var(--shop-primary); box-shadow: 0 0 0 4px rgba(223, 90, 34, .14); }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--shop-muted); cursor: pointer; margin-bottom: 16px; }
.check-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--shop-primary); flex-shrink: 0; }

.divider-or { display: flex; align-items: center; gap: 12px; color: var(--shop-faint); font-size: .82rem; margin: 16px 0; }
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: var(--shop-border); }

.btn-google { background: #fff; color: #1f1f1f; border-color: var(--shop-border-strong); font-weight: 600; }
.btn-google:hover { background: #f8f6f3; }

/* ---------- Checkout ---------- */
.stepper { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0 0 20px; padding: 0; font-size: .82rem; font-weight: 600; color: var(--shop-faint); }
.stepper li { display: flex; align-items: center; gap: 6px; }
.stepper li + li::before { content: ''; width: 18px; height: 2px; background: var(--shop-border-strong); border-radius: 2px; }
.stepper__dot { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--shop-surface-alt); border: 1.5px solid var(--shop-border-strong); font-size: .76rem; }
.stepper__dot .ico { width: 14px; height: 14px; }
.stepper .is-done { color: var(--shop-success); }
.stepper .is-done .stepper__dot { background: var(--shop-success); border-color: var(--shop-success); color: #fff; }
.stepper .is-current { color: var(--shop-text); }
.stepper .is-current .stepper__dot { background: var(--shop-primary); border-color: var(--shop-primary); color: #fff; }
.stepper__text { display: none; }
.stepper .is-current .stepper__text { display: inline; }
@media (min-width: 640px) { .stepper__text { display: inline; } }

.checkout-layout { display: grid; gap: 16px; align-items: start; }
@media (min-width: 900px) {
    .checkout-layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; }
    .checkout-summary { position: sticky; top: calc(var(--header-h) + 20px); order: 2; }
}
.checkout-title { font-family: var(--font-serif-brand); font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 700; margin-bottom: 4px; }
.checkout-lead { color: var(--shop-muted); margin-bottom: 20px; }

.pickup-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.pickup-mode-card {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border: 1.5px solid var(--shop-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    background: var(--shop-surface);
    transition: border-color .15s, background .15s;
}
.pickup-mode-card:has(input:checked) { border-color: var(--shop-primary); background: var(--shop-primary-soft); }
.pickup-mode-card input { accent-color: var(--shop-primary); margin-top: 3px; }
.pickup-mode-card strong { display: block; font-size: .92rem; }
.pickup-mode-card span { display: block; font-size: .8rem; color: var(--shop-muted); }

.summary-store { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--shop-surface-alt); font-size: .88rem; margin-bottom: 8px; }
.summary-store div { display: flex; gap: 8px; align-items: flex-start; }
.summary-store .ico { color: var(--shop-primary); margin-top: 2px; }
.summary-lines { max-height: 340px; overflow-y: auto; }
.pay-methods { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--shop-success-soft); color: #0f5a2c; font-size: .84rem; }
.pay-methods .ico { margin-top: 2px; }
.pay-methods strong { display: block; margin-bottom: 2px; }
.trust-row { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; color: var(--shop-muted); font-size: .8rem; }
.trust-row .ico { width: 14px; height: 14px; }

/* ---------- Seguimiento del pedido ---------- */
.track-hero {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--shop-surface);
    border: 1px solid var(--shop-border);
    box-shadow: var(--shadow-md);
    margin-bottom: 16px;
}
.track-hero__top {
    background:
        radial-gradient(100% 120% at 0% 100%, rgba(223, 90, 34, .3) 0%, rgba(223, 90, 34, 0) 55%),
        var(--shop-coal);
    color: #e9e2da;
    padding: 22px 20px;
    display: grid;
    gap: 18px;
}
@media (min-width: 640px) { .track-hero__top { grid-template-columns: 1fr auto; align-items: center; } }
.track-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; font-size: .95rem; }
.track-status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--shop-accent); box-shadow: 0 0 0 4px rgba(244, 161, 29, .25); }
.track-status--ready .track-status__dot, .track-status--done .track-status__dot { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .25); }
.track-status--cancelled .track-status__dot { background: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .25); }
.track-title { font-family: var(--font-serif-brand); color: #fff; font-size: clamp(1.4rem, 5vw, 1.9rem); font-weight: 700; margin-top: 6px; }
.track-desc { color: #bdb3a8; margin-top: 4px; }
.pickup-code {
    text-align: center;
    padding: 12px 22px;
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--shop-coal);
    box-shadow: 0 0 0 3px var(--shop-primary);
}
.pickup-code__label { font-family: var(--font-condensed); text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; color: var(--shop-muted); font-weight: 700; }
.pickup-code__value { font-family: var(--font-condensed); font-size: 2.4rem; font-weight: 800; letter-spacing: .04em; line-height: 1.05; }

.track-steps { list-style: none; margin: 0; padding: 20px 20px 4px; display: grid; grid-template-columns: repeat(4, 1fr); }
.track-step { position: relative; text-align: center; font-size: .78rem; font-weight: 600; color: var(--shop-faint); }
.track-step::before { content: ''; position: absolute; top: 13px; left: -50%; right: 50%; height: 3px; background: var(--shop-border); z-index: 0; }
.track-step:first-child::before { display: none; }
.track-step__dot { position: relative; z-index: 1; width: 28px; height: 28px; margin: 0 auto 6px; display: grid; place-items: center; border-radius: 50%; background: var(--shop-surface); border: 2px solid var(--shop-border-strong); }
.track-step__dot .ico { width: 14px; height: 14px; }
.track-step.done, .track-step.current { color: var(--shop-text); }
.track-step.done::before, .track-step.current::before { background: var(--shop-primary); }
.track-step.done .track-step__dot { background: var(--shop-primary); border-color: var(--shop-primary); color: #fff; }
.track-step.current .track-step__dot { border-color: var(--shop-primary); background: var(--shop-primary-soft); box-shadow: 0 0 0 5px rgba(223, 90, 34, .15); }
.track-step.current .track-step__dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--shop-primary); }

.info-grid { display: grid; gap: 12px; padding: 16px 20px 20px; }
@media (min-width: 640px) { .info-grid { grid-template-columns: 1fr 1fr; } }
.info-box { padding: 14px; border-radius: var(--radius-md); background: var(--shop-surface-alt); font-size: .9rem; display: grid; gap: 4px; align-content: start; }
.info-box__label { display: flex; align-items: center; gap: 6px; font-family: var(--font-condensed); text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; font-weight: 700; color: var(--shop-muted); }
.info-box__label .ico { color: var(--shop-primary); width: 16px; height: 16px; }
.info-box__main { font-weight: 700; }
.info-box__accent { color: var(--shop-primary-dark); font-weight: 700; }
.btn-whatsapp { background: #e7f8ee; color: #137a3c; border-color: #b7e6c9; margin-top: 6px; justify-self: start; }
.btn-whatsapp:hover { background: #d6f2e1; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; font-size: .88rem; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--shop-primary); }
.timeline li::after { content: ''; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: var(--shop-border-strong); }
.timeline li:last-child::after { display: none; }
.timeline time { display: block; color: var(--shop-faint); font-size: .78rem; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; color: var(--shop-success); font-size: .8rem; font-weight: 600; }
.live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: livePulse 2s infinite; box-shadow: 0 0 0 3px rgba(21, 128, 61, .18); }

/* ---------- Cuenta ---------- */
.auth-grid { display: grid; gap: 16px; max-width: 920px; margin: 0 auto; }
@media (min-width: 820px) { .auth-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.account-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.account-head h1 { font-family: var(--font-serif-brand); font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 700; }
.account-layout { display: grid; gap: 16px; align-items: start; }
@media (min-width: 900px) { .account-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; } }
.order-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--shop-border); }
.order-row:last-child { border-bottom: none; }
.order-row__number { font-weight: 700; }
.order-row__meta { color: var(--shop-muted); font-size: .84rem; }
.order-row__total { font-family: var(--font-condensed); font-size: 1.15rem; font-weight: 700; }
.order-row__actions { display: flex; gap: 8px; }
.status-tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .76rem; font-weight: 700; background: var(--shop-surface-alt); color: var(--shop-muted); }
.status-tag--active { background: var(--shop-accent-soft); color: #8a5300; }
.status-tag--done { background: var(--shop-success-soft); color: var(--shop-success); }
.status-tag--cancelled { background: var(--shop-danger-soft); color: var(--shop-danger); }
.result-icon { width: 60px; height: 60px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: var(--shop-primary-soft); color: var(--shop-primary); }
.result-icon .ico { width: 28px; height: 28px; }
.tips { margin: 14px 0 18px; padding-left: 18px; color: var(--shop-muted); font-size: .88rem; }
.tips li + li { margin-top: 4px; }

/* ---------- Toast ---------- */
.shop-toast {
    position: fixed;
    z-index: 80;
    left: 50%;
    top: calc(var(--header-h) + 12px);
    transform: translate(-50%, -16px);
    max-width: calc(100% - 32px);
    padding: 12px 18px;
    border-radius: var(--radius-pill);
    background: var(--shop-coal);
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .25s var(--ease);
}
.shop-toast.show { opacity: 1; transform: translate(-50%, 0); }
.shop-toast.is-error { background: var(--shop-danger); }

/* ---------- Pie ---------- */
.site-footer {
    background: var(--shop-coal);
    color: #a39a90;
    text-align: center;
    padding: 32px var(--gutter) 28px;
    border-top: 3px solid var(--shop-primary);
    font-size: .84rem;
}
.site-footer img { height: 54px; width: auto; margin: 0 auto 4px; }
.site-footer .grill-bars { color: #6f655c; margin: 10px auto 12px; }
.site-footer__tagline { font-family: var(--font-condensed); text-transform: uppercase; letter-spacing: .16em; color: #fff; font-size: .92rem; font-weight: 700; }
.site-footer__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
.site-footer a { color: #d9cfc4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

/* ---------- Accesibilidad e impresión ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
    .site-header, .site-footer, .cart-fab-btn, .no-print { display: none !important; }
    body { background: #fff; }
    .track-hero, .card { box-shadow: none; }
}

/* Campo trampa anti-bots del checkout: fuera de pantalla para personas y lectores de pantalla */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Páginas legales */
.legal-page { max-width: 760px; margin: 0 auto; line-height: 1.6; }
.legal-page__title { font-size: 1.6rem; margin-top: 10px; }
.legal-page__updated { font-size: .86rem; margin-bottom: 14px; }
.legal-page h2 { font-family: var(--font-serif-brand); font-size: 1.1rem; margin: 22px 0 6px; }
.legal-page p, .legal-page li { font-size: .95rem; }
.legal-page p + p { margin-top: 8px; }
.legal-page ul { padding-left: 1.2rem; margin: 6px 0; }
.legal-page li + li { margin-top: 4px; }
.legal-page__notice { margin-top: 12px !important; padding: 12px 14px; border-radius: 12px; background: var(--shop-surface-alt); font-size: .86rem !important; }
.legal-page__footer { margin-top: 20px !important; }
.legal-consent { font-size: .82rem; color: var(--shop-muted); margin: 4px 0 12px; line-height: 1.45; }
.site-footer__links--legal { margin-top: 4px; }

/* Checkout: resumen corto arriba del formulario (solo celular y tablet) */
.mini-summary { margin: 0 0 14px; border: 1px solid var(--shop-border); border-radius: var(--radius-md); background: var(--shop-surface); }
.mini-summary summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; min-height: 48px; cursor: pointer; list-style: none; }
.mini-summary summary::-webkit-details-marker { display: none; }
.mini-summary summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -4px 2px 0 0; transition: transform .2s; flex-shrink: 0; }
.mini-summary[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.mini-summary__label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; }
.mini-summary__label .ico { color: var(--shop-primary); }
.mini-summary__total { margin-left: auto; font-family: var(--font-condensed); font-size: 1.15rem; }
.mini-summary__lines { list-style: none; margin: 0; padding: 0 16px 4px; border-top: 1px solid var(--shop-border); }
.mini-summary__lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: .88rem; }
.mini-summary__lines li > span:last-child, .mini-summary__total { white-space: nowrap; flex-shrink: 0; }
.mini-summary__lines li + li { border-top: 1px dashed var(--shop-border); }
.mini-summary__discount { color: var(--shop-success); }
.mini-summary__edit { display: inline-block; margin: 0 16px 14px; font-size: .86rem; }
@media (min-width: 900px) { .mini-summary { display: none; } }

/* Cupón: "Aplicar" o "Quitar" según haya uno aplicado */
.coupon-row [hidden] { display: none !important; }
.coupon-row .input[readonly] { background: var(--shop-surface-alt); font-weight: 600; letter-spacing: .03em; }

/* Celular: deslizar hacia abajo para cerrar las hojas (desde la rayita o el encabezado) */
@media (max-width: 759.98px) {
    .sheet-handle { width: 44px; height: 5px; margin-top: 10px; }
    .cart-drawer-panel .sheet-head, .modal-dialog .sheet-head, .sheet-handle, .modal-hero { touch-action: none; }
    body.modal-open { overscroll-behavior-y: none; }

    /* El encabezado se esconde al bajar por la carta y la barra de búsqueda sube a su lugar */
    .site-header { transition: transform .22s var(--ease); }
    .catalog-toolbar { transition: top .22s var(--ease); }
    body.header-hidden .site-header { transform: translateY(calc(-100% - 3px)); }
    body.header-hidden .catalog-toolbar { top: 0; }
}

/* Celular: links chicos con área de toque cómoda (mínimo ~44 px de alto) */
.site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
.site-footer__links { gap: 0 10px; }
.store-head__back, .back-link { min-height: 44px; }
.store-head__back { margin-bottom: 0; }
.tap-link { display: inline-block; padding: 12px 0; margin: -12px 0; }
