/* =========================================================
   PERFUMANÍA — Sistema base
   Paleta: ciruela nocturna, nácar, ámbar, rosa empolvado.
   Motivo: el arco del hombro de un frasco.
   ========================================================= */
:root {
  --nuit: #1C1220;
  --encre: #2B1F33;
  --prune: #6E3B5C;
  --rose: #C99AA6;
  --rose-l: #E9D3D6;
  --nacre: #EEE7E3;
  --lait: #F8F4F2;
  --ambre: #C8862E;
  --ambre-l: #E3B26A;
  --ambre-d: #8E5A17;
  --verre: #9A94A6;
  --line: rgba(28, 18, 32, .14);
  --line-l: rgba(238, 231, 227, .18);
  --ok: #2F6B4F;
  --err: #A3263F;

  --serif: "Bodoni Moda", "Bodoni 72", Didot, "Didot LT STD", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --gut: clamp(16px, 4.2vw, 64px);
  --max: 1440px;
  --hdr: 74px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --arch: 100vmax 100vmax 6px 6px;

  --t-xs: .78rem;
  --t-sm: .9rem;
  --t-md: 1.0625rem;
  --t-lg: clamp(1.2rem, 1.05rem + .6vw, 1.5rem);
  --t-xl: clamp(1.7rem, 1.2rem + 2vw, 2.6rem);
  --t-2xl: clamp(2.4rem, 1.4rem + 4vw, 4.6rem);
  --t-3xl: clamp(3rem, 1.2rem + 7.5vw, 8.5rem);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--lait); color: var(--nuit);
  font-family: var(--sans); font-size: var(--t-md); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ambre); color: var(--lait); }
:focus-visible { outline: 2px solid var(--ambre); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: -60px; left: 16px; z-index: 10000; background: var(--nuit); color: var(--lait); padding: .7rem 1rem; transition: top .2s; }
.skip:focus { top: 12px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.04; margin: 0; letter-spacing: -.01em; font-optical-sizing: auto; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.serif { font-family: var(--serif); }
.it { font-style: italic; }
.kicker { font-family: var(--serif); font-style: italic; font-size: var(--t-lg); color: var(--prune); display: block; margin-bottom: .7rem; }
.on-dark .kicker, .kicker--l { color: var(--ambre-l); }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.3rem); line-height: 1.55; max-width: 38ch; }
.muted { color: rgba(28, 18, 32, .66); }
.on-dark { background: var(--nuit); color: var(--nacre); }
.on-dark .muted { color: rgba(238, 231, 227, .66); }
.arch { border-radius: var(--arch); overflow: hidden; isolation: isolate; }
.media-fill { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--rose-l), var(--prune)); }
.media-fill > img, .media-fill > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
img.is-broken, video.is-broken { opacity: 0 !important; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--nuit); --fg: var(--lait);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .95em 1.7em .85em;
  border: 0; border-radius: var(--arch);
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), color .35s, background .35s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ambre);
  transform: translateY(101%); border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  transition: transform .55s var(--ease), border-radius .55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); border-radius: 0; }
