/* =========================================================
   Sushi landing - estilos (CSS puro, mobile-first)
   Breakpoints: 420px (status-pill), 768px, 1024px
   ========================================================= */

:root {
    --bg: #121216;
    --card: #1A1A22;
    --card-2: #20202A;
    --text: #F7F5F6;
    --muted: #A6A3B0;
    --sakura: #F4B8C8;
    --coral: #E66477;
    --border: rgba(255, 255, 255, .08);
    --wa: #25D366;
    --green: #4ADE80;
    --dark-text: #1A1018;

    --font-head: 'Outfit', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --header-h: 68px;
    --gutter: 20px;
    --radius: 20px;
    --radius-lg: 24px;
    --radius-sm: 12px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --shadow: 0 12px 32px rgba(0, 0, 0, .35);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
    color-scheme: dark;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3,
.section__title,
.card__strong {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.01em;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button { cursor: pointer; background: none; border: 0; padding: 0; }

::selection { background: rgba(244, 184, 200, .35); color: var(--text); }

:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--sakura);
    outline-offset: 3px;
    border-radius: 8px;
}

/* Scrollbar oscura discreta */
* { scrollbar-width: thin; scrollbar-color: #33333f transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: #2c2c37;
    border-radius: 999px;
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #3a3a47; }

/* ---------- Utilidades ---------- */
.container {
    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.muted { color: var(--muted); }
.small { font-size: .8125rem; }
.center { text-align: center; }

svg.i { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: .9375rem;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease),
                border-color .2s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--primary { background: var(--coral); color: #fff; }
.btn--primary:hover { background: var(--sakura); color: var(--dark-text); }

.btn--ghost {
    background: var(--card);
    border-color: var(--border);
    color: var(--text);
}
.btn--ghost:hover { border-color: var(--sakura); }

.btn--sm { padding: 9px 16px; font-size: .875rem; }
.btn--block { display: flex; width: 100%; }

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    flex-shrink: 0;
    transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.btn-icon:hover { border-color: var(--sakura); }
.btn-icon svg { width: 20px; height: 20px; }

/* ---------- Header ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: rgba(18, 18, 22, .78);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--border);
}

.header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 40px;
    flex-shrink: 0;
    border: 1px dashed rgba(255, 255, 255, .22);
    border-radius: 10px;
    color: var(--muted);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: border-color .2s var(--ease), color .2s var(--ease);
}
.logo-slot:hover { border-color: var(--sakura); color: var(--sakura); }

/* Nav: panel desplegable en móvil */
.nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 8px 20px 16px;
    background: rgba(18, 18, 22, .97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.nav.is-open { display: flex; }

.nav__link {
    padding: 12px 4px;
    color: var(--muted);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: color .2s var(--ease);
}
.nav__link:last-child { border-bottom: 0; }
.nav__link:hover { color: var(--text); }

.header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Estado abierto/cerrado */
.status-pill {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: .8125rem;
    font-weight: 500;
    white-space: nowrap;
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--muted);
    flex-shrink: 0;
}
.status-pill.is-open .status-dot {
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, .18);
}
.status-pill.is-open { color: var(--text); }
.status-pill.is-closed .status-dot {
    background: var(--coral);
    box-shadow: 0 0 0 3px rgba(230, 100, 119, .18);
}

@media (min-width: 420px) {
    .status-pill { display: inline-flex; }
}

/* Botón carrito */
.btn-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    min-width: 40px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
    font-size: .875rem;
    transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.btn-cart:hover { border-color: var(--sakura); }
.btn-cart svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-cart__label { display: none; }

.badge {
    position: absolute;
    top: -6px;
    right: -6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--coral);
    color: #fff;
    font-size: .6875rem;
    font-weight: 700;
    line-height: 1;
    border: 2px solid var(--bg);
}

.nav-toggle { display: inline-flex; }

/* ---------- Hero ---------- */
.hero { padding: 32px 0 40px; }

.hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

.hero__text { display: flex; flex-direction: column; gap: 16px; }

.eyebrow {
    color: var(--sakura);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hero__title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.15;
}

.hero__lead {
    color: var(--muted);
    font-size: 1rem;
    max-width: 52ch;
}
.hero__lead strong { color: var(--text); font-weight: 600; }

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.hero__facts {
    display: flex;
    flex-wrap: wrap;
    margin-top: 8px;
}
.hero__facts li {
    display: flex;
    flex-direction: column;
    padding: 0 16px;
    border-left: 1px solid var(--border);
}
.hero__facts li:first-child { padding-left: 0; border-left: 0; }
.hero__facts strong {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .9375rem;
    color: var(--text);
}
.hero__facts span { color: var(--muted); font-size: .8125rem; }

.hero__media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card);
}
.hero__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.hero__tag {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(18, 18, 22, .72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    font-size: .8125rem;
    color: var(--muted);
}
.hero__tag strong {
    font-family: var(--font-head);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--sakura);
    line-height: 1.1;
}

