/* ==========================================================================
   ROAN JOYAS — demo de tienda
   Tokens tomados de la marca: verde inglés con textura de lino, marfil del
   logo y la piedra clara de los posts "Colección Roan".
   ========================================================================== */

:root {
  --verde: #2b3c2b;
  --noche: #1e2a1f;
  --marfil: #edefe1;
  --marfil-suave: rgba(237, 239, 225, 0.66);
  --marfil-linea: rgba(237, 239, 225, 0.2);
  --piedra: #e6e3dd;
  --piedra-honda: #d8d4cc;
  --tinta: #1a221b;
  --tinta-suave: #525a52;
  --tinta-linea: rgba(26, 34, 27, 0.16);

  --tex-verde: url("../img/linen-verde.jpg");
  --tex-noche: url("../img/linen-noche.jpg");
  --tex-piedra: url("../img/papel-piedra.jpg");

  --serif: "Montserrat", "Avenir Next", system-ui, sans-serif;
  --sans: "Montserrat", "Avenir Next", system-ui, sans-serif;

  --gutter: clamp(20px, 4.2vw, 72px);
  --max: 1560px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --header-h: 84px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--marfil);
  background: var(--verde) var(--tex-verde);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 1.5px solid currentColor;
  outline-offset: 4px;
}

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--marfil); color: var(--tinta);
  padding: 10px 16px; font-size: 14px;
}
.skip-link:focus { top: 16px; }

/* Grano fino sobre todo el sitio, como la trama del lino del logo */
.grain {
  pointer-events: none;
  position: fixed; inset: -50%;
  z-index: 90;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* --------------------------------------------------------------------------
   Tipografía
   -------------------------------------------------------------------------- */
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 7vw, 120px);
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.5vw, 54px);
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(16.5px, 1.25vw, 19px);
  line-height: 1.6;
  font-weight: 300;
  max-width: 34ch;
}

.small { font-size: 13px; line-height: 1.55; letter-spacing: 0.01em; }
.muted { color: var(--marfil-suave); }
.label { font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }

/* Enlaces y botones */
.btn {
  --btn-bg: var(--marfil);
  --btn-fg: var(--tinta);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: var(--btn-hover, var(--noche));
  transform: translateY(101%);
  border-radius: 50% 50% 0 0;
  transition: transform 0.6s var(--ease), border-radius 0.6s var(--ease);
}
.btn:hover::before { transform: translateY(0); border-radius: 0; }
.btn:hover { color: var(--btn-hover-fg, var(--marfil)); }
.btn--verde { --btn-bg: var(--verde); --btn-fg: var(--marfil); --btn-hover: var(--noche); }
.btn--linea {
  --btn-bg: transparent; --btn-fg: currentColor;
  box-shadow: inset 0 0 0 1px currentColor;
  --btn-hover: var(--marfil); --btn-hover-fg: var(--tinta);
}
.btn--block { width: 100%; }

.link {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  padding-bottom: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform-origin: right; transition: transform 0.6s var(--ease);
}
.link:hover::after { transform: scaleX(0); }

/* Líneas tipográficas con máscara para revelar */
.line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line-inner { display: block; will-change: transform; }

/* --------------------------------------------------------------------------
   Loader (solo inicio)
   -------------------------------------------------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center;
  background: var(--noche) var(--tex-noche);
  color: var(--marfil);
}
.loader__logo { width: min(64vw, 520px); }
.loader__logo svg { width: 100%; height: auto; display: block; }
.loader__script { clip-path: inset(0 100% 0 0); }
.loader__joyas { opacity: 0; }
.loader__hint {
  position: absolute; bottom: 36px; left: 0; right: 0;
  text-align: center; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--marfil-suave);
  opacity: 0;
}
.no-loader .loader { display: none; }

/* --------------------------------------------------------------------------
   Barra de anuncios + header
   -------------------------------------------------------------------------- */
.announce {
  position: relative; z-index: 61;
  background: var(--noche) var(--tex-noche);
  color: var(--marfil-suave);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px var(--gutter);
}

