/* Caprichos Dramáticos — tienda
   Paleta: salmón claro + coral de la cinta del logo + lila del ramo + tinta ciruela */

@font-face { font-family: 'Almendra'; src: url('/assets/fonts/almendra-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Almendra'; src: url('/assets/fonts/almendra-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/figtree.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/figtree-italic.woff2') format('woff2'); font-weight: 300 900; font-style: italic; font-display: swap; }

:root {
  --salmon: #F7B2A1;
  --coral: #EE8A78;
  --lilac: #B7A2DE;
  --ink: #3D2A39;
  --blush: #FDEDE8;
  --sage: #8FB08B;
  --paper: #FFFDFC;
  --salmon-soft: #FDECE8;
  --lilac-soft: #F4F0FA;
  --sage-soft: #EEF4ED;
  --ink-2: #685965;
  --ink-3: #7D707A;
  --line: #F5E4E0;
  --danger: #B23A2E;
  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-xl: 32px;
  --f-display: 'Almendra', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --f-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
  --pad: clamp(16px, 4.5vw, 36px);
  --top: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 12px); }
html.lock { overflow: hidden; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.i { width: 22px; height: 22px; flex: none; }
.i-sm { width: 18px; height: 18px; }
.i-xl { width: 44px; height: 44px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- barra de anuncio y encabezado ---------- */
.announce { background: var(--ink); color: var(--blush); text-align: center; font-size: .86rem; font-weight: 600; padding: 8px var(--pad); padding-top: max(8px, env(safe-area-inset-top, 0px)); }
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255, 253, 252, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.announce[hidden] + .topbar { padding-top: env(safe-area-inset-top, 0px); }
.topbar-in { height: var(--top); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.brand span { font-family: var(--f-display); font-weight: 700; font-size: 1.32rem; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--salmon-soft); }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--coral); color: var(--ink); font-size: .74rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--paper); }
.bump { animation: bump .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 30% { transform: scale(1.25) rotate(-8deg); } }
@media (max-width: 520px) { .hide-sm { display: none; } .brand span { font-size: 1.12rem; } .brand img { width: 40px; height: 40px; } }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 0; font: 700 1rem/1.1 var(--f-body); cursor: pointer; text-decoration: none; text-align: center;
  transition: background-color .15s, box-shadow .15s, transform .08s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--salmon); color: var(--ink); }