.btn:hover { color: var(--nuit); }
.btn--dark { --bg: var(--nuit); --fg: var(--lait); }
.btn--light { --bg: var(--nacre); --fg: var(--nuit); }
.btn--amber { --bg: var(--ambre); --fg: var(--nuit); }
.btn--amber::before { background: var(--nuit); }
.btn--amber:hover { color: var(--lait); }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.2px currentColor; }
.btn--ghost:hover { color: var(--nuit); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn .ico { width: 18px; height: 18px; flex: none; }
.link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .45s var(--ease); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Cabecera ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 900; height: var(--hdr);
  color: var(--nuit); transition: transform .5s var(--ease), background .4s, color .4s, box-shadow .4s;
}
body[data-hdr="light"] .hdr:not(.is-solid):not(.is-menu) { color: var(--nacre); }
.hdr.is-solid { background: rgba(248, 244, 242, .86); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr.is-menu { background: transparent; box-shadow: none; color: var(--nacre); }
.hdr__in { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.logo { font-family: var(--serif); font-size: 1.7rem; letter-spacing: -.02em; text-decoration: none; line-height: 1; display: inline-flex; align-items: baseline; gap: .1em; justify-self: start; }
.logo i { font-style: normal; color: var(--ambre); }
.hdr__nav { display: flex; gap: clamp(1rem, 2.2vw, 2.4rem); }
.hdr__nav a { text-decoration: none; font-size: .94rem; position: relative; padding: .4rem 0; }
.hdr__nav a::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--ambre); transform: translateX(-50%) scale(0); transition: transform .35s var(--ease); }
.hdr__nav a:hover::after, .hdr__nav a[aria-current="page"]::after { transform: translateX(-50%) scale(1); }
.hdr__act { justify-self: end; display: flex; align-items: center; gap: .25rem; }
.icon-btn { width: 44px; height: 44px; border: 0; background: none; display: inline-grid; place-items: center; border-radius: 50%; position: relative; transition: background .3s; }
.icon-btn:hover { background: rgba(200, 134, 46, .14); }
.icon-btn svg { width: 22px; height: 22px; }
.hdr__ask { display: inline-flex; align-items: center; gap: .5rem; border: 0; background: none; font-size: .9rem; padding: .5rem .8rem; border-radius: 100vmax; box-shadow: inset 0 0 0 1px currentColor; margin-right: .3rem; }
.hdr__ask:hover { background: var(--ambre); color: var(--nuit); box-shadow: none; }
.hdr__ask .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ambre); box-shadow: 0 0 0 0 rgba(200, 134, 46, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 134, 46, .55); } 70% { box-shadow: 0 0 0 9px rgba(200, 134, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 134, 46, 0); } }
.hdr__count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ambre); color: var(--nuit); font-size: .7rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.hdr__bag.is-bump { animation: bump .6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.92) rotate(4deg); } }
.hdr__menu { display: none; }
.hdr__menu span { display: block; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), width .45s var(--ease); }
.hdr__menu span:first-child { width: 22px; } .hdr__menu span:last-child { width: 14px; margin-top: 6px; }
.hdr__menu[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.hdr__menu[aria-expanded="true"] span:last-child { width: 22px; transform: translateY(-3.75px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 880; background: var(--nuit); color: var(--nacre); padding: calc(var(--hdr) + 3vh) var(--gut) 2rem; display: flex; flex-direction: column; justify-content: space-between; clip-path: circle(0% at calc(100% - 40px) 37px); transition: clip-path .7s var(--ease-io); visibility: hidden; overflow-y: auto; }
.menu.is-open { clip-path: circle(150% at calc(100% - 40px) 37px); visibility: visible; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-family: var(--serif); font-size: clamp(2.2rem, 10vw, 3.4rem); text-decoration: none; line-height: 1.15; padding: .2rem 0; display: flex; align-items: baseline; gap: .8rem; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease); }
.menu nav a small { font-family: var(--sans); font-size: .8rem; color: var(--ambre-l); }
.menu.is-open nav a { opacity: 1; transform: none; }
.menu.is-open nav a:nth-child(2) { transition-delay: .06s; } .menu.is-open nav a:nth-child(3) { transition-delay: .12s; } .menu.is-open nav a:nth-child(4) { transition-delay: .18s; } .menu.is-open nav a:nth-child(5) { transition-delay: .24s; } .menu.is-open nav a:nth-child(6) { transition-delay: .3s; }
.menu__foot { display: grid; gap: 1rem; font-size: .92rem; color: rgba(238, 231, 227, .7); padding-top: 2rem; }
.menu__foot a { color: var(--nacre); }

@media (max-width: 980px) {
  .hdr__nav, .hdr__ask { display: none; }
  .hdr__menu { display: inline-grid; place-content: center; }
  .hdr__in { grid-template-columns: 1fr auto; }
  .logo { font-size: 1.45rem; }
}

/* ---------- Búsqueda ---------- */
.search { position: fixed; inset: 0; z-index: 950; background: rgba(28, 18, 32, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.search.is-open { opacity: 1; }
.search__panel { background: var(--lait); max-height: 88vh; overflow: auto; padding: 1.4rem var(--gut) 2.4rem; transform: translateY(-30px); transition: transform .5s var(--ease); border-radius: 0 0 28px 28px; }
.search.is-open .search__panel { transform: none; }
.search form { display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .8rem; max-width: 980px; margin: 0 auto; }
.search input { flex: 1; border: 0; background: none; font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.6rem); padding: .4rem 0; min-width: 0; }
.search input:focus { outline: none; }
.search__close { border: 0; background: none; font-size: .9rem; padding: .6rem; text-decoration: underline; }
.search__results { max-width: 980px; margin: 1.4rem auto 0; }
.search__head { color: var(--prune); font-family: var(--serif); font-style: italic; font-size: 1.1rem; }
.search__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .4rem 1.4rem; }
.search__item { display: grid; grid-template-columns: 54px 1fr auto; gap: .9rem; align-items: center; padding: .6rem; border-radius: 12px; text-decoration: none; transition: background .25s; }
.search__item:hover { background: var(--nacre); }
.search__item strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.1rem; }
.search__item small { color: rgba(28, 18, 32, .6); font-size: .82rem; }
.search__item em { font-style: normal; font-size: .88rem; }
.search__thumb { width: 54px; height: 64px; border-radius: var(--arch); background: linear-gradient(170deg, color-mix(in srgb, var(--c1) 35%, var(--lait)), color-mix(in srgb, var(--c2) 25%, var(--lait))); display: grid; place-items: center; padding: 4px; }
.search__all { display: inline-block; margin-top: 1rem; }

