/* ==========================================================================
   Maison de Luxe · Sistema de diseño
   Tipografía: Bodoni Moda (display, didona editorial) + Geist (texto) + Geist Mono (tallas / precios)
   Paleta: papel frío + tinta casi negra + un solo acento de temporada (oliva)
   Formas: todo recto (radio 0). Los círculos solo existen donde el objeto es literalmente
   una ficha redonda: swatches de color, badge del carrito y monogramas de reseñas.
   ========================================================================== */

:root {
  /* Color */
  --paper: #F4F3EE;
  --paper-2: #EAE8E1;
  --paper-3: #E0DDD4;
  --ink: #1D1D1B;
  --ink-2: #57564F;
  --ink-3: #8A887F;
  --line: #D8D5CC;
  --accent: #5A5B3A;        /* Oliva de temporada */
  --accent-hover: #494A2D;
  --accent-soft: #E4E3D3;
  --on-accent: #F4F3EE;
  --scrim: rgba(29, 29, 27, 0.42);

  /* Tipografía */
  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-sans: "Geist", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-h2: clamp(2.1rem, 3.7vw, 3.5rem);
  /* El hero escala por ancho Y por alto: en laptops de poca altura no se desborda */
  --fs-hero: clamp(2.6rem, min(6.4vw, 11.5vh), 5.75rem);

  /* Espaciado */
  --gutter: clamp(1rem, 4vw, 3rem);
  --section: clamp(4.5rem, 8.5vw, 8.5rem);
  --header-h: 64px;

  /* Movimiento */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Capas */
  --z-header: 50;
  --z-menu: 45;
  --z-overlay: 80;
  --z-dialog: 90;
}

@media (min-width: 1024px) {
  :root { --header-h: 72px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

html.is-locked { overflow: hidden; }
html.is-locked body { padding-right: var(--sbw, 0px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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; -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; margin: 0; padding: 0; }
figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, p { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
[hidden] { display: none !important; }

svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: .75rem 1rem; font-size: var(--fs-sm);
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}
.section-title em, .hero-title em, .lookbook-title em, .newsletter-title em, .logo em {
  font-style: italic;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 50px; padding: 0 1.9rem;
  font-family: var(--font-sans); font-size: .8125rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent); }
  .btn-outline:hover { background: var(--ink); color: var(--paper); }
  .btn-light:hover { background: var(--ink); color: var(--paper); }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-sm); font-weight: 500; letter-spacing: .04em;
  padding-block: .5rem;
  border-bottom: 1px solid currentColor;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover svg { transform: translateX(4px); }
}

.icon-btn {
  position: relative;
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  transition: transform 160ms var(--ease-out), opacity 200ms ease;
}
.icon-btn:active { transform: scale(0.94); }

/* ==========================================================================
   1. HEADER
   ========================================================================== */
.header-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 80px; pointer-events: none; }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  height: var(--header-h);
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 300ms ease, border-color 300ms ease;
}
.site-header.is-solid {
  background-color: rgba(244, 243, 238, 0.98);
  border-bottom-color: var(--line);
}
/* El blur del header se recalcula en cada frame de scroll: en móvil (GPU limitada) se usa fondo sólido */
@media (hover: hover) and (pointer: fine) {
  .site-header.is-solid {
    background-color: rgba(244, 243, 238, 0.92);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    backdrop-filter: saturate(140%) blur(10px);
  }
}
.header-inner {
  height: 100%;
  max-width: 1400px; margin-inline: auto; padding-inline: calc(var(--gutter) - 10px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  line-height: 1;
}
.header-inner .logo { justify-self: center; }
.main-nav { display: none; }
.header-actions { justify-self: end; display: flex; align-items: center; }
.menu-toggle { justify-self: start; }

.cart-badge {
  position: absolute; top: 5px; right: 3px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-mono); font-size: 10px; line-height: 17px; text-align: center;
  transform: scale(0.6); opacity: 0;
  transition: transform 260ms var(--ease-out), opacity 200ms ease;
}
.cart-badge.has-items { transform: scale(1); opacity: 1; }
.cart-badge.bump { animation: bump 380ms var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }

@media (min-width: 1024px) {
  .header-inner { grid-template-columns: auto 1fr auto; gap: 2rem; padding-inline: var(--gutter); }
  .header-inner .logo { justify-self: start; font-size: 1.5rem; }
  .menu-toggle { display: none; }
  .main-nav { display: block; justify-self: center; }
  .main-nav ul { display: flex; gap: 2.25rem; }
  .main-nav a {
    position: relative; font-size: var(--fs-sm); letter-spacing: .02em; padding-block: .5rem;
  }
  .main-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: right; transition: transform 300ms var(--ease-out);
  }
  .main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
}

/* Menú móvil */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--paper);
  padding: calc(var(--header-h) + 2.5rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden;
  transition: opacity 250ms ease, visibility 0s linear 250ms;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity 300ms ease, visibility 0s; }
.mobile-menu li { overflow: hidden; }
.mobile-menu a {
  display: block; font-family: var(--font-display); font-size: 2.5rem; line-height: 1.25;
  transform: translateY(100%); transition: transform 500ms var(--ease-out);
}
.mobile-menu.is-open a { transform: none; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: 40ms; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: 80ms; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: 120ms; }
.mobile-menu.is-open li:nth-child(5) a { transition-delay: 160ms; }
.mobile-menu-foot { font-size: var(--fs-sm); color: var(--ink-2); }
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* ==========================================================================
   2. HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  /*
    --hero-h se fija en px UNA sola vez (script en <head>) y solo cambia si cambia el ANCHO.
    Así, cuando la barra del navegador móvil se oculta/aparece al hacer scroll, el hero no
    cambia de alto y la foto no se reescala (antes se percibía como un "zoom").
  */
  min-height: var(--hero-h, 100svh);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper-2);
}
.hero-media, .hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-media { z-index: -2; }
.hero-media img { object-fit: cover; object-position: 50% 20%; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(244, 243, 238, 0.96) 0%, rgba(244, 243, 238, 0.86) 32%, rgba(244, 243, 238, 0) 62%);
}
.hero-content {
  padding-bottom: clamp(2.5rem, 8vh, 4.5rem);
  padding-top: calc(var(--header-h) + 2rem);
}
.hero-eyebrow { margin-bottom: 1rem; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-hero);
  line-height: 1.02;
  letter-spacing: -0.025em;
  padding-bottom: .08em; /* reserva para el descendente de la "q" en itálica */
}
.hero-sub {
  margin: 1.1rem 0 1.9rem;
  max-width: 30ch;
  color: var(--ink-2);
  font-size: var(--fs-base);
}

/* Entrada del hero: solo el texto, sin zoom en la imagen */
.js .hero-content > * {
  opacity: 0; transform: translateY(16px);
  animation: heroIn 900ms var(--ease-out) forwards;
}
.js .hero-content > *:nth-child(2) { animation-delay: 90ms; }
.js .hero-content > *:nth-child(3) { animation-delay: 180ms; }
.js .hero-content > *:nth-child(4) { animation-delay: 270ms; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

@media (min-width: 768px) {
  /*
    Escritorio: el hero mide exactamente el alto visible (sin mínimo fijo) y la foto se
    ancla a la derecha con altura = alto del hero y ancho proporcional. Así la modelo
    nunca se corta arriba/abajo en pantallas anchas y bajas (laptops 1366×768); si sobra
    espacio a la izquierda lo rellena el tono del muro de la foto con un fundido.
  */
  .hero {
    align-items: center;
    height: 100vh; height: 100svh; height: var(--hero-h, 100svh);
    min-height: 520px; max-height: 1100px;
    background: linear-gradient(to bottom, #E8E0D5 0%, #EAE2D7 55%, #E4DACC 72%, #E1D4C3 100%);
  }
  .hero-media img {
    left: auto; right: 0;
    width: auto; height: 100%; max-width: none;
    aspect-ratio: 16 / 10;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%);
    mask-image: linear-gradient(to right, transparent 0, #000 12%);
  }
  .hero-scrim { background: linear-gradient(to right, rgba(244, 243, 238, 0.7) 0%, rgba(244, 243, 238, 0.35) 38%, rgba(244, 243, 238, 0) 60%); }
  .hero-content { padding-top: var(--header-h); padding-bottom: 0; }
  .hero-sub { font-size: var(--fs-lg); max-width: 34ch; }
}

/* ==========================================================================
   3. MARQUEE
   ========================================================================== */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: 1rem;
  background: var(--paper);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee-group { display: flex; flex-shrink: 0; }
.marquee-group li {
  display: flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem;
  font-family: var(--font-mono); font-size: var(--fs-xs);
  letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
.marquee-group li::after {
  content: ""; width: 5px; height: 5px; background: var(--accent); transform: rotate(45deg);
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee-track { animation-play-state: paused; }
}

/* ==========================================================================
   4. COLECCIÓN
   ========================================================================== */
.collection-head {
  display: flex; flex-direction: column; gap: 1.5rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.filters {
  display: flex; gap: 1.75rem;
  overflow-x: auto; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
}
.filters::-webkit-scrollbar { display: none; }
.filter-tab {
  position: relative; flex-shrink: 0;
  font-size: var(--fs-sm); letter-spacing: .02em; color: var(--ink-3);
  padding: .65rem 0;
  transition: color 200ms ease;
}
.filter-tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent);
  transform: scaleX(0); transition: transform 350ms var(--ease-out);
}
.filter-tab.is-active { color: var(--ink); }
.filter-tab.is-active::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .filter-tab:hover { color: var(--ink); } }

@media (min-width: 768px) {
  .collection-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .filters { margin: 0; padding: 0; gap: 2.25rem; }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem .75rem;
}
@media (min-width: 900px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.5rem 1.5rem; }
  /* Tope ligado al alto de pantalla: cada foto de producto ocupa como máximo ~75% del alto visible */
  .collection .container { max-width: min(1400px, calc(180vh + 3rem + 2 * var(--gutter))); }
}

