/* ==========================================================================
   hats — estilos
   Índice: 1. Tokens · 2. Base · 3. Placeholder · 4. Header + menú
           5. Hero · 6. Eslogan · 7. About · 8. Catálogo · 9. Combos
           10. Lookbook · 11. Footer · 12. Cursor, grano, toast · 13. Motion
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  --bg: #F5F3EF;          /* marfil */
  --fg: #0E0E0E;          /* casi negro — 17.6:1 sobre --bg */
  --muted: #5E5A54;       /* texto secundario — 6.3:1 sobre --bg */
  --line: #D6D1C8;
  --accent: #9E1B22;      /* rojo lacre, solo en detalles — 7.0:1 sobre --bg */

  --ph-bg: #EDEAE4;       /* fondo del placeholder, apenas distinto */
  --ph-border: #BDB7AD;
  --ph-text: #6B665E;     /* 4.9:1 sobre --ph-bg */

  --header-bg: rgba(245, 243, 239, 0.72);
  --grain-opacity: 0.07;

  --font-script: "Pinyon Script", "Great Vibes", cursive;
  --font-sans: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Margen lateral: nunca bajo el notch/esquinas (áreas seguras) y con
     el contenido limitado a ~1680 px en monitores ultra anchos */
  --gutter: max(clamp(16px, 4vw, 56px),
                env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px),
                (100vw - 1680px) / 2);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --radius: 10px;
  --header-h: calc(72px + var(--safe-top));
}

:root[data-theme="dark"] {
  --bg: #0A0A0A;
  --fg: #F5F3EF;          /* 18.4:1 sobre --bg */
  --muted: #A39E96;       /* 7.4:1 */
  --line: #2A2927;
  --accent: #E5574E;      /* 5.9:1 sobre --bg */

  --ph-bg: #131312;
  --ph-border: #3A3835;
  --ph-text: #8F8A83;     /* 5.5:1 sobre --ph-bg */

  --header-bg: rgba(10, 10, 10, 0.68);
  --grain-opacity: 0.09;
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scrollbar-gutter: stable; scroll-padding-top: calc(var(--header-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { 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 { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
::selection { background: var(--fg); color: var(--bg); }

:focus-visible { outline: 1.5px solid var(--fg); outline-offset: 4px; border-radius: 4px; }

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

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: 10px 16px; background: var(--fg); color: var(--bg);
  border-radius: 999px; font-size: 0.8125rem;
  transform: translateY(-200%); transition: transform .4s var(--ease);
}
.skip-link:focus { transform: none; }

/* Transición de tema cuando no hay View Transitions API */
/* Cambio de tema: nada más se anima mientras ocurre la revelación */
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after { transition: none !important; }
html.theme-switching .grain { visibility: hidden; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
/* Táctil / equipos modestos: fundido cruzado */
html[data-vt="fade"]::view-transition-old(root) { animation: vt-fade-out .45s ease-out both; }
html[data-vt="fade"]::view-transition-new(root) { animation: vt-fade-in .45s ease-out both; }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } }
.theme-veil { position: fixed; inset: 0; z-index: 9998; pointer-events: none; }

.section { padding: clamp(96px, 16vh, 200px) var(--gutter); }

/* Título de sección: la única cursiva del sitio */
.title {
  overflow-wrap: break-word;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: min(clamp(3.75rem, 11vw, 9.5rem), 19vw);
  line-height: 1;
  letter-spacing: 0;
  padding-bottom: .12em;   /* respira con los descendentes */
}

.eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}

.link-arrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: 0.8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  padding: 12px 0; position: relative;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease);
}
.link-arrow:hover::after { transform: scaleX(1); transform-origin: left; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 32px; border-radius: 999px;
  background: var(--fg); color: var(--bg); border: 1px solid var(--fg);
  font-size: 0.75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
.btn:hover { background: transparent; color: var(--fg); }

/* 3. PLACEHOLDER (componente reutilizable) ---------------------------------
   .frame       → contenedor con proporción real; recibe las animaciones.
   .placeholder → recuadro temporal. Se borra y se reemplaza por .media.
   .media       → la imagen/SVG final; ocupa exactamente el mismo espacio.
   ------------------------------------------------------------------------- */
.frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--ratio, 1 / 1);
}
.placeholder,
.media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.media { object-fit: cover; border-radius: var(--radius); }
.slide .media, .card .media:not(.media--alt) { object-fit: contain; border-radius: 0; }

.placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .45em;
  padding: 8%;
  border: 1px dashed var(--ph-border);
  border-radius: var(--radius);
  background: var(--ph-bg);
  color: var(--ph-text);
  font-family: var(--font-sans);
  font-size: 0.6875rem; font-weight: 500; line-height: 1.5; letter-spacing: .04em;
  text-align: center;
}
.placeholder__type { font-weight: 600; letter-spacing: .22em; }
.placeholder__desc { max-width: 34ch; }
.placeholder__spec { letter-spacing: .08em; }

/* Variantes */
.placeholder--tiny { padding: 0; border-radius: 6px; font-size: 7px; }
.placeholder--tiny::before {
  /* Texto solo visual: no compite con el nombre accesible del link/botón */
  content: attr(data-type); content: attr(data-type) / "";
  font-weight: 600; letter-spacing: .04em;
}
.placeholder--bottom { justify-content: flex-end; gap: .2em; padding-bottom: 3%; }
.placeholder--top { justify-content: flex-start; padding-top: 3.5%; }

/* 4. HEADER + MENÚ --------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: var(--safe-top) calc(var(--gutter) - 10px) 0;
  transition: background-color .6s var(--ease), backdrop-filter .6s var(--ease);
}
.header.is-scrolled:not(.menu-open) {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.header__side { display: flex; align-items: center; gap: 2px; }
.header__side--right { justify-content: flex-end; }
.header__logo { display: block; width: 44px; padding: 2px; } /* área táctil de 44 px con logo de 40 px */

.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 999px;
}
.cart-count {
  position: absolute; top: 6px; right: 4px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  font-size: 0.625rem; font-weight: 600; line-height: 1;
  transform: scale(0); transition: transform .6s var(--ease);
}
.cart-count.has-items { transform: scale(1); }
.cart-count.bump { animation: bump .6s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

.burger__line {
  position: absolute; left: 11px; width: 22px; height: 1.3px; background: currentColor;
  transition: transform .7s var(--ease);
}
.burger__line:first-child { transform: translateY(-4px); }
.burger__line:last-child  { transform: translateY(4px); }
.menu-open .burger__line:first-child { transform: rotate(45deg); }
.menu-open .burger__line:last-child  { transform: rotate(-45deg); }

.theme-toggle .frame { width: 32px; }

.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 16px) var(--gutter) calc(28px + var(--safe-bottom));
  background: var(--bg);
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 1s var(--ease), visibility 0s linear 1s;
}
.menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path 1s var(--ease); }

.menu__inner { flex: 1; display: grid; align-items: center; gap: 6vw; }

/* Links: palabra en cursiva + dato en sans (el contraste de la marca) */
.menu__list li { overflow: hidden; }
@media (max-width: 899px), (hover: none) {
  .menu__list li + li { margin-top: clamp(8px, 1.6vh, 16px); }
}
.menu__link {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: .1em .1em .2em 0;
  transform: translateY(105%); opacity: 0;
  transition: transform .9s var(--ease), opacity .9s var(--ease);
}
.menu__word {
  font-family: var(--font-script);
  font-size: min(clamp(2.9rem, min(11vw, 10.5vh), 7.5rem), 18vw); line-height: 1.05;
  padding-right: .15em;
  transition: color .5s var(--ease), transform .8s var(--ease);
}
.menu__meta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: -.1em;
  font-size: 0.75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
  transition: opacity .6s var(--ease), transform .8s var(--ease), color .5s var(--ease);
}
.menu__link[aria-current] .menu__meta::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