/* ---------- Cajón de bolsa ---------- */
.drawer { position: fixed; inset: 0; z-index: 960; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(28, 18, 32, .5); opacity: 0; transition: opacity .4s; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--lait); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .55s var(--ease); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); }
.drawer__top h2 { font-size: 1.7rem; }
.drawer__close { border: 0; background: none; padding: .5rem; text-decoration: underline; font-size: .9rem; }
.drawer__list { flex: 1; overflow-y: auto; padding: .6rem 1.4rem 1rem; overscroll-behavior: contain; }
.drawer__foot { border-top: 1px solid var(--line); padding: 1rem 1.4rem 1.4rem; display: grid; gap: .8rem; background: var(--nacre); }
.drawer__ship { font-size: .88rem; margin: 0; }
.drawer__meter { height: 4px; border-radius: 2px; background: rgba(28, 18, 32, .1); overflow: hidden; }
.drawer__meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--rose), var(--ambre)); transition: width .6s var(--ease); }
.drawer__sub { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: baseline; }
.drawer__sub strong { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.drawer__note { font-size: .8rem; color: rgba(28, 18, 32, .6); margin: 0; }
.drawer__empty { text-align: center; padding: 2rem .5rem; }
.drawer__empty-bottle { width: 110px; margin: 0 auto 1rem; }
.drawer__empty-title { font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; }
.drawer__empty-cta { display: grid; gap: .6rem; margin-top: 1.4rem; }
.line { display: grid; grid-template-columns: 78px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); position: relative; }
.line__thumb { width: 78px; height: 96px; border-radius: var(--arch); background: linear-gradient(170deg, color-mix(in srgb, var(--c1) 30%, var(--nacre)), color-mix(in srgb, var(--c2) 22%, var(--nacre))); display: grid; place-items: center; padding: 6px 10px 2px; }
.line__name { font-family: var(--serif); font-size: 1.2rem; text-decoration: none; line-height: 1.15; display: block; padding-right: 3.6rem; }
.line__size { font-size: .82rem; color: rgba(28, 18, 32, .6); display: block; margin: .15rem 0 .6rem; }
.line__row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.line__price { font-weight: 600; }
.line__x { position: absolute; top: 1rem; right: 0; border: 0; background: none; font-size: .78rem; text-decoration: underline; color: rgba(28, 18, 32, .6); padding: .2rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 100vmax; }
.qty button { width: 36px; height: 36px; border: 0; background: none; font-size: 1.1rem; border-radius: 50%; }
.qty button:hover { background: var(--nacre); }
.qty span { min-width: 1.8em; text-align: center; font-weight: 600; font-size: .92rem; }
.xsell { margin-top: 1.4rem; }
.xsell__title { font-family: var(--serif); font-style: italic; color: var(--prune); font-size: 1.1rem; margin-bottom: .4rem; }
.xsell__item { display: grid; grid-template-columns: 46px 1fr auto; gap: .8rem; align-items: center; padding: .55rem 0; }
.xsell__thumb { width: 46px; height: 56px; border-radius: var(--arch); background: linear-gradient(170deg, color-mix(in srgb, var(--c1) 30%, var(--nacre)), color-mix(in srgb, var(--c2) 22%, var(--nacre))); display: grid; place-items: center; padding: 4px 6px 0; }
.xsell__txt strong { display: block; font-weight: 600; font-size: .9rem; }
.xsell__txt small { font-size: .78rem; color: rgba(28, 18, 32, .6); }
.xsell__add { border: 1px solid var(--nuit); background: none; border-radius: 100vmax; padding: .45rem .9rem; font-size: .82rem; font-weight: 600; white-space: nowrap; transition: background .3s, color .3s; }
.xsell__add:hover, .xsell__add.is-added { background: var(--nuit); color: var(--lait); }

