/* ==========================================================================
   Calvo Glass — catálogo: grilla, tarjeta, controles y panel de filtros

   GENERADO. No editar a mano: `python3 tools/extract_catalog_css.py` lo
   reescribe leyendo `prototype/v8-giro/categoria.html` con el navegador, que
   es la única forma de sacar CSS sin que un comentario o una anidación te
   descoloquen el parseo en silencio.

   Lo que cambia al traerlo: los colores literales pasan a token, y las reglas
   del chrome no se copian porque ya viven en chrome.css.
   ========================================================================== */

.gc, .pc { position: relative }
.gc .lb a, .pc .lb a { color: inherit; text-decoration: none }
.gc .sq, .pc .sq { padding: 0px }
.gc .sq .ph, .pc .sq .ph { position: absolute; inset: 0px; display: block; padding: 12% }
.revs { padding: clamp(56px,7vw,104px) var(--m) clamp(40px,5vw,72px) }
.revs-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.revs-hd h3 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0px;
  font-size: clamp(28px, 3.9vw, 50px);
  max-width: 22ch;
}
.revs-hd h3 em { font-style: normal; color: var(--ash) }
.revs-side { display: flex; align-items: center; gap: 14px }
.revs-all {
  font-size: 13px;
  color: var(--ash);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.revs-all:hover { color: var(--ink) }
.revs-arrows { display: flex; gap: 8px }
.revs-arrows button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--d-control),border-color var(--d-control);
}
.revs-arrows button:hover:not(:disabled) { background: var(--tile) }
.revs-arrows button:disabled { opacity: 0.32; cursor: default }
.revs-arrows svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.revs-track {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.revs-track::-webkit-scrollbar { display: none }
.revs-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px }
.rev {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: minmax(0px, 1.18fr) minmax(0px, 0.82fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: stretch;
}
.rev-card {
  background: var(--tile);
  border-radius: var(--r-card,18px);
  padding: clamp(24px, 3vw, 44px);
  display: flex;
  flex-direction: column;
}
.rev-q {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.18;
  font-size: clamp(19px, 2.1vw, 29px);
  margin: 0px 0px clamp(12px, 1.4vw, 18px);
}
.rev-t {
  font-size: clamp(13.5px, 1.05vw, 15.5px);
  line-height: 1.62;
  color: var(--ash);
  margin: 0px 0px clamp(16px, 2vw, 24px);
}
.rev-st { display: flex; gap: 3px; margin-bottom: auto }
.rev-st svg { width: 16px; height: 16px }
.rev-st .on { fill: rgb(168, 113, 15) }
.rev-st .off { fill: none; stroke: rgb(168, 113, 15); stroke-width: 1.4; opacity: 0.6 }
.rev-who { margin-top: clamp(20px, 2.4vw, 32px); font-size: 14px; font-weight: 600 }
.rev-who span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
  margin-top: 5px;
}
.rev-ph {
  position: relative;
  border-radius: var(--r-card,18px);
  overflow: hidden;
  background: var(--tile);
  height: clamp(320px, 38vw, 540px);
}
.rev-ph .bg {
  position: absolute;
  inset: 0px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(30px) saturate(0.85);
  transform: scale(1.15);
  opacity: 0.5;
}
.rev-ph .fg { position: relative; width: 100%; height: 100%; object-fit: contain }
.rev-ph img { width: 100%; height: 100%; object-fit: cover; display: block }
.revs-dots {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin-top: clamp(20px, 2.4vw, 32px);
}
.revs-dots button {
  width: 7px;
  height: 7px;
  padding: 0px;
  border: 0px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background var(--d-control);
}
.revs-dots button[aria-current="true"] { background: var(--ink) }
.rail {
  display: flex;
  gap: 7px;
  padding: 11px var(--m);
  overflow-x: auto;
  white-space: nowrap;
  border-bottom: 1px solid var(--rule);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none }
