:root {
  --navy: #0f2650;
  --navy-deep: #0a1b3b;
  --navy-soft: #3d4f74;
  --bone: #f3ecdd;       /* el crema de la marca: fondo de todo */
  --bone-2: #ebe2cf;     /* crema más hondo: paneles */
  --bone-3: #ddd1b8;     /* líneas */
  --green: #1f8a4c;
  --red: #c62832;
  --err: #a8201a;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --display: "Bowlby One", "Arial Black", sans-serif;
  --ui: "Bricolage Grotesque", system-ui, sans-serif;
  --r: 24px;
  --panel: clamp(24px, 3.5vw, 44px);
  --gut: clamp(16px, 3vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bone); color: var(--navy);
  font: 400 1.0625rem/1.55 var(--ui);
  caret-color: var(--navy);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--navy); color: var(--bone); }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 0.98; letter-spacing: -0.005em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 10px; }
.cursos :focus-visible, .foot :focus-visible, .tag :focus-visible { outline-color: var(--bone); }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--navy); color: var(--bone); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.big { font-size: clamp(2.25rem, 5vw, 4rem); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent;
  font: 800 1.0625rem/1 var(--ui); text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.btn svg { width: 18px; height: 18px; stroke-width: 2.2; transition: transform 200ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn-navy { background: var(--navy); color: var(--bone); }
.btn-bone { background: var(--bone); color: var(--navy); }
.btn-line-navy { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-big { width: 100%; min-height: 58px; font-size: 1.125rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-navy:hover { background: var(--navy-deep); }
  .btn-navy:hover svg { transform: translateX(3px); }
  .btn-bone:hover { background: var(--bone-2); }
  .btn-line-navy:hover { background: var(--navy); color: var(--bone); }
}
.link { background: none; border: 0; color: var(--navy); font: 600 1rem var(--ui); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; padding: 8px; }

/* ---------- Barra superior ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 20px;
  padding: 10px var(--gut);
  background: var(--bone);
}
.brand img { height: 58px; width: auto; margin: -6px 0; }
.top-nav { display: flex; gap: 2px; padding: 4px; border-radius: 999px; border: 1.5px solid var(--bone-3); }
.top-nav a { font-weight: 700; text-decoration: none; padding: 8px 16px; border-radius: 999px; transition: background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .top-nav a:hover { background: var(--bone-2); } }
.search { position: relative; flex: 1; max-width: 360px; margin-left: auto; display: block; }
.search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--navy-soft); pointer-events: none; }
.search input { min-height: 46px; padding-left: 44px; border-radius: 999px; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 20px 0 16px; border: 0; border-radius: 999px;
  background: var(--navy); color: var(--bone); font: 800 1rem var(--ui); cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
.cart-btn:active { transform: scale(0.97); }
.cart-btn svg { width: 24px; height: 24px; }
.stamp {
  position: absolute; top: -6px; right: -6px; min-width: 24px; height: 24px; padding: 0 6px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--red); color: var(--bone);
  font: 800 0.8125rem var(--ui); font-variant-numeric: tabular-nums;
}

/* ---------- Portada ---------- */
.hero { padding: 6px var(--gut) 0; max-width: 1360px; margin: 0 auto; }
.hero-panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(16px, 3vw, 40px);
  min-height: min(calc(100svh - 96px), 720px);
  padding: 0 0 0 var(--panel);
  background: var(--bone-2); border-radius: 40px;
}
.hero-copy { display: grid; gap: 22px; justify-items: start; padding: clamp(40px, 5vw, 72px) 0; }
.hero-word { font-size: clamp(2.75rem, 5.6vw, 5rem); line-height: 0.95; letter-spacing: -0.01em; }
.hero-word span { color: var(--red); }
.lead { font: 300 clamp(1.0625rem, 1.35vw, 1.25rem)/1.5 "Montserrat", system-ui, sans-serif; max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hours { font-size: 0.9375rem; color: var(--navy-soft); font-weight: 600; }

/* lo más pedido */
.top-ventas { display: grid; gap: 10px; width: 100%; max-width: 440px; margin-top: 10px; }
.tv-t { font: 400 1.0625rem var(--display); }
.tv-list { display: grid; gap: 8px; }
.tv {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px;
  padding: 6px 8px 6px 6px; border-radius: 20px; background: var(--bone);
  transition: transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .tv:hover { transform: translateX(4px); } }
.tv .prod-img { width: 52px; height: 52px; aspect-ratio: 1; border-radius: 15px; }
.tv .prod-img::after { display: none; }
.tv .etiqueta span { opacity: 1; }
.tv .etiqueta b, .tv .etiqueta i { display: none; }
.tv-txt { display: grid; line-height: 1.2; min-width: 0; }
.tv-txt b { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-txt small { font-size: 0.75rem; font-weight: 600; color: var(--navy-soft); }
.tv .precio { font: 700 0.9375rem var(--ui); color: var(--navy); }
.tv .precio small { display: inline; font-size: 0.75rem; margin: 0; }
.tv .add { width: 40px; height: 40px; }
.tv .add svg { width: 18px; height: 18px; }
.tv .step { height: 40px; }
.tv .step button { width: 34px; height: 40px; font-size: 1.0625rem; }

/* globo de Rosa */
.globo {
  position: absolute; z-index: 2; top: 13%; left: 2%; width: max-content; max-width: 200px;
  padding: 14px 18px; border-radius: 22px 22px 22px 6px;
  background: var(--bone); border: 2px solid var(--navy);
  font: 400 0.9375rem/1.4 "Montserrat", system-ui, sans-serif;
  box-shadow: 0 10px 20px -12px rgba(10, 27, 59, 0.5);
  transform-origin: 0% 100%;
  transition: opacity 220ms ease, transform 220ms var(--ease-out), filter 220ms ease;
}
.globo::after {
  content: ""; position: absolute; right: -11px; bottom: 16px; width: 18px; height: 18px;
  background: var(--bone); border: 2px solid var(--navy); border-left: 0; border-bottom: 0;
  transform: rotate(45deg); border-radius: 0 4px 0 0;
}
.globo.sale { opacity: 0; transform: scale(0.92) translateY(6px); filter: blur(3px); }
@media (prefers-reduced-motion: no-preference) {
  .globo { animation: aparece 600ms 500ms var(--ease-out) both; }
  @keyframes aparece { from { opacity: 0; transform: scale(0.8); } }
}

.hero-rosa { position: relative; align-self: stretch; display: grid; align-items: end; justify-items: center; min-height: 100%; }
.disco {
  position: absolute; left: 50%; bottom: -18%; width: min(92%, 520px); aspect-ratio: 1; border-radius: 50%;
  background: var(--navy); transform: translateX(-50%);
}
.rosa {
  position: relative; z-index: 1; width: min(88%, 440px); height: auto; margin-top: 48px;
  filter: drop-shadow(0 18px 26px rgba(10, 27, 59, 0.25));
}
@media (prefers-reduced-motion: no-preference) {
  .rosa { animation: entra 900ms var(--ease-out) both; }
  @keyframes entra { from { transform: translateY(40px); opacity: 0; } }
}


/* franja en movimiento */
.marquee { overflow: hidden; margin: clamp(20px, 3vw, 36px) 0 0; padding: 14px 0; background: var(--navy); color: var(--bone); transform: rotate(-1.2deg); }
.marquee-in { display: flex; align-items: center; gap: 22px; width: max-content; font: 400 clamp(1.25rem, 2vw, 1.75rem) var(--display); white-space: nowrap; }
.marquee-in i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-in { animation: corre 60s linear infinite; }
  @keyframes corre { to { transform: translateX(-50%); } }
}

/* ---------- Tienda ---------- */
.tienda { padding: clamp(56px, 8vw, 104px) 0; }
.tienda .big { margin-bottom: 28px; }
.cats { display: flex; gap: 10px; margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin-left: -4px; }
.cats button {
  flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border: 0; border-radius: 999px; background: var(--bone-2); color: var(--navy);
  font: 800 1.0625rem var(--ui); cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.cats button:active { transform: scale(0.96); }
.cats small { font-size: 0.75rem; font-weight: 600; opacity: 0.7; font-variant-numeric: tabular-nums; }
.cats button[aria-pressed="true"] { background: var(--navy); color: var(--bone); }
@media (hover: hover) and (pointer: fine) { .cats button[aria-pressed="false"]:hover { background: var(--bone-3); } }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.count { font-weight: 700; }
.sort { display: flex; align-items: center; gap: 10px; font-weight: 600; white-space: nowrap; color: var(--navy-soft); }
.sort select { width: auto; min-height: 42px; padding: 6px 14px; border-radius: 999px; font-weight: 700; }
.nada { display: grid; justify-items: start; gap: 16px; padding: 32px 0; font-size: 1.125rem; }

/* ---------- Producto ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.grid .prod { display: flex; flex-direction: column; gap: 14px; padding: 10px 10px 16px; background: var(--bone-2); border-radius: 30px; }
.reveal .grid .prod { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease var(--d, 0ms), transform 600ms var(--ease-out) var(--d, 0ms); }
.reveal .grid .prod.in { opacity: 1; transform: none; }
.prod-img { position: relative; aspect-ratio: 1 / 1; border-radius: 22px; overflow: hidden; background: var(--bone-3); }
.prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .grid .prod:hover .prod-img img { transform: scale(1.06) rotate(-1deg); } }
/* palomita cuando el producto ya está en el pedido */
.prod-img::after {
  content: ""; position: absolute; bottom: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23f3ecdd' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5'/%3E%3C/svg%3E") center / 18px no-repeat;
  transform: scale(0.6); opacity: 0; transition: transform 300ms var(--ease-out), opacity 200ms ease;
}
.en-caja .prod-img::after { transform: none; opacity: 1; }

/* sticker de temporada (flor) */
.badge {
  position: absolute; left: 10px; top: 12px; z-index: 1; padding: 6px 12px; border-radius: 999px;
  background: var(--red); color: var(--bone); font: 400 0.875rem/1 var(--display); transform: rotate(-8deg);
  box-shadow: 0 4px 10px -4px rgba(10, 27, 59, 0.4);
}

/* producto sin foto */
.etiqueta { height: 100%; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 18px; text-align: center; color: var(--navy); background: var(--bone-3); }
.etiqueta span { font: 400 1rem var(--display); opacity: 0.45; }
.etiqueta b { font: 400 clamp(1.375rem, 2.2vw, 1.75rem)/1.02 var(--display); max-width: 11ch; text-wrap: balance; }
.etiqueta i { font: 700 0.75rem var(--ui); letter-spacing: 0.3em; color: var(--navy-soft); font-style: normal; }
.etiqueta i::after { content: ""; display: block; height: 3px; width: 44px; margin: 8px auto 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--green) 33.3%, var(--bone) 33.3% 66.6%, var(--red) 66.6%); }

.prod-txt { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 0 8px; }
.prod h3 { font-size: 1.4375rem; }
.desc { color: var(--navy-soft); font-size: 0.9375rem; line-height: 1.45; }
.una { font-size: 0.875rem; font-weight: 700; color: var(--navy-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { position: relative; }
.chips input, .seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1.5px solid var(--bone-3); background: var(--bone); font-size: 0.8125rem; font-weight: 700; cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.chips label:active span { transform: scale(0.96); }
.chips input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--bone); }
@media (hover: hover) and (pointer: fine) { .chips input:not(:checked) + span:hover { border-color: var(--navy-soft); } }
.chips input:focus-visible + span, .seg input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.prod-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 50px; }
.precio { font: 400 1.75rem/1 var(--display); font-variant-numeric: tabular-nums; }
.precio .consultar { font-size: 0.875rem; color: var(--navy); margin: 0; }
.precio small { display: block; font: 700 0.75rem var(--ui); color: var(--navy-soft); margin-top: 4px; }

/* botón + que se vuelve contador */
.add {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 50px; height: 50px; padding: 0; border: 0; border-radius: 50%;
  background: var(--navy); color: var(--bone); font: 800 0.9375rem var(--ui); cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.add svg { width: 22px; height: 22px; stroke-width: 2.6; transition: transform 300ms var(--ease-out); }
.add span { display: none; }
.add:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .add:hover svg { transform: rotate(90deg); } }
.step {
  display: inline-flex; align-items: center; height: 50px; border-radius: 999px; background: var(--navy); color: var(--bone);
  animation: abre 280ms var(--ease-out);
}
@keyframes abre { from { opacity: 0.4; transform: scale(0.9); } }
.step button { width: 44px; height: 50px; border: 0; border-radius: 999px; background: none; color: inherit; font: 800 1.25rem var(--ui); cursor: pointer; transition: transform 120ms var(--ease-out); }
.step button:active { transform: scale(0.85); }
.step output { min-width: 24px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.step :focus-visible { outline-color: var(--red); outline-offset: -3px; }

/* ---------- Cursos ---------- */
.cursos { padding: 0 var(--gut) clamp(56px, 8vw, 104px); }
.cursos > .wrap { max-width: 1280px; padding: clamp(40px, 6vw, 80px) var(--panel); background: var(--navy); color: var(--bone); border-radius: 40px; }
.cursos .sec-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 720px; }
.cursos .sec-head p { font-size: 1.125rem; color: rgba(243, 236, 221, 0.8); }
.cursos-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.curso { display: grid; gap: 16px; align-content: start; padding: clamp(24px, 3vw, 36px); border-radius: 30px; background: var(--bone); color: var(--navy); }
.curso h3 { font-size: clamp(1.75rem, 3vw, 2.375rem); }
.curso p { color: var(--navy-soft); max-width: 52ch; }
.curso dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 4px 0 8px; }
.curso dt { font-size: 0.8125rem; font-weight: 700; color: var(--navy-soft); }
.curso dd { margin: 0; font-weight: 700; }
.curso .btn { justify-self: start; }
.curso .btn-bone { background: var(--navy); color: var(--bone); }