/* ---------- Tarjeta de producto ---------- */
.pcard { display: flex; flex-direction: column; min-width: 0; }
.pcard__stage {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 40%;
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--arch); overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(175deg, color-mix(in srgb, var(--c1) 22%, var(--nacre)) 0%, color-mix(in srgb, var(--c2) 30%, var(--nacre)) 100%);
  perspective: 700px; text-decoration: none; isolation: isolate;
}
.pcard__glow { position: absolute; inset: 0; background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .7), transparent 45%); opacity: 0; transition: opacity .4s; z-index: -1; }
.pcard__stage:hover .pcard__glow { opacity: 1; }
.pcard__bottle { width: 58%; transform: rotateX(var(--rx)) rotateY(var(--ry)) translateY(4%); transition: transform .5s var(--ease); transform-style: preserve-3d; will-change: transform; }
.pcard__stage:hover .pcard__bottle { transform: rotateX(var(--rx)) rotateY(var(--ry)) translateY(-1%) scale(1.04); }
.pcard__badge { position: absolute; top: 14%; left: 50%; transform: translateX(-50%); z-index: 2; font-family: var(--serif); font-style: italic; font-size: .92rem; white-space: nowrap; color: var(--nuit); }
.pcard__info { padding: 1rem .2rem 0; display: flex; flex-direction: column; flex: 1; }
.pcard__meta { display: flex; gap: .9rem; font-size: .78rem; color: rgba(28, 18, 32, .6); margin: 0 0 .25rem; }
.pcard__name { font-size: clamp(1.35rem, 1.1rem + .6vw, 1.65rem); }
.pcard__name a { text-decoration: none; }
.pcard__line { font-size: .9rem; color: rgba(28, 18, 32, .7); margin: .35rem 0 .9rem; }
.pcard__buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.pcard__price { font-weight: 600; }
.pcard__price small { font-weight: 400; color: rgba(28, 18, 32, .6); }
.pcard__add { border: 0; background: none; font-size: .86rem; font-weight: 600; padding: .5rem .1rem; position: relative; }
.pcard__add span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; }
.pcard__add:hover { color: var(--ambre-d); }
.pcard__add.is-added span { visibility: hidden; }
.pcard__add.is-added::after { content: "Agregado"; position: absolute; inset: 0; display: grid; place-items: center end; color: var(--ok); }
.on-dark .pcard__meta, .on-dark .pcard__line, .on-dark .pcard__price small { color: rgba(238, 231, 227, .66); }
.on-dark .pcard__buy { border-color: var(--line-l); }
.on-dark .pcard__badge { color: var(--nuit); }
.on-dark .pcard__add:hover { color: var(--ambre-l); }

