/* =========================================================
   PERFUMANÍA — Tienda, ficha, pago y pedido
   ========================================================= */

/* ---------- Tienda ---------- */
.shop-head { background: linear-gradient(180deg, var(--nacre), var(--lait)); }
.shop-head__title { font-size: var(--t-3xl); line-height: .9; letter-spacing: -.04em; }
.shop-head__row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-top: 1.4rem; }
.gtabs { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; }
.gtabs button { border: 0; background: none; padding: .3rem 0; font-family: var(--serif); font-size: clamp(1.1rem, 1rem + .5vw, 1.45rem); color: rgba(28, 18, 32, .45); position: relative; transition: color .3s; }
.gtabs button:hover { color: var(--nuit); }
.gtabs button[aria-selected="true"] { color: var(--nuit); font-style: italic; }
.gtabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ambre); }

.shop { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); padding-bottom: clamp(4rem, 10vh, 7rem); align-items: start; }
.filters { position: sticky; top: calc(var(--hdr) + 1rem); max-height: calc(100vh - var(--hdr) - 2rem); overflow-y: auto; padding-right: .4rem; scrollbar-width: thin; }
.filters__top { display: none; }
.fgroup { border: 0; padding: 0 0 1.4rem; margin: 0 0 1.4rem; border-bottom: 1px solid var(--line); min-width: 0; }
.fgroup legend { font-family: var(--serif); font-size: 1.25rem; margin-bottom: .8rem; padding: 0; display: flex; justify-content: space-between; width: 100%; }
.fgroup__out { font-family: var(--sans); font-size: .85rem; font-weight: 600; }
.fgroup__list { display: grid; gap: .15rem; }
.fopt { display: flex; align-items: center; gap: .7rem; padding: .4rem .2rem; border-radius: 8px; cursor: pointer; font-size: .94rem; }
.fopt:hover { background: var(--nacre); }
.fopt input { position: absolute; opacity: 0; pointer-events: none; }
.fopt__dot { width: 16px; height: 16px; border-radius: 50%; background: var(--fc); box-shadow: inset 0 0 0 2px var(--lait); border: 1px solid var(--fc); flex: none; transition: transform .3s var(--ease); }
.fopt input:checked + .fopt__dot { transform: scale(1.25); box-shadow: inset 0 0 0 0 var(--lait), 0 0 0 2px var(--lait), 0 0 0 3.5px var(--nuit); }
.fopt input:focus-visible + .fopt__dot { outline: 2px solid var(--ambre); outline-offset: 3px; }
.fopt small { margin-left: auto; color: rgba(28, 18, 32, .5); }
.fgroup .chips { gap: .4rem; }
.fgroup .chip { padding: .4rem .8rem; font-size: .84rem; }
.range { width: 100%; margin: 0; accent-color: var(--prune); }
.filters__clear { border: 0; background-color: transparent; font-size: .88rem; padding: 0 0 2px; }

