/* =====================================================================
   Blancos La Marqueza — estilos (rediseño 2026-10)
   Dirección: interfaz neutra estilo tienda de hogar europea. El producto
   pone el color; la interfaz solo ordena. Una tipografía (Jost), formas
   rectas. Animaciones al final del archivo (sección ANIMACIONES): solo
   activas con la clase .fx (fx-init.js) y apagadas con "reducir movimiento".

   REGLA DEL DUEÑO — FOTOS: se muestran completas y SIN ALTERAR.
   Sin recortes (object-fit: contain), sin filtros, sin capas encima,
   sin acercamientos ni transformaciones. No cambiar esta regla.
   ===================================================================== */

:root {
  --bg: #ffffff;
  --bg-2: #f5f4f1;          /* fondo neutro detrás de las fotos */
  --ink: #14232b;           /* tinta: el azul marino de la marca casi negro */
  --ink-2: #545b60;
  --ink-3: #80868a;
  --line: #e5e2dc;
  --accent: #a8865a;        /* dorado del logo, solo para detalles */
  --gold-light: #c8a574;    /* dorado claro del sitio anterior, para texto sobre fondo oscuro */
  --out: #8f3b2e;           /* texto "agotado" */
  --wa: #25d366;
  --f: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1360px;
  --gut: clamp(16px, 4vw, 40px);
  --header-h: 70px;
}
@media (min-width: 1000px) { :root { --header-h: 88px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--f);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .25s ease; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; }
p, ul, dl { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.muted { color: var(--ink-3); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 400; background: #fff; padding: 10px 14px; }
.skip:focus { left: 16px; }

/* ---------- Fotos (ver REGLA arriba) ---------- */
.media {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-2);
  overflow: hidden;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 28px;
  border: 1px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink);
  font-size: 14px; letter-spacing: 0.02em;
  cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease,
              transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease;
}
/* Destello que cruza el botón al pasar el cursor */
.btn::after {
  content: ""; position: absolute; top: 0; left: -80%; z-index: -1;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-20deg);
  transition: left .75s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.btn:hover::after { left: 130%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; border-color: #000; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.link-arrow {
  display: inline-block; font-size: 14px;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: color .3s ease;
}
.link-arrow::after {
  content: "\2192"; display: inline-block; margin-left: .35em;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover::after { transform: translateX(4px); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--ink); color: #fff; font-size: 14px; letter-spacing: 0.02em; }
.topbar p { display: flex; justify-content: center; gap: 12px; padding: 9px var(--gut); text-align: center; }
.topbar .sep { opacity: .5; }
@media (max-width: 699px) { .topbar .hide-sm { display: none; } }

/* ---------- Encabezado ---------- */
.header {
  position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line);
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, background-color .35s ease;
}
.header-in {
  position: relative;
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px;
  height: var(--header-h);
}
.brand { justify-self: center; display: block; }
.brand img { height: 46px; width: auto; transition: height .35s ease; }
.menu-btn, .icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink);
}
.menu-btn svg, .icon-btn svg { width: 22px; height: 22px; }
.header-actions { display: flex; gap: 2px; }
.nav-links { display: none; }
.nav-links.open {
  display: flex; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;   /* ocupa el ancho de la pantalla sin salirse */
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 8px var(--gut) 20px;
}
.nav-links.open a { padding: 12px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
.nav-links.open a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
@media (min-width: 1000px) {
  .header-in { grid-template-columns: auto 1fr auto; gap: 40px; }
  .menu-btn { display: none; }
  .brand { justify-self: start; }
  .brand img { height: 64px; }
  .header.is-scrolled .brand img { height: 52px; }
  /* Menú: 16px en pantallas de 1000px, hasta 18px en pantallas grandes */
  .nav-links { display: flex; gap: 28px; font-size: clamp(16px, 1.25vw, 18px); }
  /* Subrayado que crece de izquierda a derecha */
  .nav-links a { position: relative; padding: 4px 0; }
  .nav-links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: currentColor; transform: scaleX(0); transform-origin: right center;
    transition: transform .45s cubic-bezier(.2,.7,.2,1);
  }
  .nav-links a:hover::after { transform: scaleX(1); transform-origin: left center; }
}
.header.is-scrolled { box-shadow: 0 8px 24px -20px rgba(20, 35, 43, .55); }
/* Vidrio esmerilado al bajar (el sitio anterior lo tenía en azul; aquí en blanco) */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .header.is-scrolled {
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  }
}