.header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  color: var(--marfil);
  transition: transform 0.6s var(--ease), background-color 0.4s var(--ease);
}
.header::before {
  content: ""; position: absolute; inset: 0;
  background: var(--verde) var(--tex-verde);
  border-bottom: 1px solid var(--marfil-linea);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.header.is-solid::before { opacity: 1; }
.header.is-hidden { transform: translateY(-100%); }

.header__inner {
  position: relative;
  height: 100%;
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav { display: flex; gap: clamp(18px, 2.2vw, 38px); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.brand { display: block; width: 128px; justify-self: center; }
.brand svg { width: 100%; height: auto; display: block; }

.header__tools { justify-self: end; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative;
  width: 44px; height: 44px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  transition: background-color 0.3s var(--ease);
}
.icon-btn:hover { background: rgba(237, 239, 225, 0.1); }
.icon-btn svg { width: 21px; height: 21px; }
.bag-btn { width: auto; padding: 0 14px 0 12px; gap: 10px; display: inline-flex; border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.bag-count {
  min-width: 22px; height: 22px; padding: 0 6px;
  display: inline-grid; place-items: center;
  border-radius: 999px; background: var(--marfil); color: var(--tinta);
  font-size: 12px; font-weight: 500;
  transition: transform 0.4s var(--ease);
}
.bag-count.bump { transform: scale(1.3); }
.menu-btn { display: none; }

/* --------------------------------------------------------------------------
   Hero: la ventana del monograma
   Sin JS o con movimiento reducido se ve el estado final (foto completa).
   Con JS, la foto se ve a través del cartucho del monograma y al hacer
   scroll la ventana se abre hasta llenar la pantalla.
   -------------------------------------------------------------------------- */
.reveal {
  position: relative;
  margin-top: calc(-1 * var(--header-h));
  height: 100svh;
  min-height: 600px;
}
.reveal__stage {
  --mw: 260px;
  --k: 1;
  position: relative;
  height: 100svh; min-height: 600px;
  overflow: hidden;
}
.reveal__photo { position: absolute; inset: 0; }
.reveal__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
.reveal__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(16, 22, 16, 0.78) 0%, rgba(16, 22, 16, 0.25) 42%, transparent 62%),
    linear-gradient(to bottom, rgba(16, 22, 16, 0.45), transparent 22%);
}
.reveal__mono, .reveal__title, .reveal__cue { display: none; }

.reveal__final {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter) clamp(30px, 6vh, 64px);
  display: grid; grid-template-columns: 1.3fr 1fr; align-items: end; gap: 28px 40px;
}
.reveal__big {
  font-weight: 300;
  white-space: nowrap;
  font-size: clamp(40px, 5.2vw, 92px);
  line-height: 0.96;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.reveal__copy { display: grid; gap: 26px; justify-items: start; padding-bottom: 6px; }
.reveal__copy .lead { max-width: 30ch; text-wrap: balance; }
.reveal__caption { grid-column: 1 / -1; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--marfil-suave); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }

/* Modo animado */
.is-reveal .reveal { height: 300svh; }
.is-reveal .reveal__stage { position: sticky; top: 0; }
.is-reveal .reveal__photo {
  -webkit-mask-image: url("../brand/cartucho-mascara.svg");
          mask-image: url("../brand/cartucho-mascara.svg");
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 50% 50%; mask-position: 50% 50%;
  -webkit-mask-size: calc(var(--mw) * var(--k)) auto; mask-size: calc(var(--mw) * var(--k)) auto;
}
.is-reveal .reveal__stage.is-open .reveal__photo { -webkit-mask-image: none; mask-image: none; }
.is-reveal .reveal__photo img { transform: scale(1.38); transform-origin: 50% 52%; }
.is-reveal .reveal__shade { opacity: 0; }
.is-reveal .reveal__final > * { opacity: 0; }

.is-reveal .reveal__mono {
  display: block;
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--mw) * var(--k));
  height: auto;
  transform: translate(-50%, -50%);
  color: var(--marfil);
  pointer-events: none;
}
.is-reveal .reveal__title { display: block; position: absolute; inset: 0; margin: 0; pointer-events: none; }
.reveal__word {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  font-weight: 300;
  font-size: clamp(22px, 3.1vw, 56px);
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.reveal__word--l { right: calc(50% + var(--mw) * var(--k) / 2 + clamp(24px, 3vw, 56px)); text-align: right; }
.reveal__word--r { left: calc(50% + var(--mw) * var(--k) / 2 + clamp(24px, 3vw, 56px)); }
.is-reveal .reveal__cue {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  position: absolute; left: 0; right: 0; bottom: clamp(26px, 5vh, 48px);
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--marfil-suave);
}
.is-reveal .reveal__cue { transition: opacity 0.5s var(--ease); }
.is-reveal .is-moving .reveal__cue { opacity: 0 !important; }
.reveal__cue i { display: block; width: 1px; height: 46px; background: var(--marfil-linea); position: relative; overflow: hidden; }
.reveal__cue i::after {
  content: ""; position: absolute; inset: 0; background: var(--marfil);
  animation: cue 2.2s var(--ease-in-out) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 65%, 100% { transform: translateY(100%); } }

/* --------------------------------------------------------------------------
   Marquesina
   -------------------------------------------------------------------------- */
.marquee {
  border-top: 1px solid var(--marfil-linea);
  border-bottom: 1px solid var(--marfil-linea);
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 30px) 0;
}
.marquee__track {
  display: flex; width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__item {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(24px, 3.2vw, 48px);
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 clamp(20px, 2.4vw, 40px);
  white-space: nowrap;
}
.marquee__item--soft { color: transparent; -webkit-text-stroke: 1px var(--marfil-suave); }
.marquee__sep { width: 30px; height: 36px; flex-shrink: 0; color: var(--marfil-suave); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Secciones claras (piedra)
   -------------------------------------------------------------------------- */
.on-piedra {
  background: var(--piedra) var(--tex-piedra);
  color: var(--tinta);
}
.on-piedra .muted { color: var(--tinta-suave); }
.on-piedra .btn--linea { --btn-hover: var(--verde); --btn-hover-fg: var(--marfil); }

.section {
  padding: clamp(80px, 11vw, 168px) var(--gutter);
}
.wrap { max-width: var(--max); margin: 0 auto; }

.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 32px;
  margin-bottom: clamp(36px, 5vw, 72px);
}
.section-head p { max-width: 38ch; }

/* --------------------------------------------------------------------------
   Grilla de colección (inicio)
   -------------------------------------------------------------------------- */
.collection-grid {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(0,1fr) minmax(0,1fr);
  grid-template-rows: auto auto;
  gap: clamp(14px, 1.6vw, 24px);
}
.collection-grid > :first-child { grid-row: 1 / 3; }

/* Tarjeta de producto */
.card { position: relative; display: block; color: var(--tinta); }
.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #dedad3 var(--tex-piedra);
  overflow: hidden;
  display: grid; place-items: center;
  isolation: isolate;
}
.card__media::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--verde) var(--tex-verde);
  clip-path: circle(0% at var(--mx, 50%) var(--my, 50%));
  transition: clip-path 0.9s var(--ease);
}
.card:hover .card__media::before { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
.card__media img {
  width: 62%;
  filter: drop-shadow(0 22px 26px rgba(20, 26, 20, 0.22));
  transition: transform 1.1s var(--ease);
}
.card:hover .card__media img { transform: scale(1.06) rotate(-3deg); }
.card--feature .card__media { aspect-ratio: auto; height: 100%; min-height: 560px; }
.card--feature .card__media img { width: 70%; }
.card__tag {
  position: absolute; top: 16px; left: 16px;
  font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(237, 239, 225, 0.9); color: var(--tinta);
}
.card__info {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px;
  padding: 16px 2px 4px;
}
.card__info > div { flex: 1 1 150px; min-width: 0; }
.card__name { font-family: var(--serif); font-size: 13px; font-weight: 500; line-height: 1.4; letter-spacing: 0.12em; text-transform: uppercase; }
.card__desc { font-size: 13.5px; color: var(--tinta-suave); margin-top: 4px; }
.card__price { font-size: 13px; font-weight: 500; white-space: nowrap; letter-spacing: 0.06em; }
.card--feature .card__info { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 26px; color: var(--tinta); }
.card--feature .card__name { font-size: clamp(15px, 1.2vw, 18px); }

.cursor-badge {
  position: fixed; left: 0; top: 0; z-index: 70;
  width: 96px; height: 96px; margin: -48px 0 0 -48px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--marfil); color: var(--tinta);
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  pointer-events: none;
  transform: scale(0);
  transition: transform 0.45s var(--ease);
}
.cursor-badge.is-on { transform: scale(1); }

