/* =========================================================
   CECI PERFUMES — Boutique de oud / apotecario editorial
   ========================================================= */

:root {
  --paper: #f4eee3;
  --paper-2: #ebe2d1;
  --card: #fbf7ef;
  --ink: #1b1712;
  --ink-soft: #5d5447;
  --ink-mute: #8a8072;
  --brass: #a8834a;
  --brass-2: #d1ad6d;
  --oud: #241b15;
  --oud-2: #33271f;
  --rose: #9a3f2f;
  --wa: #1f7a4d;
  --line: rgba(27, 23, 18, .14);
  --line-light: rgba(244, 238, 227, .16);

  --f-display: "Fraunces", "Times New Roman", serif;
  --f-body: "Hanken Grotesk", system-ui, sans-serif;
  --f-arab: "Reem Kufi", serif;

  --radius: 14px;
  --arch: 999px 999px 14px 14px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
/* grano de papel */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 400; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: .95; font-variation-settings: "opsz" 144; }
.eyebrow {
  margin: 0 0 14px;
  font-size: .74rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--brass);
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600; font-size: .95rem;
  text-decoration: none;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--oud-2); }
.btn-line { border-color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-brass { background: var(--brass-2); color: var(--oud); }
.btn-brass:hover { background: #e2c287; }
.btn-ig {
  color: #fff;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  box-shadow: 0 10px 24px -12px rgba(214, 36, 159, .7);
}
.btn-ig svg { width: 20px; height: 20px; }
.btn-ig:hover { filter: saturate(1.15) brightness(1.05); }
.btn-wa { background: var(--wa); color: #fff; width: 100%; }
.btn-wa svg { width: 20px; height: 20px; }
.btn-wa:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-mp { background: #009ee3; color: #fff; width: 100%; }
.btn-mp svg { width: 20px; height: 20px; }
.btn-mp b { font-weight: 700; margin-left: 2px; }
.btn-mp:hover { background: #0089c7; }
.btn-mp.cargando { opacity: .7; cursor: progress; }
.mp-nota { margin: -6px 0 0; font-size: .78rem; color: var(--ink-mute); text-align: center; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent;
  display: grid; place-items: center; font-size: 1rem;
}
.icon-btn:hover { background: var(--paper-2); }

/* ---------- marquee ---------- */
.marquee {
  background: var(--oud); color: var(--paper-2);
  overflow: hidden; white-space: nowrap;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  padding: 9px 0;
}
.marquee-track { display: inline-flex; gap: 28px; animation: marquee 38s linear infinite; padding-left: 28px; }
.marquee i { color: var(--brass-2); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.logo-mark { font-family: var(--f-display); font-style: italic; font-size: 2rem; font-weight: 400; letter-spacing: -.02em; }
.logo-sub { font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-size: .92rem; font-weight: 500; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.btn-pedido {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 14px;
  border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: .9rem;
}
.btn-pedido svg { width: 20px; height: 20px; }
.badge-count {
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--brass-2); color: var(--oud);
  display: grid; place-items: center; font-size: .75rem; font-weight: 700;
}
.badge-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(56px, 8vw, 110px);
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.hero h1 {
  font-size: clamp(3.1rem, 8.4vw, 7rem);
  line-height: .9; letter-spacing: -.035em;
  font-variation-settings: "opsz" 144;
  font-weight: 350;
}
.hero h1 em { font-style: italic; color: var(--brass); font-weight: 300; }
.hero-lead { max-width: 30rem; margin: 28px 0 32px; font-size: 1.08rem; color: var(--ink-soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts {
  list-style: none; padding: 0; margin: 44px 0 0;
  display: flex; gap: clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--line); padding-top: 22px;
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-family: var(--f-display); font-size: 1.9rem; font-weight: 400; line-height: 1; }
.hero-facts span { font-size: .78rem; color: var(--ink-mute); letter-spacing: .04em; margin-top: 6px; }

.hero-art { position: relative; justify-self: center; width: min(100%, 460px); }
.arch {
  position: relative; aspect-ratio: 4 / 5;
  border-radius: var(--arch);
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 100%, rgba(209, 173, 109, .55), transparent 60%),
    var(--oud);
  box-shadow: 0 40px 80px -40px rgba(36, 27, 21, .6), inset 0 0 0 1px rgba(209, 173, 109, .35);
}
/* celosía (mashrabiya) */
.arch::before {
  content: ""; position: absolute; inset: 0; opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23d1ad6d' stroke-width='1'%3E%3Cpath d='M28 4 34 22 52 28 34 34 28 52 22 34 4 28 22 22Z'/%3E%3Ccircle cx='28' cy='28' r='6'/%3E%3Cpath d='M0 0 10 10M56 0 46 10M0 56 10 46M56 56 46 46'/%3E%3C/g%3E%3C/svg%3E");
}
.arch::after {
  content: ""; position: absolute; inset: 14px; border-radius: var(--arch);
  border: 1px solid rgba(209, 173, 109, .4); pointer-events: none;
}
.arch-word {
  position: absolute; top: 9%; left: 50%; transform: translateX(-50%);
  font-family: var(--f-arab); font-size: clamp(6rem, 16vw, 9.5rem); line-height: 1;
  color: var(--brass-2); opacity: .9;
  text-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}
.hero-bottles {
  position: absolute; left: 0; right: 0; bottom: 7%;
  display: flex; justify-content: center; align-items: flex-end;
}
.hero-bottles .botella { width: 38%; filter: drop-shadow(0 24px 22px rgba(0, 0, 0, .45)); }
.hero-bottles .botella:nth-child(1) { transform: translateX(18%) rotate(-7deg); animation: floatA 7s ease-in-out infinite; }
.hero-bottles .botella:nth-child(2) { width: 48%; z-index: 2; animation: floatB 6s ease-in-out infinite; }
.hero-bottles .botella:nth-child(3) { transform: translateX(-18%) rotate(7deg); animation: floatC 8s ease-in-out infinite; }
@keyframes floatA { 50% { transform: translateX(18%) rotate(-5deg) translateY(-8px); } }
@keyframes floatB { 50% { transform: translateY(-12px); } }
@keyframes floatC { 50% { transform: translateX(-18%) rotate(5deg) translateY(-6px); } }
.arch-caption {
  margin: 14px 0 0; text-align: center;
  font-family: var(--f-display); font-style: italic; color: var(--ink-mute); font-size: .95rem;
}

/* entrada escalonada */
.reveal { opacity: 0; transform: translateY(18px); animation: reveal .9s var(--ease) forwards; animation-delay: calc(var(--d) * 110ms + 100ms); }
.hero-art { opacity: 0; animation: revealArt 1.2s var(--ease) .35s forwards; }
@keyframes reveal { to { opacity: 1; transform: none; } }
@keyframes revealArt { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- secciones ---------- */
.catalogo, .pasos { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gutter); }
.section-head { margin-bottom: 36px; }
.section-head--light h2 { color: var(--paper); }

/* ---------- filtros ---------- */
.filtros {
  display: grid; gap: 14px;
  padding: 22px; margin-bottom: 18px;
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.filtros-row { display: flex; align-items: center; gap: 16px; min-width: 0; }
.filtros-top { gap: 12px; }
.filtro-label {
  flex: 0 0 82px;
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute);
}
.buscador {
  flex: 1; display: flex; align-items: center; gap: 10px;
  padding: 0 16px; height: 48px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
}
.buscador:focus-within { border-color: var(--brass); }
.buscador svg { width: 20px; height: 20px; color: var(--ink-mute); flex: none; }
.buscador input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; height: 100%; }
.orden { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--ink-soft); }
.orden select {
  height: 48px; padding: 0 38px 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  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='%231b1712' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; min-width: 0; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent;
  font-size: .87rem; font-weight: 500; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.chip small { color: var(--ink-mute); font-size: .74rem; margin-left: 4px; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip[aria-pressed="true"] small { color: var(--brass-2); }
.chips--dark { margin-bottom: 28px; }
.chips--dark .chip { border-color: var(--line-light); color: var(--paper-2); }
.chips--dark .chip:hover { border-color: var(--brass-2); }
.chips--dark .chip[aria-pressed="true"] { background: var(--brass-2); color: var(--oud); border-color: var(--brass-2); }
.chips--dark .chip small { color: rgba(244, 238, 227, .5); }
.chips--dark .chip[aria-pressed="true"] small { color: var(--oud-2); }

.resultado { margin: 0 0 22px; font-size: .88rem; color: var(--ink-mute); }
.resultado button { border: 0; background: none; color: var(--brass); text-decoration: underline; padding: 0; margin-left: 6px; }

/* ---------- grilla de productos ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: clamp(14px, 2vw, 26px); }
.card {
  display: flex; flex-direction: column;
  animation: cardIn .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } }
.card-media {
  position: relative; aspect-ratio: 4 / 5;
  border: 0; padding: 18% 20% 10%;
  border-radius: var(--arch);
  background:
    radial-gradient(70% 55% at 50% 62%, color-mix(in srgb, var(--c1) 55%, transparent), transparent 70%),
    var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid; place-items: end center;
  overflow: hidden;
}
.card-media .botella, .card-media img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .5s var(--ease);
  filter: drop-shadow(0 18px 14px rgba(27, 23, 18, .22));
}
.card-media img { border-radius: 8px; filter: none; }
.card:hover .card-media .botella { transform: translateY(-8px) rotate(-3deg); }

/* fotos reales: el fondo blanco de la foto se funde con la tarjeta */
.card-media.has-img,
.grid--pedido .card-media.has-img {
  padding: 13% 9% 5%;
  background:
    radial-gradient(70% 55% at 50% 62%, color-mix(in srgb, var(--c1) 30%, transparent), transparent 72%),
    var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}
.card-media.has-img img,
.item-img.has-img img,
.ficha-media.has-img img {
  mix-blend-mode: multiply;
  filter: none;
  border-radius: 0;
}
.card:hover .card-media.has-img img { transform: translateY(-6px) scale(1.03); }
.grid--pedido .card-media.has-img img { filter: saturate(.92); }
.item-img.has-img { padding: 6px 4px 2px; }
.ficha-media.has-img {
  background:
    radial-gradient(70% 55% at 50% 62%, color-mix(in srgb, var(--c1) 35%, transparent), transparent 72%),
    var(--card);
  padding: 40px 28px 24px;
}
.ficha-media.has-img img { width: 92%; max-height: 460px; }
@media (max-width: 960px) {
  .ficha-media.has-img { padding: 24px 24px 12px; }
  .ficha-media.has-img img { width: 70%; max-height: 300px; }
}
.tag {
  position: absolute; top: 18%; left: 50%; transform: translateX(-50%);
  padding: 4px 10px; border-radius: 999px;
  font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  background: var(--ink); color: var(--paper); z-index: 2;
}
.tag--pocas { background: var(--rose); }
.tag--brass { background: var(--brass-2); color: var(--oud); }
.card-body { padding: 16px 4px 0; display: flex; flex-direction: column; flex: 1; }
.card-marca { margin: 0; font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
.card-nombre { font-size: 1.28rem; line-height: 1.15; margin: 6px 0 6px; font-variation-settings: "opsz" 48; }
.card-nombre button { border: 0; background: none; padding: 0; text-align: left; font: inherit; }
.card-nombre button:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.card-meta { margin: 0 0 14px; font-size: .82rem; color: var(--ink-mute); }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.card-precio { font-family: var(--f-display); font-size: 1.35rem; font-weight: 450; }
.card-precio small { display: block; font-family: var(--f-body); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
.add {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--ink); background: transparent;
  font-size: .84rem; font-weight: 600;
  transition: background .2s, color .2s;
}
.add:hover { background: var(--ink); color: var(--paper); }
.add.is-added { background: var(--ink); color: var(--paper); }
.vacio {
  grid-column: 1 / -1; text-align: center; padding: 64px 20px;
  border: 1px dashed var(--line); border-radius: var(--radius);
}
.vacio p { font-family: var(--f-display); font-size: 1.5rem; margin: 0 0 8px; }
.vacio span { color: var(--ink-mute); }
.vacio--oscuro { border-color: var(--line-light); color: var(--paper); }
.vacio--oscuro span { color: rgba(244, 238, 227, .65); }

/* ---------- a pedido ---------- */
.apedido {
  position: relative;
  background: var(--oud); color: var(--paper-2);
  overflow: hidden;
}
.apedido::before {
  content: ""; position: absolute; inset: 0; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23d1ad6d' stroke-width='1'%3E%3Cpath d='M28 4 34 22 52 28 34 34 28 52 22 34 4 28 22 22Z'/%3E%3Ccircle cx='28' cy='28' r='6'/%3E%3C/g%3E%3C/svg%3E");
}
.apedido-inner { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter); }
.apedido-info { margin: 18px 0 0; color: rgba(244, 238, 227, .7); font-size: .95rem; }
.apedido-info .dot { color: var(--brass-2); margin: 0 6px; }
.grid--pedido .card-media {
  background:
    radial-gradient(70% 55% at 50% 62%, color-mix(in srgb, var(--c1) 40%, transparent), transparent 70%),
    var(--oud-2);
  box-shadow: inset 0 0 0 1px var(--line-light);
}
.grid--pedido .card-media .botella { filter: drop-shadow(0 18px 16px rgba(0, 0, 0, .5)) saturate(.85); }
.grid--pedido .card-nombre { color: var(--paper); }
.grid--pedido .card-meta, .grid--pedido .card-precio small { color: rgba(244, 238, 227, .55); }
.grid--pedido .card-foot { border-color: var(--line-light); }
.grid--pedido .card-precio { color: var(--paper); }
.grid--pedido .add { border-color: var(--brass-2); color: var(--brass-2); }
.grid--pedido .add:hover, .grid--pedido .add.is-added { background: var(--brass-2); color: var(--oud); }
.grid--pedido .tag { background: var(--paper); color: var(--oud); }
.grid--pedido .tag--brass { background: var(--brass-2); }

.encargo {
  margin-top: clamp(48px, 7vw, 84px);
  display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 28px; align-items: end;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid rgba(209, 173, 109, .35); border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(209, 173, 109, .1), transparent 60%);
}
.encargo h3 { font-size: 1.8rem; color: var(--paper); line-height: 1.05; }
.encargo-copy p { margin: 8px 0 0; color: rgba(244, 238, 227, .65); font-size: .92rem; }
.encargo-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.encargo label span, .datos label span {
  display: block; font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 6px;
}
.encargo label span { color: var(--brass-2); }
.encargo input {
  width: 100%; height: 44px; padding: 0 14px;
  background: rgba(244, 238, 227, .06); color: var(--paper);
  border: 1px solid var(--line-light); border-radius: 10px;
}
.encargo input::placeholder { color: rgba(244, 238, 227, .35); }
.encargo input:focus { outline: none; border-color: var(--brass-2); }

/* ---------- pasos ---------- */
.pasos-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); }
.pasos-list li { border-top: 1px solid var(--ink); padding-top: 22px; }
.paso-num { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.paso-num b { font-family: var(--f-display); font-weight: 300; font-size: 3.4rem; line-height: 1; }
.paso-num i { font-style: normal; font-family: var(--f-arab); font-size: 1.8rem; color: var(--brass); }
.pasos-list h3 { font-size: 1.5rem; margin-bottom: 8px; }
.pasos-list p { margin: 0; color: var(--ink-soft); }
.mayorista { margin: 48px 0 0; font-family: var(--f-display); font-size: 1.4rem; font-style: italic; }
.mayorista a { color: var(--brass); }

/* ---------- local ---------- */
.local {
  max-width: var(--max); margin: 0 auto clamp(56px, 8vw, 110px);
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
}
.local-card {
  background: var(--card); border: 1px solid var(--line); border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: clamp(28px, 5vw, 60px);
}
.local dl { margin: 28px 0 32px; display: grid; gap: 16px; }
.local dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.local dt { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); padding-top: 3px; }
.local dd { margin: 0; font-size: 1.05rem; }
.local-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.local-mapa {
  border-radius: 0 var(--radius) var(--radius) 0;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--oud);
  min-height: 320px;
}
.local-mapa iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; filter: saturate(.85) sepia(.12); }
.local dd a { color: inherit; text-decoration: underline; text-decoration-color: var(--brass-2); text-underline-offset: 3px; }
.btn-wa--auto { width: auto; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px var(--gutter) 48px;
  text-align: center;
}
.site-footer .logo-mark { font-size: 2.6rem; }
.site-footer p { margin: 8px 0 0; color: var(--ink-soft); font-size: .9rem; }
.footer-small { font-size: .78rem !important; color: var(--ink-mute) !important; }

/* ---------- drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(27, 23, 18, .45); z-index: 60; animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(440px, 100%);
  background: var(--paper);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .45s var(--ease);
  box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .4);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 2rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px 16px; }
.grupo-titulo { margin: 20px 0 6px; font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
.item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.item-img {
  width: 64px; height: 76px; border-radius: 999px 999px 8px 8px;
  background: radial-gradient(70% 60% at 50% 65%, color-mix(in srgb, var(--c1) 50%, transparent), transparent 70%), var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 12px 12px 6px; display: grid; place-items: end center;
}
.item-img .botella, .item-img img { width: 100%; height: 100%; object-fit: contain; }
.item-marca { margin: 0; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
.item-nombre { margin: 2px 0 4px; font-family: var(--f-display); font-size: 1.05rem; line-height: 1.15; }
.item-precio { font-size: .85rem; color: var(--ink-soft); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 30px; height: 30px; border: 0; background: none; font-size: 1rem; }
.qty span { min-width: 18px; text-align: center; font-weight: 600; font-size: .9rem; }
.quitar { display: block; margin: 6px auto 0; border: 0; background: none; font-size: .74rem; color: var(--ink-mute); text-decoration: underline; }
.drawer-vacio { text-align: center; padding: 70px 10px; }
.drawer-vacio p { font-family: var(--f-display); font-size: 1.5rem; margin: 0 0 6px; }
.drawer-vacio span { color: var(--ink-mute); font-size: .92rem; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 24px 22px; background: var(--card); display: grid; gap: 14px; }
.totales { display: grid; gap: 4px; }
.totales .fila { display: flex; justify-content: space-between; font-size: .9rem; color: var(--ink-soft); }
.totales .fila--total { font-family: var(--f-display); font-size: 1.5rem; color: var(--ink); }
.datos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.datos .full { grid-column: 1 / -1; }
.datos label span { color: var(--ink-mute); }
.datos input, .datos select {
  width: 100%; height: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
}
.datos input:focus, .datos select:focus { outline: none; border-color: var(--brass); }

/* ---------- ficha ---------- */
.ficha {
  width: min(880px, calc(100% - 32px)); max-height: calc(100% - 32px);
  padding: 0; border: 0; border-radius: 20px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5);
}
.ficha::backdrop { background: rgba(27, 23, 18, .55); backdrop-filter: blur(3px); }
.ficha[open] { animation: fichaIn .45s var(--ease); }
@keyframes fichaIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.ficha-cerrar { position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--paper); }
.ficha-inner { display: grid; grid-template-columns: 1fr 1.1fr; }
.ficha-media {
  padding: 48px 40px 32px; display: grid; place-items: end center; min-height: 420px;
  background: radial-gradient(70% 55% at 50% 62%, color-mix(in srgb, var(--c1) 60%, transparent), transparent 72%), var(--oud);
}
.ficha-media .botella, .ficha-media img { width: 78%; max-height: 380px; object-fit: contain; filter: drop-shadow(0 26px 24px rgba(0, 0, 0, .5)); }
.ficha-info { padding: 44px 40px 36px; display: flex; flex-direction: column; }
.ficha-info h2 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; margin: 4px 0 12px; }
.ficha-meta { margin: 0 0 16px; color: var(--ink-mute); font-size: .88rem; }
.ficha-desc { margin: 0 0 22px; color: var(--ink-soft); }
.piramide { display: grid; gap: 6px; margin-bottom: 24px; }
.piramide div {
  display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center;
  padding: 10px 14px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line);
}
.piramide div:nth-child(1) { margin-inline: 14%; }
.piramide div:nth-child(2) { margin-inline: 7%; }
.piramide dt { font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.piramide dd { margin: 0; font-size: .92rem; }
/* galería (fotos + video) */
.ficha-media.con-galeria { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 16px; }
.galeria-vista { width: 100%; display: grid; place-items: center; min-height: 0; }
.ficha-media.con-galeria .galeria-vista img { width: 92%; max-height: 440px; object-fit: contain; }
.galeria-vista video {
  width: 100%; max-height: 460px; border-radius: 14px;
  background: #000; mix-blend-mode: normal; filter: none;
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .5);
}
.ficha-media.con-video { padding-block: 28px 20px; }
.galeria-thumbs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.thumb {
  width: 56px; height: 64px; padding: 4px; flex: none;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  display: grid; place-items: center; overflow: hidden;
  transition: border-color .2s, transform .2s var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.thumb:hover { transform: translateY(-2px); }
.thumb.activo { border-color: var(--brass); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brass) 35%, transparent); }
.thumb--video { background: var(--oud); color: var(--brass-2); font-size: 1.1rem; }