/* ---------- Portada ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 96px); }
.hero-in { display: grid; gap: 32px; }
@media (min-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
}
.hero h1 {
  font-size: clamp(38px, 4.4vw, 64px);
  font-weight: 300; line-height: 1.04; letter-spacing: -0.03em;
}
.hero-lead { margin-top: 20px; max-width: 32em; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 32px; }
.hero-meta { margin-top: 28px; font-size: 13px; color: var(--ink-3); }
.hero-figure { margin: 0; }
.hero-cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.hero-cap a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Secciones ---------- */
.section { padding: clamp(48px, 7vw, 104px) 0; border-top: 1px solid var(--line); }
/* Al llegar por enlace (#catalogo, ?categoria=…) el título queda justo debajo del encabezado */
.section[id] { scroll-margin-top: calc(-1 * clamp(48px, 7vw, 104px) + 8px); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px 16px; margin-bottom: 28px;
}
.section h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 300; letter-spacing: -0.02em; }

/* ---------- Categorías: "Nuestras líneas" (la galería del sitio anterior) ----------
   Tarjetas oscuras como antes, pero la foto va COMPLETA sobre fondo claro: sin recorte,
   sin degradado encima y sin acercamiento dentro del marco (regla del dueño). */
.eyebrow { margin-bottom: 10px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.section h2 em { font-style: normal; color: var(--accent); }
.lines-head { align-items: flex-end; gap: 18px 48px; }
.lines-title { max-width: 640px; }
.lines-side { display: grid; justify-items: start; gap: 12px; max-width: 30em; }
.section-lead { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.cat-rail {
  list-style: none; margin: 0; padding: 0 0 6px;
  display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.cat-rail::-webkit-scrollbar { display: none; }
.cat-rail > li { flex: 0 0 78%; scroll-snap-align: start; }
@media (min-width: 600px) { .cat-rail > li { flex-basis: 44%; } }
@media (min-width: 1000px) { .cat-rail > li { flex-basis: 30%; } }
.line-card {
  display: flex; flex-direction: column; height: 100%;
  padding: 10px; border-radius: 18px; background: var(--ink); color: #f8f4ee;
  transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s ease;
}
.line-info { display: grid; justify-items: start; gap: 4px; padding: 18px 12px 12px; }
.line-eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }
.line-name { font-size: clamp(24px, 2.2vw, 32px); font-weight: 300; line-height: 1.12; letter-spacing: -0.01em; transition: letter-spacing .45s ease; }
.line-count { font-size: 13px; color: rgba(248, 244, 238, .62); }
.line-cta {
  margin-top: 12px; padding: 8px 20px; border: 1px solid rgba(200, 165, 116, .55); border-radius: 100px;
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
@media (hover: hover) {
  .line-card:hover { transform: translate3d(0, -6px, 0); box-shadow: 0 26px 40px -26px rgba(20, 35, 43, .65); }
  .line-card:hover .line-name { letter-spacing: .02em; }
  .line-card:hover .line-cta { background: var(--gold-light); border-color: var(--gold-light); color: var(--ink); }
}
.rail-hint { display: none; margin-top: 14px; text-align: center; font-size: 12.5px; letter-spacing: .04em; color: var(--ink-3); }
@media (max-width: 999px) { .rail-hint { display: block; } }

/* Acercamiento al pasar el cursor en productos: crece la TARJETA COMPLETA (marco y foto juntos,
   en la misma proporción). La foto se sigue viendo entera: no se recorta ni se deforma. */
.card .media {
  transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s ease;
}
@media (hover: hover) {
  .card:hover .media {
    transform: translate3d(0, -4px, 0) scale(1.035);
    box-shadow: 0 20px 34px -22px rgba(20, 35, 43, .5);
  }
}

/* ---------- Tarjeta de producto ---------- */
.card { display: block; cursor: pointer; }
.card-info { display: grid; gap: 2px; margin-top: 10px; }
.card-tag { font-size: 11.5px; color: var(--accent); letter-spacing: 0.04em; }
.card-name {
  font-size: 13.5px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.card-price { font-size: 13.5px; font-weight: 500; }
.card-more {
  font-size: 12px; color: var(--ink-2); white-space: nowrap;
  opacity: 0; transform: translateX(-6px);
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.7,.2,1);
}
.card-more::after { content: " \2192"; }
.card:hover .card-more { opacity: 1; transform: none; }
@media (hover: none) { .card-more { display: none; } }
.card-stock { font-size: 12px; color: var(--out); }
.card:hover .card-name { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* Recién llegados: el nombre se abre un poco al pasar el cursor (como la galería del sitio anterior) */
@media (hover: hover) {
  .rail .card-name { transition: letter-spacing .45s ease; }
  .rail .card:hover .card-name { letter-spacing: .02em; }
}

/* ---------- Recién llegados ---------- */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-bottom: 4px;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 700px) { .rail { grid-auto-columns: 30%; } }
@media (min-width: 1000px) {
  .rail { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; gap: 44px 20px; }
}

/* ---------- Catálogo ---------- */
.toolbar { display: grid; gap: 14px; }
@media (min-width: 900px) { .toolbar { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; } }
.search { position: relative; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--ink); padding: 8px 0; }
/* Línea dorada que se dibuja al escribir */
.search::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left center;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.search:focus-within::after { transform: scaleX(1); }
.search svg { width: 18px; height: 18px; flex: none; color: var(--ink-2); }
.search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 16px; padding: 2px 0; }
.search input::placeholder { color: var(--ink-3); }
.search:focus-within { border-bottom-color: var(--accent); }
.toolbar-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.avail { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.avail input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.sort select { border: 0; background: transparent; font-size: 14px; padding: 6px 2px; cursor: pointer; }

.tabs {
  position: relative;
  display: flex; gap: 26px; margin-top: 28px;
  overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 12px 0; margin-bottom: -1px;
  background: none; border: 0; border-bottom: 2px solid transparent;
  font-size: 14px; color: var(--ink-2); white-space: nowrap; cursor: pointer;
  transition: color .25s ease;
}
.tab:hover { color: var(--ink); }
.tab[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tab-ink { display: none; }

.chips { display: flex; gap: 8px; padding: 16px 0 4px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 38px; padding: 0 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 0;
  font-size: 13px; white-space: nowrap; cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.count { margin: 14px 0 22px; font-size: 13px; color: var(--ink-3); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 20px; } }
.empty { padding: 56px 0; text-align: center; color: var(--ink-2); }
.more { display: flex; justify-content: center; margin-top: 48px; }
.noscript-note { padding: 24px 0; color: var(--ink-2); }

/* ---------- Nuestra historia ---------- */
.about-in { display: grid; gap: 20px; }
@media (min-width: 900px) { .about-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }
.about-text p { max-width: 40em; font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.about-text p + p { margin-top: 14px; }
.about-text .sign { margin-top: 22px; color: var(--ink); }

/* ---------- Tienda ---------- */
.store-in { display: grid; gap: 36px; }
@media (min-width: 900px) { .store-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }
.store-address { margin-top: 18px; font-size: 16px; line-height: 1.6; }
.store-info .link-arrow { margin-top: 12px; }
.store-info h3 {
  margin: 30px 0 10px;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
}
.hours { display: grid; grid-template-columns: max-content 1fr; gap: 6px 28px; font-size: 14px; }
.hours dt { color: var(--ink-2); }
.hours dd { margin: 0; }
.store-contact { display: grid; gap: 6px; font-size: 14px; }
.store-contact a:hover, .store-note a:hover { text-decoration: underline; text-underline-offset: 3px; }
.store-note { margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.store-map iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; background: var(--bg-2); }

/* ---------- Pie ---------- */
.footer { background: var(--bg-2); padding: 56px 0 24px; font-size: 14px; }
/* Celular: espacio abajo para que el botón de WhatsApp no tape la última línea */
@media (max-width: 699px) { .footer { padding-bottom: 96px; } }
.footer-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .footer-in { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}
.footer-brand img { height: 44px; width: auto; }
.footer-brand p { margin-top: 14px; max-width: 26em; color: var(--ink-2); }
.footer h3 { margin-bottom: 12px; font-size: 13px; font-weight: 500; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 8px; color: var(--ink-2); }
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* Enlaces del pie: se elevan al pasar el cursor (como los botones de redes del sitio anterior) */
.footer li a { display: inline-block; transition: color .25s ease, transform .3s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) { .footer li a:hover { transform: translate3d(0, -3px, 0); } }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-3);
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.wa-float:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .24); transform: scale(1.08); }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- Ficha de producto ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(20, 35, 43, .45);
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.modal-backdrop.open { opacity: 1; visibility: visible; transition: opacity .2s ease, visibility 0s; }
/* En celular la ficha es un bloque normal (foto arriba, datos abajo). Si fuera "grid", con
   descripciones largas el renglón de la foto se encogía y los datos quedaban debajo de ella. */
.modal {
  position: relative; width: 100%; max-height: 92vh; overflow: auto;
  display: block; background: #fff;
}
@media (min-width: 900px) {
  .modal-backdrop { align-items: center; padding: 24px; }
  .modal { display: grid; max-width: 1040px; max-height: 88vh; grid-template-columns: 1fr 1fr; }
}
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); cursor: pointer;
}
.modal-close svg { width: 18px; height: 18px; }
.modal-close:hover { border-color: var(--ink); }
.modal-body { display: grid; gap: 10px; align-content: start; padding: 26px 22px 32px; }
@media (min-width: 900px) { .modal-body { padding: 52px 44px 44px; } }
.modal-cat { font-size: 13px; color: var(--ink-3); }
.modal-name { font-size: clamp(22px, 2.4vw, 30px); font-weight: 300; line-height: 1.2; letter-spacing: -0.015em; }
.modal-price { font-size: 20px; }
.modal-stock { font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.modal-stock.out { color: var(--out); }
.modal-note { font-size: 12.5px; color: var(--ink-3); }
.modal-desc {
  margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 14px; line-height: 1.7; color: var(--ink-2); white-space: pre-line;
}

/* ---------- Páginas legales ---------- */
.header-simple { display: flex; justify-content: space-between; align-items: center; }
.header-simple .brand { justify-self: auto; }
.legal { max-width: 760px; padding-top: clamp(32px, 5vw, 64px); padding-bottom: 80px; }
.legal h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 300; letter-spacing: -0.02em; }
.legal .updated { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.legal h2 { margin-top: 40px; font-size: 19px; font-weight: 500; letter-spacing: 0; }
.legal p, .legal li { margin-top: 12px; font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.legal ul { padding-left: 20px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Banda de categorías (marquesina) ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); padding: clamp(14px, 2vw, 22px) 0; }
.marquee-track { display: flex; width: max-content; }
.mq-group { display: flex; align-items: center; flex: none; }
.mq-group a {
  padding: 0 clamp(14px, 1.8vw, 26px);
  font-size: clamp(20px, 2.6vw, 34px); font-weight: 300; letter-spacing: -0.01em; white-space: nowrap;
  transition: color .3s ease;
}
.mq-group a:hover { color: var(--accent); }
.mq-dot { color: var(--accent); font-size: clamp(11px, 1vw, 14px); }

/* ---------- Recién llegados: estructura base (la versión fija es una animación) ---------- */
.pin, .pin-sticky { display: block; }

/* =====================================================================
   ANIMACIONES
   .fx       → la puso fx-init.js en <head>: entrada de portada y fotos (CSS puro).
   .fx-ready → la puso animaciones.js: revelados al bajar (si ese archivo falla,
               nada se queda oculto).
   Nada escala, recorta, filtra ni cubre las fotos: solo se mueven o aparecen
   bloques completos, y en reposo todo queda tal cual.
   ===================================================================== */

@keyframes fx-up      { from { opacity: 0; transform: translate3d(0, 26px, 0); } }
@keyframes fx-fade    { from { opacity: 0; } }
@keyframes fx-rise    { from { transform: translate3d(0, 108%, 0); } }
@keyframes fx-drop    { from { transform: translate3d(0, -100%, 0); } }
@keyframes fx-curtain { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fx-sheen   { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@keyframes fx-marquee { to { transform: translate3d(-50%, 0, 0); } }
@keyframes fx-shimmer { to { background-position: -200% 0; } }
@keyframes fx-pop     { from { opacity: 0; transform: translate3d(0, 24px, 0) scale(.6); } }
@keyframes fx-ring    { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45); } 55%, 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } }
/* Tomadas de páginas de referencia (revisadas el 2026-10-13):
   fx-ribbon  ← apple.com/mx "ribbon-drop"            (la cinta superior baja al cargar)
   fx-link-in ← apple.com/mx "link-in"                (enlaces del pie entran uno por uno)
   fx-swipe   ← zarahome.com/mx "carouselSwipeHint"   (la fila se asoma 28px: "desliza")
   fx-peek    ← zarahome.com/mx "scrollHintTranslate" (la ficha se asoma 30px: "hay más abajo")
   fx-swipe y fx-peek usan la propiedad "translate", que se suma al movimiento que ya tenga
   cada bloque (revelado, línea de pestañas) en vez de reemplazarlo. */