/* ---------- Pie ---------- */
.foot { background: var(--navy-deep); color: var(--bone); padding: clamp(48px, 7vw, 88px) 0 40px; overflow: hidden; }
.foot-word { font: 400 clamp(3.5rem, 12vw, 11rem)/0.9 var(--display); letter-spacing: -0.02em; margin-bottom: 36px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 20px 56px; padding-top: 24px; border-top: 1px solid rgba(243, 236, 221, 0.2); }
.foot p:not(.foot-word) { color: rgba(243, 236, 221, 0.82); }

/* barra fija de pedido (teléfono) */
.barra-pedido {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 30;
  display: none; align-items: center; gap: 12px; min-height: 60px; padding: 0 22px;
  border: 0; border-radius: 999px; background: var(--navy); color: var(--bone);
  font: 800 1.0625rem var(--ui); cursor: pointer; box-shadow: 0 16px 30px -12px rgba(10, 27, 59, 0.6);
  transition: transform 160ms var(--ease-out);
}
.barra-pedido:active { transform: scale(0.98); }
.barra-pedido b { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 99px; background: var(--red); font-size: 0.8125rem; }
.barra-pedido strong { margin-left: auto; font: 400 1.375rem var(--display); }
@starting-style { .barra-pedido { transform: translateY(120%); } }