.menu.is-open .menu__link,
.menu.is-open .menu__foot { transform: none; opacity: 1; transition-delay: calc(var(--i) * 70ms + 250ms); }

/* Hover / foco: las demás se apagan, la activa avanza */
.menu__list:hover .menu__word,
.menu__list:focus-within .menu__word { color: var(--muted); }
.menu__list .menu__link:hover .menu__word,
.menu__list .menu__link:focus-visible .menu__word,
.menu__list .menu__link.is-active .menu__word { color: var(--fg); }

.menu__preview { display: none; }

.menu__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
  padding-top: 24px; margin-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  opacity: 0; transform: translateY(12px);
  transition: transform .9s var(--ease), opacity .9s var(--ease);
}
.menu__social { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.menu__social a { display: inline-block; padding: 8px 0; color: var(--fg); transition: color .5s var(--ease); }
.menu__social:hover a { color: var(--muted); }
.menu__social a:hover { color: var(--fg); }

@media (min-width: 900px) and (hover: hover) {
  .menu__inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .menu__link { flex-direction: row; align-items: baseline; gap: 28px; }
  .menu__meta { opacity: 0; transform: translateX(-10px); }
  .menu__link:hover .menu__meta,
  .menu__link:focus-visible .menu__meta,
  .menu__link.is-active .menu__meta,
  .menu__link[aria-current] .menu__meta { opacity: 1; transform: none; }
  .menu__link:hover .menu__word,
  .menu__link:focus-visible .menu__word { transform: translateX(.12em); }

  .menu__preview { display: block; justify-self: end; width: min(100%, 34vh + 120px, 420px); }
  .menu__frame {
    border-radius: var(--radius); overflow: hidden;
    clip-path: inset(100% 0 0 0 round var(--radius));
    transition: clip-path 1.2s var(--ease);
  }
  .menu.is-open .menu__frame { clip-path: inset(0 0 0 0 round var(--radius)); transition-delay: .45s; }
  .menu__shot {
    position: absolute; inset: 0;
    opacity: 0; transform: scale(1.08);
    transition: opacity .7s var(--ease), transform 1.4s var(--ease);
  }
  .menu__shot.is-active { opacity: 1; transform: none; }
}

/* 5. HERO ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  display: grid;
  grid-template-areas: "stage" "info" "meta";
  gap: 28px;
  align-content: center;
  overflow: clip;
}
.hero__stage {
  grid-area: stage;
  position: relative;
  width: min(100%, 560px);
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  perspective: 1400px;
}
.hero__monogram {
  position: absolute; left: 50%; top: 50%;
  width: 100%;
  translate: -50% -50%;
  z-index: 0;
}
.hero__object {
  position: relative; z-index: 1;
  width: 64%; margin: 0 auto;
  transform-style: preserve-3d;
  will-change: transform;
}
.hero__float { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }

.slides { position: relative; aspect-ratio: 1 / 1; touch-action: pan-y; }
.slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease), transform 1.3s var(--ease);
}
.slide.is-active { opacity: 1; }
.slide.no-transition { transition: none; }

.hero__arrow {
  position: absolute; top: 50%; z-index: 2;
  width: 44px; height: 44px; margin-top: -22px;
  display: grid; place-items: center;
  font-size: 1.375rem; font-weight: 300; line-height: 1;
  border-radius: 999px;
  transition: background-color .5s var(--ease);
}
.hero__arrow:hover { background: var(--ph-bg); }
.hero__arrow--prev { left: -6px; }
.hero__arrow--next { right: -6px; }

.hero__info { grid-area: info; display: grid; text-align: center; }
.info {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(14px);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease);
  pointer-events: none;
}
.info.is-active { opacity: 1; transform: none; pointer-events: auto; transition-delay: .15s; }
.info__eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.info__name { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; margin: .2em 0 .35em; }
.info__text { color: var(--muted); font-size: 1rem; max-width: 32ch; margin: 0 auto; }
.info__price { margin-top: 14px; font-size: 0.9375rem; font-weight: 500; letter-spacing: .06em; }

.hero__meta {
  grid-area: meta;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; font-weight: 500; letter-spacing: .18em; color: var(--muted);
}
.hero__counter { font-variant-numeric: tabular-nums; }
.hero__meta .link-arrow { color: var(--fg); }

/* Ancho medio (tablets, ventanas medianas): gorra + info lado a lado */
@media (min-width: 720px) and (max-width: 1199px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-areas: "stage info" "stage meta";
    align-items: center; column-gap: 5vw; row-gap: 24px;
  }
  .hero__stage { width: min(100%, 62svh); }
  .hero__info { text-align: left; align-self: end; }
  .info__text { margin: 0; }
  .hero__meta { align-self: start; justify-content: flex-start; gap: 32px; }
}