.banner {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  min-height: clamp(380px, 52vh, 510px);
}
.banner .txt {
  background: var(--brick);
  color: rgb(255, 244, 234);
  padding: clamp(30px, 4.6vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.banner .k {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-bottom: 16px;
}
.banner h1 { font-size: clamp(38px, 5.8vw, 70px); margin: 0px 0px 18px }
.banner p {
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 33ch;
  margin: 0px 0px 28px;
  opacity: 0.94;
}
/* Scoped to the banner: extracted from v8 where it is the banner button.
   As a bare `.btn` it repainted every button on the page cream — the age
   gate's "No" came out cream-on-cream and vanished. */
.banner .txt .btn {
  align-self: flex-start;
  background: rgb(255, 244, 234);
  color: var(--ink);
  border-radius: 99px;
  padding: 13px 28px;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.24s cubic-bezier(0.34, 1.4, 0.5, 1), box-shadow 0.24s;
}
.banner .txt .btn:hover { transform: translateY(-2px); box-shadow: rgba(0, 0, 0, 0.18) 0px 7px 20px }
.banner .fig {
  background: var(--forest);
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: hidden;
}
.banner .fig img {
  max-height: clamp(230px, 33vh, 350px);
  width: auto;
  filter: drop-shadow(rgba(0, 0, 0, 0.3) 0px 26px 36px);
  animation: 1s cubic-bezier(0.22, 1.2, 0.36, 1) 0.12s 1 normal both running settle;
}
.marquee {
  position: relative;
  background: rgb(244, 238, 226);
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  --speed: 58s;
}
.mq-track {
  display: flex;
  width: max-content;
  align-items: center;
  background: rgb(244, 238, 226);
  animation: drift var(--speed) linear infinite;
  will-change: transform;
}
.marquee:hover .mq-track, .marquee.paused .mq-track { animation-play-state: paused }
.mq-item {
  position: relative;
  flex: 0 0 auto;
  margin-right: clamp(20px, 3.4vw, 58px);
  width: clamp(200px, 24vw, 340px);
  height: clamp(320px, 44vh, 480px);
  --mq-pad: clamp(18px,2.6vw,38px);
  display: grid;
  place-items: center;
  padding: var(--mq-pad) 0;
}
.mq-item img {
  position: absolute;
  inset: 0px;
  width: 100%;
  height: 100%;
  padding: var(--mq-pad) 0;
  max-width: none;
  max-height: none;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.mq-item:hover img { transform: translateY(-8px) scale(1.03) }
.mq-item .tag {
  position: absolute;
  left: 50%;
  bottom: 6px;
  translate: -50%;
  white-space: nowrap;
  background: var(--ink);
  color: var(--cream);
  border-radius: 99px;
  padding: 7px 15px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s, transform 0.22s;
  pointer-events: none;
}
.mq-item:hover .tag, .mq-item:focus-visible .tag { opacity: 1; transform: none }
.mq-pause {
  position: absolute;
  right: clamp(14px, 2.4vw, 26px);
  bottom: clamp(14px, 2.4vw, 26px);
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, rgb(244, 238, 226) 84%, transparent);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  font-size: 11px;
  line-height: 1;
  transition: border-color 0.18s, background 0.18s;
}
.mq-pause:hover { border-color: var(--ink); background: rgb(255, 255, 255) }
.track {
  display: grid;
  grid-auto-flow: column;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--m);
  padding: 0 var(--m);
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none }
.track > * { scroll-snap-align: start }
.track::after { content: ""; width: 1px }
.shd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(44px,5.6vw,80px) var(--m) 18px;
}
.shd h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0px;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
}
.ctrl { display: flex; align-items: center; gap: 14px }
.arrows { display: flex; gap: 6px }
.arrows button {
  width: 31px;
  height: 31px;
  border: 1px solid var(--border);
  border-radius: 99px;
  display: grid;
  place-items: center;
  font-size: 13px;
  transition: border-color 0.18s, background 0.18s;
}
.arrows button:hover { border-color: var(--ink); background: rgb(255, 255, 255) }
.arrows button[disabled] { opacity: 0.3; cursor: default }
.cats .track { grid-auto-columns: clamp(150px, 20vw, 232px) }
.cat .sq {
  background: var(--tile);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 13%;
}
.cat .sq img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.cat:hover .sq img { transform: scale(1.06) }
.cat .lb { padding-top: 11px; font-size: 14px; font-weight: 500 }
.prods .track { grid-auto-columns: clamp(178px, 23vw, 268px) }
.pc .sq {
  background: var(--tile);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  padding: 12%;
}
.pc .sq img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.pc:hover .sq img { transform: translateY(-6px) scale(1.03) }
.pc .add {
  position: absolute;
  inset: auto 10px 10px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 99px;
  padding: 9px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 0.22s, transform 0.22s;
}
.pc:hover .add, .pc:focus-within .add { opacity: 1; transform: none }
.pc .lb {
  padding-top: 11px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.pc .pz { font-size: 13px; color: var(--ash); margin-top: 1px }
.swatches { display: flex; gap: 4px; margin-top: 7px }
.swatches i {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  display: block;
  box-shadow: rgba(0, 0, 0, 0.13) 0px 0px 0px 1px;
}
.more {
  display: grid;
  place-items: center;
  padding: clamp(30px,4vw,52px) var(--m) 0;
}
.strip {
  background: var(--brick);
  color: rgb(255, 244, 234);
  margin-top: clamp(48px, 6vw, 90px);
  padding: clamp(34px,4.6vw,66px) var(--m);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 44px);
}
.strip h4 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: 17px;
  margin: 0px 0px 7px;
  letter-spacing: -0.02em;
}
.strip p {
  margin: 0px;
  font-size: 13.5px;
  line-height: 1.5;
  opacity: 0.9;
  max-width: 30ch;
}
.banner .fig.foto { padding: 0px; background: var(--ink); overflow: hidden }
.banner .fig.foto img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  animation: 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0s 1 normal both running foto-entra;
}
.gc .sq, .pc .sq, .cat .sq { transition: background 0.45s cubic-bezier(0.22, 1, 0.36, 1) }
.gc .sq::after, .pc .sq::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 9%;
  translate: -50%;
  width: 46%;
  height: 9px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(rgba(27, 26, 23, 0.32), transparent 72%);
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1), transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.gc:hover .sq::after, .pc:hover .sq::after { opacity: 1; transform: scale(1) }
.gc:hover .sq img, .pc:hover .sq img {
  transform: translateY(-11px) scale(1.035);
  filter: drop-shadow(rgba(27, 26, 23, 0.13) 0px 16px 20px);
}
.gc .sq img, .pc .sq img { transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s }
.proc { padding: clamp(56px,7vw,104px) var(--m) clamp(30px,4vw,52px) }
.proc .hd { max-width: 44ch; margin-bottom: clamp(30px, 4vw, 52px) }
.proc .hd h2 { font-size: clamp(32px, 4.6vw, 58px); margin: 0px 0px 14px }
.proc .hd p { color: rgb(74, 70, 63); margin: 0px; max-width: 40ch }
.proc .line {
  height: 1px;
  background: var(--rule);
  position: relative;
  margin-bottom: clamp(22px, 3vw, 36px);
}
.proc .line i {
  position: absolute;
  inset: 0px;
  background: var(--brick);
  transform-origin: left center;
  scale: 0 1;
}
.proc .line i {
  animation-duration: auto;
  animation-timing-function: linear;
  animation-delay: 0s;
  animation-iteration-count: 1;
  animation-direction: normal;
  animation-fill-mode: both;
  animation-play-state: running;
  animation-name: llena;
  animation-timeline: view();
  animation-range: cover 12% cover 62%;
}
.proc .pasos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2.4vw, 34px);
}
.proc .paso .n {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.13em;
  color: var(--brick);
  margin-bottom: 12px;
}
.proc .paso .fig {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
  background: var(--tile);
}
.proc .paso .fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.proc .paso:hover .fig img { transform: scale(1.05) }
.proc .paso h3 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: 16.5px;
  letter-spacing: -0.02em;
  margin: 0px 0px 6px;
}
.proc .paso p {
  margin: 0px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ash);
  max-width: 26ch;
}
.proc .paso {
  animation-duration: 0.7s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-delay: 0s;
  animation-iteration-count: 1;
  animation-direction: normal;
  animation-fill-mode: both;
  animation-play-state: running;
  animation-name: entra;
  animation-timeline: view();
  animation-range: entry 4% cover 22%;
}
.mov {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(44px, 5.6vw, 84px) 0px clamp(34px, 4.4vw, 60px);
  margin-top: clamp(48px, 6vw, 90px);
}
.mov .hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 var(--m) clamp(20px,2.8vw,30px);
  flex-wrap: wrap;
}
.mov h2 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(28px, 3.8vw, 46px);
  margin: 0px;
  line-height: 1;
}
.mov .hd p {
  margin: 6px 0px 0px;
  font-size: 13.5px;
  color: rgb(167, 161, 153);
  max-width: 38ch;
}
.mov .rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(206px, 23vw, 290px);
  gap: clamp(10px, 1.4vw, 18px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--m);
  padding: 0 var(--m);
  scrollbar-width: none;
}
.mov .rail::-webkit-scrollbar { display: none }
.mov .rail::after { content: ""; width: 1px }
.clip {
  scroll-snap-align: start;
  position: relative;
  background: rgb(0, 0, 0);
  aspect-ratio: 9 / 15;
  overflow: hidden;
  cursor: pointer;
}
.clip video, .clip img.post {
  position: absolute;
  inset: 0px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.clip video { opacity: 0; transition: opacity 0.5s }
.clip.playing video { opacity: 1 }
.clip .grad {
  position: absolute;
  inset: auto 0px 0px;
  height: 52%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent);
}
.clip .lb {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 13px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}
.clip .lb small {
  display: block;
  color: rgb(185, 179, 170);
  font-weight: 400;
  font-size: 11.5px;
  margin-top: 2px;
}
.clip .dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--brick);
  opacity: 0;
  transition: opacity 0.3s;
}
.clip.playing .dot { opacity: 1 }
.clip::after {
  content: "";
  position: absolute;
  inset: 0px;
  box-shadow: inset 0 0 0 0 var(--cream);
  transition: box-shadow 0.3s;
  pointer-events: none;
}
.clip:hover::after, .clip:focus-visible::after { box-shadow: inset 0 0 0 2px var(--cream) }
.mov .foot {
  padding: clamp(20px,2.6vw,30px) var(--m) 0;
  font-size: 12.5px;
  color: rgb(167, 161, 153);
}
.mov .foot a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px }
.gc .sq img, .pc .sq img, .cat .sq img { filter: drop-shadow(rgba(27, 26, 23, 0.09) 0px 6px 10px) }
.mq-item.mood { width: clamp(240px, 28vw, 400px) }
.mq-item.mood img { padding: 0px; object-fit: cover }
.mq-item.mood .tag { background: rgba(27, 26, 23, 0.82); color: rgb(251, 246, 236) }