.product-card {
  position: relative;
  transition: opacity 260ms ease, transform 360ms var(--ease-out);
}
.js .product-grid.is-filtering .product-card { transition: opacity 240ms ease, transform 420ms var(--ease-out); }
.js .product-grid .product-card.is-hiding { opacity: 0; transform: scale(0.97); }
.js .product-grid .product-card.is-entering { opacity: 0; transform: translateY(14px); transition: none; }

.card-media {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 900ms var(--ease-out), opacity 400ms ease;
}
.card-open {
  position: absolute; inset: 0; z-index: 1;
}
.card-tag {
  position: absolute; top: .75rem; left: .75rem; z-index: 2;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink);
  pointer-events: none;
}
.wish {
  position: absolute; top: .25rem; right: .25rem; z-index: 3;
  color: var(--ink);
}
.wish svg { width: 20px; height: 20px; transition: fill 200ms ease, stroke 200ms ease, transform 300ms var(--ease-out); }
.wish[aria-pressed="true"] svg { fill: var(--accent); stroke: var(--accent); transform: scale(1.08); }
.wish:active svg { transform: scale(0.85); }

.quick-btn {
  position: absolute; left: .5rem; right: .5rem; bottom: .5rem; z-index: 2;
  min-height: 38px;
  background: rgba(244, 243, 238, 0.94);
  font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  transition: transform 350ms var(--ease-out), opacity 250ms ease, background-color 200ms ease, color 200ms ease;
}
.quick-btn:active { transform: scale(0.98); }

@media (hover: hover) and (pointer: fine) {
  .quick-btn { opacity: 0; transform: translateY(10px); left: .75rem; right: .75rem; bottom: .75rem; min-height: 46px; font-size: 12px; }
  .product-card:hover .quick-btn, .quick-btn:focus-visible { opacity: 1; transform: none; }
  .quick-btn:hover { background: var(--ink); color: var(--paper); }
  .product-card:hover .card-media img { transform: scale(1.035); }
}

.card-info {
  display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem;
  padding-top: .9rem;
}
.card-name { font-size: var(--fs-sm); font-weight: 500; line-height: 1.35; }
.card-price { font-family: var(--font-mono); font-size: .8125rem; white-space: nowrap; }
.card-meta { grid-column: 1 / -1; display: flex; align-items: center; gap: .35rem; }
.card-meta .dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(29,29,27,.18); }
.card-meta small { font-size: var(--fs-xs); color: var(--ink-3); margin-left: .25rem; }

@media (max-width: 480px) {
  .card-info { grid-template-columns: 1fr; }
}

.noscript-note { padding: 2rem 0; color: var(--ink-2); }

/* ==========================================================================
   5. VISTA RÁPIDA
   ========================================================================== */
.overlay {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: var(--scrim);
  opacity: 0; transition: opacity 280ms ease;
}
.overlay.is-open { opacity: 1; }

