/* ═══════════════════════════════════════════════════════════════
   Tienda online
   · Todo escala con la pantalla (clamp/vw): columnas, fotos, letras y aire.
   · A la izquierda los 3 pasos (cajas, entrega, datos); a la derecha el
     resumen, que acompaña todo el armado del pedido.
   ═══════════════════════════════════════════════════════════════ */
.tienda {
  --t-aire: clamp(1.25rem, 2.4vw, 2.6rem);           /* aire interno de cada bloque */
  --t-gap: clamp(1rem, 1.8vw, 1.9rem);               /* separación entre elementos */
  --t-borde: rgba(250, 247, 242, .09);
  --t-panel: rgba(250, 247, 242, .045);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(200, 169, 74, .10), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(122, 31, 53, .45), transparent 60%),
    var(--wine-dark);
  color: var(--cream);
  padding-block: clamp(4.5rem, 8vw, 8.5rem);
  scroll-margin-top: 70px;
}
.t-wrap { width: min(1500px, 92vw); margin-inline: auto; }

/* Encabezado */
.t-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.8rem); }
.t-head .eyebrow { color: var(--gold); }
.t-head h2 { font-size: clamp(2.8rem, 6vw, 6rem); font-weight: 900; line-height: .92; letter-spacing: -.055em; }
.t-head p { margin-top: clamp(.8rem, 1.4vw, 1.3rem); font-size: clamp(1rem, 1.15vw, 1.2rem); line-height: 1.6; color: rgba(250, 247, 242, .66); }

/* Grilla principal */
.t-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 26vw, 420px); gap: clamp(1.5rem, 3vw, 3.2rem); align-items: start; }
.t-main { display: grid; gap: clamp(1.5rem, 3vw, 2.8rem); min-width: 0; }
.t-bloque { background: var(--t-panel); border: 1px solid var(--t-borde); border-radius: clamp(22px, 2vw, 34px); padding: var(--t-aire); min-width: 0; scroll-margin-top: calc(70px + 1.5rem); }
.t-bloque-head { display: flex; gap: clamp(.8rem, 1.2vw, 1.2rem); align-items: flex-start; margin-bottom: clamp(1.2rem, 2vw, 2rem); }
.t-num { flex: none; display: grid; place-items: center; width: clamp(2rem, 2.4vw, 2.6rem); height: clamp(2rem, 2.4vw, 2.6rem); border-radius: 50%;
  background: var(--gold); color: var(--wine-dark); font-weight: 900; font-size: clamp(.95rem, 1.1vw, 1.15rem); }
.t-bloque-head h3 { font-size: clamp(1.35rem, 1.9vw, 2rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.1; }
.t-bloque-head p { margin-top: .35rem; font-size: clamp(.85rem, .95vw, .98rem); color: rgba(250, 247, 242, .58); line-height: 1.5; }

/* ─── Cajas ─── */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(200px, 17vw, 290px), 1fr)); gap: var(--t-gap); }
.product { display: flex; flex-direction: column; border-radius: clamp(18px, 1.6vw, 26px); overflow: hidden; background: rgba(250, 247, 242, .06);
  border: 1.5px solid transparent; transition: border-color .35s, transform .45s var(--ease), box-shadow .45s var(--ease); }
.product:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(0, 0, 0, .7); }
.product.selected { border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); }
.p-foto { position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #f5f0e8 62%, #ebe3d6 100%); }
.p-foto img { position: absolute; inset: 9% 8%; width: 84%; height: 82%; object-fit: contain;
  mix-blend-mode: multiply; transition: transform .6s var(--ease); }   /* el fondo blanco de la foto se funde con la tarjeta */
.product:hover .p-foto img { transform: scale(1.05) rotate(-1.5deg); }
.p-cant { position: absolute; top: .8rem; right: .8rem; min-width: 2.1rem; height: 2.1rem; padding: 0 .55rem; border-radius: 999px;
  display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 900; font-size: .9rem; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .5); }