@media (max-width: 860px) {
  .rev { grid-template-columns: 1fr; gap: 0px }
  .rev-ph {
    order: -1;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: var(--r-card,18px) var(--r-card,18px) 0 0;
  }
  .rev-card { border-radius: 0 0 var(--r-card,18px) var(--r-card,18px) }
  .revs-arrows { display: none }
  .rev { flex-basis: 86% }
  .proc .pasos { grid-template-columns: repeat(2, 1fr) }
}

@media (max-width: 800px) {
  .banner, .split, .strip { grid-template-columns: 1fr }
  .banner .fig.foto { min-height: clamp(300px, 58vw, 420px) }
}

@media (max-width: 760px) {
  .swatches button { width: 36px; height: 36px }
  .pill, .btn-filter, .arrows button, .coupon button, .opt {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .rev { flex-basis: 92% }
}

@media (max-width: 460px) {
  .proc .pasos { grid-template-columns: 1fr }
}

@media (hover: none) {
  .gc .add, .pc .add, .cat .add { display: none }
  .gc .sq::after, .pc .sq::after { display: none }
}

@media (prefers-reduced-motion: reduce) {
  .revs-track { scroll-behavior: auto }
  .reveal { opacity: 1; transform: none }
  .marquee { overflow-x: auto; scroll-snap-type: x mandatory }
  .mq-track { width: auto }
  .mq-item { scroll-snap-align: center }
  .mq-pause { display: none }
  .banner .fig.foto img { animation: auto ease 0s 1 normal none running none }
  .gc:hover .sq img, .pc:hover .sq img { transform: none; filter: none }
  .gc .sq::after, .pc .sq::after { display: none }
  .proc .paso, .proc .line i {
    animation: auto ease 0s 1 normal none running none;
    opacity: 1;
    transform: none;
    scale: 1;
  }
  .clip video { display: none }
}

/* --- keyframes que estas reglas nombran --- */
@keyframes drift { 
  0% { transform: translate3d(0px, 0px, 0px); }
  100% { transform: translate3d(-50%, 0px, 0px); }
}
@keyframes entra { 
  0% { opacity: 0; transform: translateY(22px); }
  100% { opacity: 1; transform: none; }
}
@keyframes foto-entra { 
  0% { opacity: 0; transform: scale(1.05); }
  100% { opacity: 1; transform: none; }
}
@keyframes llena { 
  100% { scale: 1; }
}
@keyframes settle { 
  0% { opacity: 0; transform: translateY(26px) scale(0.96); }
  100% { opacity: 1; transform: none; }
}