/* Frascos */
.bottle { width: 100%; height: auto; overflow: visible; }
.bottle .b-liquid { transform-origin: 100px var(--ly); transition: transform .8s var(--ease); }
.pcard__stage:hover .bottle .b-liquid, [data-tilt]:hover .bottle .b-liquid { animation: slosh 1.6s var(--ease); }
@keyframes slosh { 25% { transform: rotate(-4deg); } 55% { transform: rotate(3deg); } 80% { transform: rotate(-1deg); } }
.bottle .b-cap { transition: transform .5s var(--ease); }
.pcard__stage:hover .bottle .b-cap { transform: translateY(-6px); }
.fly-drop { position: fixed; z-index: 9990; width: 18px; height: 18px; border-radius: 50% 50% 50% 0; transform-origin: center; pointer-events: none; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }

/* ---------- Formularios ---------- */
.field { display: grid; gap: .35rem; position: relative; }
.field label, .field .label { font-size: .86rem; font-weight: 600; }
.field .hint { font-size: .78rem; color: rgba(28, 18, 32, .6); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: .8rem 1rem; border: 1px solid rgba(28, 18, 32, .22); border-radius: 12px;
  background: #fff; transition: border-color .25s, box-shadow .25s; font-size: 1rem;
}
.textarea { min-height: 130px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231C1220' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ambre); box-shadow: 0 0 0 4px rgba(200, 134, 46, .18); }
.field.is-err .input, .field.is-err .select, .field.is-err .textarea { border-color: var(--err); }
.field .err { color: var(--err); font-size: .8rem; display: none; }
.field.is-err .err { display: block; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 620px) { .grid-2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--prune); margin-top: .15rem; flex: none; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 1px solid rgba(28, 18, 32, .22); background: transparent; border-radius: 100vmax; padding: .5rem 1rem; font-size: .88rem; transition: background .25s, color .25s, border-color .25s; white-space: nowrap; }
.chip:hover { border-color: var(--nuit); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--nuit); color: var(--lait); border-color: var(--nuit); }

/* Acordeón */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 1.2rem 2.5rem 1.2rem 0; font-family: var(--serif); font-size: var(--t-lg); position: relative; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; position: absolute; right: .3rem; top: 50%; width: 14px; height: 14px; border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform .35s var(--ease); }
.acc details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.acc .acc__body { padding: 0 0 1.4rem; max-width: 70ch; color: rgba(28, 18, 32, .78); }

/* Pestañas */
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.tabs button { border: 0; background: none; padding: .9rem .2rem; margin-right: 1.4rem; font-size: 1rem; position: relative; color: rgba(28, 18, 32, .6); }
.tabs button[aria-selected="true"] { color: var(--nuit); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ambre); }