/* --------------------------------------------------------------------------
   Foto editorial a sangre
   -------------------------------------------------------------------------- */
.editorial {
  position: relative;
  height: clamp(420px, 92vh, 980px);
  overflow: hidden;
}
.editorial img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.editorial__text {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 5vw, 64px);
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
}
.editorial__text .h2 { max-width: 20ch; text-shadow: 0 2px 30px rgba(10, 14, 10, 0.35); }

/* --------------------------------------------------------------------------
   Tonos: piedra oscura / piedra clara
   -------------------------------------------------------------------------- */
.tones { display: grid; grid-template-columns: 1fr 1fr; }
.tone {
  position: relative;
  min-height: clamp(520px, 78vh, 820px);
  padding: clamp(32px, 4vw, 64px);
  display: grid; grid-template-rows: auto 1fr auto;
  overflow: hidden;
}
.tone--oscura { background: var(--noche) var(--tex-noche); }
.tone__rings { position: relative; align-self: stretch; }
.tone__rings img {
  position: absolute;
  filter: drop-shadow(0 26px 30px rgba(10, 14, 10, 0.35));
  transition: transform 1.2s var(--ease);
}
.tone__rings img:nth-child(1) { width: 54%; left: 6%; top: 18%; transform: rotate(-8deg); }
.tone__rings img:nth-child(2) { width: 40%; right: 6%; bottom: 8%; transform: rotate(9deg); }
.tone:hover .tone__rings img:nth-child(1) { transform: rotate(-3deg) translateY(-8px); }
.tone:hover .tone__rings img:nth-child(2) { transform: rotate(4deg) translateY(6px); }
.tone__foot { display: flex; justify-content: space-between; align-items: end; gap: 20px; }

/* --------------------------------------------------------------------------
   Manifiesto
   -------------------------------------------------------------------------- */
.manifesto {
  position: relative;
  background: var(--noche) var(--tex-noche);
  min-height: 100vh;
  display: grid; align-items: center;
  padding: clamp(90px, 12vw, 180px) var(--gutter);
}
.manifesto__text {
  max-width: 1280px; margin: 0 auto;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(22px, 3vw, 46px);
  line-height: 1.36;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}
.manifesto__text .w { opacity: 0.16; transition: opacity 0.2s linear; }
.manifesto__sign { display: block; width: 92px; margin: clamp(40px, 5vw, 64px) auto 0; color: var(--marfil-suave); }

/* --------------------------------------------------------------------------
   Showroom
   -------------------------------------------------------------------------- */
.showroom {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 110px);
  align-items: center;
}
.showroom__visual {
  position: relative; aspect-ratio: 5 / 6;
  background: var(--verde) var(--tex-verde);
  display: grid; place-items: center; overflow: hidden;
}
.showroom__visual img { width: 64%; filter: drop-shadow(0 30px 34px rgba(10, 14, 10, 0.4)); }
.showroom__stamp {
  position: absolute; top: 24px; right: 24px;
  width: 120px; height: 120px; color: var(--marfil);
  animation: spin 26s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.showroom__body { display: grid; gap: 28px; }
.address {
  display: grid; gap: 4px;
  padding: 22px 0; border-top: 1px solid var(--tinta-linea); border-bottom: 1px solid var(--tinta-linea);
  font-size: 16px;
}

/* Servicios */
.services {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--tinta-linea);
}
.service { padding: 34px 32px 6px 0; display: grid; gap: 8px; }
.service + .service { padding-left: 32px; border-left: 1px solid var(--tinta-linea); }
.service .h3 { font-size: 13px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--noche) var(--tex-noche);
  padding: clamp(70px, 9vw, 130px) var(--gutter) 28px;
  overflow: hidden;
}
.footer__cols {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px;
  padding-bottom: clamp(60px, 8vw, 110px);
}
.footer__cols h4 { font-weight: 500; font-size: 11px; color: var(--marfil-suave); margin-bottom: 18px; letter-spacing: 0.16em; text-transform: uppercase; }
.footer__cols li + li { margin-top: 8px; }
.footer__cols a:hover { color: var(--marfil-suave); }
.footer__logo { width: 100%; color: var(--marfil); opacity: 0.94; }
.footer__logo svg { width: 100%; height: auto; display: block; }
.footer__bottom {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--marfil-suave);
}

/* --------------------------------------------------------------------------
   Bolsa (carrito)
   -------------------------------------------------------------------------- */
.overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(14, 19, 14, 0.5);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.overlay.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 101;
  width: min(480px, 100vw);
  background: var(--piedra) var(--tex-piedra);
  color: var(--tinta);
  display: grid; grid-template-rows: auto 1fr auto;
  transform: translateX(102%);
  transition: transform 0.7s var(--ease);
}
.drawer.is-open { transform: translateX(0); }
.drawer__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 28px; border-bottom: 1px solid var(--tinta-linea);
}
.drawer__head .h3 { font-size: 13px; }
.drawer .icon-btn:hover { background: rgba(26, 34, 27, 0.07); }
.drawer__body { overflow-y: auto; padding: 8px 28px; overscroll-behavior: contain; }
.drawer__foot { padding: 22px 28px 28px; border-top: 1px solid var(--tinta-linea); display: grid; gap: 14px; }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.drawer__total strong { font-family: var(--serif); font-weight: 500; font-size: 20px; letter-spacing: 0.02em; }
.drawer__head { grid-row: 1; }
.shipbar { grid-row: 2; }
.drawer__body { grid-row: 3; }
.drawer__foot { grid-row: 4; }
.drawer .muted { color: var(--tinta-suave); }
.drawer__empty {
  min-height: 100%; display: grid; align-content: center; justify-items: center; text-align: center;
  gap: 12px; padding: 48px 12px 64px;
}
.drawer__empty-icon {
  width: 72px; height: 72px; margin-bottom: 10px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--tinta-linea); color: var(--verde);
}
.drawer__empty-icon svg { width: 26px; height: 26px; }
.drawer__empty .h3 { font-size: 15px; }
.drawer__empty .muted { max-width: 30ch; font-size: 14.5px; line-height: 1.6; }
.drawer__empty .btn { margin-top: 14px; min-width: 220px; }
.drawer__empty-links { display: flex; gap: 26px; margin-top: 10px; }

.line-item {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--tinta-linea);
}
.line-item__img { aspect-ratio: 1; background: var(--piedra-honda); display: grid; place-items: center; }
.line-item__img img { width: 74%; }
.line-item__name { font-family: var(--serif); font-size: 12.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.4; }
.line-item__meta { font-size: 14px; color: var(--tinta-suave); }
.line-item__right { display: grid; justify-items: end; align-content: space-between; }
.line-item__remove { font-size: 13px; color: var(--tinta-suave); text-decoration: underline; text-underline-offset: 3px; }

.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--tinta-linea); border-radius: 999px;
  height: 38px; margin-top: 10px;
}
.qty button { width: 36px; height: 100%; display: grid; place-items: center; }
.qty button svg { width: 14px; height: 14px; }
.qty span { min-width: 22px; text-align: center; font-size: 15px; }

/* Búsqueda */
.search {
  position: fixed; inset: 0 0 auto 0; z-index: 101;
  background: var(--verde) var(--tex-verde);
  padding: 26px var(--gutter) 40px;
  transform: translateY(-102%);
  transition: transform 0.7s var(--ease);
}
.search.is-open { transform: translateY(0); }
.search__top { max-width: var(--max); margin: 0 auto; display: flex; justify-content: flex-end; }
.search__field { max-width: var(--max); margin: 10px auto 0; }
.search__field input {
  width: 100%; background: transparent; border: 0; outline: none;
  border-bottom: 1px solid var(--marfil-linea);
  font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 3.4vw, 48px); letter-spacing: 0.02em;
  padding: 8px 0 14px;
}
.search__field input::placeholder { color: rgba(237, 239, 225, 0.32); }
.search__results {
  max-width: var(--max); margin: 26px auto 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px;
}
.search-hit { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 4px; transition: background-color 0.3s; }
.search-hit:hover { background: rgba(237, 239, 225, 0.08); }
.search-hit__img { aspect-ratio: 1; background: var(--piedra); display: grid; place-items: center; }
.search-hit__img img { width: 78%; }

/* Menú móvil */
.mobile-menu {
  position: fixed; inset: 0; z-index: 102;
  background: var(--verde) var(--tex-verde);
  padding: 22px var(--gutter) 40px;
  display: grid; grid-template-rows: auto 1fr auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease-in-out);
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }
.mobile-menu nav { display: grid; align-content: center; gap: 6px; }
.mobile-menu nav a { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 8.6vw, 48px); line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120;
  transform: translate(-50%, calc(100% + 48px));
  visibility: hidden;
  background: var(--marfil); color: var(--tinta);
  padding: 14px 22px; border-radius: 999px;
  font-size: 15px;
  box-shadow: 0 20px 50px rgba(10, 14, 10, 0.25);
  transition: transform 0.6s var(--ease), visibility 0.6s;
  max-width: calc(100vw - 40px);
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }

/* --------------------------------------------------------------------------
   Tienda
   -------------------------------------------------------------------------- */
.page-hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(50px, 8vw, 120px) var(--gutter) clamp(40px, 5vw, 70px);
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px;
}
.crumbs { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--marfil-suave); margin-bottom: 18px; display: flex; gap: 10px; }
.crumbs a:hover { color: var(--marfil); }
.on-piedra .crumbs { color: var(--tinta-suave); }

.toolbar {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding-bottom: 28px; margin-bottom: 36px;
  border-bottom: 1px solid var(--tinta-linea);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 40px; padding: 0 18px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--tinta-linea);
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s;
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--tinta); }
.chip[aria-pressed="true"] { background: var(--verde); color: var(--marfil); box-shadow: none; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tinta-suave); }
.sort select {
  appearance: none; background: transparent;
  border: 0; border-bottom: 1px solid var(--tinta-linea);
  padding: 8px 26px 8px 2px; color: var(--tinta); font-size: 13px; letter-spacing: 0.04em;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%231a221b' stroke-width='1.2'/></svg>");
  background-repeat: no-repeat; background-position: right 4px center;
}