@keyframes fx-ribbon  { from { transform: translate3d(0, -100%, 0); } }
@keyframes fx-link-in { from { opacity: 0; transform: translate3d(0, -4px, 0); } }
@keyframes fx-swipe   { 40%, 60% { translate: -28px 0; } }
@keyframes fx-peek    { 40%, 60% { translate: 0 -30px; } }

/* Fotos: aparecen suave al cargar, con un brillo de carga detrás mientras llegan */
.fx .media img { opacity: 0; transition: opacity .7s ease; }
.fx .media img.is-loaded { opacity: 1; }
.fx .media:has(img:not(.is-loaded)) {
  background-image: linear-gradient(110deg, var(--bg-2) 30%, #fbfaf8 45%, var(--bg-2) 60%);
  background-size: 200% 100%;
  animation: fx-shimmer 1.4s linear infinite;
}

/* Cinta superior: baja al cargar (como la cinta de avisos de Apple) */
.fx .topbar { overflow: hidden; }
.fx .topbar-in { animation: fx-ribbon .8s ease-in-out backwards; }

/* Encabezado: baja al cargar; se esconde al bajar y regresa al subir */
.fx .header { animation: fx-drop .8s cubic-bezier(.2,.7,.2,1) .05s backwards; }
.fx .header.is-hidden { transform: translate3d(0, -101%, 0); }

/* Portada: palabras que suben, texto escalonado y la foto se descubre como cortina */
.hero h1 em { font-style: normal; }
.fx .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em 0 .12em; margin: -.06em 0 -.12em; }
.fx .split .wi { display: inline-block; animation: fx-rise 1.1s cubic-bezier(.2,.75,.15,1) backwards; animation-delay: calc(var(--wd, 0) * 90ms + 150ms); }
.fx .hero h1 em {
  background: linear-gradient(100deg, var(--ink) 35%, var(--accent) 50%, var(--ink) 65%);
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: fx-sheen 7s ease-in-out 1.8s infinite;
}
.fx .hero-lead    { animation: fx-up .9s cubic-bezier(.2,.7,.2,1) .45s backwards; }
.fx .hero-actions { animation: fx-up .9s cubic-bezier(.2,.7,.2,1) .6s backwards; }
.fx .hero-meta    { animation: fx-up .9s cubic-bezier(.2,.7,.2,1) .75s backwards; }
.fx .hero-figure .media { animation: fx-curtain 1.3s cubic-bezier(.77,0,.18,1) .2s backwards; }
.fx .hero-figure { transform-origin: 50% 0; will-change: transform; }
.fx .hero-cap     { animation: fx-fade 1s ease 1.2s backwards; }