/* ---------- La caja (panel) ---------- */
.caja {
  margin: 0 0 0 auto; height: 100dvh; max-height: none; width: min(480px, 100vw); max-width: 100vw;
  padding: 0; border: 0; background: var(--bone); color: var(--navy);
  display: flex; flex-direction: column;
  box-shadow: -24px 0 60px -30px rgba(10, 27, 59, 0.6);
  transition: transform 420ms var(--ease-drawer), overlay 420ms allow-discrete, display 420ms allow-discrete;
  transform: translateX(100%);
}
.caja:not([open]) { display: none; }
.caja[open] { transform: none; }
@starting-style { .caja[open] { transform: translateX(100%); } }
.caja::backdrop { background: rgba(10, 27, 59, 0); transition: background-color 300ms ease, overlay 300ms allow-discrete, display 300ms allow-discrete; }
.caja[open]::backdrop { background: rgba(10, 27, 59, 0.45); }
@starting-style { .caja[open]::backdrop { background: rgba(10, 27, 59, 0); } }

.caja-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 16px 24px; border-bottom: 1px solid var(--bone-3); }
.caja-head h2 { font-size: 1.75rem; }
.x { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--bone-2); color: var(--navy); cursor: pointer; transition: transform 160ms var(--ease-out); }
.x:active { transform: scale(0.94); }
.x svg { width: 20px; height: 20px; }
.caja-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 24px 20px 40px; scrollbar-width: thin; scrollbar-color: var(--bone-3) transparent; }