.shop-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(14px, 1.6vw, 24px);
}
.soon {
  position: relative;
  background: var(--verde) var(--tex-verde); color: var(--marfil);
  padding: 32px; display: grid; align-content: space-between; gap: 30px;
  aspect-ratio: 4 / 5;
}
.soon .h2 { font-size: clamp(20px, 2vw, 30px); }
.empty-state { grid-column: 1 / -1; padding: 60px 0; display: grid; gap: 18px; justify-items: start; }

/* --------------------------------------------------------------------------
   Producto
   -------------------------------------------------------------------------- */
.product {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 96px);
  align-items: start;
}
.gallery { display: grid; grid-template-columns: 84px 1fr; gap: 14px; position: sticky; top: calc(var(--header-h) + 20px); }
.gallery__thumbs { display: grid; gap: 10px; align-content: start; }
.thumb {
  aspect-ratio: 4 / 5; overflow: hidden; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 0.3s, opacity 0.3s;
  opacity: 0.62;
}
.thumb[aria-current="true"] { opacity: 1; box-shadow: inset 0 0 0 1px var(--tinta); }
.thumb:hover { opacity: 1; }
.thumb img { width: 76%; }
.thumb--photo img, .stage--photo img { width: 100%; height: 100%; object-fit: cover; }
.bg-piedra { background: #dedad3 var(--tex-piedra); }
.bg-verde { background: var(--verde) var(--tex-verde); }
.bg-noche { background: var(--noche) var(--tex-noche); }

.stage {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  display: grid; place-items: center; cursor: zoom-in;
}
.stage img {
  width: 66%;
  filter: drop-shadow(0 26px 30px rgba(10, 14, 10, 0.28));
  transition: transform 0.6s var(--ease);
  transform-origin: var(--zx, 50%) var(--zy, 50%);
}
.stage.is-zoom img { transform: scale(1.9); }
.stage--photo img { filter: none; }
.stage__hint { position: absolute; left: 18px; bottom: 16px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tinta-suave); }
.stage.bg-verde .stage__hint, .stage.bg-noche .stage__hint, .stage--photo .stage__hint { color: var(--marfil-suave); }