/* pirámide olfativa con notas */
.piramide-notas { display: grid; gap: 14px; margin-bottom: 22px; }
.piramide-notas .nivel { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: start; }
.piramide-notas h3 {
  margin: 9px 0 0; font-family: var(--f-body); font-size: .66rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brass);
}
.notas-fila { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.nota {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 3px 12px 3px 3px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-size: .86rem;
}
.nota-img {
  width: 30px; height: 30px; border-radius: 50%; flex: none; object-fit: cover;
  display: grid; place-items: center;
  color: #fff; font-family: var(--f-display); font-style: italic; font-size: .85rem;
}
.link-fragrantica {
  align-self: flex-start; margin: -6px 0 20px;
  font-size: .85rem; font-weight: 600; color: var(--brass);
  text-decoration: underline; text-underline-offset: 3px;
}
.link-fragrantica:hover { color: var(--ink); }
.ficha-estado { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; margin-bottom: 18px; }
.ficha-estado::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wa); }
.ficha-estado.pocas::before { background: var(--rose); }
.ficha-estado.pedido::before { background: var(--brass); }
.ficha-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.ficha-precio { font-family: var(--f-display); font-size: 2rem; }
.ficha-precio small { display: block; font-family: var(--f-body); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90;
  transform: translate(-50%, calc(100% + 40px));
  visibility: hidden;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px; border-radius: 999px; font-size: .9rem; font-weight: 500;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .5);
  transition: transform .4s var(--ease), visibility 0s .4s;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .4s var(--ease); }