.toolbar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; position: sticky; top: var(--hdr); z-index: 20; background: var(--lait); padding: .8rem 0; transition: top .5s var(--ease); }
.hdr.is-hidden ~ main .toolbar { top: 0; }
.toolbar__filters { display: none; min-height: 44px; padding: .5rem 1.1rem; }
.toolbar__n { background: var(--ambre); color: var(--nuit); border-radius: 100vmax; padding: 0 .45rem; font-size: .75rem; }
.toolbar__search { flex: 1; min-width: 200px; }
.toolbar__search input { width: 100%; border: 0; border-bottom: 1px solid rgba(28, 18, 32, .25); background: none; padding: .6rem 0; font-size: 1rem; border-radius: 0; }
.toolbar__search input:focus { outline: none; border-color: var(--ambre); }
.toolbar__count { margin: 0; font-size: .88rem; color: rgba(28, 18, 32, .6); white-space: nowrap; }
.toolbar__sort .select { min-height: 44px; padding: .5rem 2.4rem .5rem 1rem; border-radius: 100vmax; font-size: .9rem; background-color: transparent; }
.active-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.4rem; min-height: 0; }
.active-filters button { border: 0; background: var(--nacre); border-radius: 100vmax; padding: .35rem .8rem; font-size: .82rem; }
.active-filters button::after { content: " ×"; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.4rem) clamp(1rem, 2.4vw, 2.4rem); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid .pcard { animation: msgIn .5s var(--ease) both; }
.grid-empty { grid-column: 1 / -1; text-align: center; padding: 4rem 1rem; border: 1px dashed rgba(28, 18, 32, .25); border-radius: 28px; }
.grid-empty h3 { font-size: var(--t-xl); margin-bottom: .6rem; }
.grid-empty .btn { margin: .4rem; }
.promo-tile { grid-column: span 1; border-radius: var(--arch); background: var(--nuit); color: var(--nacre); padding: 3rem 1.6rem 1.8rem; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100%; position: relative; overflow: hidden; isolation: isolate; }
.promo-tile::before { content: ""; position: absolute; inset: -30%; background: conic-gradient(from 200deg at 50% 60%, var(--prune), var(--ambre), var(--rose), var(--prune)); filter: blur(50px); opacity: .55; z-index: -1; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.promo-tile h3 { font-size: clamp(1.7rem, 1.3rem + 1vw, 2.3rem); margin-bottom: .8rem; }
.promo-tile p { color: rgba(238, 231, 227, .8); font-size: .94rem; }
.promo-tile .btn { align-self: flex-start; }

@media (max-width: 1180px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .shop { grid-template-columns: 1fr; }
  .toolbar__filters { display: inline-flex; }
  .filters { position: fixed; inset: auto 0 0 0; top: auto; z-index: 955; max-height: 84vh; background: var(--lait); border-radius: 26px 26px 0 0; padding: 1.2rem var(--gut) 2rem; transform: translateY(105%); transition: transform .5s var(--ease); box-shadow: 0 -20px 60px rgba(28, 18, 32, .25); overscroll-behavior: contain; }
  .filters.is-open { transform: none; }
  .filters__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
  .filters__top h2 { font-size: 1.8rem; }
  .filters__close { border: 0; background-color: transparent; font-weight: 600; }
  .toolbar__count { order: 3; width: 100%; }
  .toolbar__search { order: 4; flex-basis: 100%; }
}
@media (max-width: 520px) { .grid { gap: 2rem .8rem; } .pcard__name { font-size: 1.2rem; } .pcard__line { display: none; } .pcard__meta span + span { display: none; } .pcard__buy { flex-direction: column; align-items: flex-start; gap: .1rem; } .promo-tile { padding: 2rem 1.1rem 1.2rem; } .promo-tile h3 { font-size: 1.35rem; } .promo-tile p { font-size: .84rem; } }

.catalogs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem; padding: clamp(3rem, 8vh, 5rem) var(--gut); margin-bottom: clamp(3rem, 8vh, 5rem); border-top: 1px solid var(--line); }
.catalogs h2 { font-size: var(--t-xl); margin-bottom: .6rem; }
.catalogs__list { display: grid; }
.catalogs__list a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .4s var(--ease); }
.catalogs__list a:hover { padding-left: .8rem; }
.catalogs__list span { font-family: var(--serif); font-size: 1.5rem; }
.catalogs__list small { color: rgba(28, 18, 32, .55); font-size: .82rem; }
@media (max-width: 760px) { .catalogs { grid-template-columns: 1fr; } .catalogs__list small { display: none; } }