/* ---------- Secciones ---------- */
.section { padding: 48px 0; }
.section--tight { padding: 32px 0; }
.section--alt {
    background: #16161C;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 24px;
    margin-bottom: 24px;
}
.section__title { font-size: 1.375rem; }
.section__sub { color: var(--muted); font-size: .875rem; max-width: 60ch; }

.link-more {
    color: var(--sakura);
    font-size: .875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color .2s var(--ease);
}
.link-more:hover { color: var(--text); }

/* ---------- Grillas de productos ---------- */
.popular-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Tarjeta de producto */
.product {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.product:hover { border-color: rgba(244, 184, 200, .25); }

.product__img {
    position: relative;
    background: var(--card-2);
    overflow: hidden;
}
.product__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    flex: 1;
    min-width: 0;
}

.product__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.product__name {
    font-size: 1.0625rem;
    font-weight: 600;
}
.product__price {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}
.product__meta {
    color: var(--sakura);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .02em;
}
.product__desc {
    color: var(--text);
    opacity: .85;
    font-size: .875rem;
    line-height: 1.5;
}
.product__inc {
    color: var(--muted);
    font-size: .75rem;
    line-height: 1.45;
}
.product__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
}
.product__foot .btn-add { margin-left: auto; }

/* Vertical en "más pedidos" */
.popular-grid .product__img { aspect-ratio: 16 / 10; }

/* Horizontal en menú */
.menu-grid .product {
    flex-direction: row;
    align-items: stretch;
    padding: 12px;
    gap: 14px;
}
.menu-grid .product__img {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
}
.menu-grid .product__body { padding: 0; gap: 4px; }
.menu-grid .product__name { font-size: 1rem; }
.menu-grid .product__foot { padding-top: 6px; }

.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .02em;
    white-space: nowrap;
}
.tag--hot {
    background: rgba(230, 100, 119, .14);
    color: #F48A99;
    border: 1px solid rgba(230, 100, 119, .25);
}

.btn-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: transparent;
    color: var(--text);
    font-size: .8125rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-add svg { width: 16px; height: 16px; }
.btn-add:hover {
    background: var(--coral);
    border-color: var(--coral);
    color: #fff;
}
.btn-add.is-added,
.btn-add.is-added:hover {
    background: rgba(244, 184, 200, .14);
    border-color: rgba(244, 184, 200, .35);
    color: var(--sakura);
}

/* ---------- Filtros ---------- */
.filters {
    display: flex;
    gap: 8px;
    margin: 0 calc(-1 * var(--gutter)) 20px;
    padding: 2px var(--gutter) 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }

.filter {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: .875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.filter:hover { color: var(--text); border-color: rgba(255, 255, 255, .18); }
.filter.is-active,
.filter.is-active:hover {
    background: var(--sakura);
    border-color: var(--sakura);
    color: var(--dark-text);
}

/* ---------- Cómo pedir ---------- */
.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    counter-reset: none;
}
.step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.step__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(244, 184, 200, .12);
    color: var(--sakura);
}
.step__icon svg { width: 22px; height: 22px; }
.step strong {
    display: block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2px;
}
.step p { color: var(--muted); font-size: .875rem; line-height: 1.5; }