.p-body { padding: clamp(.95rem, 1.4vw, 1.4rem); flex: 1; display: flex; flex-direction: column; gap: .3rem; }
.product h4 { display: flex; align-items: flex-start; gap: .55rem; font-size: clamp(1rem, 1.15vw, 1.22rem); font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.product h4 i { flex: none; width: .6rem; height: .6rem; margin-top: .35em; border-radius: 50%; background: var(--c); }
.product p { font-size: clamp(.8rem, .85vw, .9rem); color: rgba(250, 247, 242, .58); margin-bottom: clamp(.7rem, 1vw, 1rem); }
.controles { display: flex; gap: .55rem; align-items: stretch; margin-top: auto; }
.stepper { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; background: rgba(0, 0, 0, .25); border-radius: 999px; padding: .28rem; }
.stepper button { width: clamp(2.1rem, 2.4vw, 2.5rem); aspect-ratio: 1; border-radius: 50%; border: 0; background: rgba(250, 247, 242, .1); color: var(--cream);
  font-size: 1.2rem; font-weight: 700; cursor: pointer; transition: background .25s, color .25s; }
.stepper button:hover { background: var(--gold); color: var(--wine-dark); }
.stepper input { width: 100%; min-width: 2rem; text-align: center; background: transparent; border: 0; color: var(--cream); font-weight: 800;
  font-size: clamp(1rem, 1.1vw, 1.15rem); -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.mas5 { flex: none; padding: 0 clamp(.75rem, 1vw, 1rem); border-radius: 999px; border: 1.5px dashed color-mix(in srgb, var(--c) 70%, transparent);
  background: transparent; color: var(--cream); font: inherit; font-weight: 800; font-size: .85rem; cursor: pointer; transition: background .25s, border-color .25s; }
.mas5:hover, .mas5:focus-visible { background: color-mix(in srgb, var(--c) 24%, transparent); border-style: solid; outline: none; }

/* ─── Entrega ─── */
.delivery { display: grid; grid-template-columns: repeat(auto-fit, minmax(clamp(210px, 18vw, 280px), 1fr)); gap: var(--t-gap); }
.opt { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: clamp(1rem, 1.4vw, 1.4rem) clamp(1rem, 1.4vw, 1.4rem) clamp(1rem, 1.4vw, 1.4rem) 3.2rem;
  border-radius: clamp(16px, 1.4vw, 22px); border: 1.5px solid rgba(250, 247, 242, .12); cursor: pointer; transition: border-color .3s, background .3s; }
.opt:hover { border-color: rgba(250, 247, 242, .25); }
.opt:has(input:checked) { border-color: var(--gold); background: rgba(200, 169, 74, .09); }
.opt:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.opt input { position: absolute; left: 1.2rem; top: clamp(1.1rem, 1.5vw, 1.5rem); accent-color: var(--gold); width: 1.15rem; height: 1.15rem; }
.opt span { display: flex; flex-direction: column; gap: .2rem; }
.opt b { font-size: clamp(.98rem, 1.05vw, 1.1rem); }
.opt small { font-size: .85rem; color: rgba(250, 247, 242, .58); line-height: 1.4; }
.opt em { align-self: flex-start; margin-top: .35rem; font-style: normal; font-size: .75rem; font-weight: 800; color: var(--gold);
  padding: .22rem .65rem; border-radius: 999px; background: rgba(200, 169, 74, .14); }
.rule { margin-top: var(--t-gap); font-size: .9rem; color: var(--gold); }

/* ─── Campos ─── */
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 16vw, 260px), 1fr)); gap: var(--t-gap); margin-top: var(--t-gap); }
.f { display: flex; flex-direction: column; gap: .5rem; min-width: 0; font-size: .82rem; font-weight: 700; letter-spacing: .02em; }
.f-tit small, .f small { font-weight: 500; opacity: .55; }
.f.wide, .f.doble { grid-column: 1 / -1; }
.f input, .f select, .f textarea { width: 100%; min-width: 0; height: clamp(3rem, 3.3vw, 3.4rem); padding: 0 1rem; border-radius: 14px;
  background: rgba(250, 247, 242, .07); border: 1.5px solid rgba(250, 247, 242, .12); color: var(--cream);
  font: inherit; font-size: clamp(.95rem, 1vw, 1.02rem); font-weight: 500; letter-spacing: 0; outline: none; transition: border-color .3s, background .3s; }