/* ---------- Revelados ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="mask"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0 round 100vmax 100vmax 0 0); transition: clip-path 1.4s var(--ease-io); }
.js [data-reveal="mask"].is-in { clip-path: inset(0 0 0 0 round 100vmax 100vmax 0 0); }
.js [data-reveal="mask"] img, .js [data-reveal="mask"] video { transform: scale(1.18); transition: transform 2s var(--ease); }
.js [data-reveal="mask"].is-in img, .js [data-reveal="mask"].is-in video { transform: scale(1); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; }
.js [data-split] .w > span { transform: translateY(105%); transition: transform 1s var(--ease); }
.js [data-split].is-in .w > span { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-split] .w > span, .js [data-reveal="mask"] { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
}

/* ---------- Cursor y rocío ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 9995; pointer-events: none; opacity: 0; transition: opacity .3s; mix-blend-mode: normal; }
.cursor.is-on { opacity: 1; }
.cursor__ring { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--ambre); transition: transform .35s var(--ease), background .35s, border-color .35s; }
.cursor.is-hover .cursor__ring { transform: scale(1.5); background: rgba(200, 134, 46, .12); }
.cursor.is-label .cursor__ring { transform: scale(2.9); background: var(--ambre); border-color: var(--ambre); }
.cursor.is-down .cursor__ring { transform: scale(.8); }
.cursor__label { position: absolute; transform: translate(-50%, -50%); font-size: .74rem; font-weight: 600; color: var(--nuit); white-space: nowrap; opacity: 0; transition: opacity .25s; }
.cursor.is-label .cursor__label { opacity: 1; }
.mist-layer { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9994; }

/* ---------- Velo de transición ---------- */
.veil { display: none; }
.js .veil { display: grid; place-items: center; position: fixed; inset: 0; z-index: 9999; background: var(--nuit); color: var(--nacre); pointer-events: none; animation: veilSafety .01s 3.5s forwards; }
.veil::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 14vh; background: var(--nuit); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.veil__mark { font-family: var(--serif); font-size: clamp(2rem, 6vw, 3.4rem); font-style: italic; opacity: .9; }
.veil__mark i { color: var(--ambre); font-style: normal; }
.js .veil.is-out { transform: translateY(-115%); transition: transform 1s var(--ease-io) .05s; animation: none; }
.js .veil.is-out .veil__mark { opacity: 0; transition: opacity .3s; }
.js .veil.is-in { transform: translateY(0); animation: veilUp .55s var(--ease-io) both; pointer-events: auto; }
.js .veil.is-in::before { top: 100%; bottom: auto; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
@keyframes veilUp { from { transform: translateY(115%); } to { transform: translateY(0); } }
@keyframes veilSafety { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .js .veil { display: none; } }

/* ---------- Notificación ---------- */
.toast { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 970; transform: translate(-50%, 140%); background: var(--nuit); color: var(--nacre); padding: .8rem .8rem .8rem 1.2rem; border-radius: 100vmax; display: flex; align-items: center; gap: 1rem; font-size: .9rem; box-shadow: 0 18px 40px rgba(28, 18, 32, .3); transition: transform .5s var(--ease); max-width: calc(100vw - 32px); }
.toast.is-on { transform: translate(-50%, 0); }
.toast strong { font-weight: 600; }
.toast__act { border: 0; background: var(--ambre); color: var(--nuit); border-radius: 100vmax; padding: .45rem .9rem; font-weight: 600; font-size: .84rem; white-space: nowrap; }

/* ---------- Encabezado de página interior ---------- */
.phead { padding: calc(var(--hdr) + clamp(2.5rem, 8vh, 6rem)) 0 clamp(2rem, 6vh, 4rem); position: relative; }
.phead h1 { font-size: var(--t-3xl); line-height: .92; letter-spacing: -.035em; }
.phead .lead { margin-top: 1.4rem; }
.crumbs { display: flex; gap: .6rem; font-size: .82rem; color: rgba(28, 18, 32, .6); margin-bottom: 1.4rem; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span + span::before, .crumbs a + span::before, .crumbs a + a::before { content: "/"; margin-right: .6rem; opacity: .5; }
.section { padding: clamp(4rem, 11vh, 8rem) 0; }

/* ---------- Pie ---------- */
.ftr { background: var(--nuit); color: var(--nacre); padding: clamp(4rem, 10vh, 7rem) 0 2rem; position: relative; overflow: hidden; }
.ftr__big { font-family: var(--serif); font-size: clamp(3.4rem, 15vw, 15rem); line-height: .82; letter-spacing: -.05em; margin: 0 0 clamp(2.4rem, 6vh, 4rem); white-space: nowrap; }
.ftr__big i { color: var(--ambre); font-style: normal; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.4rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-l); }
.ftr h3 { font-size: 1.15rem; font-style: italic; color: var(--ambre-l); margin-bottom: 1rem; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .94rem; }
.ftr a { text-decoration: none; color: rgba(238, 231, 227, .82); }
.ftr a:hover { color: var(--ambre-l); }
.nl p { color: rgba(238, 231, 227, .75); font-size: .95rem; max-width: 36ch; }
.nl__row { display: flex; border-bottom: 1px solid rgba(238, 231, 227, .4); margin-top: 1rem; max-width: 420px; }
.nl__row input { flex: 1; min-width: 0; background: none; border: 0; color: var(--nacre); padding: .9rem 0; font-size: 1rem; }
.nl__row input::placeholder { color: rgba(238, 231, 227, .5); }
.nl__row input:focus { outline: none; }
.nl__row button { border: 0; background: none; color: var(--ambre-l); font-weight: 600; padding: 0 .2rem 0 1rem; }
.nl__msg { font-size: .85rem; margin-top: .7rem; color: var(--ambre-l); min-height: 1.2em; }
.ftr__pay { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.ftr__pay span { border: 1px solid var(--line-l); border-radius: 100vmax; padding: .3rem .8rem; font-size: .76rem; color: rgba(238, 231, 227, .75); }
.ftr__base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.6rem; font-size: .82rem; color: rgba(238, 231, 227, .55); }
.ftr__base a { color: inherit; }
.ftr__social { display: flex; gap: .4rem; }
.ftr__social a { width: 42px; height: 42px; border: 1px solid var(--line-l); border-radius: 50%; display: grid; place-items: center; transition: background .3s, color .3s; }
.ftr__social a:hover { background: var(--ambre); color: var(--nuit); border-color: var(--ambre); }
.ftr__social svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .ftr__grid { grid-template-columns: 1fr 1fr; } .ftr__grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ftr__grid { grid-template-columns: 1fr; } }