/* Marquesina en movimiento continuo (se detiene al pasar el cursor) */
.fx .marquee-track { animation: fx-marquee 42s linear infinite; will-change: transform; }
.fx .marquee:hover .marquee-track { animation-play-state: paused; }

/* Barra de progreso de lectura */
.scroll-bar { display: none; }
.fx-ready .scroll-bar {
  display: block; position: fixed; top: 0; left: 0; z-index: 500;
  width: 100%; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%;
}

/* Barra superior: en celular los avisos se turnan */
@media (max-width: 699px) {
  .fx-ready .topbar-in { display: grid; }
  .fx-ready .topbar .sep { display: none; }
  .fx-ready .topbar .tb-msg, .fx-ready .topbar .tb-msg.hide-sm {
    display: block; grid-area: 1 / 1;
    opacity: 0; transform: translate3d(0, 6px, 0);
    transition: opacity .5s ease, transform .5s ease;
  }
  .fx-ready .topbar .tb-msg.is-active { opacity: 1; transform: none; }
}

/* Revelado al bajar: bloques que suben y aparecen, títulos palabra por palabra */
.fx-ready [data-reveal] {
  opacity: 0; transform: translate3d(0, 30px, 0);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .9s cubic-bezier(.2,.7,.2,1) var(--d, 0ms);
}
.fx-ready [data-reveal="fade"] { transform: none; }
.fx-ready [data-reveal].is-in { opacity: 1; transform: none; }
.fx-ready [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em 0 .14em; margin: -.08em 0 -.14em; }
.fx-ready [data-split] .wi {
  display: inline-block; transform: translate3d(0, 110%, 0);
  transition: transform 1s cubic-bezier(.2,.75,.15,1) calc(var(--wd, 0) * 80ms + 80ms);
}
.fx-ready [data-split].is-in .wi { transform: none; }