.f textarea { height: auto; min-height: 5.5rem; padding: .85rem 1rem; resize: vertical; line-height: 1.5; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--gold); background: rgba(250, 247, 242, .1); }
.f input::placeholder, .f textarea::placeholder { color: rgba(250, 247, 242, .35); }
.f select option { color: var(--ink); }
.f input:-webkit-autofill, .f input:-webkit-autofill:hover, .f input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--cream); caret-color: var(--cream);
  -webkit-box-shadow: 0 0 0 100px #4a1b28 inset; box-shadow: 0 0 0 100px #4a1b28 inset; transition: background-color 9999s; }
.t-grid input.invalid { border-color: #e0605a !important; box-shadow: 0 0 0 3px rgba(224, 96, 90, .18); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ─── Resumen ─── */
/* Sin barra de desplazamiento propia: tienda.js ajusta `top` para que, si el resumen es más
   alto que la pantalla, quede pegado por abajo (total y botón de WhatsApp siempre a la vista). */
.t-resumen { position: sticky; top: calc(70px + 1.5rem);
  background: var(--cream); color: var(--ink); border-radius: clamp(22px, 2vw, 34px); padding: clamp(1.3rem, 2vw, 2rem);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .75); transition: top .25s; }
.t-resumen-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: clamp(.9rem, 1.4vw, 1.3rem); }
.t-resumen-head h3 { font-size: clamp(1.25rem, 1.5vw, 1.55rem); font-weight: 900; letter-spacing: -.035em; }
.t-resumen-n { min-width: 2.3rem; height: 2.3rem; padding: 0 .65rem; border-radius: 999px; display: grid; place-items: center;
  background: var(--wine); color: var(--cream); font-weight: 900; font-size: .9rem; }