.vacia { display: grid; justify-items: center; gap: 16px; text-align: center; padding: 48px 0; color: var(--navy-soft); }
.vacia svg { width: 88px; stroke-width: 1.4; color: var(--navy); }

.items { list-style: none; margin: 0; padding: 0; display: grid; }
.items li {
  display: grid; grid-template-columns: 56px 1fr auto; grid-template-areas: "img txt sub" "img qty qty";
  gap: 6px 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--bone-3);
}
.it-img { grid-area: img; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; align-self: start; background: var(--bone-2); }
.it-img img { width: 100%; height: 100%; object-fit: cover; }
.it-img .etiqueta { padding: 4px; }
.it-img .etiqueta b, .it-img .etiqueta i { display: none; }
.it-img .etiqueta span { opacity: 1; color: var(--navy); }
.it-txt { grid-area: txt; display: grid; line-height: 1.25; }
.it-txt b { font-weight: 800; }
.it-txt small { color: var(--navy-soft); font-size: 0.8125rem; }
.sub { grid-area: sub; font-weight: 800; font-variant-numeric: tabular-nums; }
.qty { grid-area: qty; display: inline-flex; align-items: center; gap: 2px; justify-self: start; background: var(--bone-2); border-radius: 999px; }
.qty button { width: 40px; height: 36px; border: 0; background: none; color: var(--navy); font: 800 1.125rem var(--ui); cursor: pointer; display: grid; place-items: center; border-radius: 999px; transition: transform 120ms var(--ease-out); }
.qty button svg { width: 18px; height: 18px; }
.qty button:active { transform: scale(0.88); }
.qty output { min-width: 28px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 4px; }
.total span { font-weight: 800; }
.total strong { font: 400 2rem var(--display); font-variant-numeric: tabular-nums; }