.pay-methods {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    color: var(--muted);
    font-size: .875rem;
}
.chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: .8125rem;
    font-weight: 500;
}

/* ---------- Ubicación ---------- */
.location {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.map-wrap {
    position: relative;
    z-index: 0;
    isolation: isolate;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card);
}
#map {
    width: 100%;
    height: 320px;
    background: var(--card-2);
}

.location__info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}

.label {
    display: block;
    margin-bottom: 8px;
    color: var(--sakura);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.card__strong {
    font-size: 1.0625rem;
    color: var(--text);
}
.card .muted { font-size: .9375rem; margin-top: 2px; }

.card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.hours li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    color: var(--muted);
    font-size: .9rem;
    border-bottom: 1px solid var(--border);
}
.hours li:last-child { border-bottom: 0; padding-bottom: 0; }
.hours li:first-child { padding-top: 0; }
.hours li.is-today { color: var(--text); font-weight: 700; }
.hours .closed { color: var(--muted); font-weight: 500; }

/* ---------- Marcador Leaflet ---------- */
.leaflet-div-icon,
.sushi-marker {
    background: transparent !important;
    border: 0 !important;
}
.sushi-marker__pin {
    position: relative;
    width: 56px;
    height: 56px;
}
.sushi-marker__pin svg {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5));
    animation: marker-float 2.8s ease-in-out infinite;
}
.sushi-marker__pulse {
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 28px;
    height: 10px;
    margin-left: -14px;
    border-radius: 50%;
    border: 2px solid var(--coral);
    background: rgba(230, 100, 119, .25);
    z-index: 0;
    animation: marker-pulse 2s ease-out infinite;
}

@keyframes marker-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}
@keyframes marker-pulse {
    0%   { transform: scale(.6); opacity: .9; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* Popups y controles Leaflet en tema oscuro */
.leaflet-container {
    font-family: var(--font-body);
    background: var(--card-2);
}
.leaflet-popup-content-wrapper {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
}
.leaflet-popup-content {
    margin: 12px 16px;
    font-size: .875rem;
    line-height: 1.45;
}
.leaflet-popup-content strong { font-family: var(--font-head); font-weight: 600; }
.leaflet-popup-tip {
    background: var(--card);
    box-shadow: none;
    border: 1px solid var(--border);
}
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.leaflet-container a.leaflet-popup-close-button:hover { color: var(--text); }
.leaflet-popup-content a { color: var(--sakura); }

.leaflet-bar {
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: var(--shadow) !important;
}
.leaflet-bar a,
.leaflet-bar a:hover {
    background: var(--card);
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.leaflet-bar a:hover { background: var(--card-2); color: var(--sakura); }
.leaflet-bar a:last-child { border-bottom: 0; }
.leaflet-bar a.leaflet-disabled { background: var(--card); color: #55535c; }
.leaflet-control-attribution {
    background: rgba(18, 18, 22, .75) !important;
    color: var(--muted) !important;
    font-size: 10px;
}
.leaflet-control-attribution a { color: var(--sakura) !important; }

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--border);
    padding: 28px 0 104px;
    font-size: .8125rem;
    color: var(--text);
}
.footer__inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--wa);
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 211, 102, .3), 0 4px 10px rgba(0, 0, 0, .35);
    transition: transform .25s var(--ease), box-shadow .2s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; color: #fff; }
.wa-float:hover { box-shadow: 0 12px 28px rgba(37, 211, 102, .42), 0 4px 10px rgba(0, 0, 0, .35); }
body.has-bar .wa-float { transform: translateY(-72px); }