.sum-items { list-style: none; display: grid; gap: .6rem; }
.sum-items li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; font-size: .92rem; }
.sum-items li img { width: 3rem; height: 2.2rem; object-fit: contain; border-radius: 8px; background: #fff; padding: .15rem; box-shadow: 0 2px 6px rgba(31, 11, 16, .08); }
.sum-items li b { font-weight: 800; }
.sum-items li .sub { font-weight: 700; font-variant-numeric: tabular-nums; }
.sum-items li.empty { display: block; color: var(--ink-soft); opacity: .7; padding: .4rem 0; }
.t-tramos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-top: clamp(1rem, 1.5vw, 1.4rem); }
.t-tramos div { text-align: center; padding: .55rem .3rem; border-radius: 12px; background: rgba(31, 11, 16, .05); transition: background .3s, color .3s; }
.t-tramos small { display: block; font-size: .68rem; font-weight: 700; color: var(--ink-soft); letter-spacing: .02em; }
.t-tramos b { display: block; font-size: .92rem; font-weight: 900; margin-top: .1rem; font-variant-numeric: tabular-nums; }
.t-tramos .activo { background: var(--wine); color: var(--cream); }
.t-tramos .activo small { color: rgba(250, 247, 242, .75); }
.tier-hint { margin-top: .6rem; font-size: .8rem; font-weight: 700; color: var(--wine-mid); min-height: 1.2em; }
.sum-rows { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid rgba(31, 11, 16, .1); display: grid; gap: .5rem; font-size: .9rem; }
.sum-rows div { display: flex; justify-content: space-between; }
.sum-rows dt { color: var(--ink-soft); }
.sum-rows dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.sum-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: .9rem; padding-top: .9rem; border-top: 2px solid var(--ink); }
.sum-total span { font-weight: 800; }
.sum-total strong { font-size: clamp(1.9rem, 2.4vw, 2.5rem); font-weight: 900; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.continuar { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 1.1rem; padding: .95rem 1.2rem; border-radius: 999px;
  background: var(--wine); color: var(--cream); font-weight: 800; text-decoration: none; transition: background .25s, transform .25s; }
.continuar:hover, .continuar:focus-visible { background: var(--wine-dark); transform: translateY(-1px); outline: none; }
.continuar span { transition: transform .25s; }
.continuar:hover span { transform: translateX(4px); }
.turnstile:not(:empty) { margin-top: 1rem; }
.form-error { margin-top: 1rem; font-size: .85rem; color: #b42318; background: #fde8e7; padding: .7rem .9rem; border-radius: 10px; }
.submit { margin-top: 1rem; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: .7rem; background: #1f8f4e; color: #fff; border: 0;
  padding: 1.05rem; border-radius: 999px; font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; transition: transform .35s var(--ease), background .35s, opacity .35s; }
.submit svg { width: 20px; height: 20px; }
.submit:hover:not(:disabled) { transform: translateY(-2px); background: #177a41; }
.submit:disabled { opacity: .35; cursor: not-allowed; }
.fineprint { margin-top: .8rem; font-size: .74rem; color: var(--ink-soft); line-height: 1.5; text-align: center; }

/* Pedido enviado */
.done { max-width: 540px; margin: 0 auto; text-align: center; background: var(--cream); color: var(--ink); border-radius: 30px; padding: clamp(2rem, 4vw, 3.2rem) 2rem; }
.done-icon { width: 4rem; height: 4rem; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center; background: #1f8f4e; color: #fff; font-size: 2rem; font-weight: 900; }
.done h3 { font-size: 2rem; font-weight: 900; letter-spacing: -.04em; }
.done p { margin-top: .8rem; color: var(--ink-soft); line-height: 1.6; }
.as-link { width: auto; padding-inline: 2rem; margin-top: 1.6rem; text-decoration: none; }
.link { display: block; margin: 1.2rem auto 0; background: none; border: 0; color: var(--wine); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ─── Pantallas medianas y celulares ─── */
@media (max-width: 1024px) {
  .t-grid { grid-template-columns: minmax(0, 1fr); }
  /* el resumen queda abajo, siempre a mano: fijo al pie con el total */
  .t-resumen { position: static; }
}
@media (max-width: 640px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-foto img { inset: 7%; width: 86%; height: 86%; }
  .controles { flex-direction: column; }
  .mas5 { padding: .5rem; }
  .fields { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .products { grid-template-columns: minmax(0, 1fr); }
}

/* ═══ Pulido de interacción (criterios de diseño de Emil Kowalski) ═══
   · Todo lo que se toca responde al instante (scale al presionar).
   · Lo que se usa muchas veces es corto (≤ 250 ms); nada de `transition: all`.
   · En pantallas táctiles no hay "hover": las tarjetas no quedan levantadas tras un toque.
   · En el celular: sin destello gris al tocar, sin zoom por doble toque en + / −,
     y sin zoom automático al escribir (iOS lo hace con letra < 16px). */
:root { --ease-out: cubic-bezier(.23, 1, .32, 1); }

/* Respuesta al presionar */
.cta-button, .continuar, .submit, .mas5, .opt, .fab-pedido, .nutri-tabs button, .stepper button {
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; }
.cta-button:active, .continuar:active, .submit:active:not(:disabled), .mas5:active, .opt:active,
.fab-pedido:active, .nutri-tabs button:active { transform: scale(.97); }
.stepper button:active { transform: scale(.9); }          /* botón chico y redondo: un poco más */
.flavor-card, .product { -webkit-tap-highlight-color: transparent; }
.flavor-card:active { transform: scale(.985); }

/* Tiempos más cortos y propiedades explícitas */
.nutri-tabs button { transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .16s var(--ease-out); }
.stepper button { transition: background-color .2s ease, color .2s ease, transform .12s var(--ease-out); }
.mas5, .opt { transition: background-color .2s ease, border-color .2s ease, transform .16s var(--ease-out); }
.cta-button { transition: transform .2s var(--ease-out), background-color .2s ease; }
.continuar { transition: transform .2s var(--ease-out), background-color .2s ease; }
.submit { transition: transform .2s var(--ease-out), background-color .2s ease, opacity .2s ease; }
.product { transition: border-color .25s ease, transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.flavor-card { transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.p-foto img { transition: transform .4s var(--ease-out); }
.nutri-img { animation-duration: .3s; }
@keyframes nutriFoto { from { opacity: 0; transform: translateY(6px) scale(.985); } }

/* Pantallas táctiles: el hover no existe, nada queda "levantado" después de tocar */
@media (hover: none) {
  .product:hover, .flavor-card:hover, .cta-button:hover, .continuar:hover, .submit:hover:not(:disabled) { transform: none; }
  .product:hover .p-foto img { transform: none; }
  .product:hover { box-shadow: none; }
}

/* iOS hace zoom al enfocar campos con letra menor a 16px */
@media (max-width: 760px) {
  .f input, .f select, .f textarea, .stepper input { font-size: 16px; }
}

/* Números que cambian sin "bailar" */
.p-cant, .t-resumen-n, .stepper input { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .product, .flavor-card, .p-foto img, .cta-button, .continuar, .submit { transition-property: background-color, border-color, color, opacity; }
  .product:hover, .flavor-card:hover, .product:hover .p-foto img { transform: none; }
  .nutri-img { animation: none; }
}

/* ═══ Inspirado en la guía de diseño de Apple ═══ */
:root { --ease-drawer: cubic-bezier(.32, .72, 0, 1); }

/* ── 5 · Barra de progreso hacia el próximo precio ── */
.t-handle, .t-peek-total { display: none; }
.t-progreso { position: relative; height: 6px; margin-top: .7rem; border-radius: 999px; background: rgba(31, 11, 16, .08); overflow: hidden; }
.t-progreso-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--wine);
  transition: width .35s var(--ease-out), background-color .3s ease; }
.t-progreso.mejor .t-progreso-fill { background: #1f8f4e; }
.t-progreso::before, .t-progreso::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--cream); z-index: 1; }
.t-progreso::before { left: var(--m1, 45.45%); }
.t-progreso::after { left: var(--m2, 90.9%); }
.t-progreso.logro { animation: logro .7s var(--ease-out); }
@keyframes logro { 0% { box-shadow: 0 0 0 0 rgba(200, 169, 74, .7); } 100% { box-shadow: 0 0 0 10px rgba(200, 169, 74, 0); } }
.tier-hint.festejo { color: #1f8f4e; }

/* ── 1 · En el celular, "Tu pedido" es un panel que sube desde abajo ──
   Se arrastra 1:1 con el dedo, se puede "tirar" y frena suave en el borde (tienda.js). */
.t-velo { position: fixed; inset: 0; z-index: 155; background: rgba(31, 11, 16, .35); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.t-velo.visible { opacity: 1; pointer-events: auto; }
@media (max-width: 1024px) {
  .t-resumen.hoja { position: fixed; left: 0; right: 0; bottom: 0; top: auto !important; z-index: 160; max-height: 86svh; overflow-y: auto;
    overscroll-behavior: contain; border-radius: 26px 26px 0 0; padding-top: 0; padding-bottom: calc(1.2rem + env(safe-area-inset-bottom));
    box-shadow: 0 -18px 50px -20px rgba(0, 0, 0, .55); will-change: transform; }
  .t-resumen.hoja .t-resumen-head { position: sticky; top: 0; z-index: 1; margin: 0 calc(-1 * clamp(1.3rem, 2vw, 2rem)) .6rem;
    padding: 1.35rem clamp(1.3rem, 2vw, 2rem) .9rem; background: var(--cream); cursor: grab; touch-action: none; user-select: none;
    -webkit-tap-highlight-color: transparent; gap: .7rem; }
  .t-resumen.hoja .t-resumen-head h3 { margin-right: auto; }
  .t-resumen.hoja .t-handle { display: block; position: absolute; top: .55rem; left: 50%; width: 42px; height: 5px; margin-left: -21px;
    border-radius: 999px; background: rgba(31, 11, 16, .2); }
  .t-resumen.hoja .t-peek-total { display: block; font-weight: 900; font-size: 1.15rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
    transition: opacity .2s ease; }
  .t-resumen.hoja.abierta .t-peek-total { opacity: 0; }
  #tienda.con-hoja { padding-bottom: 6rem; }
}

/* ── 2 · Información nutricional que nace de la tarjeta tocada ── */
.nutri-velo { position: fixed; inset: 0; z-index: 170; background: rgba(31, 11, 16, .45); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.nutri-velo.visible { opacity: 1; pointer-events: auto; }
.nutri-pop { position: fixed; z-index: 171; left: 50%; top: 50%; width: min(940px, 92vw); max-height: 88svh; overflow-y: auto; overscroll-behavior: contain;
  translate: -50% -50%; background: #fff; color: var(--ink); border-radius: 28px; padding: clamp(1.2rem, 2.4vw, 2rem);
  box-shadow: 0 40px 90px -30px rgba(31, 11, 16, .6);
  opacity: 0; transform: scale(.5); transition: transform .2s var(--ease-out), opacity .16s ease; }
.nutri-pop.abierto { opacity: 1; transform: none; transition: transform .38s var(--ease-drawer), opacity .2s ease; }
.nutri-pop-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.nutri-pop-sabores { display: flex; flex-wrap: wrap; gap: .45rem; margin-right: auto; }
.nutri-pop-sabores button { border: 1.5px solid rgba(31, 11, 16, .14); background: transparent; padding: .5rem .95rem; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: .82rem; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .16s var(--ease-out); }
.nutri-pop-sabores button[aria-selected="true"] { background: var(--c); border-color: var(--c); color: #fff; }
.nutri-pop-sabores button:active { transform: scale(.97); }
.nutri-pop-x { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: rgba(31, 11, 16, .07); font-size: 1rem; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background-color .2s ease, transform .16s var(--ease-out); }
.nutri-pop-x:hover { background: rgba(31, 11, 16, .12); }
.nutri-pop-x:active { transform: scale(.92); }
.nutri-pop-body { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(1.4rem, 3vw, 2.6rem); align-items: center; }
.nutri-pop-body .nutri-img { margin-top: 1.2rem; }
@media (max-width: 760px) {
  .nutri-pop { left: 0; top: auto; bottom: 0; width: 100%; max-height: 90svh; translate: none; border-radius: 26px 26px 0 0;
    padding-bottom: calc(1.4rem + env(safe-area-inset-bottom)); }
  .nutri-pop-body { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .nutri-pop, .nutri-pop.abierto { transform: none; transition: opacity .2s ease; }
  .t-resumen.hoja { transition-duration: 0ms !important; }
  .t-progreso-fill { transition: none; }
  .t-progreso.logro { animation: none; }
}
@media (prefers-reduced-transparency: reduce) { .t-velo, .nutri-velo { background: rgba(31, 11, 16, .6); } }

/* ═══ Celular: base "nativa" (skill mobile-native) ═══ */
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
button, a, [role="button"], [role="link"], [role="tab"] { touch-action: manipulation; }
button, [role="button"], [role="tab"], .nav-cta, .hs-cta, .hs-link, .cta-button, .continuar, .fab-pedido {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* Respuesta al presionar en los botones que no la tenían */
.nav-cta, .hs-link, .nutri-pop-x { transition: transform .16s var(--ease-out), background-color .2s ease, color .2s ease; }
.nav-cta:active, .hs-link:active { transform: scale(.96); }
.product:active { transform: scale(.99); }
/* El menú respeta la zona del notch cuando la página ocupa toda la pantalla */
.site-header { padding-top: max(1.3rem, env(safe-area-inset-top, 0px)); }
.site-header.solid { padding-top: max(.9rem, env(safe-area-inset-top, 0px)); }
@media (hover: none) { .nav-cta:hover { transform: none; } }
