/* Casa Rubí — galería de DESIGN (1).md entibiada con la identidad de la marca:
   rubí del logo, dorado del nombre y vino de las portadas de Instagram. */

:root {
  /* Neutros cálidos (el MD en blanco puro, llevado hacia la luz de la tienda) */
  --carbon: #231d1d;
  --paper: #fbf8f4;
  --white: #ffffff;
  --ash: #bdb3a8;
  --stone: #f3ede6;
  --graphite: #6f6660;
  --smoke: #e7dfd6;

  /* Marca */
  --ruby: #a3192f;
  --wine: #3b0d18;
  --gold: #b0843f;
  --gold-soft: #d9b77c;
  --cream: #f1e4dc;

  /* Gema */
  --gem-light: #d23a4b;
  --gem-mid: #b01d33;
  --gem-dark: #7c0f22;
  --gem-line: rgba(255, 255, 255, .35);
  --gem-spark: var(--ruby);

  --font-ui: 'Jost', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --font-script: 'Pinyon Script', cursive;

  --page: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --gap: 24px;
  --section: clamp(64px, 9vw, 120px);

  /* Curvas (skill de Emil Kowalski) */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--carbon);
  font: 400 15px/1.5 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--ruby);
  -webkit-tap-highlight-color: transparent;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--ruby); color: var(--white); }
:focus-visible { outline: 1px solid var(--ruby); outline-offset: 3px; }
html { scrollbar-color: var(--ash) var(--paper); scrollbar-width: thin; }

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

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 30;
  background: var(--carbon); color: var(--white); padding: 8px 16px; font-size: 13px;
}
.skip:focus { top: 8px; }

/* Todo lo que se presiona responde al dedo */
.icon-btn, .rail-btn, .filter, .more, .btn-wa, .qv-step, .qv-close, .tile, .card-hit {
  transition: transform 160ms var(--ease-out);
}
:is(.icon-btn, .rail-btn, .filter, .more, .btn-wa, .qv-step, .qv-close):active { transform: scale(.96); }
:is(.tile, .card-hit):active { transform: scale(.985); }

/* Enlace de texto: subrayado que se retira y vuelve */
.text-link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size .45s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { background-size: 0% 1px; background-position: 100% 100%; }
}

/* ───── Barra de anuncios ───── */
.announce {
  background: var(--wine);
  color: var(--cream);
  font-size: 13px;
  line-height: 1.33;
  text-align: center;
  padding: 9px var(--gutter);
}
.announce p { margin: 0; }
.announce .sep { margin: 0 .5em; color: var(--gold-soft); }
.announce a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--gold-soft); }

/* ───── Encabezado de tres zonas ───── */
.site-header {
  max-width: var(--page);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--gap);
}

.nav-left { display: flex; gap: 24px; font-size: 13px; }
.nav-left a { position: relative; padding: 4px 0; }
.nav-left a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav-left a:hover::after { transform: scaleX(1); transform-origin: left; }
}