.toast button { border: 0; background: none; color: var(--brass-2); font-weight: 600; margin-left: 10px; text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .btn-pedido { margin-left: auto; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { width: min(80%, 380px); order: -1; }
  .encargo { grid-template-columns: 1fr; }
  .pasos-list { grid-template-columns: 1fr; }
  .local { grid-template-columns: 1fr; }
  .local-card { border-right: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; }
  .local-mapa { border-radius: 0 0 var(--radius) var(--radius); min-height: 280px; }
  .local-mapa iframe { min-height: 280px; }
  .ficha-inner { grid-template-columns: 1fr; }
  .ficha-media { min-height: 260px; padding: 36px 30px 20px; }
  .ficha-media .botella, .ficha-media img { width: 52%; max-height: 240px; }
  .ficha-info { padding: 28px 24px 26px; }
  .ficha-media.con-galeria .galeria-vista img { width: 64%; max-height: 280px; }
  .galeria-vista video { max-height: 320px; }
}
@media (max-width: 640px) {
  .btn-pedido-label { display: none; }
  .logo-mark { font-size: 1.7rem; }
  .hero-facts strong { font-size: 1.5rem; }
  .filtros { padding: 16px; }
  .filtros-top { flex-wrap: wrap; }
  .buscador { flex-basis: 100%; }
  .orden { width: 100%; justify-content: space-between; }
  .orden select { flex: 1; max-width: 220px; }
  .filtros-row:not(.filtros-top) { flex-direction: column; align-items: stretch; gap: 8px; }
  .filtro-label { flex: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .card-nombre { font-size: 1.05rem; }
  .card-meta { font-size: .74rem; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .card-precio { font-size: 1.15rem; }
  .add { justify-content: center; height: 38px; }
  .tag { font-size: .58rem; padding: 3px 8px; top: 16%; }
  .encargo-fields { grid-template-columns: 1fr; }
  .local dl div { grid-template-columns: 1fr; gap: 2px; }
  .datos { grid-template-columns: 1fr; }
}

@media (max-height: 720px) {
  .drawer-head { padding: 14px 24px; }
  .drawer-head h2 { font-size: 1.6rem; }
  .drawer-foot { padding: 12px 24px 16px; gap: 10px; }
  .totales .fila--total { font-size: 1.25rem; }
  .datos { grid-template-columns: 1fr 1fr; }
  .datos input, .datos select { height: 38px; }
  .btn-wa { padding: 12px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .hero-art { opacity: 1; transform: none; }
}