/* Líneas de sección que se dibujan de izquierda a derecha */
.fx-ready .section { position: relative; border-top-color: transparent; }
.fx-ready .section::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: var(--line); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1);
}
.fx-ready .section.is-in::before { transform: scaleX(1); }

/* "Nuestra historia": las palabras se encienden al bajar */
.fx-ready [data-words] .wd { color: #cdc8c0; transition: color .45s ease; }
.fx-ready [data-words] .wd.is-lit { color: var(--ink-2); }

/* Catálogo: las tarjetas entran escalonadas al filtrar y al cargar más */
.fx .grid .card { animation: fx-up .7s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
/* Orden de entrada por atributo (data-i / data-wd): la CSP no permite style="" en línea */
.card[data-i="1"] { --i: 1; }  .card[data-i="2"] { --i: 2; }  .card[data-i="3"] { --i: 3; }
.card[data-i="4"] { --i: 4; }  .card[data-i="5"] { --i: 5; }  .card[data-i="6"] { --i: 6; }
.card[data-i="7"] { --i: 7; }  .card[data-i="8"] { --i: 8; }  .card[data-i="9"] { --i: 9; }
.card[data-i="10"] { --i: 10; } .card[data-i="11"] { --i: 11; }
.wi[data-wd="1"] { --wd: 1; } .wi[data-wd="2"] { --wd: 2; } .wi[data-wd="3"] { --wd: 3; }
.wi[data-wd="4"] { --wd: 4; } .wi[data-wd="5"] { --wd: 5; } .wi[data-wd="6"] { --wd: 6; }
.wi[data-wd="7"] { --wd: 7; } .wi[data-wd="8"] { --wd: 8; } .wi[data-wd="9"] { --wd: 9; }

/* Pestañas de categoría: línea que se desliza a la elegida */
.fx .tab[aria-pressed="true"] { border-bottom-color: transparent; }
.fx .tab-ink {
  display: block; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--ink); pointer-events: none;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), width .5s cubic-bezier(.2,.7,.2,1);
}