/* ---------- Asesora (bot) ---------- */
.bot-fab {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 940;
  display: flex; align-items: center; gap: .7rem; border: 0; padding: .55rem 1.1rem .55rem .55rem; border-radius: 100vmax;
  background: var(--nuit); color: var(--nacre); box-shadow: 0 16px 40px rgba(28, 18, 32, .35); transition: transform .5s var(--ease), opacity .3s;
}
.bot-fab:hover { transform: translateY(-3px); }
.bot-fab__drop { width: 40px; height: 40px; border-radius: 50% 50% 50% 8px; background: conic-gradient(from 210deg, var(--ambre), var(--rose), var(--prune), var(--ambre)); display: grid; place-items: center; animation: drop 6s ease-in-out infinite; }
.bot-fab__drop::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lait); opacity: .9; transform: translate(-6px, -6px); }
@keyframes drop { 50% { border-radius: 50% 50% 8px 50%; } }
.bot-fab__txt { text-align: left; line-height: 1.15; }
.bot-fab__txt strong { display: block; font-size: .9rem; }
.bot-fab__txt small { font-size: .74rem; color: rgba(238, 231, 227, .65); }
.bot-fab.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
.bot-hint { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 70px); z-index: 939; background: var(--lait); color: var(--nuit); padding: .8rem 2.2rem .8rem 1rem; border-radius: 16px 16px 4px 16px; max-width: 260px; font-size: .88rem; box-shadow: 0 14px 34px rgba(28, 18, 32, .2); opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .5s var(--ease); pointer-events: none; }
.bot-hint.is-on { opacity: 1; transform: none; pointer-events: auto; }
.bot-hint button { position: absolute; top: 4px; right: 4px; border: 0; background: none; width: 30px; height: 30px; font-size: 1.1rem; line-height: 1; }
@media (max-width: 560px) { .bot-fab__txt { display: none; } .bot-fab { padding: .45rem; } .bot-fab__drop { width: 46px; height: 46px; } .bot-hint { bottom: calc(max(18px, env(safe-area-inset-bottom)) + 66px); } }