/* Altura compacta (teléfono en horizontal): todo en una fila que quepa en pantalla */
@media (max-height: 560px) and (min-width: 560px) {
  .hero {
    min-height: auto;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "stage info" "stage meta";
    align-items: center; column-gap: 32px; row-gap: 12px;
    padding-bottom: 24px;
  }
  .hero__stage { width: calc(100svh - var(--header-h) - 48px); }
  .hero__info { text-align: left; align-self: end; }
  .info__text { margin: 0; }
  .hero__meta { align-self: start; justify-content: flex-start; gap: 32px; }
}

/* Ancho amplio: info · gorra · compra */
@media (min-width: 1200px) and (min-height: 561px) {
  .hero {
    grid-template-columns: 1fr min(64vh, 760px) 1fr;
    grid-template-areas: "info stage meta";
    align-items: end;
    gap: 4vw;
  }
  .hero__stage { width: 100%; align-self: center; }
  .hero__monogram { width: 114%; } /* sobresale dentro del espacio entre columnas, sin tocar la info */
  .hero__object { width: 72%; }
  .hero__info { text-align: left; padding-bottom: 8vh; }
  .info__text { margin: 0; }
  .hero__meta {
    flex-direction: column; align-items: flex-end; gap: 20px;
    padding-bottom: 8vh;
  }
  .hero__arrow--prev { left: -72px; }
  .hero__arrow--next { right: -72px; }
}

/* 6. ESLOGAN --------------------------------------------------------------- */
.slogan { padding: clamp(64px, 14vh, 180px) var(--gutter); text-align: center; }
.slogan__text {
  font-size: min(clamp(2.75rem, 10vw, 9rem), 16vw);
  font-weight: 400; line-height: 1; letter-spacing: -0.055em;
}
.accent-dot { color: var(--accent); }

/* 7. ABOUT ----------------------------------------------------------------- */
.about__grid { display: grid; gap: 56px; margin-top: clamp(24px, 5vh, 64px); }
.about__text {
  font-size: clamp(1.35rem, 2.6vw, 2.25rem);
  line-height: 1.35; letter-spacing: -0.015em; font-weight: 400;
  max-width: 24ch;
}
.about__text .w { opacity: var(--o, 1); }
.about__sign { margin-top: 32px; font-size: 0.75rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

.about__photo {
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 1.1s var(--ease);
}
.about__photo > .placeholder,
.about__photo > .media { transition: transform 1.4s var(--ease); }
.about__photo:hover { transform: scale(1.025); }
.about__photo:hover > .placeholder,
.about__photo:hover > .media { transform: scale(1.04); }
.about__cta {
  position: absolute; left: 20px; bottom: 20px; z-index: 2;
  padding: 12px 20px; border-radius: 999px;
  background: var(--fg); color: var(--bg);
  font-size: 0.75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  opacity: 0; transform: translateY(12px);
  transition: opacity .7s var(--ease), transform .9s var(--ease);
}
.about__photo:hover .about__cta, .about__photo:focus-visible .about__cta { opacity: 1; transform: none; }
@media (hover: none) { .about__cta { opacity: 1; transform: none; } }

@media (min-width: 900px) {
  .about__grid { grid-template-columns: 7fr 5fr; align-items: end; gap: 8vw; }
}

/* 8. CATÁLOGO -------------------------------------------------------------- */
.catalog { padding: clamp(96px, 16vh, 200px) 0; }
.catalog__pin { padding: 0 var(--gutter); }
.catalog__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: clamp(32px, 6vh, 64px);
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  transition: background-color .6s var(--ease), color .6s var(--ease), border-color .6s var(--ease);
}
.pill:hover { border-color: var(--fg); }
.pill.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.catalog__track {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 14px;
}
@media (min-width: 768px) { .catalog__track { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 24px; } }

