/* ==========================================================================
   Ordena · kiosco de autoservicio
   Disenado a 1080 x 1920 y escalado al viewport, para que el totem real y
   la vista previa en un monitor se vean exactamente igual.

   Dos temas: claro (por defecto, fondo blanco) y oscuro. Cada comercio elige
   el suyo desde el panel; se aplica con data-theme en <html>.
   ========================================================================== */

:root {
    /* iconos vectoriales reutilizados como mascaras (heredan el color) */
    --ico-plate: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v5a2 2 0 0 0 2 2m0 0v11m0-11a2 2 0 0 0 2-2V3'/%3E%3Cpath d='M19.5 3c-1.2 1.9-1.8 3.7-1.8 5.5 0 1.1.8 1.9 1.8 1.9m0 0v10.6m0-10.6V3'/%3E%3Ccircle cx='12' cy='11' r='4.4'/%3E%3C/svg%3E");
    --ico-bag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 7.5h13l-1.2 12.5a1.5 1.5 0 0 1-1.5 1.4H8.2a1.5 1.5 0 0 1-1.5-1.4z'/%3E%3Cpath d='M9 7.5V6a3 3 0 0 1 6 0v1.5'/%3E%3C/svg%3E");
    --ico-seat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 11V6.5a2.5 2.5 0 0 1 2.5-2.5h6a2.5 2.5 0 0 1 2.5 2.5V11'/%3E%3Crect x='3.5' y='11' width='17' height='6.5' rx='2'/%3E%3Cpath d='M6.5 17.5V21M17.5 17.5V21'/%3E%3C/svg%3E");
    --ico-truck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5h11v10h-11z'/%3E%3Cpath d='M13.5 10h3.6l3.4 3.4v3.1h-7z'/%3E%3Ccircle cx='6.8' cy='18.4' r='1.9'/%3E%3Ccircle cx='17' cy='18.4' r='1.9'/%3E%3C/svg%3E");
    --ico-cup: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5h13V15a4.5 4.5 0 0 1-4.5 4.5h-4A4.5 4.5 0 0 1 4 15z'/%3E%3Cpath d='M17 10.5h1.8a2.2 2.2 0 0 1 0 4.4H17'/%3E%3Cpath d='M7.5 3v2M11 3v2M14.5 3v2'/%3E%3C/svg%3E");
    --ico-store: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l1.6-5h14.8L21 9'/%3E%3Cpath d='M4.5 9v11h15V9'/%3E%3Cpath d='M3 9a3 3 0 0 0 6 0 3 3 0 0 0 6 0 3 3 0 0 0 6 0'/%3E%3Cpath d='M9.5 20v-5.5h5V20'/%3E%3C/svg%3E");
    --ico-pin:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
    --ico-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18z'/%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' d='M12 7v5.2l3.2 1.9'/%3E%3C/svg%3E");

    --brand:        #FF5A2B;
    --brand-2:      #FFC043;
    --brand-ink:    #ffffff;
    --brand-text:   #D9451A;   /* la marca oscurecida para usarla como texto */

    /* Cada comercio puede traer su fuente de Google Fonts (ver applyFont). */
    --font-display: Outfit, Inter, sans-serif;
    --font-body:    Inter, system-ui, -apple-system, "Segoe UI", sans-serif;

    /* --- tema claro (por defecto) --- */
    --bg:           #FFFFFF;
    --bg-2:         #F7F8FC;
    --surface:      #FFFFFF;
    --surface-2:    #F2F4F9;
    --line:         rgba(16, 19, 28, .10);
    --line-strong:  rgba(16, 19, 28, .17);

    --text:         #10131C;
    --text-soft:    #4E566E;
    --text-dim:     #8A92A8;

    --card-fade:    linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.92));
    --bar-fade:     linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.97) 34%);
    --overlay:      rgba(255, 255, 255, .86);
    --glass:        rgba(255, 255, 255, .80);
    --glass-ink:    #10131C;
    --glass-line:   rgba(16, 19, 28, .12);
    --terminal:     linear-gradient(160deg, #FFFFFF, #EBEFF6);
    --terminal-slot:#C9D0DE;
    --mini-screen:  #F2F4F9;
    --stage-glow:   radial-gradient(74% 48% at 50% 34%,
                    color-mix(in srgb, var(--brand) 12%, #FFFFFF) 0%, #FFFFFF 70%);
    --headline-ink: linear-gradient(180deg, #10131C 24%, var(--brand-text));

    /* El atractor lleva foto a sangre: el velo aclara la imagen para que el
       texto oscuro se lea sin tapar la comida. */
    --attract-scrim: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.45) 30%,
                     rgba(255,255,255,.70) 62%, rgba(255,255,255,.98) 100%),
                     radial-gradient(80% 50% at 50% 100%,
                     color-mix(in srgb, var(--brand) 18%, transparent) 0%, transparent 70%);

    --ok:           #12A265;
    --warn:         #C07C05;
    --danger:       #D62B45;

    --r-sm: 16px;
    --r:    26px;
    --r-lg: 38px;
    --r-xl: 52px;

    --shadow:    0 24px 60px rgba(16, 19, 28, .16);
    --shadow-sm: 0 10px 28px rgba(16, 19, 28, .10);
    --glow:      0 18px 44px color-mix(in srgb, var(--brand) 38%, transparent);

    --ease:      cubic-bezier(.16, 1, .3, 1);
    --ease-back: cubic-bezier(.34, 1.56, .64, 1);
}

/* --- tema oscuro -------------------------------------------------------- */

html[data-theme="dark"] {
    --bg:           #07080C;
    --bg-2:         #0D0F16;
    --surface:      #141823;
    --surface-2:    #1B2130;
    --line:         rgba(255, 255, 255, .09);
    --line-strong:  rgba(255, 255, 255, .16);

    --text:         #F5F7FB;
    --text-soft:    #A8B0C2;
    --text-dim:     #6C7690;

    --card-fade:    linear-gradient(180deg, rgba(20,24,35,0), rgba(20,24,35,.92));
    --bar-fade:     linear-gradient(180deg, rgba(7,8,12,0), rgba(7,8,12,.96) 34%);
    --overlay:      rgba(3, 4, 7, .80);
    --glass:        rgba(8, 10, 16, .62);
    --glass-ink:    #ffffff;
    --glass-line:   rgba(255, 255, 255, .18);
    --terminal:     linear-gradient(160deg, #222836, #141823);
    --terminal-slot:#05060a;
    --mini-screen:  #0a0d14;
    --stage-glow:   radial-gradient(74% 48% at 50% 34%,
                    color-mix(in srgb, var(--brand) 22%, #05060a) 0%, #05060a 70%);
    --headline-ink: linear-gradient(180deg, #fff 30%,
                    color-mix(in srgb, var(--brand-2) 70%, #fff));

    --attract-scrim: linear-gradient(180deg, rgba(5,6,10,.86) 0%, rgba(5,6,10,.35) 34%,
                     rgba(5,6,10,.62) 66%, rgba(5,6,10,.96) 100%),
                     radial-gradient(80% 50% at 50% 100%,
                     color-mix(in srgb, var(--brand) 34%, transparent) 0%, transparent 70%);

    --ok:           #29D07E;
    --warn:         #FFB020;
    --danger:       #FF4D5E;

    --shadow:    0 24px 60px rgba(0, 0, 0, .55);
    --shadow-sm: 0 10px 28px rgba(0, 0, 0, .40);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
    height: 100%;
    background: var(--bg-2);
    overflow: hidden;
    font-family: var(--font-body);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }

/* --- lienzo fijo 1080x1920 ---------------------------------------------- */

/* Lo que sobra cuando la ventana no es 9:16 usa el MISMO fondo del lienzo:
   cualquier otro color dibuja un marco alrededor de la pantalla. */
#fit { position: fixed; inset: 0; overflow: hidden; background: var(--bg); }

/* El lienzo se centra con translate porque los navegadores alinean al inicio
   los elementos de grid/flex mas grandes que su contenedor. */
#stage {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1080px;
    height: 1920px;
    transform-origin: center center;
    transform: translate(-50%, -50%);
    overflow: hidden;
    background: var(--bg);
    isolation: isolate;
}

/* --- pantallas ---------------------------------------------------------- */

.screen {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    background: var(--bg);
}
.screen.is-active { display: flex; }

.stagger > * { will-change: transform, opacity; }

/* ==========================================================================
   1 · Atractor
   ========================================================================== */

#attract { padding: 0; }

.attract-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.attract-bg .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    transition: opacity 1.6s ease;
}
.attract-bg .slide.on { opacity: 1; animation: kenburns 11s linear forwards; }

@keyframes kenburns {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to   { transform: scale(1.20) translate3d(-1.5%, -2%, 0); }
}

.attract-scrim { position: absolute; inset: 0; z-index: 1; background: var(--attract-scrim); }

.attract-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 130px 90px 110px;
    text-align: center;
}

.brandmark { display: flex; flex-direction: column; align-items: center; gap: 26px; }

.brand-logo {
    width: 168px; height: 168px;
    border-radius: 46px;
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-size: 86px; font-weight: 800; letter-spacing: -.04em;
    color: var(--brand-ink);
    background: linear-gradient(145deg, var(--brand), var(--brand-2));
    box-shadow: var(--glow), inset 0 2px 0 rgba(255,255,255,.4);
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

.attract-venue {
    font-family: var(--font-display);
    font-size: 54px; font-weight: 700; letter-spacing: -.02em;
}
.attract-tag { font-size: 30px; color: var(--text-soft); max-width: 720px; line-height: 1.4; }

.attract-mid { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 22px; }

.attract-head {
    font-family: var(--font-display);
    font-size: 116px; font-weight: 800; line-height: .98; letter-spacing: -.045em;
    background: var(--headline-ink);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.attract-sub { font-size: 36px; color: var(--text-soft); }

/* boton principal con anillos pulsantes */
.touch-cta { position: relative; display: grid; place-items: center; height: 340px; width: 100%; }

.touch-cta .ring {
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    border: 3px solid color-mix(in srgb, var(--brand) 60%, transparent);
    animation: ripple 3s var(--ease) infinite;
}
.touch-cta .ring:nth-child(2) { animation-delay: 1s; }
.touch-cta .ring:nth-child(3) { animation-delay: 2s; }

@keyframes ripple {
    0%   { transform: scale(.72); opacity: .9; }
    100% { transform: scale(1.75); opacity: 0; }
}

.touch-btn {
    position: relative;
    display: flex; align-items: center; gap: 26px;
    padding: 44px 74px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 44px; font-weight: 700; letter-spacing: -.01em;
    color: var(--brand-ink);
    background: linear-gradient(140deg, var(--brand), var(--brand-2));
    box-shadow: var(--glow);
    animation: breathe 2.6s ease-in-out infinite;
}
@keyframes breathe {
    0%, 100% { transform: translateY(0)    scale(1); }
    50%      { transform: translateY(-8px) scale(1.025); }
}

.hand { width: 58px; height: 58px; animation: tap 2.6s var(--ease) infinite; }
@keyframes tap {
    0%, 60%, 100% { transform: translateY(0)    rotate(0deg); }
    72%           { transform: translateY(-14px) rotate(-8deg); }
    84%           { transform: translateY(2px)   rotate(0deg); }
}

.attract-foot { display: flex; align-items: center; gap: 18px; color: var(--text-dim); font-size: 25px; }
.attract-foot .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .5; }

/* ==========================================================================
   2 · Tipo de pedido
   ========================================================================== */

#mode { padding: 0; }

.mode-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transform: scale(1.04);
}
.mode-veil {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg,
            color-mix(in srgb, var(--bg) 93%, transparent) 0%,
            color-mix(in srgb, var(--bg) 84%, transparent) 34%,
            color-mix(in srgb, var(--bg) 92%, transparent) 64%,
            var(--bg) 100%),
        radial-gradient(70% 40% at 50% 8%,
            color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%);
}
.mode-inner {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: center;
    height: 100%;
    padding: 118px 84px 92px;
    text-align: center;
}

.mode-brand { flex: none; height: 190px; margin-bottom: 30px; display: grid; place-items: center; }
/* en px, no en %: dentro de este grid el navegador no resuelve el porcentaje
   y el logo se desbordaba encima del texto */
.mode-brand img { max-height: 190px; max-width: 420px; width: auto; height: auto; object-fit: contain; }
.mode-brand .letter {
    width: 150px; height: 150px; border-radius: 42px;
    display: grid; place-items: center;
    font-family: var(--font-display); font-size: 78px; font-weight: 800;
    color: var(--brand-ink);
    background: linear-gradient(145deg, var(--brand), var(--brand-2));
    box-shadow: var(--glow);
}

.screen-kicker {
    font-size: 27px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    color: var(--brand-text);
}
.screen-title {
    font-family: var(--font-display);
    font-size: 78px; font-weight: 800; letter-spacing: -.035em; text-align: center; line-height: 1.04;
    margin-top: 14px;
}
.screen-note { font-size: 30px; color: var(--text-soft); text-align: center; }

/* trazo de pincel bajo el titulo, como el brandbook */
.swoosh { width: 360px; height: 18px; margin-top: 26px; color: var(--brand); flex: none; }
.swoosh path { fill: currentColor; }

/* flex:1 + align-content centran las tarjetas en el espacio sobrante */
.mode-grid { display: grid; align-content: center; gap: 38px; width: 100%; flex: 1; }

.mode-card {
    position: relative;
    display: flex; align-items: center; gap: 38px;
    padding: 46px 46px;
    border-radius: 44px;
    background: color-mix(in srgb, var(--surface) 58%, transparent);
    backdrop-filter: blur(16px);
    border: 1.5px solid color-mix(in srgb, var(--brand) 34%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 22px 54px rgba(0, 0, 0, .45);
    text-align: left;
    transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.mode-card:hover {
    border-color: color-mix(in srgb, var(--brand) 70%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07),
                0 26px 60px rgba(0, 0, 0, .5),
                0 0 34px color-mix(in srgb, var(--brand) 22%, transparent);
}
.mode-card:active { transform: scale(.975); }

.mode-ico {
    flex: none;
    width: 148px; height: 148px;
    border-radius: 36px;
    display: grid; place-items: center;
    font-size: 70px;
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 9%, transparent);
    border: 2px solid var(--brand);
    box-shadow: 0 0 26px color-mix(in srgb, var(--brand) 34%, transparent),
                inset 0 0 22px color-mix(in srgb, var(--brand) 16%, transparent);
}
.mode-ico i {
    width: 78px; height: 78px;
    background: currentColor;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center;  mask-position: center;
    -webkit-mask-size: contain;     mask-size: contain;
}
.mode-ico i[data-ico="plate"] { -webkit-mask-image: var(--ico-plate); mask-image: var(--ico-plate); }
.mode-ico i[data-ico="bag"]   { -webkit-mask-image: var(--ico-bag);   mask-image: var(--ico-bag); }
.mode-ico i[data-ico="seat"]  { -webkit-mask-image: var(--ico-seat);  mask-image: var(--ico-seat); }
.mode-ico i[data-ico="truck"] { -webkit-mask-image: var(--ico-truck); mask-image: var(--ico-truck); }
.mode-ico i[data-ico="cup"]   { -webkit-mask-image: var(--ico-cup);   mask-image: var(--ico-cup); }
.mode-ico i[data-ico="store"] { -webkit-mask-image: var(--ico-store); mask-image: var(--ico-store); }

.mode-txt h3 {
    font-family: var(--font-display);
    font-size: 50px; font-weight: 750; letter-spacing: -.02em; margin-bottom: 10px;
}
.mode-txt p { font-size: 28px; color: var(--text-soft); line-height: 1.38; }

.mode-card .chev {
    flex: none;
    margin-left: auto;
    width: 88px; height: 88px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 40px; line-height: 1;
    color: var(--brand);
    border: 2px solid color-mix(in srgb, var(--brand) 50%, transparent);
    transition: background .25s var(--ease);
}
.mode-card:hover .chev { background: color-mix(in srgb, var(--brand) 14%, transparent); }

.mode-cancel { margin-top: auto; }

/* ==========================================================================
   3 · Menu
   ========================================================================== */

#menu { padding: 0; }

.topbar {
    flex: none;
    display: flex; align-items: center; gap: 24px;
    padding: 38px 44px 30px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    z-index: 5;
}

.topbar .logo {
    width: 84px; height: 84px; border-radius: 24px;
    display: grid; place-items: center;
    font-family: var(--font-display); font-size: 42px; font-weight: 800;
    color: var(--brand-ink);
    background: linear-gradient(145deg, var(--brand), var(--brand-2));
    flex: none;
}
.topbar .logo img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.topbar .logo.has-img { background: #fff; padding: 6px; border: 1px solid var(--line); }
.brand-logo.has-img { background: #fff; padding: 14px; }
.topbar .who { min-width: 0; }
.topbar .who strong {
    display: block;
    font-family: var(--font-display);
    font-size: 36px; font-weight: 750;
    letter-spacing: -.02em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar .who .venue-line {
    display: flex; align-items: center; gap: 9px;
    font-size: 23px; color: var(--text-dim);
}
.topbar .who .venue-line .pin {
    width: 20px; height: 20px; flex: none;
    background: var(--brand);
    -webkit-mask: var(--ico-pin) center / contain no-repeat;
            mask: var(--ico-pin) center / contain no-repeat;
}

.pill {
    display: inline-flex; align-items: center; gap: 12px;
    height: 74px; padding: 0 30px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    font-size: 25px; font-weight: 600; color: var(--text-soft);
    white-space: nowrap;
    transition: transform .2s var(--ease), background .2s var(--ease);
}
.pill:active { transform: scale(.95); }
.pill.accent {
    background: color-mix(in srgb, var(--brand) 13%, var(--surface));
    border-color: color-mix(in srgb, var(--brand) 40%, transparent);
    color: var(--brand-text);
}
.topbar .spacer { margin-left: auto; }

/* --- carrusel de banners (lo administra el comercio) --------------------- */

.hero-rail {
    position: relative;
    flex: none;
    margin: 4px 44px 0;
    height: 360px;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.hero-track { display: flex; height: 100%; transition: transform .6s var(--ease); }

.hero-slide {
    position: relative;
    flex: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.hero-slide img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 72% center;
}
.hero-slide .scrim {
    position: absolute; inset: 0;
    background: linear-gradient(95deg,
        color-mix(in srgb, var(--bg) 94%, transparent) 0%,
        color-mix(in srgb, var(--bg) 82%, transparent) 38%,
        transparent 74%);
}
.hero-copy {
    position: relative; z-index: 2;
    height: 100%;
    display: flex; flex-direction: column; justify-content: center; gap: 12px;
    padding: 0 48px;
    max-width: 62%;
}
.hero-copy .kicker {
    font-family: var(--font-display);
    font-size: 30px; font-weight: 700; letter-spacing: .02em;
    color: var(--text-soft);
    text-transform: uppercase;
}
.hero-copy h3 {
    font-family: var(--font-display);
    font-size: 58px; font-weight: 800; letter-spacing: -.035em; line-height: 1;
    color: var(--brand);
    text-transform: uppercase;
}
.hero-copy h3::after {
    content: ''; display: block;
    width: 150px; height: 7px; margin-top: 12px;
    border-radius: 99px;
    background: var(--brand);
}
.hero-copy p { font-size: 26px; line-height: 1.35; color: var(--text-soft); margin-top: 4px; }

.hero-dots {
    position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3;
    display: flex; justify-content: center; gap: 10px;
}
.hero-dots i {
    width: 12px; height: 12px; border-radius: 50%;
    background: color-mix(in srgb, var(--text) 30%, transparent);
    transition: all .3s var(--ease);
}
.hero-dots i.on { width: 34px; border-radius: 99px; background: var(--brand); }

/* --- rail de categorias -------------------------------------------------- */

.cats {
    flex: none;
    display: flex; gap: 20px;
    padding: 26px 44px 28px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
}
.cats::-webkit-scrollbar { display: none; }

.cat {
    position: relative;
    flex: none;
    width: 196px;
    padding: 14px 12px 16px;
    border-radius: var(--r);
    background: var(--surface);
    border: 2px solid var(--line);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform .26s var(--ease), border-color .26s var(--ease),
                box-shadow .26s var(--ease), background .26s var(--ease);
}
.cat:active { transform: scale(.95); }
.cat img {
    width: 100%; height: 112px;
    object-fit: cover;
    border-radius: 18px;
    transition: transform .4s var(--ease);
}
.cat .cat-name {
    display: block;
    margin-top: 12px;
    font-size: 24px; font-weight: 650; line-height: 1.2;
    color: var(--text-soft);
}
.cat .cat-ico {
    position: absolute; top: 20px; right: 20px;
    font-size: 26px;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,.45));
}
.cat.on {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 9%, var(--surface));
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 16%, transparent),
                0 14px 30px rgba(0, 0, 0, .35);
}
.cat.on img { transform: scale(1.05); }
.cat.on .cat-name { color: var(--text); }

/* --- grilla de productos ------------------------------------------------- */

.plist {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 44px 250px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.plist::-webkit-scrollbar { display: none; }

.sec-head {
    display: flex; align-items: center; gap: 18px;
    padding: 30px 4px 22px;
}
.sec-head h2 {
    font-family: var(--font-display);
    font-size: 50px; font-weight: 800; letter-spacing: -.03em;
}
.sec-head .sub { display: block; font-size: 25px; color: var(--text-dim); margin-top: 6px; }
.sec-head .see-all {
    margin-left: auto; flex: none;
    display: inline-flex; align-items: center; gap: 12px;
    height: 72px; padding: 0 30px;
    border-radius: 999px;
    border: 2px solid color-mix(in srgb, var(--brand) 55%, transparent);
    color: var(--brand-text);
    font-family: var(--font-display); font-size: 26px; font-weight: 700;
    transition: transform .2s var(--ease), background .2s var(--ease);
}
.sec-head .see-all:active { transform: scale(.95); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

.pcard {
    position: relative;
    display: flex; flex-direction: column;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    text-align: left;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
/* Sin bordes de color al pasar el mouse: solo se levanta un poco. */
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pcard:active { transform: scale(.972); }
.pcard.out-of-stock { opacity: .45; pointer-events: none; }

.pcard-img { position: relative; height: 300px; overflow: hidden; background: var(--surface-2); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .pcard-img img { transform: scale(1.05); }

.badge {
    position: absolute; top: 20px; left: 20px; z-index: 2;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 22px; font-weight: 700; letter-spacing: .01em;
    color: var(--text);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line-strong);
    box-shadow: 0 6px 18px rgba(0,0,0,.28);
}
.badge.sold { color: var(--text-soft); }

.pcard-body { flex: 1; display: flex; flex-direction: column; padding: 24px 28px 26px; gap: 10px; }
.pcard-body h3 {
    font-family: var(--font-display);
    font-size: 34px; font-weight: 750; letter-spacing: -.02em; line-height: 1.16;
}
.pcard-body p {
    font-size: 24px; line-height: 1.42; color: var(--text-dim);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-meta { display: flex; align-items: center; gap: 10px; font-size: 22px; color: var(--text-dim); }
.pcard-meta .clock {
    width: 24px; height: 24px; flex: none;
    background: currentColor;
    -webkit-mask: var(--ico-clock) center / contain no-repeat;
            mask: var(--ico-clock) center / contain no-repeat;
}
.pcard-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: 14px; }

.price { display: flex; align-items: baseline; gap: 12px; }
.price .now {
    font-family: var(--font-display);
    font-size: 40px; font-weight: 800; letter-spacing: -.025em;
}
.price .was { font-size: 24px; color: var(--text-dim); text-decoration: line-through; }

.add {
    margin-left: auto;
    width: 84px; height: 84px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 44px; font-weight: 400; line-height: 1;
    color: var(--brand-ink);
    background: var(--brand);
    box-shadow: 0 10px 26px color-mix(in srgb, var(--brand) 40%, transparent);
    transition: transform .2s var(--ease-back);
}
.add:active { transform: scale(.88); }

.rail { display: flex; gap: 24px; overflow-x: auto; padding: 4px 4px 14px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail .pcard { flex: none; width: 420px; }
.rail .pcard-img { height: 240px; }

/* --- barra del carrito --------------------------------------------------- */

.cartbar {
    position: absolute; left: 0; right: 0; bottom: 0;
    z-index: 20;
    display: flex; align-items: center; gap: 26px;
    padding: 28px 44px 38px;
    background: var(--bar-fade);
    transform: translateY(130%);
    transition: transform .5s var(--ease);
}
.cartbar.on { transform: translateY(0); }

.cartbar-info { display: flex; align-items: center; gap: 22px; }
.cartbar-ico {
    position: relative;
    width: 86px; height: 86px;
    border-radius: 28px;
    display: grid; place-items: center;
    font-size: 42px;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
}
.cart-count {
    position: absolute; top: -8px; right: -8px;
    min-width: 40px; height: 40px; padding: 0 10px;
    border-radius: 999px;
    display: grid; place-items: center;
    font-size: 23px; font-weight: 800;
    color: var(--brand-ink);
    background: var(--brand);
    border: 3px solid var(--bg);
}
.cart-count.pop { animation: pop .5s var(--ease-back); }
@keyframes pop {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.45); }
    100% { transform: scale(1); }
}

.cartbar-info small { display: block; font-size: 22px; color: var(--text-dim); }
.cartbar-info strong {
    font-family: var(--font-display); font-size: 42px; font-weight: 750; letter-spacing: -.02em;
}

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 16px;
    height: 100px; padding: 0 46px;
    border-radius: 30px;
    font-family: var(--font-display);
    font-size: 32px; font-weight: 700; letter-spacing: -.01em;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    color: var(--text);
    transition: transform .2s var(--ease), opacity .2s;
}
.btn:active { transform: scale(.96); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn-primary {
    color: var(--brand-ink);
    background: linear-gradient(140deg, var(--brand), var(--brand-2));
    border-color: transparent;
    box-shadow: var(--glow);
}
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text-soft); }
.btn-lg { height: 118px; font-size: 36px; border-radius: 34px; }
.btn-block { width: 100%; }
.cartbar .btn { margin-left: auto; }

/* ==========================================================================
   4 · Ficha del producto (hoja inferior)
   ========================================================================== */

#sheet-wrap { position: absolute; inset: 0; z-index: 40; display: none; }
#sheet-wrap.on { display: block; }

.sheet-scrim {
    position: absolute; inset: 0;
    background: var(--overlay);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .38s var(--ease);
}
#sheet-wrap.on .sheet-scrim { opacity: 1; }

.sheet {
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 1480px;
    display: flex; flex-direction: column;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    background: var(--bg-2);
    border-top: 1px solid var(--line-strong);
    box-shadow: 0 -30px 80px rgba(16, 19, 28, .28);
    transform: translateY(100%);
    transition: transform .52s var(--ease);
    overflow: hidden;
}
#sheet-wrap.on .sheet { transform: translateY(0); }

.sheet-hero { position: relative; height: 470px; flex: none; }
.sheet-hero img { width: 100%; height: 100%; object-fit: cover; }
.sheet-hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, var(--bg-2) 100%);
}
.sheet-close {
    position: absolute; top: 26px; right: 26px; z-index: 3;
    width: 76px; height: 76px; border-radius: 50%;
    display: grid; place-items: center;
    font-size: 34px;
    color: var(--glass-ink);
    background: var(--glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-line);
}
.sheet-grab {
    position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 3;
    width: 110px; height: 7px; border-radius: 99px;
    background: rgba(255,255,255,.75);
    box-shadow: 0 1px 4px rgba(0,0,0,.35);
}

/* El cuerpo sube 60px sobre la foto (el degradado del hero lo funde): asi el
   titulo vive DENTRO del area con scroll y no lo recorta el overflow. */
.sheet-body {
    position: relative; z-index: 2; flex: 1; overflow-y: auto;
    margin-top: -60px;
    padding: 0 52px 40px; scrollbar-width: none;
}
.sheet-body::-webkit-scrollbar { display: none; }

.sheet-title {
    font-family: var(--font-display);
    font-size: 56px; font-weight: 800; letter-spacing: -.035em; line-height: 1.06;
    position: relative; z-index: 2;
}
.sheet-desc { margin-top: 18px; font-size: 27px; line-height: 1.5; color: var(--text-soft); }
.sheet-meta { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.tag {
    padding: 11px 22px; border-radius: 999px;
    font-size: 22px; font-weight: 600; color: var(--text-soft);
    background: var(--surface); border: 1px solid var(--line);
}

.mgroup { margin-top: 42px; }
.mgroup-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.mgroup-head h4 {
    font-family: var(--font-display);
    font-size: 34px; font-weight: 700; letter-spacing: -.02em;
}
.req {
    padding: 8px 18px; border-radius: 999px;
    font-size: 19px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--brand-ink);
    background: var(--brand);
}
.opt-hint { margin-left: auto; font-size: 22px; color: var(--text-dim); }

.opts { display: grid; gap: 14px; }
.opt {
    display: flex; align-items: center; gap: 22px;
    padding: 24px 28px;
    border-radius: var(--r);
    background: var(--surface);
    border: 2px solid var(--line);
    font-size: 28px;
    text-align: left;
    transition: border-color .22s var(--ease), background .22s var(--ease), transform .18s var(--ease);
}
.opt:active { transform: scale(.985); }
.opt .box {
    flex: none;
    width: 44px; height: 44px;
    border-radius: 14px;
    border: 2px solid var(--line-strong);
    display: grid; place-items: center;
    font-size: 24px; color: transparent;
    transition: all .22s var(--ease);
}
.opt.radio .box { border-radius: 50%; }
.opt .opt-price { margin-left: auto; font-size: 25px; color: var(--text-dim); font-weight: 650; }
.opt.on {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 10%, var(--surface));
}
.opt.on .box { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.opt.on .opt-price { color: var(--text); }

.sheet-foot {
    flex: none;
    display: flex; align-items: center; gap: 26px;
    padding: 30px 52px 44px;
    border-top: 1px solid var(--line);
    background: var(--bg-2);
}

.stepper {
    display: flex; align-items: center; gap: 8px;
    padding: 8px;
    border-radius: 28px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
}
.stepper button {
    width: 78px; height: 78px; border-radius: 22px;
    display: grid; place-items: center;
    font-size: 38px; line-height: 1;
    background: var(--surface-2);
    transition: transform .18s var(--ease-back), background .2s;
}
.stepper button:active { transform: scale(.88); }
.stepper .qty {
    min-width: 76px; text-align: center;
    font-family: var(--font-display); font-size: 38px; font-weight: 750;
}

/* ==========================================================================
   5 · Carrito
   ========================================================================== */

#cart { padding: 0; }
.cart-scroll { flex: 1; overflow-y: auto; padding: 8px 44px 40px; scrollbar-width: none; }
.cart-scroll::-webkit-scrollbar { display: none; }

.line {
    display: flex; gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
    animation: lineIn .4s var(--ease) both;
}
@keyframes lineIn { from { opacity: 0; transform: translateY(14px); } }

.line img {
    flex: none;
    width: 150px; height: 150px;
    border-radius: 26px;
    object-fit: cover;
    background: var(--surface-2);
}
.line-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.line-main h4 { font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.line-mods { font-size: 22px; color: var(--text-dim); line-height: 1.45; }
.line-foot { margin-top: auto; display: flex; align-items: center; gap: 20px; }
.line-price { margin-left: auto; font-family: var(--font-display); font-size: 34px; font-weight: 750; }

.stepper.sm { padding: 6px; border-radius: 22px; }
.stepper.sm button { width: 58px; height: 58px; border-radius: 18px; font-size: 30px; }
.stepper.sm .qty { min-width: 56px; font-size: 30px; }

.trash { font-size: 30px; color: var(--text-dim); padding: 12px; }

.empty { display: grid; place-items: center; gap: 24px; padding: 220px 0; text-align: center; }
.empty .big { font-size: 120px; opacity: .35; }
.empty p { font-size: 32px; color: var(--text-dim); }

.totals {
    margin: 30px 0 0;
    padding: 34px 38px;
    border-radius: var(--r-lg);
    background: var(--surface-2);
    border: 1px solid var(--line);
}
.trow { display: flex; justify-content: space-between; font-size: 27px; color: var(--text-soft); padding: 10px 0; }
.trow.grand {
    margin-top: 14px; padding-top: 24px;
    border-top: 1px solid var(--line-strong);
    font-family: var(--font-display);
    font-size: 46px; font-weight: 800; letter-spacing: -.025em; color: var(--text);
}

.cart-foot {
    flex: none;
    display: flex; gap: 20px;
    padding: 26px 44px 40px;
    border-top: 1px solid var(--line);
    background: var(--bg);
}

.upsell { margin-top: 38px; }
.upsell h3 {
    font-family: var(--font-display); font-size: 36px; font-weight: 750;
    margin-bottom: 20px; letter-spacing: -.02em;
}
.up-rail { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.up-rail::-webkit-scrollbar { display: none; }
.up {
    flex: none; width: 250px;
    border-radius: var(--r);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    text-align: left;
}
.up:active { transform: scale(.96); }
.up img { width: 100%; height: 140px; object-fit: cover; }
.up-body { padding: 16px 18px 18px; display: grid; gap: 8px; }
.up-body strong { font-size: 24px; font-weight: 650; line-height: 1.2; }
.up-body span {
    font-size: 25px; font-weight: 750; font-family: var(--font-display);
    color: var(--brand-text);
}

/* ==========================================================================
   6 · Pago
   ========================================================================== */

#pay { padding: 0; }
.pay-scroll { flex: 1; overflow-y: auto; padding: 20px 44px 40px; scrollbar-width: none; }
.pay-scroll::-webkit-scrollbar { display: none; }

.paylist { display: grid; gap: 22px; }
.paym {
    display: flex; align-items: center; gap: 30px;
    padding: 38px 40px;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 2px solid var(--line);
    box-shadow: var(--shadow-sm);
    text-align: left;
    transition: border-color .25s var(--ease), background .25s var(--ease), transform .2s var(--ease);
}
.paym:active { transform: scale(.98); }
.paym.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, var(--surface)); }
.paym-ico {
    flex: none; width: 104px; height: 104px; border-radius: 30px;
    display: grid; place-items: center; font-size: 48px;
    background: var(--surface-2); border: 1px solid var(--line);
}
.paym h4 { font-family: var(--font-display); font-size: 36px; font-weight: 700; letter-spacing: -.02em; }
.paym p { font-size: 24px; color: var(--text-dim); margin-top: 6px; }
.paym .check {
    margin-left: auto; width: 46px; height: 46px; border-radius: 50%;
    border: 2px solid var(--line-strong); display: grid; place-items: center;
    color: transparent; font-size: 26px;
    transition: all .25s var(--ease);
}
.paym.on .check { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

.tips { display: flex; gap: 14px; margin-top: 12px; }
.tip-btn {
    flex: 1;
    height: 92px; border-radius: 26px;
    background: var(--surface); border: 2px solid var(--line);
    font-size: 27px; font-weight: 650; color: var(--text-soft);
    transition: all .22s var(--ease);
}
.tip-btn.on {
    border-color: var(--brand); color: var(--text);
    background: color-mix(in srgb, var(--brand) 10%, var(--surface));
}

.namebox {
    width: 100%; height: 108px;
    padding: 0 32px;
    border-radius: 28px;
    background: var(--surface);
    border: 2px solid var(--line-strong);
    color: var(--text);
    font-family: inherit; font-size: 30px;
}
.namebox::placeholder { color: var(--text-dim); }
.namebox:focus { outline: none; border-color: var(--brand); }

.kb { display: grid; gap: 12px; margin-top: 22px; }
.kb-row { display: flex; gap: 12px; justify-content: center; }
.kb-key {
    flex: 1; min-width: 0; height: 96px;
    border-radius: 20px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    font-size: 32px; font-weight: 600;
    transition: transform .12s var(--ease), background .15s;
}
.kb-key:active { transform: scale(.92); background: var(--brand); color: var(--brand-ink); }
.kb-key.wide { flex: 2.4; font-size: 26px; }

#processing {
    position: absolute; inset: 0; z-index: 60;
    display: none;
    flex-direction: column; align-items: center; justify-content: center; gap: 46px;
    padding: 0 90px; text-align: center;
    background: var(--stage-glow);
}
#processing.on { display: flex; }

.terminal {
    position: relative;
    width: 320px; height: 420px;
    border-radius: 44px;
    background: var(--terminal);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    display: grid; place-items: start center;
    padding-top: 54px;
}
.terminal .slot {
    width: 200px; height: 10px; border-radius: 99px;
    background: var(--terminal-slot);
    box-shadow: inset 0 2px 5px rgba(0,0,0,.3);
}
.terminal .screen-mini {
    position: absolute; top: 108px; left: 40px; right: 40px; height: 150px;
    border-radius: 18px;
    background: var(--mini-screen);
    border: 1px solid var(--line);
    display: grid; place-items: center;
    font-size: 26px; color: var(--ok); font-weight: 650;
}
.card-anim {
    position: absolute; top: -110px; left: 50%;
    width: 186px; height: 116px; margin-left: -93px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 14px 34px rgba(16,19,28,.38);
    animation: insert 2.4s var(--ease) infinite;
}
.card-anim::after {
    content: ''; position: absolute; top: 34px; left: 16px;
    width: 40px; height: 30px; border-radius: 6px;
    background: rgba(255,255,255,.75);
}
@keyframes insert {
    0%   { transform: translateY(0); opacity: 0; }
    18%  { opacity: 1; }
    52%  { transform: translateY(104px); opacity: 1; }
    100% { transform: translateY(104px); opacity: 1; }
}

.qr-box {
    width: 420px; height: 420px;
    border-radius: 40px;
    background: #fff;
    display: grid; place-items: center;
    padding: 26px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.qr-box canvas, .qr-box svg { width: 100%; height: 100%; }

.proc-title { font-family: var(--font-display); font-size: 54px; font-weight: 750; letter-spacing: -.03em; }
.proc-sub { font-size: 30px; color: var(--text-soft); line-height: 1.45; }

.bar { width: 480px; height: 12px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i {
    display: block; height: 100%; width: 0; border-radius: 99px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

/* ==========================================================================
   7 · Listo
   ========================================================================== */

#done {
    align-items: center; justify-content: center; gap: 40px;
    padding: 0 84px; text-align: center;
    background: var(--stage-glow);
}

.tick {
    width: 230px; height: 230px; border-radius: 50%;
    display: grid; place-items: center;
    background: color-mix(in srgb, var(--ok) 14%, transparent);
    border: 4px solid var(--ok);
    animation: tickIn .7s var(--ease-back) both;
}
@keyframes tickIn { from { transform: scale(.3); opacity: 0; } }
.tick svg { width: 118px; height: 118px; }
.tick path {
    fill: none; stroke: var(--ok); stroke-width: 10;
    stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 120; stroke-dashoffset: 120;
    animation: draw .5s var(--ease) .35s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.done-label { font-size: 32px; color: var(--text-soft); letter-spacing: .02em; }
.order-code {
    font-family: var(--font-display);
    font-size: 210px; font-weight: 800; line-height: .9; letter-spacing: -.06em;
    background: var(--headline-ink);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: codeIn .8s var(--ease-back) .2s both;
}
@keyframes codeIn { from { transform: scale(.6) translateY(30px); opacity: 0; } }

.done-card {
    width: 100%;
    padding: 36px 44px;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    display: grid; gap: 16px;
}
.done-row { display: flex; justify-content: space-between; font-size: 28px; color: var(--text-soft); }
.done-row strong { color: var(--text); font-weight: 700; }

#confetti { position: absolute; inset: 0; z-index: 5; pointer-events: none; }

.done-actions { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.countdown { font-size: 26px; color: var(--text-dim); }

/* ==========================================================================
   Selector de comercio (solo demo, cuando falta ?t=)
   ========================================================================== */

#picker { padding: 180px 84px; gap: 48px; align-items: center; }
.venue-card {
    display: flex; align-items: center; gap: 34px; width: 100%;
    padding: 34px 38px;
    border-radius: var(--r-lg);
    background: var(--surface); border: 2px solid var(--line);
    box-shadow: var(--shadow-sm);
    text-align: left;
}
.venue-card:active { transform: scale(.98); }
.venue-card img { width: 160px; height: 120px; border-radius: 24px; object-fit: cover; flex: none; }
.venue-card h3 { font-family: var(--font-display); font-size: 40px; font-weight: 700; letter-spacing: -.02em; }
.venue-card p { font-size: 25px; color: var(--text-dim); margin-top: 8px; }

/* ==========================================================================
   Avisos + utilidades
   ========================================================================== */

#toast {
    position: absolute; left: 50%; bottom: 230px; z-index: 70;
    transform: translate(-50%, 40px);
    padding: 26px 44px;
    border-radius: 999px;
    background: #10131C;
    color: #fff;
    box-shadow: var(--shadow);
    font-size: 27px; font-weight: 600;
    opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease), transform .4s var(--ease);
    white-space: nowrap;
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* imagen que "vuela" al carrito */
.flyer {
    position: absolute; z-index: 65;
    border-radius: 22px;
    object-fit: cover;
    pointer-events: none;
    box-shadow: var(--shadow);
}

#idle-warn {
    position: absolute; inset: 0; z-index: 80;
    display: none; place-items: center;
    background: var(--overlay);
    backdrop-filter: blur(8px);
    text-align: center;
}
#idle-warn.on { display: grid; }
.idle-box { display: grid; gap: 30px; justify-items: center; padding: 0 90px; }
.idle-box .num {
    font-family: var(--font-display); font-size: 150px; font-weight: 800;
    color: var(--brand); line-height: 1;
}

.spinner {
    width: 76px; height: 76px; border-radius: 50%;
    border: 6px solid var(--line-strong);
    border-top-color: var(--brand);
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.center-load { position: absolute; inset: 0; display: grid; place-items: center; gap: 30px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ==========================================================================
   Comercios con negro propio (html.inked): fondo negro plano y tarjetas que
   se despegan con un borde fino, sombra profunda y el precio en el color de
   marca. Solo se activa cuando el comercio define su negro (kiosk_ink).
   ========================================================================== */

html.inked .pcard,
html.inked .up,
html.inked .mode-card,
html.inked .paym,
html.inked .venue-card {
    border: 1px solid rgba(255, 255, 255, .09);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
}
html.inked .pcard-img { background: #000; }
html.inked .line-price,
html.inked .cartbar-info strong,
html.inked .trow.grand span:last-child { color: var(--brand-text); }
html.inked .hero-rail, html.inked .cat { border-color: rgba(255, 255, 255, .09); }
/* un comercio con tema oscuro sube su logo en version clara: sin caja blanca */
html.inked .brand-logo.has-img,
html.inked .topbar .logo.has-img {
    background: none; border: 0; padding: 0; box-shadow: none;
}
html.inked .brand-logo.has-img img,
html.inked .topbar .logo.has-img img { object-fit: contain; }
html.inked .cat img { opacity: .9; }
html.inked .sec-head h2 { color: #fff; }
html.inked .topbar { border-bottom-color: rgba(255, 255, 255, .08); }
html.inked .opt, html.inked .tip-btn, html.inked .kb-key { border-color: rgba(255, 255, 255, .09); }
html.inked .totals, html.inked .done-card { border-color: rgba(255, 255, 255, .09); }