fieldset { border: 0; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; min-width: 0; scroll-margin-top: 100px; }
legend { display: flex; align-items: center; gap: 10px; font: 400 1.375rem var(--display); margin-bottom: 12px; padding: 0; }
legend i, .progreso i {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: var(--bone); font: 800 0.9375rem var(--ui); font-style: normal;
}
.opc { font-weight: 600; color: var(--navy-soft); }

/* barra de pasos del pedido */
.progreso {
  position: sticky; top: -24px; z-index: 3; list-style: none; display: flex; gap: 4px;
  margin: -24px -20px 20px; padding: 12px 20px; background: var(--bone); border-bottom: 1px solid var(--bone-3);
}
.progreso li { flex: 1; min-width: 0; }
.progreso a {
  display: grid; justify-items: center; gap: 4px; padding: 4px 0; text-decoration: none;
  font-size: 0.75rem; font-weight: 600; color: var(--navy-soft); border-radius: 10px;
}
.progreso i { width: 28px; height: 28px; font-size: 0.8125rem; background: var(--bone-2); color: var(--navy-soft); transition: background-color 250ms ease, color 250ms ease, transform 250ms var(--ease-out); }
.progreso .actual a { color: var(--navy); font-weight: 800; }
.progreso .actual i { background: var(--bone); color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.progreso .ok a { color: var(--navy); }
.progreso .ok i { background: var(--navy); color: transparent; transform: scale(1.04);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23f3ecdd' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5'/%3E%3C/svg%3E");
  background-position: center; background-size: 16px; background-repeat: no-repeat; }
legend small { font: 600 0.875rem var(--ui); color: var(--navy-soft); }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.9375rem; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid transparent; border-radius: 12px;
  background: var(--bone-2); color: var(--navy); font: 400 1rem var(--ui);
  transition: border-color 160ms ease;
}
input::placeholder, textarea::placeholder { color: #56637f; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); }
textarea { resize: vertical; }
.hint { font-size: 0.875rem; color: var(--navy-soft); }
.center { text-align: center; margin-top: 10px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { position: relative; display: block; }
.seg span {
  display: grid; gap: 2px; align-content: center; min-height: 56px; padding: 10px 14px; border-radius: 14px;
  background: var(--bone-2); font-weight: 800; font-size: 1rem; cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out);
}
.seg label:active span { transform: scale(0.97); }
.seg small { font-weight: 600; font-size: 0.75rem; opacity: 0.8; }
.seg input:checked + span { background: var(--navy); color: var(--bone); }



/* calendario */
.cal { padding: 4px 0; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 0 0 10px; }
.cal-head b { font: 400 1.25rem var(--display); text-transform: capitalize; }
.cal-head button { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--bone-2); color: var(--navy); cursor: pointer; transition: transform 160ms var(--ease-out); }
.cal-head button:active:not(:disabled) { transform: scale(0.92); }
.cal-head button:disabled { opacity: 0.3; cursor: default; }
.cal-head svg { width: 18px; height: 18px; }
.cal-dias, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-dias i { font-style: normal; font-size: 0.75rem; font-weight: 800; color: var(--navy-soft); padding: 4px 0; }
.cal-grid button {
  aspect-ratio: 1; min-height: 40px; border: 0; border-radius: 50%; background: var(--bone-2);
  color: var(--navy); font: 800 1rem var(--ui); font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.cal-grid button:active:not(:disabled) { transform: scale(0.9); }
.cal-grid button:disabled { background: none; color: #9a9384; font-weight: 400; cursor: default; }
.cal-grid button[aria-pressed="true"] { background: var(--navy); color: var(--bone); }
@media (hover: hover) and (pointer: fine) { .cal-grid button:not(:disabled):not([aria-pressed="true"]):hover { background: var(--bone-3); } }

.error { color: var(--err); font-weight: 600; min-height: 1.5em; margin: 20px 0 8px; }
.error:empty { margin: 8px 0 0; }

/* pedido enviado: el lazo se amarra */
.listo { display: grid; justify-items: center; gap: 16px; text-align: center; padding: 16px 0; }
.listo h3 { font-size: 2.25rem; }
.listo p { max-width: 34ch; color: var(--navy-soft); }
.listo p b { color: var(--navy); }
.lazo { width: 96px; stroke-width: 5; color: var(--navy); }
.lazo path { stroke-dasharray: 400; stroke-dashoffset: 0; }
.listo:not([hidden]) .lazo path { animation: amarrar 900ms var(--ease-out) both; }
.listo:not([hidden]) .lazo path + path { animation-delay: 350ms; }
@keyframes amarrar { from { stroke-dashoffset: 400; } }

/* vuelo a la caja + aviso */
.vuelo { position: fixed; z-index: 100; pointer-events: none; }
.vuelo > * { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; background: var(--bone-2); }
.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 60;
  max-width: calc(100vw - 32px); padding: 14px 20px; border-radius: 999px;
  background: var(--navy); color: var(--bone); font-weight: 600; text-align: center;
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity 240ms ease, transform 320ms var(--ease-out);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }


@media (prefers-reduced-motion: reduce) {
  .caja, .caja::backdrop, .prod-img img, .tag-in { transition: none; }
  .step, .listo .lazo path { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .top-nav { display: none; }
}
@media (max-width: 860px) {
  html { scroll-padding-top: 130px; }
  .top { flex-wrap: wrap; gap: 10px 14px; }
  .cart-btn { margin-left: auto; }
  .search { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
  .search input { min-height: 44px; }
  .hero-panel { grid-template-columns: 1fr; padding: 0; border-radius: 32px; }
  .hero-copy { padding: 32px var(--panel) 8px; }
  .hero-word { font-size: clamp(2.5rem, 11vw, 3.5rem); }
  .hero-rosa { min-height: 360px; }
  .rosa { margin-top: 128px; }
  .globo { top: 8px; left: 50%; max-width: 230px; translate: -50% 0; font-size: 0.875rem; padding: 10px 16px; text-align: center; border-radius: 20px; transform-origin: 50% 100%; }
  .globo::after { right: auto; left: calc(50% - 9px); bottom: -11px; transform: rotate(135deg); }
  .top-ventas { max-width: none; }
  .rosa { width: min(70%, 300px); margin-top: 16px; }
  .disco { width: min(86%, 380px); bottom: -30%; }
  /* móvil: Benvenuti y botones → Rosa con su globo → Lo más pedido */
  .hero-copy { display: contents; }
  .hero-panel { gap: 22px; justify-items: start; padding: 32px var(--panel); }
  .hero-rosa { order: 1; justify-self: stretch; margin-inline: calc(-1 * var(--panel)); overflow: hidden; }
  .top-ventas { order: 2; margin-top: 0; }
  .barra-pedido { display: flex; }
  .toast { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 72px); }
  .foot { padding-bottom: 110px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand img { height: 48px; }
  .cart-label { display: none; }
  .cart-btn { padding: 0 14px; }
  .hero-actions .btn { flex: 1; padding: 0 18px; }
  .cats button { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; }
  .cats small { display: none; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid .prod { padding: 6px 6px 12px; border-radius: 24px; gap: 10px; }
  .grid .prod-img { border-radius: 19px; }
  .grid .prod-txt { padding: 0 6px; }
  .grid .prod h3 { font-size: 1.1875rem; }
  .grid .desc { display: none; }
  .grid .precio { font-size: 1.375rem; }
  .grid .add { width: 44px; height: 44px; }
  .grid .step { height: 44px; }
  .grid .step button { width: 36px; height: 44px; }
  .grid .etiqueta b { font-size: 1.125rem; }
  .grid .chips span { min-height: 30px; padding: 0 9px; font-size: 0.75rem; }
  .badge { font-size: 0.75rem; padding: 5px 10px; }
  .sort { font-size: 0; gap: 0; }
  .sort select { font-size: 0.875rem; }
  .curso dl { grid-template-columns: 1fr; }
}

/* Tarjeta "próximamente" en cursos */
.curso-pronto { background: transparent; color: var(--bone); border: 2px dashed rgba(243, 236, 221, 0.45); align-content: center; }
.curso-pronto p { color: rgba(243, 236, 221, 0.8); }
.curso-pronto .pronto-t { font-family: var(--display); font-size: clamp(1.75rem, 3vw, 2.375rem); line-height: 1.05; color: var(--bone); }
.btn-line-bone { border-color: var(--bone); color: var(--bone); background: transparent; justify-self: start; }
@media (hover: hover) { .btn-line-bone:hover { background: var(--bone); color: var(--navy); } }

/* Ventanita para elegir sabores (colas de langosta) */
.armar {
  margin: auto; width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: 28px; background: var(--bone); color: var(--navy);
  box-shadow: 0 30px 80px -30px rgba(10, 27, 59, 0.6);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), overlay 200ms allow-discrete, display 200ms allow-discrete;
}
.armar:not([open]) { display: none; opacity: 0; transform: scale(0.96); }
.armar[open] { display: flex; flex-direction: column; }
@starting-style { .armar[open] { opacity: 0; transform: scale(0.96); } }
.armar::backdrop { background: rgba(10, 27, 59, 0.45); }
.armar .caja-head h2 { font-size: 1.5rem; }
.armar-body { overflow-y: auto; overscroll-behavior: contain; padding: 18px 24px 24px; display: grid; gap: 14px; }
.armar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.armar-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 8px 8px 16px; border-radius: 16px; background: var(--bone-2); }
.armar-list li.on { box-shadow: inset 0 0 0 2px var(--navy); }
.armar-list li > span, .sabor span { display: grid; font-weight: 800; line-height: 1.25; }
.armar-list small { font-weight: 600; font-size: 0.8125rem; color: var(--navy-soft); }
.armar-list li:has(.sabor) { padding: 0; background: none; }
.sabor { position: relative; display: block; width: 100%; }
.sabor input { position: absolute; opacity: 0; }
.sabor span { min-height: 56px; align-content: center; padding: 8px 16px; border-radius: 16px; background: var(--bone-2); cursor: pointer; transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out); }
.sabor:active span { transform: scale(0.98); }
.sabor input:checked + span { background: var(--navy); color: var(--bone); }
.sabor input:checked + span small { color: rgba(243, 236, 221, 0.8); }
.sabor input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.armar-list li.cant { background: none; padding-left: 4px; }
.armar .total { padding-top: 4px; }
.armar .error { margin: 0; min-height: 0; }
.editar { min-height: 50px; padding-inline: 20px; }
@media (prefers-reduced-motion: reduce) { .armar { transition: none; } }