/* ---------- Barra inferior móvil ---------- */
.mobile-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 55;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 16px;
    background: var(--coral);
    color: #fff;
    font-size: .9375rem;
    font-weight: 500;
    text-align: left;
    box-shadow: 0 12px 28px rgba(230, 100, 119, .3), 0 4px 12px rgba(0, 0, 0, .4);
    transition: background-color .2s var(--ease);
}
.mobile-bar strong { font-weight: 700; white-space: nowrap; }
.mobile-bar:hover { background: #EC7385; }

/* ---------- Overlay y drawer ---------- */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(0, 0, 0, .55);
    animation: fade-in .25s var(--ease);
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    width: min(440px, 100%);
    height: 100vh;
    height: 100dvh;
    background: var(--card);
    border-left: 1px solid var(--border);
    box-shadow: -20px 0 40px rgba(0, 0, 0, .35);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .32s var(--ease), visibility 0s linear .32s;
}
.drawer.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .32s var(--ease), visibility 0s;
}

.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.drawer__head h2 { font-size: 1.25rem; }
.drawer__head .btn-icon { background: var(--card-2); }

.drawer__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px;
}

/* Estados del carrito */
.cart-empty,
.cart-sent {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 48px 12px;
    text-align: center;
}
.cart-empty .btn,
.cart-sent .btn { margin-top: 10px; }

.sent-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: rgba(244, 184, 200, .14);
    color: var(--sakura);
}
.sent-icon svg { width: 28px; height: 28px; }

/* Progreso de envío gratis */
.ship-progress {
    padding: 14px;
    margin-bottom: 16px;
    background: var(--card-2);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.ship-progress p {
    font-size: .8125rem;
    color: var(--muted);
    margin-bottom: 8px;
}
.ship-progress p strong { color: var(--text); }
.ship-progress__bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    overflow: hidden;
}
.ship-progress__bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--coral), var(--sakura));
    transition: width .4s var(--ease);
}

/* Lista del carrito */
.cart-list { margin-bottom: 20px; }
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.cart-item:first-child { padding-top: 0; }
.cart-item__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.cart-item__info strong {
    font-weight: 600;
    font-size: .9375rem;
    line-height: 1.3;
}

.qty {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 3px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--border);
}
.qty__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    transition: background-color .2s var(--ease), color .2s var(--ease);
}
.qty__btn:hover { background: var(--card-2); color: var(--sakura); }
.qty__btn svg { width: 14px; height: 14px; }
.qty__n {
    min-width: 26px;
    text-align: center;
    font-weight: 600;
    font-size: .9rem;
}

/* Upsell */
.upsell { margin-bottom: 24px; }
.upsell__items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.upsell__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--card-2);
    border: 1px solid var(--border);
    font-size: .8125rem;
    color: var(--text);
    transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.upsell__item strong { color: var(--sakura); font-weight: 600; }
.upsell__item:hover { border-color: var(--sakura); }

/* Formulario */
.form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    border-radius: 14px;
    background: var(--bg);
    border: 1px solid var(--border);
}
.segmented__btn {
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--muted);
    font-size: .875rem;
    font-weight: 600;
    transition: background-color .2s var(--ease), color .2s var(--ease);
}
.segmented__btn:hover { color: var(--text); }
.segmented__btn.is-active {
    background: var(--card-2);
    color: var(--text);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 2px 6px rgba(0, 0, 0, .25);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.field > span {
    color: var(--muted);
    font-size: .8125rem;
    font-weight: 500;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1rem; /* evita zoom en iOS */
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 64px; line-height: 1.45; }
.field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A6A3B0' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}
.field select option { background: var(--card); color: var(--text); }
.field input::placeholder,
.field textarea::placeholder { color: #6E6B78; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--sakura);
    box-shadow: 0 0 0 3px rgba(244, 184, 200, .14);
    outline: none;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(230, 100, 119, .14);
}

.totals {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 14px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
}
.totals > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: .9rem;
    color: var(--muted);
}
.totals .totals__total {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    color: var(--text);
    font-family: var(--font-head);
    font-size: 1.125rem;
    font-weight: 600;
}
.totals__total span:last-child { color: var(--sakura); }