.logo { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.site-header .logo { grid-column: 2; }
.site-header .nav-right { grid-column: 3; }
.logo-gem { width: 40px; height: 38px; overflow: visible; }
.logo-word {
  font-family: var(--font-script);
  font-size: 34px;
  line-height: 1;
  color: var(--gold);
  padding: 0 .1em;
}

/* Gema viva del encabezado */
.gem-live .spark { fill: var(--ruby); transform-box: fill-box; transform-origin: center; }
.gem-live .f1 { fill: var(--gem-mid); }
.gem-live .f2 { fill: var(--gem-light); }
.gem-live .f3 { fill: var(--gem-dark); }
.gem-live .f4 { fill: var(--gem-mid); }
.gem-live .facet-lines { fill: none; stroke: var(--gem-line); stroke-width: .8; }
.gem-live .gem-outline { fill: none; stroke: var(--ruby); stroke-width: 1.2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 0; }
.gem-live .glint { transform: translateX(0); }

@media (prefers-reduced-motion: no-preference) {
  .js .gem-live .gem-outline { animation: gem-draw 900ms var(--ease-in-out) 100ms both; }
  .js .gem-live .facet { animation: facet-in 600ms var(--ease-out) both; }
  .js .gem-live .f2 { animation-delay: 650ms; }
  .js .gem-live .f4 { animation-delay: 720ms; }
  .js .gem-live .f1 { animation-delay: 790ms; }
  .js .gem-live .f3 { animation-delay: 860ms; }
  .js .gem-live .facet-lines { animation: facet-in 600ms var(--ease-out) 900ms both; }
  .js .gem-live .glint { animation: glint 900ms var(--ease-in-out) 1250ms both; }
  .js .gem-live .spark { animation: spark 700ms var(--ease-out) both; }
  .js .gem-live .spark:nth-child(1) { animation-delay: 1700ms; }
  .js .gem-live .spark:nth-child(2) { animation-delay: 1790ms; }
  .js .gem-live .spark:nth-child(3) { animation-delay: 1880ms; }
  .js .site-header .logo-word { animation: word-in 1000ms var(--ease-out) 450ms both; }
  /* el primer destello trae su resplandor */
  .js .gem-live { animation: gem-glow 1100ms ease-in-out 1150ms both; }

  /* Los destellos que se repiten (cada 7 s, cursor o toque) los dispara app.js con la Web Animations API */
}
@keyframes gem-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(210, 58, 75, 0)); }
  45% { filter: drop-shadow(0 1px 6px rgba(210, 58, 75, .55)); }
}
@keyframes gem-draw {
  0% { stroke-dashoffset: 1; opacity: 1; }
  70% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes facet-in { from { opacity: 0; } }
@keyframes glint { from { transform: translateX(0); } to { transform: translateX(84px); } }
@keyframes spark { from { opacity: 0; transform: scale(.4) rotate(-45deg); } }
@keyframes word-in { from { opacity: 0; filter: blur(4px); transform: translateY(4px); } }

.nav-right { display: flex; justify-content: flex-end; gap: 4px; }
.icon-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px;
}
.icon-btn svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  transition: opacity .2s ease;
}
@media (hover: hover) and (pointer: fine) { .icon-btn:hover svg { opacity: .55; } }
.menu-btn { display: none; }

.menu-sheet {
  position: fixed; inset: 0; z-index: 20;
  background: var(--paper);
  padding: 96px var(--gutter) 32px;
}
.menu-sheet nav { display: flex; flex-direction: column; }
.menu-sheet a {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -.01em;
  padding: 14px 0;
  border-bottom: 1px solid var(--smoke);
}
@media (prefers-reduced-motion: no-preference) {
  .menu-sheet:not([hidden]) a { animation: rise-soft .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms); }
}
.menu-open .site-header { position: relative; z-index: 25; }
.menu-open { overflow: hidden; }

/* ───── Hero ───── */
.hero {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) var(--gutter) 0;
  text-align: center;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6.4vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -.025em;
  margin: 0;
  text-wrap: balance;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.hero-title em { font-style: italic; color: var(--ruby); }

.hero-sub {
  margin: 20px auto 0;
  max-width: 48ch;
  color: var(--graphite);
  text-wrap: balance;
}

.tiles {
  margin-top: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--stone);
}
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform 1.2s var(--ease-out);
}
.tile::after {
  content: ''; position: absolute; inset: 45% 0 0;
  background: linear-gradient(to top, rgba(28, 6, 12, .6), rgba(28, 6, 12, 0));
  pointer-events: none;
}
.tile-label {
  position: absolute; left: 0; right: 0; bottom: clamp(20px, 3vw, 36px); z-index: 1;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: .02em;
}
.tile-label::after {
  content: ''; display: block; width: 28px; height: 1px; margin: 12px auto 0;
  background: var(--gold-soft);
  transition: width .6s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .tile:hover img { transform: scale(1.035); }
  .tile:hover .tile-label::after { width: 64px; }
}