.buy { display: grid; gap: 26px; padding-top: 8px; }
.buy__title { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.2vw, 48px); line-height: 1.08; letter-spacing: 0.04em; text-transform: uppercase; }
.buy__price { font-size: 20px; font-weight: 500; letter-spacing: 0.04em; }
.buy__note { font-size: 14px; color: var(--tinta-suave); margin-top: 4px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.size {
  width: 52px; height: 52px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--tinta-linea);
  font-size: 13px; font-weight: 500; transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.size:hover { box-shadow: inset 0 0 0 1px var(--tinta); }
.size[aria-checked="true"] { background: var(--tinta); color: var(--piedra); box-shadow: none; }
.size-error { color: #8a2d1f; font-size: 14px; margin-top: 8px; min-height: 1.4em; }
.buy__row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.buy__row .qty { height: 54px; margin: 0; }
.buy__row .qty button { width: 44px; }
.buy__row .btn { padding: 0 18px; }
.perks { display: grid; gap: 10px; font-size: 14px; padding: 20px 0; border-top: 1px solid var(--tinta-linea); }
.perks li { display: flex; gap: 12px; align-items: center; }
.perks svg { width: 18px; height: 18px; flex-shrink: 0; }

.accordion { border-top: 1px solid var(--tinta-linea); }
.accordion details { border-bottom: 1px solid var(--tinta-linea); }
.accordion summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary i { width: 14px; height: 14px; position: relative; }
.accordion summary i::before, .accordion summary i::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor;
  transition: transform 0.4s var(--ease);
}
.accordion summary i::after { transform: rotate(90deg); }
.accordion details[open] summary i::after { transform: rotate(0deg); }
.accordion .acc-body { padding: 0 0 22px; color: var(--tinta-suave); max-width: 56ch; }

.related { margin-top: clamp(80px, 10vw, 150px); }
.related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header__inner { grid-template-columns: auto 1fr auto; }
  .brand { justify-self: center; }
  .collection-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .collection-grid > :first-child { grid-column: 1 / -1; grid-row: auto; }
  .card--feature .card__media { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
  .card--feature .card__media img { width: 42%; }
  .card--feature .card__info { position: static; padding: 16px 2px 4px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > :first-child { grid-column: 1 / -1; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; }
  .brand { width: 104px; }
  .bag-btn .bag-label { display: none; }
  .bag-btn { padding: 0 8px; }

  .reveal__final { grid-template-columns: 1fr; }
  .reveal__word { font-size: 7vw; letter-spacing: 0.08em; }
  .reveal__word--l, .reveal__word--r { left: 0; right: 0; text-align: center; transform: none; top: auto; }
  .reveal__word--l { bottom: calc(50% + var(--mw) * var(--k) * 0.546 + 22px); }
  .reveal__word--r { top: calc(50% + var(--mw) * var(--k) * 0.546 + 22px); }

  .section-head { flex-direction: column; align-items: start; }
  .tones { grid-template-columns: 1fr; }
  .tone { min-height: 520px; }
  .showroom { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 26px 0; border-left: 0; }
  .service + .service { border-top: 1px solid var(--tinta-linea); }
  .reveal__big { font-size: 9.4vw; }
  .reveal__final { gap: 18px; padding-bottom: 34px; }
  .reveal__copy { gap: 18px; }
  .reveal__caption { display: none; }
  .announce .a2 { display: none; }
  .editorial__text { flex-direction: column; align-items: start; }
  .shop-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .page-hero { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; }
  .gallery { position: static; grid-template-columns: 1fr; }
  .gallery__thumbs { order: 2; grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 520px) {
  .collection-grid { grid-template-columns: minmax(0, 1fr); }
  .shop-grid { grid-template-columns: minmax(0, 1fr); }
  .card__name { font-size: 21px; }
  .footer__cols { grid-template-columns: 1fr; }
  .line-item { grid-template-columns: 72px 1fr auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .manifesto__text .w { opacity: 1; }
}

/* Estado previo a la intro de la portada */
.is-reveal .reveal__stage { --k: 0; }
.is-reveal .reveal__word .line-inner { transform: translateY(110%); }
.is-reveal .reveal__cue { opacity: 0; }
.intro-failsafe .reveal__stage { --k: 1 !important; }
.intro-failsafe .reveal__word .line-inner { transform: none !important; }
.intro-failsafe .reveal__cue { opacity: 1 !important; }
.loader__logo { position: relative; aspect-ratio: 254 / 120; }
.loader__logo svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ==========================================================================
   v3: nav con desplegable, tienda con filtros, tarjetas compactas, home
   ========================================================================== */
.is-flip { transform: scaleX(-1); }
.label { font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }

/* Barra de anuncios */
.announce { display: flex; justify-content: center; gap: clamp(18px, 4vw, 56px); }
.announce span:empty { display: none; }

/* Nav + desplegable de Productos */
.nav { align-items: stretch; height: 100%; }
.nav > a, .has-mega > a { display: inline-flex; align-items: center; gap: 6px; height: var(--header-h); padding: 0; position: relative; }
.nav > a::after, .has-mega > a::after { bottom: calc(50% - 14px); }
.has-mega > a::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.has-mega:hover > a::after, .has-mega:focus-within > a::after, .has-mega > a[aria-current="page"]::after { transform: scaleX(1); }
.nav__caret { width: 13px; height: 13px; transition: transform 0.4s var(--ease); }
.has-mega:hover .nav__caret, .has-mega:focus-within .nav__caret { transform: rotate(180deg); }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--verde) var(--tex-verde);
  border-top: 1px solid var(--marfil-linea); border-bottom: 1px solid var(--marfil-linea);
  box-shadow: 0 30px 60px rgba(10, 14, 10, 0.35);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0.35s;
  text-transform: none; letter-spacing: 0; font-weight: 400;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.header:has(.has-mega:hover)::before, .header:has(.has-mega:focus-within)::before { opacity: 1; }
.mega__inner {
  max-width: var(--max); margin: 0 auto; padding: 38px var(--gutter) 44px;
  display: grid; grid-template-columns: 1.5fr 1fr 300px; gap: clamp(28px, 4vw, 72px);
}
.mega__title { display: inline-block; font-size: 22px; font-weight: 300; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.mega__title:hover { color: var(--marfil-suave); }
.mega__list { columns: 2; column-gap: 32px; font-size: 14.5px; }
.mega__col:nth-child(2) .mega__list { columns: 1; }
.mega__list > li { break-inside: avoid; padding: 5px 0; }
.mega__list a { color: var(--marfil-suave); transition: color 0.25s; }
.mega__list a:hover { color: var(--marfil); }
.mega__list ul { padding: 4px 0 2px 14px; border-left: 1px solid var(--marfil-linea); margin-top: 6px; }
.mega__list ul li { padding: 3px 0; }
.mega__sub { font-size: 13.5px; }
.mega__feature { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 4.4; }
.mega__feature img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mega__feature:hover img { transform: scale(1.05); }
.mega__feature > span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; display: grid; gap: 6px; justify-items: start; background: linear-gradient(to top, rgba(16, 22, 16, 0.8), transparent); }

/* Menú móvil con categorías */
.mobile-menu nav { overflow-y: auto; align-content: start; padding-top: 28px; }
.mobile-menu__cats { display: grid; gap: 2px; padding: 4px 0 10px 4px; border-left: 1px solid var(--marfil-linea); margin: 2px 0 8px 4px; }
.mobile-menu__cats summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 8px 0 8px 14px; font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.mobile-menu__cats summary::-webkit-details-marker { display: none; }
.mobile-menu__cats summary svg { width: 16px; height: 16px; transition: transform 0.3s; }
.mobile-menu__cats details[open] summary svg { transform: rotate(180deg); }
.mobile-menu nav .mobile-menu__subs { display: grid; gap: 2px; padding: 0 0 8px 14px; }
.mobile-menu nav .mobile-menu__subs a { font-family: var(--sans); font-size: 15px; line-height: 1.5; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--marfil-suave); padding: 4px 0; }

/* Franja de confianza */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--tinta-linea); }
.trust__item { display: flex; gap: 14px; align-items: flex-start; padding: 26px 22px 26px 0; }
.trust__item + .trust__item { padding-left: 22px; border-left: 1px solid var(--tinta-linea); }
.trust__item svg { width: 26px; height: 26px; flex-shrink: 0; margin-top: 2px; }
.trust__item .small { margin-top: 2px; }

/* Categorías en el home */
.cats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.cat { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; color: var(--marfil); }
.cat img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 1.4s var(--ease); }
.cat:hover img { transform: scale(1.04); }
.cat__body { position: absolute; inset: auto 0 0 0; padding: clamp(20px, 2.4vw, 34px); display: grid; gap: 6px; justify-items: start; background: linear-gradient(to top, rgba(16, 22, 16, 0.82), transparent); }
.cat__body .small { color: var(--marfil-suave); margin-bottom: 8px; }
.subcats { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 22px); margin-top: clamp(28px, 3.4vw, 48px); }
.subcat { display: grid; gap: 12px; justify-items: center; text-align: center; }
.subcat__img { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: inset 0 0 0 1px var(--tinta-linea); }
.subcat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.subcat:hover .subcat__img img { transform: scale(1.1); }
.subcat .label { font-size: 10.5px; }