.form__error {
    color: var(--coral);
    font-size: .8125rem;
    font-weight: 500;
}

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 120;
    max-width: calc(100% - 32px);
    padding: 12px 18px;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: .875rem;
    font-weight: 500;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 16px);
    transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}
body.has-bar .toast { bottom: 96px; }
/* Con la barra inferior visible, deja espacio para que no tape el final */
body.has-bar { padding-bottom: 56px; }

/* =========================================================
   < 1024px: "Los más pedidos" como carrusel horizontal
   ========================================================= */
@media (max-width: 1023px) {
    .popular-grid {
        display: flex;
        gap: 12px;
        margin-inline: calc(-1 * var(--gutter));
        padding: 2px var(--gutter) 6px;
        scroll-padding-inline: var(--gutter);
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
    }
    .popular-grid::-webkit-scrollbar { display: none; }
    .popular-grid .product {
        flex: 0 0 78%;
        scroll-snap-align: start;
    }
}

/* =========================================================
   < 768px: móvil compacto
   ========================================================= */
@media (max-width: 767px) {
    :root { --gutter: 16px; }

    /* Espaciado general */
    .section { padding: 36px 0; }
    .section--tight { padding: 28px 0 8px; }
    .section__head { margin-bottom: 16px; }
    .section__title { font-size: 1.3rem; }

    /* Hero: la foto pasa entre los botones y los datos */
    .hero { padding: 20px 0 8px; }
    .hero__grid { gap: 14px; }
    .hero__text { display: contents; }
    .hero__title { font-size: 1.6rem; }
    .hero__lead { font-size: .9375rem; line-height: 1.55; }
    .hero__cta {
        flex-direction: column;
        gap: 10px;
        margin-top: 2px;
    }
    .hero__cta .btn { width: 100%; padding-block: 13px; }
    .hero__media { order: 1; border-radius: var(--radius); }
    .hero__media img { aspect-ratio: 16 / 9; border-radius: var(--radius); }
    .hero__tag { left: 10px; bottom: 10px; padding: 6px 10px; border-radius: 12px; font-size: .75rem; }
    .hero__tag strong { font-size: 1rem; }
    .hero__facts {
        order: 2;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 0;
        padding: 10px 0;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 14px;
    }
    .hero__facts li,
    .hero__facts li:first-child {
        min-width: 0;
        align-items: center;
        padding: 0 6px;
        text-align: center;
        border-left: 1px solid var(--border);
    }
    .hero__facts li:first-child { border-left: 0; }
    .hero__facts strong { font-size: .8125rem; line-height: 1.3; }
    .hero__facts span { font-size: .75rem; }

    /* Carrusel: tarjetas más compactas */
    .popular-grid .product__body { padding: 12px 14px 14px; gap: 4px; }
    .popular-grid .product__desc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-clamp: 2;
        overflow: hidden;
    }
    .popular-grid .product__inc { display: none; }
    .popular-grid .product__foot { padding-top: 6px; }

    /* Menú: lista compacta */
    .menu-grid { gap: 8px; }
    .menu-grid .product {
        padding: 10px;
        gap: 12px;
        border-radius: 16px;
    }
    .menu-grid .product__img {
        width: 72px;
        height: 72px;
        border-radius: 12px;
    }
    .menu-grid .product__body { gap: 2px; }
    .menu-grid .product__top { gap: 8px; }
    .menu-grid .product__name { font-size: .9375rem; line-height: 1.25; }
    .menu-grid .product__price { font-size: .9375rem; }
    .menu-grid .product__meta { font-size: .6875rem; }
    .menu-grid .product__desc {
        font-size: .8125rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-clamp: 2;
        overflow: hidden;
    }
    .menu-grid .product__inc,
    .menu-grid .tag--hot { display: none; }
    .menu-grid .product__foot { padding-top: 4px; }
    .menu-grid .btn-add { padding: 5px 14px; font-size: .75rem; }

    /* Filtros fijos bajo el header mientras se recorre el menú */
    .filters {
        position: sticky;
        top: var(--header-h);
        z-index: 40;
        margin-bottom: 12px;
        padding-block: 10px;
        background: rgba(18, 18, 22, .86);
        -webkit-backdrop-filter: blur(14px) saturate(140%);
        backdrop-filter: blur(14px) saturate(140%);
    }
    .filter { padding: 7px 14px; font-size: .8125rem; }

    /* Cómo pedir */
    .steps { gap: 8px; }
    .step { gap: 12px; padding: 12px 14px; border-radius: 16px; align-items: center; }
    .step__icon { width: 36px; height: 36px; border-radius: 10px; }
    .step__icon svg { width: 18px; height: 18px; }
    .step strong { font-size: .9375rem; margin-bottom: 0; }
    .step p { font-size: .8125rem; line-height: 1.4; }
    .pay-methods {
        flex-wrap: nowrap;
        gap: 6px;
        margin-top: 14px;
        font-size: .8125rem;
        white-space: nowrap;
    }
    .pay-methods .chip { padding: 5px 10px; font-size: .75rem; }

    /* Ubicación */
    .location { gap: 12px; }
    #map { height: 260px; }
    .map-wrap { border-radius: var(--radius); }
    .location__info { gap: 12px; }
    .card { padding: 16px; border-radius: 16px; }
    .card__strong { font-size: 1rem; }
    .card .muted { font-size: .875rem; }
    .card__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 12px;
    }
    .card__actions .btn { width: 100%; padding-block: 11px; }
    .hours li { padding: 6px 0; font-size: .875rem; }

    .footer { padding-top: 22px; }
}