/* Menú en celular: las opciones entran una por una */
.fx .nav-links.open a { animation: fx-up .5s cubic-bezier(.2,.7,.2,1) backwards; }
.fx .nav-links.open a:nth-child(2) { animation-delay: 40ms; }
.fx .nav-links.open a:nth-child(3) { animation-delay: 80ms; }
.fx .nav-links.open a:nth-child(4) { animation-delay: 120ms; }
.fx .nav-links.open a:nth-child(5) { animation-delay: 160ms; }
.fx .nav-links.open a:nth-child(6) { animation-delay: 200ms; }
.fx .nav-links.open a:nth-child(7) { animation-delay: 240ms; }

/* Botones: se elevan al pasar el cursor; los "magnéticos" siguen al cursor (animaciones.js) */
@media (hover: hover) {
  .fx .btn:hover { transform: translate3d(0, -2px, 0); box-shadow: 0 10px 22px -16px rgba(20, 35, 43, .7); }
}
.fx [data-magnetic] { transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease, background-color .25s ease, color .25s ease; }

/* WhatsApp: aparece con un pequeño salto y late suavemente */
.fx .wa-float { animation: fx-pop .7s cubic-bezier(.2,1.4,.4,1) 1.4s backwards; }
.fx .wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  animation: fx-ring 3.4s ease-out 2.6s infinite; pointer-events: none;
}