/* Tarjeta de producto compacta */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(26px, 2.6vw, 40px) clamp(10px, 1.2vw, 18px); }
.pgrid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pcard { position: relative; color: var(--tinta); min-width: 0; }
.pcard__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #dedad3; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.1s var(--ease); }
.pcard:hover .pcard__media img { scale: 1.06; }
.pcard__badge { position: absolute; z-index: 1; top: 10px; left: 10px; font-size: 9.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(237, 239, 225, 0.94); color: var(--tinta); }
.pcard__badge.is-best { background: var(--verde); color: var(--marfil); }
.pcard__badge.is-out { background: rgba(26, 34, 27, 0.7); color: var(--marfil); }
.pcard__visual { position: relative; }
.pcard__add {
  position: absolute; z-index: 2; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 0; height: 40px; padding: 0 12px;
  border-radius: 999px; background: var(--marfil); color: var(--tinta);
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(10, 14, 10, 0.16);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.pcard__add svg { width: 16px; height: 16px; }
.pcard__add span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 0.5s var(--ease), margin 0.5s var(--ease); }
.pcard:hover .pcard__add span, .pcard__add:focus-visible span { max-width: 130px; margin-left: 8px; }
.pcard__add:hover { background: var(--verde); color: var(--marfil); }
.pcard__info { padding: 12px 2px 0; display: grid; gap: 2px; min-height: 78px; align-content: start; }
.pcard__name { font-size: 11.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.pcard__price { font-size: 14.5px; font-weight: 500; letter-spacing: 0.02em; margin-top: 2px; }
.pcard__transfer { font-size: 12px; color: #3f6b46; }

/* Regalos por precio */
.gifts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.gift { display: grid; gap: 8px; justify-items: start; align-content: start; padding: clamp(20px, 2.2vw, 32px); box-shadow: inset 0 0 0 1px var(--marfil-linea); transition: background-color 0.4s var(--ease), box-shadow 0.4s; min-height: 210px; }
.gift:hover { background: rgba(237, 239, 225, 0.06); box-shadow: inset 0 0 0 1px var(--marfil-suave); }
.gift__price { font-weight: 300; font-size: clamp(20px, 1.9vw, 28px); letter-spacing: 0.02em; line-height: 1.2; }
.gift .label { color: var(--marfil-suave); }
.gift .link { margin-top: auto; align-self: end; }

/* Beneficios de pago */
.promo { background: var(--noche) var(--tex-noche); padding: clamp(44px, 6vw, 84px) var(--gutter); }
.promo__inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; }
.promo__item { padding: 6px 20px; display: grid; gap: 6px; }
.promo__item + .promo__item { border-left: 1px solid var(--marfil-linea); }
.promo__big { font-weight: 300; font-size: clamp(30px, 4vw, 60px); letter-spacing: 0.03em; text-transform: uppercase; line-height: 1.05; }
.promo .label { color: var(--marfil-suave); }

/* Quiénes somos */
.about-teaser { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: center; }
.about-teaser__img { aspect-ratio: 3 / 2; overflow: hidden; }
.about-teaser__img img, .about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-teaser__body { display: grid; gap: 22px; justify-items: start; }
.about-teaser__body .label { color: var(--tinta-suave); }
.about-hero { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.about-hero .display { font-size: clamp(38px, 5.6vw, 96px); }
.about-hero .lead { max-width: 40ch; padding-bottom: 10px; }
.about-photo { height: clamp(320px, 62vh, 720px); overflow: hidden; }
.about-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.about-story__text { display: grid; gap: 18px; font-size: 16.5px; line-height: 1.75; color: var(--tinta-suave); max-width: 60ch; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 110px); border-top: 1px solid var(--tinta-linea); }
.stat { padding: 30px 20px 0 0; display: grid; gap: 6px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--tinta-linea); }
.stat__n { font-weight: 300; font-size: clamp(34px, 4.4vw, 68px); line-height: 1; letter-spacing: 0.01em; }
.stat .label { color: var(--tinta-suave); }
.showroom__visual--photo img { width: 100%; height: 100%; object-fit: cover; filter: none; }