.bot { position: fixed; z-index: 965; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: min(410px, calc(100vw - 32px)); height: min(680px, calc(100dvh - 32px)); background: var(--lait); border-radius: 28px; box-shadow: 0 30px 80px rgba(28, 18, 32, .4); display: flex; flex-direction: column; overflow: hidden; transform-origin: bottom right; transform: scale(.6) translateY(40px); opacity: 0; transition: transform .55s var(--ease), opacity .35s; }
.bot.is-open { transform: none; opacity: 1; }
@media (max-width: 560px) { .bot { inset: 0; width: 100%; height: 100dvh; border-radius: 0; right: 0; bottom: 0; } }
.bot__top { background: var(--nuit); color: var(--nacre); padding: 1rem 1rem 1rem 1.2rem; display: flex; align-items: center; gap: .8rem; }
.bot__avatar { width: 42px; height: 42px; flex: none; border-radius: 50% 50% 50% 8px; background: conic-gradient(from 210deg, var(--ambre), var(--rose), var(--prune), var(--ambre)); }
.bot__who { flex: 1; line-height: 1.2; }
.bot__who strong { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; display: block; }
.bot__who small { font-size: .78rem; color: rgba(238, 231, 227, .7); }
.bot__who small::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #6FCF97; margin-right: .4rem; vertical-align: middle; }
.bot__top button { border: 0; background: rgba(238, 231, 227, .1); color: var(--nacre); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
.bot__top button:hover { background: var(--ambre); color: var(--nuit); }
.bot__log { flex: 1; overflow-y: auto; padding: 1.2rem 1rem; display: flex; flex-direction: column; gap: .7rem; overscroll-behavior: contain; scroll-behavior: smooth; }
.msg { max-width: 88%; padding: .75rem 1rem; border-radius: 18px; font-size: .94rem; line-height: 1.5; animation: msgIn .45s var(--ease) both; }
.msg p { margin: 0 0 .5em; } .msg p:last-child { margin: 0; }
.msg--bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg--me { background: var(--prune); color: var(--lait); border-bottom-right-radius: 6px; align-self: flex-end; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.msg--typing { display: inline-flex; gap: 4px; padding: 1rem; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--prune); opacity: .4; animation: blink 1.2s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .2s; } .msg--typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 40% { opacity: 1; transform: translateY(-3px); } }
.bot__quick { display: flex; flex-wrap: wrap; gap: .4rem; align-self: flex-start; animation: msgIn .45s var(--ease) both; }
.bot__quick .chip { background: #fff; font-size: .84rem; padding: .45rem .85rem; }
.bot__quick .chip:hover { background: var(--nuit); color: var(--lait); }
.recs { display: grid; gap: .6rem; width: 100%; animation: msgIn .5s var(--ease) both; }
.rec { display: grid; grid-template-columns: 70px 1fr; gap: .8rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: .7rem; }
.rec__thumb { width: 70px; height: 86px; border-radius: var(--arch); background: linear-gradient(170deg, color-mix(in srgb, var(--c1) 30%, var(--nacre)), color-mix(in srgb, var(--c2) 25%, var(--nacre))); display: grid; place-items: center; padding: 5px 8px 0; }
.rec__name { font-family: var(--serif); font-size: 1.15rem; line-height: 1.1; text-decoration: none; display: block; }
.rec__why { font-size: .8rem; color: rgba(28, 18, 32, .7); margin: .2rem 0 .5rem; line-height: 1.4; }
.rec__match { font-size: .72rem; font-weight: 700; color: var(--ambre-d); }
.rec__row { display: flex; align-items: center; justify-content: space-between; gap: .4rem; flex-wrap: wrap; }
.rec__row strong { font-size: .9rem; }
.rec__row .btn { min-height: 38px; padding: .5rem .95rem .45rem; font-size: .8rem; }
.bot__form { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid var(--line); background: var(--lait); }
.bot__form input { flex: 1; min-width: 0; border: 1px solid rgba(28, 18, 32, .2); border-radius: 100vmax; padding: .75rem 1.1rem; background: #fff; font-size: 16px; }
.bot__form input:focus { outline: none; border-color: var(--ambre); }
.bot__form button { width: 48px; height: 48px; flex: none; border: 0; border-radius: 50%; background: var(--nuit); color: var(--lait); display: grid; place-items: center; }
.bot__form button:hover { background: var(--ambre); color: var(--nuit); }
.bot__form svg { width: 20px; height: 20px; }
body[data-page="checkout"] .bot-fab__txt, body[data-page="pedido"] .bot-fab__txt { display: none; }
body[data-page="checkout"] .bot-fab, body[data-page="pedido"] .bot-fab { padding: .45rem; }