/* Ficha de producto: sube desde abajo y su contenido entra escalonado */
.fx .modal { transform: translate3d(0, 100%, 0); transition: transform .55s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 900px) { .fx .modal { transform: translate3d(0, 40px, 0) scale(.97); } }
.fx .modal-backdrop.open .modal { transform: none; }
.fx .modal-backdrop.open .modal-body > * { animation: fx-up .6s cubic-bezier(.2,.7,.2,1) backwards; }
.fx .modal-backdrop.open .modal-body > :nth-child(1) { animation-delay: 120ms; }
.fx .modal-backdrop.open .modal-body > :nth-child(2) { animation-delay: 160ms; }
.fx .modal-backdrop.open .modal-body > :nth-child(3) { animation-delay: 200ms; }
.fx .modal-backdrop.open .modal-body > :nth-child(4) { animation-delay: 240ms; }
.fx .modal-backdrop.open .modal-body > :nth-child(5) { animation-delay: 280ms; }
.fx .modal-backdrop.open .modal-body > :nth-child(6) { animation-delay: 320ms; }
.fx .modal-backdrop.open .modal-body > :nth-child(7) { animation-delay: 360ms; }

/* Pie de página: después de su columna, cada enlace entra uno por uno */
.fx-ready .footer [data-reveal].is-in li {
  animation: fx-link-in .6s ease backwards;
  animation-delay: calc(var(--d, 0ms) + 250ms + var(--n, 0) * 60ms);
}
.footer li:nth-child(2) { --n: 1; }
.footer li:nth-child(3) { --n: 2; }
.footer li:nth-child(4) { --n: 3; }
.footer li:nth-child(5) { --n: 4; }

/* Filas que se deslizan de lado (celular): se asoman una vez para invitar a deslizar.
   Se mueven las tarjetas completas; la foto no se toca. */
.fx-ready .swipe-hint > * { animation: fx-swipe 1.2s ease-in-out; }

/* Ficha en celular: la primera vez, el contenido se asoma hacia arriba y regresa */
.fx-ready .modal.scroll-hint > :not(.modal-close) { animation: fx-peek 1s ease-in-out; }

/* Categorías (escritorio): la sección se fija y las líneas pasan de lado al bajar, como en el
   sitio anterior. La altura de la foto se ajusta a la pantalla; la foto sigue completa. */
@media (min-width: 1000px) {
  .fx-ready #categorias.has-pin { padding: 0; }
  .fx-ready .pin.is-pinned { height: var(--pin-h); }
  .fx-ready .pin.is-pinned .pin-sticky {
    position: sticky; top: 0; height: 100vh; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center;
    padding-top: var(--header-h);
  }
  .fx-ready .pin.is-pinned .cat-rail { overflow: visible; scroll-snap-type: none; gap: 20px; will-change: transform; }
  .fx-ready .pin.is-pinned .cat-rail > li { flex: 0 0 clamp(300px, 30vw, 460px); }
  .fx-ready .pin.is-pinned .line-card .media { aspect-ratio: auto; height: clamp(200px, calc(100vh - var(--header-h) - 420px), 430px); }
  .fx-ready .pin.is-pinned .rail-hint { display: none; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