.card { position: relative; container-type: inline-size; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.card.is-hidden { display: none; }
.card.is-leaving { opacity: 0; transform: translateY(16px); }
.card__media { border-radius: var(--radius); overflow: hidden; }
.card__media > .placeholder,
.card__media > .media { transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
.placeholder--alt, .media--alt { opacity: 0; }
.card:hover .placeholder--alt, .card:hover .media--alt,
.card:focus-within .placeholder--alt, .card:focus-within .media--alt { opacity: 1; }
.card:hover .card__media > *:not(.card__add) { transform: scale(1.03); }

.card__add {
  position: absolute; left: 10px; right: 10px; z-index: 2;
  top: calc(100cqi - 54px); /* 100cqi = ancho de la tarjeta = alto de la foto 1:1 */
  min-height: 44px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--line);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transform: translateY(10px);
  transition: opacity .6s var(--ease), transform .8s var(--ease), background-color .5s var(--ease), color .5s var(--ease);
}
.card__add:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.card:hover .card__add, .card:focus-within .card__add { opacity: 1; transform: none; }
@media (hover: none) { .card__add { opacity: 1; transform: none; } }

.card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin-top: 14px; font-size: 0.875rem; }
.card__meta h3 { font-size: inherit; font-weight: 500; }
.card__meta p { color: var(--muted); font-variant-numeric: tabular-nums; }

.catalog__hint { display: none; }

/* Scroll horizontal anclado (solo desktop, activado por JS) */
.catalog.is-horizontal { padding: 0; }
.catalog.is-horizontal .catalog__pin {
  height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--header-h); overflow: hidden;
}
.catalog.is-horizontal .catalog__track {
  display: flex; gap: 2.6vw; width: max-content; will-change: transform;
}
.catalog.is-horizontal .card { flex: 0 0 clamp(240px, 22vw, 340px); }
.catalog.is-horizontal .catalog__hint {
  display: block; margin-top: 4vh;
  font-size: 0.75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}

/* 9. COMBOS ---------------------------------------------------------------- */
.combos__grid { display: grid; gap: 40px; margin-top: clamp(24px, 5vh, 64px); }
.combos__photo { border-radius: var(--radius); overflow: hidden; }
.combos__name { font-size: clamp(2.25rem, 4.5vw, 3.75rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; margin: 12px 0 24px; }
.combos__list li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 1rem; }
.combos__list li:last-child { border-bottom: 1px solid var(--line); }
.combos__price { margin: 28px 0; font-size: 1.6rem; font-weight: 500; letter-spacing: -0.01em; }
.combos__price span { display: block; margin-top: 4px; font-size: 0.75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.combos__more { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; font-size: 0.8125rem; color: var(--muted); }
.combos__mini { color: var(--fg); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 0.75rem; margin-bottom: 4px; }

@media (min-width: 1024px) {
  .combos__grid { grid-template-columns: 8fr 4fr; align-items: center; gap: 5vw; }
}

/* 10. LOOKBOOK ------------------------------------------------------------- */
.lookbook__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: clamp(32px, 6vh, 72px); }
.lookbook__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.look { border-radius: var(--radius); overflow: hidden; }
.look--2, .look--6 { grid-column: span 2; }
.lookbook__note { margin-top: clamp(48px, 8vh, 96px); text-align: center; color: var(--muted); font-size: 1rem; }
.lookbook__note a { color: var(--fg); border-bottom: 1px solid currentColor; }