.btn-primary:hover { background: var(--coral); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-quiet:hover { background: rgba(255, 255, 255, .6); }
.btn-soft { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-soft:hover { box-shadow: inset 0 0 0 1.5px var(--salmon); }
.btn-wa { background: var(--sage-soft); color: #234027; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sage) 55%, white); }
.btn-wa:hover { background: #E2EEE0; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.06rem; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.btn-block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- escenario: promo del día ---------- */
.stage { position: relative; isolation: isolate; overflow: hidden; background: var(--blush); padding: 76px 0 64px; }
.valance {
  position: absolute; left: 0; right: 0; top: 0; height: 42px; z-index: 3; pointer-events: none;
  background:
    radial-gradient(24px 21px at 24px 0, var(--salmon) 96%, transparent 100%) 0 16px / 48px 22px repeat-x,
    repeating-linear-gradient(90deg, var(--salmon) 0 21px, var(--coral) 21px 24px, var(--salmon) 24px 48px) 0 0 / 100% 18px no-repeat;
  filter: drop-shadow(0 7px 6px rgba(201, 110, 90, .16));
  transform-origin: top; animation: valance .9s cubic-bezier(.2, 1.35, .45, 1) both;
}
@keyframes valance { from { transform: translateY(-100%); } }
.stage::before {
  content: ''; position: absolute; z-index: -1; width: min(760px, 120vw); aspect-ratio: 1; right: -12%; top: -10%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0));
}
.stage-grid { display: grid; gap: 40px; align-items: center; }
.stage-copy h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.5rem, 7vw, 4.4rem); line-height: 1; letter-spacing: -.005em; margin: 0 0 14px; }
.stage-text { font-size: 1.12rem; color: var(--ink-2); max-width: 36ch; margin: 0 0 26px; }
.stage-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.stage-media { position: relative; justify-self: center; width: min(66vw, 400px); order: -1; }
.stage-media::after { content: ''; position: absolute; left: 8%; right: 8%; bottom: -26px; height: 30px; z-index: -1; background: radial-gradient(closest-side, rgba(61, 42, 57, .2), transparent); }
.arch { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden; border: 8px solid #fff; background: #fff; box-shadow: 0 30px 50px -30px rgba(160, 80, 60, .55); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch.is-logo img { object-fit: contain; padding: 14%; }
.ticket {
  position: absolute; left: 50%; bottom: -30px; display: flex; align-items: stretch; background: #fff; border-radius: 14px;
  box-shadow: 0 18px 30px -18px rgba(61, 42, 57, .5); transform: translateX(-50%) rotate(-2.5deg); white-space: nowrap;
  -webkit-mask: radial-gradient(circle 9px at 0 50%, transparent 95%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, transparent 95%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 9px at 0 50%, transparent 95%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, transparent 95%, #000) right / 51% 100% no-repeat;
  animation: ticket .8s .45s cubic-bezier(.2, 1.3, .4, 1) both;
}
@keyframes ticket { from { opacity: 0; transform: translateX(-50%) translateY(18px) rotate(-10deg); } }
.ticket-main { padding: 10px 16px 11px 22px; border-right: 2px dashed var(--line); display: grid; gap: 1px; }
.ticket-label { font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.ticket-price { display: flex; align-items: baseline; gap: 8px; }
.ticket-price strong { font-size: 1.75rem; font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ticket-main del { color: var(--ink-3); font-size: .8rem; }
.ticket-off { align-self: center; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 800; border-radius: 999px; padding: 3px 8px; }
.ticket-stub { padding: 10px 22px 11px 14px; display: grid; align-content: center; gap: 1px; background: var(--salmon-soft); }
.ticket-stub span { font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.countdown { font-variant-numeric: tabular-nums; font-weight: 850; font-size: 1.22rem; letter-spacing: .02em; }
.stage-plain .stage-text { margin-bottom: 22px; }
@media (min-width: 900px) {
  .stage { padding: 104px 0 96px; }
  .stage-grid { grid-template-columns: 1.08fr .92fr; gap: 56px; }
  .stage-media { order: 0; width: min(100%, 420px); }
  .ticket { left: -36px; bottom: 34px; transform: rotate(-4deg); }
  @keyframes ticket { from { opacity: 0; transform: translateX(-24px) rotate(-12deg); } }
}
@media (max-width: 899px) { .stage-copy { text-align: center; } .stage-text { margin-inline: auto; } .stage-actions { justify-content: center; } .stage-grid { gap: 58px; } }

/* ---------- secciones ---------- */
.section { padding: 64px 0; }
.section + .section { padding-top: 16px; }
.band, .section + .band, .band + .section { padding-top: 64px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2, .h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.08; margin: 0; }
.section-head p { margin: 0; }
.band { background: var(--blush); }

/* categorías como entradas de una función */
.cats { display: flex; gap: 14px; overflow-x: auto; padding: 6px 4px 14px; margin: 0 calc(var(--pad) * -1) 6px; padding-inline: var(--pad); scroll-snap-type: x proximity; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: 0 0 auto; display: grid; justify-items: center; gap: 7px; background: none; border: 0; cursor: pointer; font-weight: 650; font-size: .86rem; scroll-snap-align: start; min-width: 68px; }
.cat-dot { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; background: #fff; box-shadow: inset 0 0 0 2px var(--line); transition: box-shadow .15s, background-color .15s; }
.cat:hover .cat-dot { box-shadow: inset 0 0 0 2px var(--salmon); }
.cat.is-on .cat-dot { background: var(--salmon-soft); box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--coral); }

.toolbar { display: flex; gap: 10px; margin-bottom: 22px; }
.search-inline { position: relative; flex: 1; }
.search-inline .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search-inline .input { padding-left: 44px; border-radius: 999px; }
.sort .input { border-radius: 999px; width: auto; padding-right: 36px; }

/* ---------- tarjetas de producto ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card-media { position: relative; }
.card-img { display: block; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--blush); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card.is-out .card-img img { filter: grayscale(.6) opacity(.7); }
.badge { position: absolute; left: 10px; top: 10px; background: #fff; color: var(--ink); font-size: .74rem; font-weight: 750; padding: 5px 10px; border-radius: 999px; box-shadow: 0 4px 10px -6px rgba(61, 42, 57, .4); pointer-events: none; }
.badge-promo { background: var(--ink); color: #fff; }
.card-add { position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 14px; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 18px -10px rgba(61, 42, 57, .55); transition: background-color .15s, transform .08s; }
.card-add:hover { background: var(--salmon); }
.card-add:active { transform: scale(.94); }
.card-body { display: grid; gap: 2px; padding-inline: 2px; }
.card-title { font-size: 1rem; font-weight: 700; line-height: 1.3; margin: 0; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-meta { color: var(--ink-3); font-size: .84rem; margin: 0; }
.card-price { margin: 2px 0 0; }
.price { font-weight: 800; font-variant-numeric: tabular-nums; }
.price del { color: var(--ink-3); font-weight: 500; margin-right: 6px; font-size: .9em; }
.price-ask { color: var(--ink-2); font-weight: 700; }
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 44%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scrollbar-width: thin; }
.row-scroll .card { scroll-snap-align: start; }
@media (min-width: 700px) { .row-scroll { grid-auto-columns: minmax(200px, 30%); } }
@media (min-width: 1040px) { .row-scroll { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; } }
.empty { grid-column: 1 / -1; text-align: center; padding: 48px 16px; display: grid; justify-items: center; gap: 14px; color: var(--ink-2); }

/* ---------- cómo comprar, entregas, opiniones, preguntas ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 0; } }
.steps li { position: relative; padding: 0 18px 0 0; counter-increment: s; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
@media (min-width: 800px) {
  .steps li { grid-template-columns: 1fr; padding: 0 22px 0 0; }
  .steps li:not(:last-child)::after { content: ''; position: absolute; left: 52px; right: 10px; top: 21px; border-top: 2px dashed var(--salmon); }
}
.steps li::before { content: counter(s); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--salmon); font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; }
.steps h3 { margin: 0; font-size: 1.05rem; align-self: end; }
.steps p { margin: 0; color: var(--ink-2); font-size: .95rem; }
@media (min-width: 800px) { .steps li::before { grid-row: auto; margin-bottom: 10px; } .steps h3 { align-self: start; } }

.ways { display: grid; gap: 14px; }
@media (min-width: 760px) { .ways { grid-template-columns: repeat(3, 1fr); } }
.way { background: #fff; border-radius: var(--r-md); padding: 20px; display: grid; gap: 6px; align-content: start; box-shadow: inset 0 0 0 1.5px var(--line); }
.way .i { width: 28px; height: 28px; color: var(--coral); }
.way h3 { margin: 4px 0 0; font-size: 1.08rem; }
.way p { margin: 0; color: var(--ink-2); }
.way strong { font-variant-numeric: tabular-nums; }
.points { margin-top: 18px; display: grid; gap: 12px; }
@media (min-width: 760px) { .points { grid-template-columns: repeat(2, 1fr); } }
.point { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 16px 18px; border-radius: var(--r-md); background: var(--lilac-soft); }
.point .i { color: #6E58A3; margin-top: 2px; grid-row: span 3; }
.point b { font-size: 1rem; }
.point span { color: var(--ink-2); font-size: .92rem; }

.reviews { display: grid; gap: 14px; }
@media (min-width: 760px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { margin: 0; padding: 22px; border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.review p { margin: 0 0 10px; font-family: var(--f-display); font-size: 1.12rem; line-height: 1.45; }
.review cite { font-style: normal; font-weight: 700; color: var(--ink-2); font-size: .9rem; }

.faq { display: grid; gap: 10px; max-width: 780px; }
.faq details { background: #fff; border-radius: var(--r-md); box-shadow: inset 0 0 0 1.5px var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .2s; color: var(--ink-3); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 18px 18px; color: var(--ink-2); }

.closing { text-align: center; display: grid; justify-items: center; gap: 14px; padding: 48px var(--pad); border-radius: var(--r-xl); background: var(--lilac-soft); }
.closing p { margin: 0; color: var(--ink-2); max-width: 46ch; }

/* ---------- pie ---------- */
.foot { background: var(--ink); color: #F3E6E9; padding: 56px 0 calc(32px + env(safe-area-inset-bottom, 0px)); margin-top: 48px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand img { width: 74px; height: 74px; border-radius: 50%; background: #fff; }
.foot-brand b { font-family: var(--f-display); font-size: 1.5rem; display: block; }
.foot h3 { font-size: .95rem; margin: 0 0 12px; color: var(--salmon); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot li { display: flex; gap: 10px; align-items: center; }
.foot .i { width: 18px; height: 18px; color: var(--salmon); }
.foot-note { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .85rem; color: #CDBBC6; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ---------- formularios ---------- */
.field { display: grid; gap: 6px; }
.field > label, .lbl { font-weight: 700; font-size: .92rem; }
.input {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--r-sm); border: 1.5px solid #EADBD7; background: #fff;
  font: 400 16px/1.4 var(--f-body); color: var(--ink); -webkit-appearance: none; appearance: none;
}
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237D707A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
textarea.input { resize: vertical; min-height: 84px; }
.input:focus { border-color: var(--lilac); outline: none; box-shadow: 0 0 0 4px var(--lilac-soft); }
.input.is-bad { border-color: var(--danger); }
.hint { font-size: .84rem; color: var(--ink-3); margin: 0; }
.err { color: var(--danger); font-size: .86rem; font-weight: 600; margin: 0; }
.row2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: 600; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--coral); flex: none; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: var(--salmon-soft); font-weight: 600; }
.alert-info { background: var(--lilac-soft); }
.alert-ok { background: var(--sage-soft); color: #234027; }
.alert-bad { background: #FBE3E0; color: #7E2018; }
.alert .i { margin-top: 1px; }

/* opciones elegibles (entrega / pago / punto) */
.opts { display: grid; gap: 10px; }
.opt { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 1.5px #EADBD7; cursor: pointer; transition: box-shadow .15s, background-color .15s; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .i { color: var(--coral); margin-top: 1px; }
.opt-body { display: grid; gap: 2px; flex: 1; min-width: 0; }
.opt-body b { font-size: 1rem; }
.opt-body span { color: var(--ink-2); font-size: .9rem; }
.opt-side { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.opt-tag { display: inline-block; font-size: .74rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--sage-soft); color: #234027; margin-left: 6px; vertical-align: 1px; }
.opt-tag.up { background: var(--salmon-soft); color: var(--ink); }
.opt.is-on { box-shadow: inset 0 0 0 2px var(--coral); background: var(--salmon-soft); }
.opt:has(input:focus-visible) { outline: 3px solid var(--lilac); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px #EADBD7; font-weight: 650; }
.chip input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.chip input:focus-visible + span { outline: 3px solid var(--lilac); outline-offset: 2px; }
.chip.is-out span { color: var(--ink-3); text-decoration: line-through; cursor: not-allowed; }

/* ---------- ficha de producto ---------- */
.crumbs { font-size: .88rem; color: var(--ink-3); padding: 18px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.pdp-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .pdp-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; } .gallery { position: sticky; top: calc(var(--top) + 18px); } }
.gallery { position: relative; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r-xl); background: var(--blush); scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: 0 0 100%; aspect-ratio: 1; object-fit: cover; scroll-snap-align: center; }
.gallery .badge { top: 14px; left: 14px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumb { flex: none; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; opacity: .6; box-shadow: inset 0 0 0 2px transparent; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-on { opacity: 1; outline: 2px solid var(--coral); outline-offset: 2px; }
.pdp-info { display: grid; gap: 18px; align-content: start; }
.pdp-info h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.1rem, 5vw, 3.1rem); line-height: 1.04; margin: 0; }
.pdp-size, .pdp-timer { display: flex; align-items: center; gap: 8px; margin: -8px 0 0; color: var(--ink-2); font-weight: 600; }
.pdp-timer b { font-variant-numeric: tabular-nums; color: var(--ink); }
.pdp-price .price { font-size: 1.8rem; letter-spacing: -.01em; }
.pdp-price .price-ask { font-size: 1.3rem; }
.pdp-stock { font-size: .9rem; font-weight: 700; color: #8A4A1E; margin: -10px 0 0; }
.pdp-short { margin: 0; font-size: 1.08rem; color: var(--ink-2); }
.variants { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.variants legend { font-weight: 700; font-size: .92rem; padding: 0; margin-bottom: 10px; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; }
.buy-row .btn-primary { flex: 1 1 220px; }
.qty { display: inline-flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1.5px #EADBD7; background: #fff; height: 54px; }
.qty button { width: 46px; height: 100%; border: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 999px; }
.qty button:hover { background: var(--salmon-soft); }
.qty output { min-width: 28px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.qty-sm { height: 36px; }
.qty-sm button { width: 34px; }
.qty-sm .i { width: 16px; height: 16px; }
.pdp-desc h2 { font-size: 1rem; margin: 0 0 6px; }
.pdp-desc p { margin: 0; color: var(--ink-2); }
.perks { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.perks li { display: flex; gap: 10px; align-items: center; color: var(--ink-2); font-size: .95rem; }
.perks .i { color: var(--coral); }
.buybar { display: none; }
@media (max-width: 899px) {
  body[data-view='product'] { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  body[data-view='product'] .wa-float { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; align-items: center; gap: 12px; padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 253, 252, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
  .buybar .btn { flex: 1; }
  .buybar .price { font-size: 1.15rem; }
}

/* ---------- checkout ---------- */
.page-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 4.6vw, 2.9rem); line-height: 1.05; margin: 28px 0 22px; }
.co-grid { display: grid; gap: 22px; align-items: start; }
@media (min-width: 960px) { .co-grid { grid-template-columns: 1.35fr 1fr; gap: 36px; } .co-summary { position: sticky; top: calc(var(--top) + 16px); } }
.co-sec { background: #fff; border-radius: var(--r-lg); padding: 22px clamp(16px, 3vw, 26px); box-shadow: inset 0 0 0 1.5px var(--line); display: grid; gap: 16px; margin-bottom: 16px; }
.co-sec h2 { font-size: 1.15rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.co-sec h2 .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--salmon); font-family: var(--f-display); font-size: 1rem; }
.co-summary { background: #fff; border-radius: var(--r-lg); padding: 22px clamp(16px, 3vw, 26px); box-shadow: 0 24px 40px -30px rgba(61, 42, 57, .45), inset 0 0 0 1.5px var(--line); display: grid; gap: 14px; }
.co-summary h2 { font-size: 1.15rem; margin: 0; }
.sum-items { display: grid; gap: 12px; max-height: 320px; overflow: auto; }
.sum-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; }
.sum-item img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--blush); }
.sum-item small { display: block; color: var(--ink-3); }
.sum-rows { display: grid; gap: 8px; border-top: 1px dashed #E9D7D2; padding-top: 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sum-row.total { color: var(--ink); font-size: 1.3rem; font-weight: 850; padding-top: 6px; }
.sum-row .good { color: #2F6B36; font-weight: 700; }
.coupon { display: flex; gap: 8px; }
.coupon .input { min-height: 44px; text-transform: uppercase; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- pedido ---------- */
.order-head { display: grid; gap: 8px; margin: 28px 0 22px; }
.order-head .page-title { margin: 0; }
.code-chip { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 14px; border-radius: 999px; background: var(--lilac-soft); font-weight: 800; letter-spacing: .02em; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-bottom: 18px; color: var(--ink-3); font-weight: 650; }
.timeline li::before { content: ''; width: 16px; height: 16px; margin: 3px 0 0 6px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #E2D2CE; z-index: 1; }
.timeline li:not(:last-child)::after { content: ''; position: absolute; left: 13px; top: 20px; bottom: 0; border-left: 2px dashed #E2D2CE; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--coral); box-shadow: none; }
.timeline li.now::before { background: var(--ink); box-shadow: 0 0 0 4px var(--salmon-soft); }
.timeline li.now { color: var(--ink); font-weight: 800; }
@media (min-width: 760px) {
  .timeline { grid-template-columns: repeat(5, 1fr); }
  .timeline li { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 0 6px; gap: 8px; font-size: .92rem; }
  .timeline li::before { margin: 0; }
  .timeline li:not(:last-child)::after { left: calc(50% + 14px); right: calc(-50% + 14px); top: 7px; bottom: auto; border-left: 0; border-top: 2px dashed #E2D2CE; }
}
.paybox { display: grid; gap: 10px; }
.payline { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.payline span { color: var(--ink-3); font-size: .85rem; display: block; }
.payline b { word-break: break-all; }
.big-total { font-size: 2rem; font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.upload { position: relative; display: grid; justify-items: center; gap: 8px; padding: 20px; border-radius: var(--r-md); border: 2px dashed #E2D2CE; text-align: center; cursor: pointer; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload:hover { border-color: var(--coral); background: var(--salmon-soft); }
.kv { display: grid; gap: 6px; margin: 0; }
.kv div { display: flex; gap: 10px; justify-content: space-between; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 650; text-align: right; }

/* ---------- carrito ---------- */
.scrim { position: fixed; inset: 0; z-index: 55; background: rgba(61, 42, 57, .38); opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(430px, 100%); background: var(--paper); display: flex; flex-direction: column; transform: translateX(104%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); box-shadow: -24px 0 50px -30px rgba(61, 42, 57, .5); padding-top: env(safe-area-inset-top, 0px); visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--f-display); font-size: 1.6rem; margin: 0; }
.drawer-body { flex: 1; overflow: auto; padding: 16px 22px; display: grid; gap: 16px; align-content: start; }
.drawer-foot { padding: 16px 22px calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: grid; gap: 10px; background: #fff; }
.drawer-foot:empty { display: none; }
.cline { display: grid; grid-template-columns: 72px 1fr; gap: 14px; }
.cline img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; background: var(--blush); }
.cline-top { display: flex; justify-content: space-between; gap: 8px; }
.cline-top b { font-weight: 700; line-height: 1.3; }
.cline small { display: block; color: var(--ink-3); font-size: .84rem; }
.cline-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.cart-empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 48px 0; color: var(--ink-2); }
.crow { display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 800; }

/* ---------- avisos flotantes, WhatsApp y ventana de promo ---------- */
.toast { position: fixed; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 90; width: max-content; max-width: calc(100% - 28px); margin-inline: auto; display: flex; align-items: center; gap: 14px; background: var(--ink); color: #fff; padding: 12px 14px 12px 18px; border-radius: 999px; font-weight: 650; box-shadow: 0 16px 30px -16px rgba(61, 42, 57, .7); opacity: 0; visibility: hidden; transform: translateY(24px); transition: transform .3s cubic-bezier(.2, 1, .3, 1), opacity .25s, visibility 0s .3s; }
.toast.on { opacity: 1; visibility: visible; transform: none; transition: transform .3s cubic-bezier(.2, 1, .3, 1), opacity .25s; }
.toast button { background: var(--salmon); color: var(--ink); border: 0; border-radius: 999px; padding: 6px 12px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.wa-float { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 30; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--sage); color: #fff; box-shadow: 0 14px 28px -14px rgba(35, 64, 39, .8); text-decoration: none; }
.wa-float .i { width: 28px; height: 28px; }
body[data-view='checkout'] .wa-float, body[data-view='order'] .wa-float { display: none; }
.pop { border: 0; padding: 0; border-radius: var(--r-xl); width: min(420px, calc(100% - 28px)); background: var(--blush); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(61, 42, 57, .6); overflow: visible; }
.pop::backdrop { background: rgba(61, 42, 57, .45); }
.pop-in { position: relative; display: grid; gap: 14px; justify-items: center; text-align: center; padding: 30px 22px 24px; }
.pop-in .valance { position: absolute; border-radius: var(--r-xl) var(--r-xl) 0 0; overflow: hidden; animation: none; }
.pop-close { position: absolute; top: 12px; right: 12px; z-index: 4; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; }
.pop .arch { width: 190px; margin-top: 18px; border-width: 6px; }
.pop h2 { font-family: var(--f-display); font-size: 2rem; line-height: 1.05; margin: 4px 0 0; }
.pop .ticket { position: static; transform: rotate(-2deg); animation: none; }
.pop-actions { display: grid; gap: 8px; width: 100%; }

.loading { min-height: 50vh; display: grid; place-items: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--salmon-soft); border-top-color: var(--coral); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.state { min-height: 50vh; display: grid; place-items: center; text-align: center; padding: 48px var(--pad); }
.state > div { display: grid; gap: 14px; justify-items: center; max-width: 440px; }
.state h1 { font-family: var(--f-display); font-size: 2.2rem; margin: 0; }
.state p { margin: 0; color: var(--ink-2); }
.card-box { background: #fff; border-radius: var(--r-lg); padding: 22px clamp(16px, 3vw, 26px); box-shadow: inset 0 0 0 1.5px var(--line); display: grid; gap: 14px; }
.card-box h2 { font-size: 1.15rem; margin: 0; display: flex; gap: 10px; align-items: center; }
.order-grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 960px) { .order-grid { grid-template-columns: 1.3fr 1fr; gap: 28px; } }
.stack { display: grid; gap: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