/* Tienda con filtros a la izquierda */
.page-hero--slim { padding-top: clamp(36px, 5vw, 70px); padding-bottom: clamp(28px, 3.4vw, 48px); }
.page-hero--slim .display { font-size: clamp(34px, 4.6vw, 76px); }
.shop-section { padding-top: clamp(28px, 3.4vw, 48px); }
.shop { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 3.4vw, 60px); align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 18px); max-height: calc(100vh - var(--header-h) - 36px); overflow-y: auto; padding-right: 6px; display: grid; gap: 26px; align-content: start; }
.filters__head { display: none; }
.filters__title { font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--tinta-linea); }
.cat-tree ul { padding-left: 14px; border-left: 1px solid var(--tinta-linea); margin: 2px 0 6px 2px; }
.cat-tree__btn { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0; text-align: left; font-size: 14.5px; color: var(--tinta-suave); transition: color 0.2s; }
.cat-tree > li > .cat-tree__btn { color: var(--tinta); font-weight: 500; }
.cat-tree__btn:hover { color: var(--tinta); }
.cat-tree__btn.is-active { color: var(--tinta); font-weight: 600; }
.cat-tree__btn.is-active > span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.cat-tree__n { font-size: 12px; color: var(--tinta-suave); font-weight: 400; }
.cat-tree__btn.is-empty { opacity: 0.55; }
.price-list { display: grid; gap: 4px; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14.5px; cursor: pointer; color: var(--tinta-suave); }
.check:hover { color: var(--tinta); }
.check input { appearance: none; width: 16px; height: 16px; border: 1px solid var(--tinta-suave); border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; cursor: pointer; }
.check input[type="checkbox"] { border-radius: 3px; }
.check input::after { content: ""; width: 8px; height: 8px; border-radius: inherit; background: var(--verde); transform: scale(0); transition: transform 0.2s var(--ease); }
.check input:checked::after { transform: scale(1); }
.check input:checked + span { color: var(--tinta); font-weight: 500; }
.shop__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--tinta-linea); }
.filters-btn { display: none; min-height: 42px; padding: 0 18px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.active-filters:empty { display: none; }
.chip--x { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 14px; }
.chip--x svg { width: 12px; height: 12px; }
.pgrid--shop { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shop__more { display: grid; justify-items: center; margin-top: clamp(40px, 5vw, 70px); }
.shop__more .btn[hidden] { display: none; }
.pgrid .empty-state { grid-column: 1 / -1; }

/* Producto */
.gallery--single { grid-template-columns: minmax(0, 1fr); }
.stage--photo { cursor: zoom-in; background: #dedad3; }
.stage--photo img { width: 100%; height: 100%; object-fit: cover; }
.stage--photo .stage__hint { color: var(--tinta-suave); }
.stage.is-zoom img.is-flip { transform: scaleX(-1) scale(1.9); }
.buy__transfer { font-size: 15px; color: #3f6b46; margin-top: 6px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.opt { min-height: 44px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--tinta-linea); font-size: 13.5px; transition: background-color 0.3s, color 0.3s, box-shadow 0.3s; }
.opt:hover { box-shadow: inset 0 0 0 1px var(--tinta); }
.opt[aria-checked="true"] { background: var(--tinta); color: var(--piedra); box-shadow: none; }
.opt.is-out { opacity: 0.45; text-decoration: line-through; }
.stock-note { font-size: 13.5px; color: var(--tinta-suave); min-height: 1.4em; margin: -8px 0; }
.stock-note.is-last { color: #8a2d1f; font-weight: 500; }
.stock-note.is-out { color: #8a2d1f; }
.btn:disabled { opacity: 0.45; pointer-events: none; }
.specs { margin-top: 14px; border-top: 1px solid var(--tinta-linea); }
.specs li { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; border-bottom: 1px solid var(--tinta-linea); font-size: 14.5px; }
.specs li span:last-child { color: var(--tinta); }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 12px var(--gutter); background: var(--verde) var(--tex-verde); color: var(--marfil); border-top: 1px solid var(--marfil-linea); transform: translateY(102%); transition: transform 0.6s var(--ease); }
.sticky-buy.is-on { transform: none; }
.sticky-buy .btn { min-height: 46px; }

/* Bolsa: barra de envío gratis */
.drawer { grid-template-rows: auto auto 1fr auto; }
.shipbar { padding: 14px 28px; border-bottom: 1px solid var(--tinta-linea); display: grid; gap: 8px; font-size: 13.5px; }
.shipbar[hidden] { display: none; }
.shipbar__track { height: 3px; background: var(--tinta-linea); border-radius: 3px; overflow: hidden; }
.shipbar__track i { display: block; height: 100%; background: var(--verde); border-radius: 3px; transition: width 0.7s var(--ease); }
.drawer__transfer { color: #3f6b46; }
.line-item__img { overflow: hidden; }
.line-item__img img, .search-hit__img img { width: 100%; height: 100%; object-fit: cover; }
.search-hit__img { overflow: hidden; }

/* Botón de ayuda */
.help-fab { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 18px 0 16px; border-radius: 999px; background: var(--marfil); color: var(--tinta); font-size: 12.5px; font-weight: 500; box-shadow: 0 14px 34px rgba(10, 14, 10, 0.28); transition: transform 0.4s var(--ease); }
.help-fab:hover { transform: translateY(-3px); }
.help-fab svg { width: 20px; height: 20px; }
body[data-page="producto"] .help-fab { bottom: 84px; }

@media (min-width: 1680px) { .pgrid--shop { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  .has-mega, .nav { display: none; }
  .pgrid--5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pgrid--5 > :nth-child(5) { display: none; }
  .subcats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shop { grid-template-columns: minmax(0, 1fr); }
  .filters-btn { display: inline-flex; }
  .filters {
    position: fixed; z-index: 101; top: 0; left: 0; bottom: 0; width: min(340px, 88vw); max-height: none;
    background: var(--piedra) var(--tex-piedra); padding: 20px 24px 30px;
    transform: translateX(-102%); transition: transform 0.7s var(--ease);
  }
  .filters.is-open { transform: none; }
  .filters__head { display: flex; justify-content: space-between; align-items: center; }
  .pgrid--shop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust__item { padding: 18px 12px 18px 0; }
  .trust__item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .trust__item:nth-child(even) { padding-left: 14px; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--tinta-linea); }
  .cats { grid-template-columns: minmax(0, 1fr); }
  .gifts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gift { min-height: 170px; }
  .promo__inner { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .promo__item + .promo__item { border-left: 0; }
  .about-teaser, .about-story, .about-hero { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .pgrid, .pgrid--5, .pgrid--shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgrid--5 > :nth-child(5) { display: none; }
  .pcard__add span { display: none; }
  .announce .a2 { display: none; }
  .help-fab span { display: none; }
  .help-fab { padding: 0; width: 50px; justify-content: center; }
  .shop__bar .sort { font-size: 0; gap: 0; }
  .sticky-buy .label { display: none; }
}
@media (max-width: 520px) {
  .subcats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .subcat .label { font-size: 9px; letter-spacing: 0.08em; }
}
#shop-count { white-space: nowrap; }