.quickview {
  position: fixed; z-index: var(--z-dialog);
  left: 0; right: 0; bottom: 0;
  max-height: 92svh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper);
  display: grid;
  transform: translateY(100%);
  transition: transform 420ms var(--ease-drawer);
}
.quickview.is-open { transform: none; }
.quickview.is-closing { transition-duration: 260ms; }

.qv-close {
  position: absolute; top: .5rem; right: .5rem; z-index: 2;
  background: rgba(244, 243, 238, 0.9);
}
.qv-media { background: var(--paper-2); }
.qv-media img { width: auto; height: 46svh; aspect-ratio: 4 / 5; margin-inline: auto; object-fit: cover; } /* prenda completa, sin recorte */
.qv-body { padding: 1.5rem var(--gutter) 2rem; }
.qv-cat { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.qv-name {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.1; margin: .4rem 0 .5rem; padding-right: 2.5rem;
}
.qv-price { font-family: var(--font-mono); font-size: 1rem; }
.qv-desc { color: var(--ink-2); font-size: var(--fs-sm); margin: 1rem 0 1.5rem; max-width: 48ch; }

.qv-field { margin-bottom: 1.4rem; }
.qv-field legend {
  font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase;
  font-weight: 500; margin-bottom: .7rem; padding: 0;
}
.qv-field legend span { font-family: var(--font-mono); text-transform: none; letter-spacing: .02em; color: var(--ink-2); font-weight: 400; margin-left: .35rem; }
.qv-field legend .qv-hint { color: var(--accent); }

.swatches { display: flex; gap: .5rem; }
.swatch {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
}
.swatch span {
  width: 28px; height: 28px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(29,29,27,.18), 0 0 0 0 var(--paper), 0 0 0 0 var(--ink);
  transition: box-shadow 200ms ease;
}
.swatch[aria-checked="true"] span { box-shadow: inset 0 0 0 1px rgba(29,29,27,.18), 0 0 0 3px var(--paper), 0 0 0 4px var(--ink); }

.sizes { display: flex; flex-wrap: wrap; gap: .5rem; }
.size-chip {
  min-width: 52px; height: 44px; padding: 0 .8rem;
  border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .8125rem;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 140ms var(--ease-out);
}
.size-chip:active:not(:disabled) { transform: scale(0.95); }
.size-chip[aria-checked="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.size-chip:disabled { color: var(--ink-3); text-decoration: line-through; cursor: not-allowed; background: transparent; opacity: .6; }
@media (hover: hover) and (pointer: fine) {
  .size-chip:not(:disabled):not([aria-checked="true"]):hover { border-color: var(--ink); }
}
.sizes.shake { animation: shake 360ms var(--ease-out); }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

.qv-actions { display: flex; gap: .75rem; margin-top: 1.9rem; }
.stepper {
  display: flex; align-items: center; border: 1px solid var(--line); flex-shrink: 0;
}
.stepper button { width: 44px; height: 48px; display: grid; place-items: center; }
.stepper button svg { width: 16px; height: 16px; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 1.75rem; text-align: center; font-family: var(--font-mono); font-size: .875rem; }
.qv-add { flex: 1; padding-inline: 1rem; }
.qv-add.is-added { background: var(--accent); }
.qv-note { margin-top: 1rem; font-size: var(--fs-xs); color: var(--ink-3); }

@media (min-width: 900px) {
  /*
    El modal se dimensiona desde su ALTO disponible: --qv-h nunca supera el viewport,
    y la columna de la foto mide exactamente --qv-h × 0.8 (proporción 4:5 de las fotos),
    así la imagen se ve completa sin recorte y sin scrollbar a zoom 100%.
  */
  .quickview {
    --qv-body: 430px;
    --qv-h: min(660px, calc(100vh - 3rem), calc((100vw - 3rem - var(--qv-body)) * 1.25));
    left: 50%; top: 50%; right: auto; bottom: auto;
    height: var(--qv-h);
    max-height: none;
    grid-template-columns: calc(var(--qv-h) * 0.8) var(--qv-body);
    grid-template-rows: 100%;
    overflow: hidden;
    transform: translate(-50%, -50%) scale(0.96);
    opacity: 0;
    transition: transform 320ms var(--ease-out), opacity 240ms ease;
    box-shadow: 0 30px 80px -20px rgba(40, 38, 30, 0.35);
  }
  .quickview.is-open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  .quickview.is-closing { transition-duration: 180ms; }
  .qv-media img { width: 100%; height: 100%; object-position: 50% 50%; }
  .qv-body {
    display: flex; flex-direction: column; justify-content: center;
    padding: 2.25rem 2.5rem;
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  }
  .qv-name { font-size: clamp(1.75rem, 4.2vh, 2.3rem); }
  .qv-close { top: .75rem; right: .75rem; background: transparent; }
}

/* Laptops de poca altura (1366×768 con barras del navegador): versión compacta */
@media (min-width: 900px) and (max-height: 760px) {
  .qv-body { padding: 1.5rem 2.25rem; }
  .qv-name { margin: .25rem 0 .35rem; }
  .qv-desc { margin: .6rem 0 1rem; font-size: .8125rem; }
  .qv-field { margin-bottom: .9rem; }
  .qv-field legend { margin-bottom: .45rem; }
  .swatch { width: 38px; height: 38px; }
  .swatch span { width: 24px; height: 24px; }
  .size-chip { height: 40px; min-width: 48px; }
  .qv-actions { margin-top: 1.1rem; }
  .stepper button { height: 44px; }
  .qv-add { min-height: 46px; }
  .qv-note { margin-top: .7rem; }
}

/* ==========================================================================
   6. CARRITO LATERAL
   ========================================================================== */
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-dialog);
  width: min(440px, 100vw); height: 100dvh;
  background: var(--paper);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 460ms var(--ease-drawer);
  box-shadow: -20px 0 60px -30px rgba(40, 38, 30, 0.35);
}
.cart-drawer.is-open { transform: none; }
.cart-drawer.is-closing { transition-duration: 280ms; }