@media (min-width: 900px) {
  .lookbook__grid { grid-template-columns: repeat(12, 1fr); gap: 2vw; }
  .look--1 { grid-column: 1 / span 4; }
  .look--2 { grid-column: 6 / span 7; margin-top: 10vw; }
  .look--3 { grid-column: 2 / span 3; margin-top: 4vw; }
  .look--4 { grid-column: 6 / span 3; margin-top: 10vw; }
  .look--5 { grid-column: 10 / span 3; margin-top: 2vw; }
  .look--6 { grid-column: 1 / span 7; margin-top: 4vw; }
  .look--7 { grid-column: 9 / span 4; margin-top: 12vw; }
}

/* 11. FOOTER --------------------------------------------------------------- */
.footer { padding: clamp(96px, 14vh, 160px) var(--gutter) 32px; overflow: hidden; border-top: 1px solid var(--line); }
.footer__top { display: grid; gap: 56px; }
.footer__label { display: block; margin-bottom: 20px; font-size: 0.75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.footer__pitch { max-width: 34ch; font-size: 0.9375rem; line-height: 1.7; color: var(--muted); }

.footer__ig {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 28px;
  font-size: 0.9375rem; letter-spacing: .02em;
  transition: color .5s var(--ease);
}
.footer__ig-icon {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 50%;
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.footer__ig:hover .footer__ig-icon { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.footer__links { list-style: none; margin: 0; padding: 0; font-size: 1rem; }
.footer__links a { display: inline-block; padding: 6px 0; transition: color .5s var(--ease); }
.footer__links:hover a { color: var(--muted); }
.footer__links a:hover { color: var(--fg); }

.newsletter__hint { margin-bottom: 8px; font-size: 0.9375rem; color: var(--muted); }
.newsletter__field { display: flex; align-items: center; border-bottom: 1px solid var(--fg); max-width: 420px; }
.newsletter__field input {
  flex: 1; min-width: 0; min-height: 56px;
  background: transparent; border: 0; color: var(--fg);
  font: 400 clamp(1.05rem, 1.6vw, 1.25rem) var(--font-sans); letter-spacing: -0.01em;
}
.newsletter__field input::placeholder { color: var(--muted); }
.newsletter__field input:focus { outline: none; }
.newsletter__field:focus-within { box-shadow: 0 1px 0 0 var(--fg); }
.newsletter__field button { width: 48px; height: 48px; font-size: 1.375rem; border-radius: 999px; }
.newsletter__msg { min-height: 1.6em; margin-top: 12px; font-size: 0.8125rem; color: var(--muted); }
.newsletter__msg.is-error { color: var(--accent); }

.footer__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: clamp(56px, 9vh, 96px); padding-top: 24px; border-top: 1px solid var(--line);
  padding-bottom: var(--safe-bottom);
  font-size: 0.75rem; letter-spacing: .08em; color: var(--muted);
}
.footer__bar p { margin: 0; }


@media (min-width: 900px) {
  .footer__top { grid-template-columns: 1.3fr 0.8fr 1.2fr; align-items: start; gap: 6vw; }
}

/* Textura de ángeles: grabados en máscara, pintados con --fg a muy baja opacidad.
   Se adaptan solos al modo claro/oscuro y quedan detrás de todo el contenido. */
#main { position: relative; isolation: isolate; }
.angels { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; color: var(--fg); }
.angel {
  position: absolute; display: block;
  aspect-ratio: var(--r); width: var(--w);
  background: currentColor; opacity: var(--angel-opacity);
  -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat;
  transform: rotate(var(--rot, 0deg)) scaleX(var(--flip, 1));
}
.angel--caida    { --src: url("../assets/img/angeles/caida.png");    --r: 509 / 804; --w: clamp(260px, 34vw, 560px); top: 9%;  right: -6%; --rot: 6deg; }
.angel--rosa     { --src: url("../assets/img/angeles/rosa.png");     --r: 604 / 786; --w: clamp(240px, 30vw, 500px); top: 27%; left: -5%;  --rot: -4deg; }
.angel--manos    { --src: url("../assets/img/angeles/manos.png");    --r: 899 / 214; --w: clamp(320px, 52vw, 820px); top: 46%; right: -6%; }
.angel--cupido   { --src: url("../assets/img/angeles/cupido.png");   --r: 385 / 396; --w: clamp(220px, 26vw, 420px); top: 60%; left: 1%;  --flip: -1; }
.angel--pareja   { --src: url("../assets/img/angeles/pareja.png");   --r: 492 / 900; --w: clamp(220px, 28vw, 460px); top: 73%; right: -5%; --rot: 3deg; }
.angel--heavenly { --src: url("../assets/img/angeles/heavenly.png"); --r: 253 / 900; --w: clamp(80px, 10vw, 160px);  top: 88%; left: 5%; }
:root { --angel-opacity: .07; }
:root[data-theme="dark"] { --angel-opacity: .06; }
@media (prefers-contrast: more) { .angels { display: none; } }

/* 12. CURSOR, GRANO, TOAST ------------------------------------------------- */
.cursor { display: none; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input { cursor: text !important; }
html.has-cursor .cursor {
  display: grid; place-items: center;
  position: fixed; left: 0; top: 0; z-index: 9999;
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #F5F3EF; mix-blend-mode: difference;
  pointer-events: none;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), opacity .3s;
}
.cursor.is-hover { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.cursor.has-label { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.cursor__label { font-size: 0.75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #0E0E0E; opacity: 0; transition: opacity .3s; }
.cursor.has-label .cursor__label { opacity: 1; }
.cursor.is-hidden { opacity: 0; }

.grain {
  position: fixed; inset: -50%; z-index: 500; pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -2%); }
  80% { transform: translate(3%, 3%); }
}

.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--safe-bottom)); z-index: 300;
  max-width: calc(100vw - 2 * var(--gutter)); text-align: center;
  padding: 14px 22px; border-radius: 999px;
  background: var(--fg); color: var(--bg);
  font-size: 0.8125rem; font-weight: 500; letter-spacing: .04em;
  transform: translate(-50%, 140%); opacity: 0;
  transition: transform .8s var(--ease), opacity .6s var(--ease);
  pointer-events: none;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* 13. MOTION: revelados ---------------------------------------------------- */
html.js [data-reveal] {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1.2s var(--ease), transform 1.4s var(--ease);
}
html.js [data-reveal="frame"] {
  opacity: 1; transform: none;
  clip-path: inset(8% 6% 8% 6% round var(--radius));
  transition: clip-path 1.6s var(--ease);
}
html.js [data-reveal].in-view { opacity: 1; transform: none; }
html.js [data-reveal="frame"].in-view { clip-path: inset(0 0 0 0 round var(--radius)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .grain { animation: none; }
}

/* 14. ACCESIBILIDAD: preferencias del sistema ------------------------------ */
/* Más contraste: sin grano, sin cursor propio, textos secundarios más oscuros */
@media (prefers-contrast: more) {
  :root { --muted: #3D3A36; --ph-text: #4A4640; --ph-border: #7A746B; --line: #8F897F; }
  :root[data-theme="dark"] { --muted: #CFCAC2; --ph-text: #BDB8B0; --ph-border: #8A857D; --line: #6B6761; }
  .grain { display: none; }
  html.has-cursor, html.has-cursor * { cursor: auto !important; }
  html.has-cursor .cursor { display: none; }
  .about__text .w { opacity: 1 !important; }
}
/* Modo de alto contraste de Windows: colores del sistema, sin efectos */
@media (forced-colors: active) {
  .grain, .cursor, .angels { display: none !important; }
  html.has-cursor, html.has-cursor * { cursor: auto !important; }
  .placeholder { border-color: CanvasText; color: CanvasText; }
  .pill.is-active, .btn { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
  .about__text .w { opacity: 1 !important; }
}

/* 15. RESPONSIVE: tamaño, altura y entrada -------------------------------- */
/* Menú en altura compacta: dos columnas para que todo quepa sin scroll */
@media (max-height: 560px) and (min-width: 560px) {
  .menu { padding-top: var(--header-h); }
  .menu__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .menu__list li + li { margin-top: 0; }
  .menu__word { font-size: clamp(2rem, 10vh, 3rem); }
  .menu__foot { margin-top: 8px; padding-top: 4px; }
}

/* Pantallas táctiles: todo control mide al menos 44 × 44 px */
@media (pointer: coarse) {
  .footer__links a, .menu__social a, .lookbook__note a, .link-arrow {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .footer__links a, .menu__social a { min-width: 44px; }
}
/* En puntero fino los links de texto igualmente tienen un área de 44 px de alto */
.footer__links a, .menu__social a { min-height: 44px; display: inline-flex; align-items: center; }
.lookbook__note a { display: inline-block; padding: 12px 0; margin: -12px 0; }

/* Pantallas muy angostas (≤ 360 px): filtros con scroll lateral y tarjetas legibles */
@media (max-width: 360px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .pill { flex: none; }
  .catalog__track { gap: 32px 10px; }
  .card__add { font-size: 0.625rem; letter-spacing: .08em; }
  .combos__more { grid-template-columns: 1fr; }
}

/* Texto grande: el umbral está en em, así que con letra ≥ 150 % un teléfono pasa a una columna */
@media (max-width: 22em) {
  .catalog__track { grid-template-columns: 1fr; }
  .footer__links { grid-template-columns: 1fr; }
}

/* Tarjetas con texto grande (zoom o letra del sistema): el botón sale de la foto
   y queda visible debajo, a ancho completo. El umbral en em sigue al tamaño de letra. */
@container (max-width: 9em) {
  .card__add {
    position: static; display: block; width: 100%; margin-top: 12px;
    opacity: 1; transform: none; padding: 8px 12px; letter-spacing: .06em;
  }
}

/* 16. RENDIMIENTO EN MÓVIL ----------------------------------------------- */
/* Capas fijas a su tamaño justo y aisladas del resto de la página */
.hero__monogram { will-change: transform; }
.hero { contain: paint; }

/* Táctil: grano estático del tamaño de la pantalla, header sin desenfoque */
html.is-touch .grain { inset: 0; animation: none; }
html.is-touch .header.is-scrolled:not(.menu-open) {
  -webkit-backdrop-filter: none; backdrop-filter: none;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}

/* Equipos modestos: sin grano ni flotación continua */
html.is-lite .grain { display: none; }
html.is-lite .hero__float { animation: none; }

/* Táctil con soporte: animaciones ligadas al scroll ejecutadas por el navegador */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    html.css-scroll #heroObject {
      animation: hero-tilt linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100svh;
    }
    html.css-scroll .hero__monogram {
      animation: hero-drift linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100svh;
    }
    html.css-scroll .about__text .w {
      animation: word-in linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 40%;
    }
  }
}
@keyframes hero-tilt { to { transform: translateY(8%) rotateX(6deg) rotateY(14deg) scale(.9); } }
@keyframes hero-drift { to { transform: translateY(22%); } }
@keyframes word-in { from { opacity: .45; } to { opacity: 1; } }