/* ───── Secciones y títulos ───── */
.section {
  max-width: var(--page);
  margin: 0 auto;
  padding: var(--section) var(--gutter) 0;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -.015em;
  text-align: center;
  margin: 0 0 clamp(32px, 4vw, 48px);
  text-wrap: balance;
}

/* ───── Tarjeta de prenda ───── */
.card { display: flex; flex-direction: column; }
.card-hit {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--stone);
  text-align: left;
}
.card-hit img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease-out), opacity .5s var(--ease-out);
}
.card-hit img[data-loading] { opacity: 0; }
.card-peek {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; justify-content: center;
  min-height: 44px;
  background: rgba(251, 248, 244, .94);
  font-size: 13px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s var(--ease-out), transform .4s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover .card-hit img { transform: scale(1.04); }
  .card:hover .card-peek, .card-hit:focus-visible .card-peek { opacity: 1; transform: none; }
}
@media (hover: none) { .card-peek { display: none; } }

.card-body { padding-top: 14px; display: grid; gap: 2px; }
.card-name { font-size: 14px; font-weight: 400; line-height: 1.35; margin: 0; }
.card-detail { font-size: 13px; color: var(--graphite); margin: 0; }
.card-price { font-size: 14px; margin: 6px 0 0; font-variant-numeric: tabular-nums; }

/* ───── Fila deslizable: Elegidas de la casa ───── */
.rail-head {
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(28px, 3.5vw, 40px);
}
.rail-head .section-title { margin: 0; text-align: left; }
.rail-controls { display: flex; gap: 8px; }
.rail-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--smoke);
  transition: transform 160ms var(--ease-out), border-color .25s ease, opacity .25s ease;
}
.rail-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { .rail-btn:hover:not(:disabled) { border-color: var(--carbon); } }
.rail-btn:disabled { opacity: .35; cursor: default; }

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * var(--gap)) / 3.6);
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  /* la fila sangra hasta el borde derecho de la pantalla */
  margin-right: calc(var(--gutter) * -1);
  padding-right: var(--gutter);
}
.rail::-webkit-scrollbar { display: none; }
.rail > .card { scroll-snap-align: start; }
.rail.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.rail.is-dragging .card-hit { pointer-events: none; }

/* ───── Historia / visita ───── */
.story { background: var(--stone); padding: var(--section) 0; margin-top: var(--section); }
.story-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.story-media { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--smoke); }
.story-media img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 25%; }
.story-text .section-title { text-align: left; margin-bottom: 20px; }
.story-text > p { margin: 0 0 32px; max-width: 42ch; color: var(--graphite); }

/* Profundidad: la foto se desliza más lento que la página */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .story-media img {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}
@keyframes drift { from { transform: translateY(-6%); } to { transform: translateY(-12%); } }

.facts { margin: 0 0 32px; border-top: 1px solid var(--smoke); }
.facts div {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--smoke);
}
.facts dt { font-size: 13px; color: var(--graphite); }
.facts dd { margin: 0; }
.links { display: flex; flex-wrap: wrap; gap: 28px; margin: 0; }

/* ───── Catálogo ───── */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px var(--gap);
}

.catalog-bar {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 24px 48px;
  border-bottom: 1px solid var(--smoke);
  margin-bottom: 24px;
}

.filters { position: relative; display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  font-size: 13px;
  padding: 12px 0 14px;
  white-space: nowrap;
  color: var(--graphite);
  transition: color .25s ease, transform 160ms var(--ease-out);
}
.filter[aria-selected='true'] { color: var(--carbon); }
@media (hover: hover) and (pointer: fine) { .filter:hover { color: var(--carbon); } }
.filter-ink {
  position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--ruby);
  transition: transform .5s var(--ease-out), width .5s var(--ease-out);
}

.search {
  display: flex; align-items: center; gap: 10px;
  flex: 0 1 280px;
  border-bottom: 1px solid var(--ash);
  margin-bottom: -1px;
  padding: 10px 0;
  transition: border-color .25s ease;
}
.search:focus-within { border-color: var(--carbon); }
.search svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--graphite); stroke-width: 1.5; stroke-linecap: round; }
.search input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: none;
  font: 400 16px var(--font-ui);
  color: var(--carbon);
}
@media (min-width: 821px) { .search input { font-size: 13px; } }
.search input::placeholder { color: var(--graphite); }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }

.count { font-size: 13px; color: var(--graphite); margin: 0 0 24px; font-variant-numeric: tabular-nums; }

.empty { text-align: center; padding: 48px 0; color: var(--graphite); }
.more-wrap { text-align: center; margin-top: 56px; }
.more {
  font-size: 13px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--carbon);
}
@media (hover: hover) and (pointer: fine) { .more:hover { opacity: .6; } }
.more[hidden] { display: none; }

/* ───── Aparición al hacer scroll ───── */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal='up'] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .8s var(--ease-out), transform .9s var(--ease-out);
    transition-delay: var(--d, 0ms);
  }
  /* El recorte va en la imagen, no en el contenedor: así el observador siempre puede medirlo */
  .js [data-reveal='clip'] > img {
    clip-path: inset(100% 0 0 0);
    scale: 1.12;
    transition: clip-path 1.2s var(--ease-in-out), scale 1.6s var(--ease-out);
    transition-delay: var(--d, 0ms);
  }

  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-reveal].is-in > img { clip-path: inset(0 0 0 0); scale: 1; }
}

/* ───── Vista rápida ───── */
.qv {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent;
  color: var(--carbon);
  overflow: hidden;
}
.qv::backdrop { background: transparent; }
.qv-scrim {
  position: absolute; inset: 0;
  background: rgba(35, 12, 18, .42);
  opacity: 0;
  transition: opacity .25s ease;
}
.qv-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(940px, 94vw);
  background: var(--paper);
  transform: translateX(100%);
  transition: transform .26s var(--ease-out);
  display: flex; flex-direction: column;
  box-shadow: -24px 0 60px -30px rgba(35, 12, 18, .45);
}
.qv.is-open .qv-scrim { opacity: 1; transition-duration: .45s; }
.qv.is-open .qv-panel { transform: none; transition: transform .55s var(--ease-drawer); }

.qv-handle { display: none; }
.qv-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: rgba(251, 248, 244, .9);
}
.qv-close svg, .qv-step svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.qv-body {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: 1.05fr 1fr;
}
.qv-media { background: var(--stone); overflow: hidden; }
.qv-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.qv-info {
  display: flex; flex-direction: column;
  padding: clamp(56px, 7vw, 88px) clamp(24px, 3.5vw, 48px) 32px;
  overflow-y: auto;
}
.qv-swap { transition: opacity .18s ease, filter .18s ease; }
.qv.is-swapping .qv-swap { opacity: .2; filter: blur(2px); }

.qv-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 10px;
  text-wrap: balance;
}
.qv-detail { margin: 0; color: var(--graphite); }
.qv-price { margin: 20px 0 32px; font-size: 20px; font-variant-numeric: tabular-nums; }

.btn-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  background: var(--wine);
  color: var(--cream);
  font-size: 14px;
  letter-spacing: .02em;
  transition: transform 160ms var(--ease-out), background-color .25s ease;
}
.btn-wa svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
@media (hover: hover) and (pointer: fine) { .btn-wa:hover { background: var(--ruby); } }

.qv-note { margin: 16px 0 0; font-size: 13px; color: var(--graphite); max-width: 40ch; }
.qv-nav {
  margin-top: auto; padding-top: 32px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--smoke);
}
.qv-step { display: grid; place-items: center; width: 44px; height: 44px; }
.qv-pos { font-size: 13px; color: var(--graphite); font-variant-numeric: tabular-nums; }
.qv-lock { overflow: hidden; }