@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* =========================================================
   >= 768px
   ========================================================= */
@media (min-width: 768px) {
    :root { --gutter: 28px; }

    .hero { padding: 48px 0 56px; }
    .hero__title { font-size: 2.1rem; }
    .hero__lead { font-size: 1.0625rem; }

    .section { padding: 56px 0; }
    .section--tight { padding: 40px 0; }
    .section__title { font-size: 1.5rem; }

    .popular-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .popular-grid .product { flex-basis: 44%; }
    .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

    .filters {
        flex-wrap: wrap;
        margin-inline: 0;
        padding-inline: 0;
        overflow: visible;
    }

    .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .step { flex-direction: column; padding: 22px; }

    #map { height: 380px; }

    .footer__inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
    }
}

/* =========================================================
   >= 1024px
   ========================================================= */
@media (min-width: 1024px) {
    .nav {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 4px;
        padding: 0;
        background: none;
        border: 0;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        margin-right: auto;
        margin-left: 24px;
    }
    .nav__link {
        padding: 8px 14px;
        border: 0;
        border-radius: 999px;
        font-size: .9375rem;
    }
    .nav__link:hover { background: var(--card); }

    .nav-toggle { display: none; }
    .btn-cart { padding: 0 16px 0 12px; }
    .btn-cart__label { display: inline; }

    .hero { padding: 64px 0 72px; }
    .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
    .hero__title { font-size: 2.4rem; }

    .section { padding: 64px 0; }
    .section--tight { padding: 44px 0; }

    .popular-grid { grid-template-columns: repeat(3, 1fr); }

    .location {
        grid-template-columns: 7fr 5fr;
        gap: 20px;
        align-items: start;
    }
    #map { height: 420px; }

    .footer { padding-bottom: 28px; }
    body.has-bar { padding-bottom: 0; }

    .mobile-bar { display: none !important; }
    body.has-bar .wa-float { transform: none; }
    body.has-bar .toast { bottom: 24px; }
    .wa-float { right: 24px; bottom: 24px; }
}

/* ---------- Pétalos de sakura (canvas decorativo, js/petals.js) ----------
   z-index 5: encima del contenido normal (main no crea stacking context;
   .map-wrap queda aislado en z-index 0) y debajo de header (50),
   barra móvil (55), WhatsApp flotante (60), overlay (90), drawer (100)
   y toast (120). */
.petals-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }
    .sushi-marker__pulse { display: none; }
}