.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1rem 1rem 1.5rem; border-bottom: 1px solid var(--line);
}
.cart-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; }
.cart-head h2 span { font-family: var(--font-mono); font-size: .8125rem; color: var(--ink-2); vertical-align: middle; }
.cart-shipping {
  padding: .8rem 1.5rem; font-size: var(--fs-xs); color: var(--ink-2);
  background: var(--accent-soft);
}
.cart-shipping strong { color: var(--ink); font-weight: 500; }

.cart-items { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 1.5rem; }
.cart-item {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 1rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
  animation: itemIn 420ms var(--ease-out);
}
@keyframes itemIn { from { opacity: 0; transform: translateX(16px); } }
.cart-item img { width: 76px; height: 95px; object-fit: cover; background: var(--paper-2); }
.ci-name { font-size: var(--fs-sm); font-weight: 500; line-height: 1.35; }
.ci-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-2); margin-top: .25rem; }
.ci-controls { display: flex; align-items: center; gap: .75rem; margin-top: .75rem; }
.ci-controls .stepper button { width: 34px; height: 34px; }
.ci-controls .stepper output { min-width: 1.4rem; font-size: .8125rem; }
.ci-remove { font-size: var(--fs-xs); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; min-height: 34px; }
.ci-price { font-family: var(--font-mono); font-size: .8125rem; text-align: right; white-space: nowrap; }

.cart-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 1.25rem; text-align: center; padding: 2rem; color: var(--ink-2); }
.cart-empty p { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }

.cart-foot { padding: 1.25rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.cart-subtotal { display: flex; justify-content: space-between; align-items: baseline; }
.cart-subtotal span { font-size: var(--fs-sm); letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.cart-subtotal strong { font-family: var(--font-mono); font-weight: 400; font-size: 1.125rem; }
.cart-tax { font-size: var(--fs-xs); color: var(--ink-3); margin: .35rem 0 1.1rem; }
.checkout-note {
  margin-top: 1rem; padding: 1rem 1.1rem;
  border-left: 2px solid var(--accent); background: var(--accent-soft);
  font-size: .8125rem; line-height: 1.55; color: var(--ink);
  animation: noteIn 360ms var(--ease-out);
}
@keyframes noteIn { from { opacity: 0; transform: translateY(6px); } }

/* ==========================================================================
   7. LOOKBOOK
   ========================================================================== */
.lookbook { padding-top: 0; }
.lookbook-grid { display: grid; gap: 2.5rem; }
.img-frame { overflow: hidden; background: var(--paper-2); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.lookbook-main .img-frame { aspect-ratio: 16 / 10; }
.lookbook-second .img-frame { aspect-ratio: 4 / 3; }
.lookbook-second .img-frame img { object-position: 22% 50%; }
.lookbook-second { width: 82%; margin-left: auto; }
.lookbook-second figcaption { margin-top: .75rem; font-size: var(--fs-xs); color: var(--ink-2); }
.lookbook-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 5.6vw, 4.75rem); line-height: 1.04; letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.lookbook-text p:not(.eyebrow) { color: var(--ink-2); max-width: 36ch; margin-bottom: 1.5rem; }

@media (min-width: 900px) {
  .lookbook-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1.5rem; row-gap: 0;
  }
  .lookbook-main { grid-column: 1 / 9; grid-row: 1; }
  .lookbook-text { grid-column: 9 / 13; grid-row: 1; align-self: end; padding-left: 1rem; padding-bottom: 1rem; }
  .lookbook-second { grid-column: 3 / 9; grid-row: 2; width: auto; margin-top: -6rem; position: relative; }
  .lookbook-second .img-frame { outline: 14px solid var(--paper); aspect-ratio: 16 / 10; }
  .lookbook-second figcaption { margin-top: 1.4rem; }
}

/* ==========================================================================
   8. SOBRE LA MARCA
   ========================================================================== */
.about { background: var(--paper-2); }
.about-grid { display: grid; gap: 3rem; }
.about-media .img-frame { aspect-ratio: 687 / 1024; max-height: 78svh; }
.about-media .img-frame img { object-position: 50% 30%; }
.about-body .section-title { margin-bottom: 1.5rem; }
.about-lead { font-size: var(--fs-lg); line-height: 1.55; margin-bottom: 1rem; max-width: 46ch; }
.about-body > p:not(.about-lead):not(.signature) { color: var(--ink-2); max-width: 52ch; }

.values { margin-top: 2.75rem; display: grid; }
.value { display: grid; gap: .35rem; padding-block: 1.25rem; border-top: 1px solid var(--line); }
.value dt { font-family: var(--font-display); font-size: 1.35rem; }
.value dd { color: var(--ink-2); font-size: var(--fs-sm); max-width: 50ch; }

.signature {
  margin-top: 2.5rem; font-family: var(--font-display); font-style: italic; font-size: 1.6rem;
}
.signature span {
  display: block; font-family: var(--font-mono); font-style: normal; font-size: var(--fs-xs);
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: .35rem;
}

@media (min-width: 900px) {
  .about-grid { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
  .about-media .img-frame { max-height: 86vh; }
  .value { grid-template-columns: 13rem 1fr; gap: 1.5rem; align-items: baseline; }
}

/* ==========================================================================
   9. RESEÑAS
   ========================================================================== */
.reviews-title { max-width: 16ch; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.reviews-grid { display: grid; }
.review {
  display: flex; flex-direction: column; gap: 1.25rem;
  padding-block: 2rem; border-top: 1px solid var(--line);
}
.stars { display: flex; gap: 2px; color: var(--accent); }
.stars svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.review blockquote {
  font-family: var(--font-display); font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.4;
  max-width: 30ch;
}
.review figcaption { display: flex; align-items: center; gap: .85rem; margin-top: auto; font-size: var(--fs-sm); font-weight: 500; }
.review figcaption small { display: block; font-weight: 400; color: var(--ink-3); font-size: var(--fs-xs); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em;
}

@media (min-width: 900px) {
  .reviews-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .review { padding: 0 2.5rem 0 2.5rem; border-top: 0; border-left: 1px solid var(--line); }
  .review:first-child { padding-left: 0; border-left: 0; }
  .review:nth-child(2) { margin-top: 3rem; }
}

/* ==========================================================================
   10. NEWSLETTER
   ========================================================================== */
.newsletter { background: var(--accent); color: var(--on-accent); padding-block: clamp(4rem, 8vw, 6.5rem); }
.newsletter-inner { display: grid; gap: 2.25rem; }
.newsletter-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08; letter-spacing: -0.015em; margin-bottom: .9rem;
}
.newsletter-inner p { color: rgba(244, 243, 238, 0.82); max-width: 44ch; }
.newsletter-form label {
  display: block; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; margin-bottom: .6rem;
}
.newsletter-row { display: flex; flex-direction: column; gap: .75rem; }
.newsletter-row input {
  flex: 1; min-height: 50px; padding: 0 1rem;
  background: transparent; color: var(--on-accent);
  border: 1px solid rgba(244, 243, 238, 0.55);
  border-radius: 0;
  font: inherit; font-size: 16px; /* 16px evita zoom automático en iOS */
  transition: border-color 200ms ease;
}
.newsletter-row input::placeholder { color: rgba(244, 243, 238, 0.7); }
.newsletter-row input:focus { outline: none; border-color: var(--on-accent); }
.newsletter-row input:focus-visible { outline: 2px solid var(--on-accent); outline-offset: 2px; }
.newsletter .btn-light:focus-visible { outline-color: var(--on-accent); }
.form-msg { min-height: 1.5em; margin-top: .6rem; font-size: var(--fs-sm); }
.form-msg.is-error { color: #F3D9C9; }

@media (min-width: 768px) {
  .newsletter-row { flex-direction: row; gap: 0; }
  .newsletter-row input { border-right: 0; }
}
@media (min-width: 900px) {
  .newsletter-inner { grid-template-columns: 1fr 1fr; align-items: end; gap: 4rem; }
}

/* ==========================================================================
   11. TIENDA
   ========================================================================== */
.store-grid { display: grid; gap: 3rem; }
.store-lead { color: var(--ink-2); max-width: 44ch; margin: 1.25rem 0 2.75rem; font-size: var(--fs-lg); }
.store-details { display: grid; gap: 2rem; }
.store-details h3 {
  font-family: var(--font-mono); font-weight: 400; font-size: var(--fs-xs);
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .6rem;
}
.store-details p { font-size: var(--fs-sm); line-height: 1.7; }
.store-details p a { border-bottom: 1px solid var(--line); transition: border-color 200ms ease; }
.store-details p a:hover { border-color: var(--ink); }
.store-details .link-arrow { margin-top: .75rem; }
.hours { font-size: var(--fs-sm); display: grid; gap: .3rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; max-width: 18rem; }
.hours dd { font-family: var(--font-mono); font-size: .8125rem; }
.social { display: flex; gap: .25rem; margin-top: .75rem; margin-left: -10px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; transition: color 200ms ease, transform 160ms var(--ease-out); }
.social a:hover { color: var(--accent); }
.social a:active { transform: scale(0.92); }
.social svg { width: 20px; height: 20px; }
.social .fill { fill: currentColor; stroke: none; }
.store-media .img-frame { aspect-ratio: 687 / 1024; max-height: 80svh; }

@media (min-width: 700px) {
  .store-details { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
}
@media (min-width: 900px) {
  .store-grid { grid-template-columns: 7fr 4fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
  .store-media .img-frame { max-height: 86vh; }
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); padding-block: 3.5rem 2rem; }
.footer-top { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
.footer-logo { font-size: 2rem; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.footer-nav a { font-size: var(--fs-sm); padding-block: .5rem; display: inline-block; color: var(--ink-2); transition: color 200ms ease; }
.footer-nav a:hover { color: var(--ink); }
.site-footer .social { margin-top: 0; }
.footer-bottom {
  display: flex; flex-direction: column-reverse; gap: 1.25rem;
  padding-top: 1.75rem; border-top: 1px solid var(--line);
}
.copyright { font-size: var(--fs-xs); color: var(--ink-2); }
.payments { display: flex; gap: .5rem; }
.payments svg { width: 46px; height: 29px; stroke: none; }
.payments rect:first-child { fill: var(--paper); stroke: var(--line); stroke-width: 1; }
.pay-text { font-family: var(--font-sans); font-size: 11px; font-weight: 500; fill: var(--ink); letter-spacing: .04em; }
.pay-italic { font-style: italic; font-weight: 600; }
.pay-c1 { fill: var(--ink-2); }
.pay-c2 { fill: var(--ink-3); opacity: .85; }
.pay-line { fill: none; stroke: var(--ink-2); stroke-width: 1.2; }
.demo-note { margin-top: 1.5rem; font-size: 11.5px; color: var(--ink-3); }

@media (min-width: 900px) {
  .footer-top { grid-template-columns: auto 1fr auto; align-items: center; gap: 3rem; }
  .footer-nav ul { justify-content: center; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ==========================================================================
   Scroll reveal (disparo único, stagger vía --i)
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 800ms ease, transform 900ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (hover: none) {
  .js .reveal { transform: translateY(14px); transition-duration: 550ms, 650ms; }
}

/* ==========================================================================
   Movimiento reducido: se quitan desplazamientos, se conservan fundidos cortos
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .marquee-track { animation: none !important; transform: none !important; }
  .js .reveal { transform: none; }
  .js .hero-content > * { transform: none; }
  .product-card:hover .card-media img { transform: none; }
}