/* ───── Pie en vino ───── */
.site-footer {
  background: var(--wine);
  color: var(--cream);
  padding: clamp(56px, 8vw, 96px) var(--gutter) 32px;
  --gem-line: rgba(255, 255, 255, .25);
  --gem-spark: var(--gold-soft);
}
.catalog + .site-footer, main + .site-footer { margin-top: var(--section); }
.footer-top { text-align: center; }
.logo--footer .logo-gem { width: 48px; height: 45px; }
.logo--footer .logo-word { font-size: 56px; color: var(--gold-soft); }
.footer-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  margin: 16px 0 0;
  color: #d8c6c0;
}
.footer-cols {
  max-width: 880px;
  margin: 64px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  font-size: 14px;
}
.footer-cols h3 { font-size: 13px; font-weight: 400; color: var(--gold-soft); margin: 0 0 14px; }
.footer-cols p { margin: 0 0 10px; }
.footer-cols li { margin-bottom: 10px; }
.footer-cols a { text-decoration: underline; text-decoration-color: rgba(241, 228, 220, .35); text-underline-offset: 4px; transition: text-decoration-color .25s ease; }
@media (hover: hover) and (pointer: fine) { .footer-cols a:hover { text-decoration-color: currentColor; } }
.site-footer :focus-visible, .announce :focus-visible { outline-color: var(--gold-soft); }
.legal {
  max-width: 880px;
  margin: 64px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(241, 228, 220, .14);
  font-size: 12px;
  color: #b9a39d;
  text-align: center;
}

/* ───── Entrada del hero ───── */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .line > span { animation: rise 1.1s var(--ease-out) both; }
  .js .hero-title .line:nth-child(2) > span { animation-delay: .09s; }
  .js .hero-sub { animation: rise-soft 1s var(--ease-out) .35s both; }
  .js .tile { animation: unveil 1.3s var(--ease-in-out) both; }
  .js .tile:nth-child(1) { animation-delay: .25s; }
  .js .tile:nth-child(2) { animation-delay: .35s; }
  .js .tile:nth-child(3) { animation-delay: .45s; }
  .js .tile img { animation: settle 1.8s var(--ease-out) both; animation-delay: inherit; }
}
@keyframes rise { from { transform: translateY(105%); } }
@keyframes rise-soft { from { opacity: 0; transform: translateY(8px); } }
@keyframes unveil { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { scale: 1.12; } }

@media (prefers-reduced-motion: reduce) {
  .tile img, .card-hit img { transition: none; }
  .qv-panel, .qv.is-open .qv-panel { transition: none; }
}

/* ───── Responsivo ───── */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .rail { grid-auto-columns: calc((100% - 2 * var(--gap)) / 2.6); }
}

@media (max-width: 820px) {
  .nav-left { display: none; }
  .menu-btn { display: grid; }
  .nav-right [data-search-open], .nav-right .ig { display: none; }
  .site-header { padding-top: 12px; padding-bottom: 12px; }
  .logo-word { font-size: 28px; }
  .logo-gem { width: 32px; height: 30px; }
  .story-inner { grid-template-columns: 1fr; }

  /* Vista rápida como hoja inferior */
  .qv-panel {
    top: auto; left: 0; right: 0;
    width: 100%; height: 92dvh;
    transform: translateY(100%);
    box-shadow: 0 -24px 60px -30px rgba(35, 12, 18, .45);
  }
  .qv-handle {
    display: grid; place-items: center;
    position: absolute; top: 0; left: 0; right: 0; height: 28px; z-index: 2;
    touch-action: none;
  }
  .qv-handle span { width: 40px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
  .qv-body { display: block; overflow-y: auto; }
  .qv-media { height: 58dvh; }
  .qv-info { padding: 24px var(--gutter) 32px; overflow: visible; }
  .btn-wa { width: 100%; }
}

@media (max-width: 640px) {
  .announce { font-size: 12px; }
  .announce .hide-sm { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 32px 12px; }
  .rail { grid-auto-columns: 62%; gap: 12px; }
  .rail-controls { display: none; }
  .rail-head .section-title { text-align: left; }
  .catalog-bar { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
  .search { flex-basis: auto; }
  .filters { margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .footer-cols { grid-template-columns: 1fr; text-align: center; gap: 36px; }
}

.nowrap { white-space: nowrap; }