/* ---------- Ficha de producto ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 6rem); padding-top: calc(var(--hdr) + 1.5rem); padding-bottom: clamp(3rem, 8vh, 6rem); align-items: start; }
.pdp__stage { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 40%; position: sticky; top: calc(var(--hdr) + 1rem); height: min(82vh, 820px); border-radius: var(--arch); background: var(--nacre); background: linear-gradient(175deg, color-mix(in srgb, var(--c1) 26%, var(--nacre)), color-mix(in srgb, var(--c2) 36%, var(--nacre))); display: grid; place-items: center; overflow: hidden; perspective: 900px; isolation: isolate; cursor: pointer; }
.pdp__glow { position: absolute; inset: 0; background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .8), transparent 42%); z-index: -1; transition: background .2s; }
.pdp__bottle { width: min(52%, 340px); transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s var(--ease); transform-style: preserve-3d; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -12px; } }
.pdp__spray { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); border: 0; background: rgba(255, 255, 255, .55); backdrop-filter: blur(6px); padding: .5rem 1rem; border-radius: 100vmax; font-size: .82rem; }
.pdp__meta { display: flex; gap: 1rem; font-size: .86rem; color: rgba(28, 18, 32, .65); margin: 0 0 .5rem; flex-wrap: wrap; }
.pdp__meta span:first-child { color: var(--prune); font-weight: 600; }
.pdp__name { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 5.2rem); line-height: .92; letter-spacing: -.035em; }
.pdp__line { font-family: var(--serif); font-style: italic; font-size: var(--t-lg); color: var(--prune); margin: .8rem 0 1.4rem; }
.pdp__price { font-family: var(--serif); font-size: 2.2rem; margin: 0 0 1.2rem; display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.pdp__price small { font-family: var(--sans); font-size: .85rem; color: rgba(28, 18, 32, .55); }
.sizes { border: 0; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.size { position: relative; cursor: pointer; }
.size input { position: absolute; opacity: 0; }
.size span { display: grid; justify-items: center; gap: .1rem; padding: .9rem .4rem .8rem; border: 1px solid rgba(28, 18, 32, .22); border-radius: var(--arch); transition: border-color .25s, background .25s, color .25s; text-align: center; }
.size span strong { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1; }
.size span small { font-size: .8rem; color: rgba(28, 18, 32, .6); }
.size span em { font-style: normal; font-size: .7rem; color: var(--ambre-d); font-weight: 600; min-height: 1em; }
.size:hover span { border-color: var(--nuit); }
.size input:checked + span { background: var(--nuit); color: var(--lait); border-color: var(--nuit); }
.size input:checked + span small, .size input:checked + span em { color: rgba(248, 244, 242, .75); }
.size input:focus-visible + span { outline: 2px solid var(--ambre); outline-offset: 2px; }
.pdp__row { display: flex; gap: .8rem; margin-bottom: .8rem; }
.pdp__row .btn { flex: 1; }
.qty--lg button { width: 46px; height: 50px; }
.qty--lg input { width: 2.6em; border: 0; background: none; text-align: center; font-weight: 600; font-size: 1rem; -moz-appearance: textfield; appearance: textfield; }
.qty--lg input::-webkit-outer-spin-button, .qty--lg input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp__eta { margin: 1.2rem 0; padding: .9rem 1.1rem; border-radius: 14px; background: var(--nacre); font-size: .92rem; display: flex; gap: .7rem; align-items: center; }
.pdp__eta::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; animation: pulse 2s infinite; }
.pdp__perks { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .5rem; font-size: .9rem; color: rgba(28, 18, 32, .75); }
.pdp__perks li { padding-left: 1.4rem; position: relative; }
.pdp__perks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--ambre); }
.pdp__wa { font-size: .92rem; }
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; padding-top: calc(var(--hdr) + .5rem); }
  .pdp__stage { position: relative; top: 0; height: 64vh; min-height: 380px; }
  .pdp__bottle { width: min(56%, 260px); }
}

.pdp-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); padding-top: clamp(3rem, 8vh, 6rem); padding-bottom: clamp(3rem, 8vh, 6rem); border-top: 1px solid var(--line); align-items: center; }
.pdp-story__title { font-size: var(--t-2xl); margin-bottom: 1.2rem; }
.pdp__desc { font-size: 1.08rem; max-width: 52ch; }
.pdp__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 2rem; margin: 2rem 0 0; }
.pdp__facts dt { font-size: .82rem; color: rgba(28, 18, 32, .6); margin-bottom: .3rem; }
.pdp__facts dd { margin: 0; font-family: var(--serif); font-size: 1.25rem; }
.drops { display: inline-flex; gap: 4px; vertical-align: middle; margin-right: .5rem; }
.drops i { width: 10px; height: 13px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: rgba(28, 18, 32, .15); }
.drops i.on { background: var(--ambre); }
.pyramid { display: grid; gap: .5rem; justify-items: center; }
.tier { width: var(--w); text-align: center; padding: 1.4rem 1rem; background: var(--tc); color: var(--tt, var(--nuit)); clip-path: polygon(var(--inset) 0, calc(100% - var(--inset)) 0, 100% 100%, 0 100%); transition: transform .5s var(--ease), filter .4s; cursor: default; }
.tier:first-child { clip-path: polygon(50% 0, 100% 100%, 0 100%); padding-top: 3.2rem; }
.tier:hover, .tier.is-on { transform: scale(1.04); filter: brightness(1.05); }
.tier__k { font-family: var(--serif); font-style: italic; font-size: 1.15rem; display: block; }
.tier__v { font-size: .92rem; display: block; margin-top: .2rem; }
.tier__t { font-size: .74rem; opacity: .7; display: block; margin-top: .3rem; }
@media (max-width: 860px) { .pdp-story { grid-template-columns: 1fr; } .tier { --w: 100% !important; } }

.pdp-help { padding-bottom: clamp(3rem, 8vh, 5rem); }
.related { padding-bottom: clamp(4rem, 10vh, 7rem); }
.related__title { font-size: var(--t-xl); margin-bottom: 2rem; }
.recent { padding-bottom: clamp(3rem, 8vh, 5rem); }
.recent__row { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .6rem; }
.recent__row a { flex: none; width: 160px; text-decoration: none; }
.recent__row .search__thumb { width: 160px; height: 190px; padding: 18px 30px 6px; }
.recent__row span { display: block; font-family: var(--serif); margin-top: .5rem; }

.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 930; background: rgba(248, 244, 242, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: .7rem var(--gut) max(.7rem, env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform .5s var(--ease); }
.buybar.is-on { transform: none; }
.buybar__in { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 1rem; }
.buybar__name { font-family: var(--serif); font-size: 1.2rem; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar__price { font-weight: 600; white-space: nowrap; }
.buybar .btn { min-height: 46px; padding: .6rem 1.4rem; }
body[data-page="producto"] .bot-fab { transition: transform .5s var(--ease), opacity .3s, bottom .4s var(--ease); }
body.has-buybar .bot-fab { bottom: calc(max(18px, env(safe-area-inset-bottom)) + 72px); }
body.has-buybar .toast { bottom: calc(max(18px, env(safe-area-inset-bottom)) + 72px); }

/* ---------- Pago ---------- */
.co { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); padding-top: calc(var(--hdr) + 2rem); padding-bottom: clamp(4rem, 10vh, 7rem); align-items: start; }
.co__head { grid-column: 1 / -1; }
.co__title { font-size: var(--t-2xl); margin-bottom: 1.4rem; }
.co__steps { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.6rem; flex-wrap: wrap; font-size: .9rem; color: rgba(28, 18, 32, .5); }
.co__steps li { display: flex; align-items: center; gap: .5rem; }
.co__steps span { width: 26px; height: 26px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-size: .78rem; }
.co__steps li.is-on { color: var(--nuit); font-weight: 600; }
.co__steps li.is-done { color: var(--ok); }
.co__steps li.is-done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.co__empty { grid-column: 1 / -1; text-align: center; padding: 4rem 1rem; }
.co__empty-t { font-family: var(--serif); font-size: var(--t-xl); }
.co__step { border-top: 1px solid var(--line); }
.co__step:last-child { border-bottom: 1px solid var(--line); }
.co__step-h { width: 100%; display: flex; align-items: center; gap: 1rem; border: 0; background: none; padding: 1.4rem 0; text-align: left; }
.co__step-h h2 { font-size: 1.7rem; }
.co__n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--nacre); font-weight: 700; font-size: .9rem; flex: none; }
.co__step.is-open .co__n { background: var(--nuit); color: var(--lait); }
.co__step.is-done .co__n { background: var(--ok); color: #fff; }
.co__sum { margin-left: auto; font-size: .85rem; color: rgba(28, 18, 32, .6); text-align: right; max-width: 50%; }
.co__step-b { display: none; padding: 0 0 2rem; gap: 1.1rem; }
.co__step.is-open .co__step-b { display: grid; animation: msgIn .5s var(--ease); }
.co__step.is-open .co__sum { display: none; }
.co__step-b > .btn { justify-self: start; margin-top: .4rem; }
.co__invoice summary { cursor: pointer; font-size: .92rem; text-decoration: underline; }
.co__invoice[open] summary { margin-bottom: 1rem; }
.opts { display: grid; gap: .6rem; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; }
.opt__b { display: grid; grid-template-columns: 22px 1fr auto; gap: .2rem 1rem; align-items: center; padding: 1rem 1.2rem; border: 1px solid rgba(28, 18, 32, .2); border-radius: 18px; transition: border-color .25s, background .25s, box-shadow .25s; }
.opt__b::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(28, 18, 32, .4); grid-row: 1 / span 2; transition: border-width .2s, border-color .2s; }
.opt:hover .opt__b { border-color: var(--nuit); }
.opt input:checked + .opt__b { border-color: var(--nuit); background: #fff; box-shadow: 0 10px 24px rgba(28, 18, 32, .07); }
.opt input:checked + .opt__b::before { border: 6px solid var(--prune); }
.opt input:focus-visible + .opt__b { outline: 2px solid var(--ambre); outline-offset: 2px; }
.opt input:disabled + .opt__b { opacity: .45; cursor: not-allowed; }
.opt__t { font-weight: 600; }
.opt__d { grid-column: 2; font-size: .84rem; color: rgba(28, 18, 32, .65); }
.opt__p { grid-row: 1 / span 2; grid-column: 3; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.opt__p s { font-weight: 400; color: rgba(28, 18, 32, .45); margin-right: .3rem; }
.co__ship-detail, .co__gift { display: grid; gap: 1rem; }
.co__ship-detail[hidden], .co__gift[hidden], .paybox[hidden] { display: none; }
.co__branch-status { margin-top: .2rem; }
.paybox { display: grid; gap: 1rem; padding: 1.2rem; border-radius: 18px; background: var(--nacre); font-size: .94rem; }
.paybox p { margin: 0; }
.paybox__note { font-size: .8rem; color: rgba(28, 18, 32, .65); }
.card-vis { aspect-ratio: 1.586; max-width: 340px; border-radius: 18px; padding: 1.2rem 1.3rem; color: var(--nacre); background: radial-gradient(circle at 80% 0%, rgba(227, 178, 106, .55), transparent 50%), linear-gradient(135deg, var(--prune), var(--nuit)); display: grid; grid-template-rows: auto 1fr auto; box-shadow: 0 18px 40px rgba(28, 18, 32, .25); font-family: var(--sans); }
.card-vis__brand { justify-self: end; font-weight: 700; font-style: italic; min-height: 1.2em; }
.card-vis__num { align-self: center; font-size: clamp(1rem, 4vw, 1.3rem); letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.card-vis__row { display: flex; justify-content: space-between; font-size: .76rem; letter-spacing: .06em; gap: 1rem; }
.card-vis__name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.co__terms { margin-top: .4rem; }
.co__error { color: var(--err); font-size: .9rem; margin: 0; }
.co__submit { min-height: 58px; font-size: 1rem; }

.co__summary { position: sticky; top: calc(var(--hdr) + 1rem); }
.co__summary-in { background: var(--nacre); border-radius: 28px; padding: clamp(1.2rem, 3vw, 2rem); }
.co__summary-t { font-size: 1.7rem; margin-bottom: 1rem; }
.co__items { display: grid; gap: .2rem; max-height: 46vh; overflow-y: auto; margin-bottom: 1rem; }
.co__item { display: grid; grid-template-columns: 52px 1fr auto; gap: .9rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.co__item .search__thumb { width: 52px; height: 62px; position: relative; }
.co__item .search__thumb b { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--nuit); color: var(--lait); font-size: .72rem; display: grid; place-items: center; }
.co__item strong { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; display: block; line-height: 1.15; }
.co__item small { font-size: .8rem; color: rgba(28, 18, 32, .6); }
.coupon { display: flex; gap: .5rem; }
.coupon .input { min-height: 46px; text-transform: uppercase; }
.coupon .btn { min-height: 46px; padding: .5rem 1.1rem; }
.coupon__msg { font-size: .84rem; margin: .5rem 0 0; min-height: 1.2em; }
.coupon__msg.is-ok { color: var(--ok); } .coupon__msg.is-err { color: var(--err); }
.totals { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; margin: 1rem 0; font-size: .94rem; }
.totals dt, .totals dd { margin: 0; }
.totals dd { text-align: right; }
.totals .is-total { font-family: var(--serif); font-size: 1.8rem; padding-top: .6rem; border-top: 1px solid var(--line); margin-top: .3rem; }
.totals .is-disc { color: var(--ok); }
.totals button { border: 0; background: none; text-decoration: underline; font-size: .78rem; padding: 0 0 0 .4rem; color: rgba(28, 18, 32, .6); }
.co__secure { font-size: .8rem; color: rgba(28, 18, 32, .6); margin: 0; }
@media (max-width: 900px) {
  .co { grid-template-columns: 1fr; }
  .co__summary { position: static; order: -1; }
  .co__items { max-height: none; }
}
.processing { position: fixed; inset: 0; z-index: 990; background: rgba(28, 18, 32, .82); backdrop-filter: blur(8px); display: grid; place-items: center; color: var(--nacre); text-align: center; }
.processing[hidden] { display: none; }
.processing__bottle { width: 120px; margin: 0 auto 1.4rem; }
.processing__bottle .b-liquid { animation: fillup 1.6s var(--ease) infinite alternate; }
@keyframes fillup { from { transform: translateY(120px); } to { transform: translateY(0); } }
.processing__t { font-family: var(--serif); font-size: 2rem; }

/* ---------- Pedido / recibo ---------- */
.order { padding-top: calc(var(--hdr) + 2.5rem); padding-bottom: clamp(4rem, 10vh, 7rem); }
.lookup { max-width: 560px; }
.lookup__t { font-size: var(--t-2xl); margin-bottom: 1rem; }
.lookup__form { display: grid; gap: 1rem; margin-top: 2rem; }
.lookup__form .btn { justify-self: start; }
.lookup__msg { color: var(--err); font-size: .9rem; min-height: 1.2em; }
.receipt { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.receipt__hero { grid-column: 1 / -1; }
.receipt__k { font-family: var(--serif); font-style: italic; color: var(--prune); font-size: var(--t-lg); }
.receipt__t { font-size: var(--t-3xl); line-height: .92; letter-spacing: -.035em; margin: .4rem 0 1rem; }
.receipt__id { display: inline-flex; align-items: center; gap: .8rem; background: var(--nacre); border-radius: 100vmax; padding: .5rem .6rem .5rem 1.1rem; font-weight: 600; }
.copy { border: 0; background: var(--nuit); color: var(--lait); border-radius: 100vmax; padding: .35rem .8rem; font-size: .78rem; font-weight: 600; }
.copy.is-ok { background: var(--ok); }
.timeline { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; }
.timeline li { position: relative; padding-top: 1.6rem; font-size: .84rem; color: rgba(28, 18, 32, .5); }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 2px; background: rgba(28, 18, 32, .12); }
.timeline li.is-done { color: var(--nuit); }
.timeline li.is-done::before { background: var(--ok); }
.timeline li.is-now { color: var(--nuit); font-weight: 600; }
.timeline li.is-now::before { background: linear-gradient(90deg, var(--ambre) 50%, rgba(28, 18, 32, .12) 50%); background-size: 200% 100%; animation: load 1.8s linear infinite; }
@keyframes load { from { background-position: 100% 0; } to { background-position: 0 0; } }
.timeline li.is-cancel { color: var(--err); }
@media (max-width: 640px) { .timeline { grid-template-columns: 1fr; } .timeline li { padding: 0 0 0 1.4rem; } .timeline li::before { top: .3rem; bottom: .3rem; right: auto; width: 4px; height: auto; } }
.paycard { background: var(--nuit); color: var(--nacre); border-radius: 28px; padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1.2rem; }
.paycard h2 { font-size: 1.9rem; }
.paycard .muted { color: rgba(238, 231, 227, .7); }
.paycard__amount { font-family: var(--serif); font-size: 2.8rem; line-height: 1; }
.qrbox { background: #fff; border-radius: 20px; padding: 1rem; width: 236px; max-width: 100%; display: grid; place-items: center; justify-self: start; }
.qrbox img, .qrbox canvas { width: 204px !important; height: 204px !important; }
.qrbox small { color: var(--nuit); font-size: .72rem; margin-top: .4rem; text-align: center; }
.acct { display: grid; gap: .5rem; }
.acct div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line-l); font-size: .92rem; flex-wrap: wrap; }
.acct span { color: rgba(238, 231, 227, .65); }
.acct b { font-weight: 600; display: inline-flex; gap: .6rem; align-items: center; }
.acct .copy { background: var(--ambre); color: var(--nuit); }
.upload { display: grid; gap: .8rem; padding: 1.2rem; border: 1px dashed rgba(238, 231, 227, .35); border-radius: 18px; }
.upload input[type=file] { font-size: .85rem; color: var(--nacre); max-width: 100%; }
.upload__msg { font-size: .86rem; margin: 0; min-height: 1.2em; color: var(--ambre-l); }
.receipt__items { display: grid; gap: .2rem; }
.receipt__side h2 { font-size: 1.6rem; margin-bottom: .8rem; }
.receipt__info { font-size: .92rem; display: grid; gap: .3rem; margin-top: 1.4rem; padding: 1.2rem; background: var(--nacre); border-radius: 18px; }
.receipt__info strong { font-weight: 600; }
.receipt__acts { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.notice { font-size: .82rem; color: rgba(28, 18, 32, .65); background: #fff5e6; border: 1px solid #f0d6aa; border-radius: 14px; padding: .8rem 1rem; margin-top: 1rem; }
@media (max-width: 900px) { .receipt { grid-template-columns: 1fr; } }
.coupon .input::placeholder { text-transform: none; }
