/* ==========================================================
   Línea básica · estilos
   Paleta: blanco, carbón, gris piedra, gris topo y rojo de la "B"
   Tipografía de marca: Manrope (archivo propio en assets/fonts)
   ========================================================== */

@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/Manrope-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --ink: #111111;
  --stone: #edebe8;
  --taupe: #d6d3ce;
  --red: #aa0c22;          /* rojo exacto de la "B" del logo */
  --muted: #5c5853;        /* texto secundario, AA sobre blanco y piedra */
  --line: #e1ded9;

  --font: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --radius: 2px;
  --radius-btn: 999px;     /* botones con bordes redondeados (pastilla) */
  --header-h: 64px;
  --gutter: 16px;
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 960px) {
  :root { --header-h: 76px; --gutter: 40px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
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; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 14px; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- tipografía ---------- */
.label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.4;
}
.h2 {
  font-size: clamp(32px, 5.2vw, 64px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1;
}
.lead { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 46ch; }

/* subrayado animado */
.link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s var(--ease), color .2s;
  padding-bottom: 2px;
}
.link:hover, .link:focus-visible, .link.is-active { background-size: 100% 1px; }
.link--red { color: var(--red); background-size: 100% 1px; }
.link--red:hover { background-size: 0 1px; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius-btn);
  transition: background-color .25s, color .25s, border-color .25s, transform .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 11px; }
.btn--block { width: 100%; }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #2a2a2a; }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--stone); }
.btn--ghost { color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: var(--white); color: var(--ink); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.i-wa { width: 18px; height: 18px; flex: none; }
.i-sm { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; }

.icon { width: 40px; height: 40px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 0 · anuncio ---------- */
.announce {
  position: relative; height: 36px; overflow: hidden;
  background: var(--ink); color: var(--white);
  display: grid; place-items: center; text-align: center;
}
.announce__item {
  grid-area: 1 / 1;
  font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  padding-inline: 12px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.announce__item.is-active { opacity: 1; transform: none; }
.announce__extra { display: none; }
@media (min-width: 640px) {
  .announce__extra { display: inline; }
  .announce__item--m { display: none; }
}

/* ---------- 1 · header ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, transform .4s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--line); }
/* en celular se esconde al bajar y vuelve al subir */
.header.is-hidden { transform: translateY(-101%); }
.header__inner {
  height: var(--header-h);
  max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px;
}
.header__logo { justify-self: center; }
.header__logo img { height: 24px; width: auto; }
.header__burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; }
.header__burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.header__burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
.nav { display: none; }
.header__cta { justify-self: end; width: 44px; height: 44px; min-height: 0; padding: 0; }
.header__cta span { display: none; }

@media (min-width: 1080px) {
  .header__inner { grid-template-columns: auto 1fr auto; gap: 40px; }
  .header__burger { display: none; }
  .header__logo { justify-self: start; }
  .header__logo img { height: 28px; }
  .nav { display: flex; justify-content: center; gap: 30px; font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
  .header__cta { width: auto; height: auto; min-height: 40px; padding: 0 16px; }
  .header__cta span { display: inline; }
}

/* menú móvil */
.menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 39;
  background: var(--white);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  font-size: 34px; font-weight: 500; letter-spacing: -.03em; line-height: 1.15;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(10px);
  animation: menuIn .5s var(--ease) forwards;
}
.menu__nav a:nth-child(2) { animation-delay: .04s; }
.menu__nav a:nth-child(3) { animation-delay: .08s; }
.menu__nav a:nth-child(4) { animation-delay: .12s; }
.menu__nav a:nth-child(5) { animation-delay: .16s; }
.menu__nav a:nth-child(6) { animation-delay: .2s; }
@keyframes menuIn { to { opacity: 1; transform: none; } }
.menu__foot { padding-top: 32px; display: grid; gap: 14px; }
.menu__meta { font-size: 12px; color: var(--muted); text-align: center; letter-spacing: .04em; }
body.menu-open { overflow: hidden; }

/* ---------- 2 · hero ---------- */
.hero {
  position: relative;
  height: calc(100svh - var(--header-h) - 36px);
  min-height: 560px;
  background: #8c959b;
  color: var(--white);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 56% 30%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0) 40%, rgba(17,17,17,.62) 100%);
}
.hero__copy {
  position: absolute; inset: auto 0 0;
  padding: 0 var(--gutter) 32px;
  display: grid; gap: 14px;
}
.hero__kicker { opacity: .9; }
.hero__title {
  font-size: clamp(48px, 13vw, 128px);
  font-weight: 500; font-style: normal;
  letter-spacing: -.045em; line-height: .92;
}
.hero__sub { font-size: 17px; max-width: 32ch; opacity: .95; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.hero__ctas .btn { flex: 1 1 auto; }

/* entrada del hero: único momento orquestado */
.hero__title, .hero__sub, .hero__kicker, .hero__ctas { animation: rise .9s var(--ease) both; }
.hero__kicker { animation-delay: .1s; }
.hero__title { animation-delay: .2s; }
.hero__sub { animation-delay: .35s; }
.hero__ctas { animation-delay: .45s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

@media (min-width: 960px) {
  .hero { background: var(--stone); color: var(--ink); display: grid; grid-template-columns: 42% 58%; grid-template-rows: minmax(0, 1fr); }
  .hero__media { position: relative; grid-column: 2; grid-row: 1; min-height: 0; }
  .hero__media img { position: absolute; inset: 0; object-position: 54% 30%; }
  .hero__media::after { display: none; }
  .hero__copy {
    position: relative; inset: auto; grid-column: 1; grid-row: 1;
    align-self: end; padding: 0 48px 64px var(--gutter); gap: 20px;
  }
  .hero__title { font-size: clamp(64px, 7vw, 124px); margin-right: -12vw; position: relative; z-index: 2; }
  .hero__sub { font-size: 19px; color: var(--muted); }
  .hero__ctas { margin-top: 12px; }
  .hero__ctas .btn { flex: 0 0 auto; }
  .hero__ctas .btn--light { background: var(--ink); color: var(--white); }
  .hero__ctas .btn--light:hover { background: #2a2a2a; }
  .hero__ctas .btn--ghost { color: var(--ink); border-color: var(--ink); }
  .hero__ctas .btn--ghost:hover { background: var(--ink); color: var(--white); }
}

/* ---------- 3 · categorías ---------- */
.cats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 10px;
  padding-block: 48px 72px;
}
.cat--wide { grid-column: span 2; }
.cat--wide .cat__img { aspect-ratio: 16 / 10; }
.cat--wide .cat__img img { object-position: 50% 62%; }
.cat { display: block; }
.cat__img { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--taupe); }
.cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cat:hover .cat__img img { transform: scale(1.035); }
.cat__row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-top: 12px; flex-wrap: wrap; }
.cat__name { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.cat__go { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.cat:hover .cat__go { background-size: 100% 1px; }
@media (min-width: 960px) {
  .cats { grid-template-columns: repeat(3, 1fr); gap: 20px; padding-block: 88px 120px; }
  .cat--wide { grid-column: auto; }
  .cat--wide .cat__img { aspect-ratio: 3 / 4; }
  .cat__name { font-size: 26px; }
}

/* ---------- 4 · catálogo ---------- */
.shop { padding-bottom: 96px; }
.shop__head { display: grid; gap: 12px; padding-bottom: 28px; }
.shop__intro { color: var(--muted); max-width: 52ch; }
@media (min-width: 960px) {
  .shop__head { grid-template-columns: 1fr 1fr; align-items: end; padding-bottom: 40px; }
  .shop__intro { justify-self: end; text-align: right; }
}

.filters {
  position: sticky; top: var(--header-h); z-index: 30;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-block: 1px solid var(--line);
  margin-bottom: 28px;
  transition: top .4s var(--ease);
}
.header-hidden .filters { top: 0; }
.filters__inner { display: grid; gap: 4px; padding-block: 6px; }
.filters__tabs {
  display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
}
.filters__tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: none;
  font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
  padding: 12px 0;
  transition: color .2s;
}
.tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); }
.tab.is-active::after { transform: scaleX(1); }

.filters__opts {
  display: flex; align-items: center; gap: 20px;
  overflow-x: auto; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px;
}
.filters__opts::-webkit-scrollbar { display: none; }
.fgroup { display: flex; align-items: center; gap: 10px; flex: none; }
.fgroup .label { color: var(--muted); }
.fgroup__swatches { display: flex; gap: 6px; }
.filters__count { margin-left: auto; color: var(--muted); flex: none; }
@media (min-width: 960px) {
  .filters__inner { grid-template-columns: auto 1fr; align-items: center; gap: 40px; padding-block: 4px; }
  .filters__tabs { margin: 0; padding: 0; gap: 28px; }
  .filters__opts { margin: 0; padding: 0; justify-content: flex-end; gap: 32px; }
  .filters__count { margin-left: 0; }
}

/* muestras de color */
.sw {
  position: relative; width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(17,17,17,.14);
  transition: transform .18s var(--ease);
}
.sw:active { transform: scale(.88); }
.sw::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--ink); opacity: 0; transform: scale(.85);
  transition: opacity .2s, transform .25s var(--ease);
}
.sw:hover::after { opacity: .35; transform: scale(1); }
.sw[aria-pressed="true"]::after { opacity: 1; transform: scale(1); }
.sw:focus-visible { outline: none; }
.sw:focus-visible::after { opacity: 1; transform: scale(1); border-width: 2px; }
.sw--sm { width: 18px; height: 18px; }

/* tallas */
.sizes { display: flex; gap: 4px; }
.size {
  min-width: 34px; height: 32px; padding: 0 6px;
  font-size: 12px; font-weight: 500; letter-spacing: .06em;
  border: 1px solid var(--line); border-radius: var(--radius-btn);
  transition: border-color .2s, background-color .2s, color .2s, transform .18s var(--ease);
}
.size:active { transform: scale(.92); }
.size:hover { border-color: var(--ink); }
.size[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* grilla de productos */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 10px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 16px; } }
@media (min-width: 1180px) { .grid { gap: 56px 24px; } }

.card { display: flex; flex-direction: column; min-width: 0; }
.card[hidden] { display: none; }
.card__media {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--stone);
}
.card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .6s var(--ease), transform 1.2s var(--ease);
}
.card__media .alt { opacity: 0; }
@media (hover: hover) {
  .card__media:hover .alt { opacity: 1; }
  .card__media:hover img { transform: scale(1.02); }
}
.card__media.show-alt .alt { opacity: 1; }
.badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--white); color: var(--red);
  font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 8px; border-radius: var(--radius);
}
.badge--pack { background: var(--red); color: var(--white); }

.card__body { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; flex: 1; }
.card__name { font-size: 15px; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.card__fabric { font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: -6px; }
.card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.card__swatches { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px; margin: -4px; }
.card__picked { font-size: 12px; color: var(--muted); min-height: 1.4em; }
.card__picked > .sw { display: inline-block; vertical-align: -4px; margin-right: 8px; }
.card__picked b { font-weight: 500; color: var(--ink); }

/* ranuras de pack: qué colores lleva tu pack */
.slots { display: flex; gap: 4px; }
.slot {
  width: 22px; height: 22px; border-radius: var(--radius);
  border: 1px dashed #b7b2ab; background: var(--c, transparent);
  font-size: 10px; color: var(--muted); display: grid; place-items: center;
}
.slot.is-filled { border: 1px solid rgba(17,17,17,.18); color: transparent; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-btn); height: 32px; padding-inline: 2px; }
.qty button { width: 30px; height: 100%; font-size: 16px; line-height: 1; color: var(--ink); }
.qty button:disabled { color: #b7b2ab; cursor: default; }
.qty output { min-width: 22px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }

.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.price__now { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.price__now--pack { color: var(--red); }
.price__was { font-size: 12px; color: var(--muted); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.price__save { font-size: 11px; color: var(--red); letter-spacing: .04em; }
.card .btn { width: 100%; padding: 0 10px; min-height: 44px; font-size: 10.5px; letter-spacing: .12em; }

@media (max-width: 420px) {
  .card__name { font-size: 14px; }
  .card .btn span { display: none; }
  .card .btn::after { content: "Pedir"; }
  .sizes .size { min-width: 30px; }
}

.empty { padding: 48px 0; text-align: center; display: grid; gap: 16px; justify-items: center; color: var(--muted); }
.empty[hidden] { display: none; }

/* ---------- 5 · tela ---------- */
.fabric { display: grid; background: var(--stone); }
.fabric__media { position: relative; }
.fabric__frame { aspect-ratio: 4 / 5; overflow: hidden; }
.fabric__main { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; } /* encuadra la etiqueta */
.fabric__inset {
  position: absolute; right: var(--gutter); bottom: -40px;
  width: 38%; aspect-ratio: 4 / 5; object-fit: cover;
  border: 6px solid var(--stone);
}
.fabric__copy { padding: 80px var(--gutter) 72px; display: grid; gap: 22px; align-content: center; }
.attrs { display: grid; gap: 0; margin-top: 12px; border-top: 1px solid var(--taupe); }
.attr { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--taupe); }
.attr h3 { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.attr p { font-size: 14.5px; color: var(--muted); margin-top: 2px; }
@media (min-width: 960px) {
  .fabric { grid-template-columns: 1fr 1fr; }
  .fabric__frame { height: 100%; aspect-ratio: auto; min-height: 720px; }
  .fabric__inset { right: -64px; bottom: 64px; width: 34%; z-index: 2; border-width: 8px; }
  .fabric__copy { padding: 96px var(--gutter) 96px 120px; max-width: 720px; }
  .attrs { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .attr { flex-direction: column; gap: 14px; padding: 28px 0; }
}

/* ---------- 6 · packs ---------- */
.packs { position: relative; display: grid; }
.packs__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.packs__panel {
  position: relative; background: var(--white);
  margin: -48px var(--gutter) 0; padding: 32px 22px;
  display: grid; gap: 18px; align-content: start;
}
.packs__lead { color: var(--muted); max-width: 40ch; }
.packs__panel .btn { justify-self: start; }

/* etiqueta colgante: el precio del pack se muestra como la etiqueta de la prenda */
.tags { display: grid; gap: 12px; margin-block: 6px 10px; }
.tag {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px;
  padding: 16px 18px 16px 40px;
  background: var(--stone); border-radius: var(--radius);
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
  transition: background-color .25s;
}
.tag::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 1px var(--taupe);
}
.tag:hover { background: var(--taupe); }
.tag__name { font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.tag__meta { grid-column: 1; font-size: 12.5px; color: var(--muted); }
.tag__price { grid-row: 1 / span 2; grid-column: 2; text-align: right; }
.tag__price strong { display: block; font-size: 22px; font-weight: 600; color: var(--red); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tag__price span { font-size: 11px; color: var(--muted); }
@media (min-width: 960px) {
  .packs { grid-template-columns: 1fr; }
  .packs__media { overflow: hidden; }
  /* acerca la foto y la corre a la izquierda para que el panel no tape la etiqueta */
  .packs__media img { aspect-ratio: auto; height: 760px; object-position: 100% 54%; transform: scale(1.18); transform-origin: 100% 56%; }
  .packs__panel {
    position: absolute; inset-block: 0; margin: auto 0; height: fit-content;
    right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
    width: 480px; padding: 48px 44px;
  }
}

/* ---------- 7 · guía de tallas ---------- */
.sizeguide { display: grid; gap: 40px; padding-block: 104px 96px; }
.sizeguide__head { display: grid; gap: 16px; align-content: start; }
.sizeguide__head p { color: var(--muted); max-width: 42ch; }
.sizeguide__fig { width: 200px; margin-top: 16px; overflow: visible; }
.sizeguide__fig .tee { fill: var(--stone); stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; }
.sizeguide__fig .m { fill: none; stroke: var(--red); stroke-width: 1; }
.sizeguide__fig text { font-family: var(--font); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; fill: var(--ink); }

.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: var(--radius-btn); margin-bottom: 24px; padding: 3px; }
.seg button { border-radius: var(--radius-btn); padding: 8px 22px; font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.seg button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.tbl table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { text-align: left; padding: 16px 8px; border-bottom: 1px solid var(--line); font-size: 15px; }
.tbl thead th { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: 0; }
.tbl tbody th { font-weight: 600; width: 22%; }
.sizeguide__note { margin-top: 24px; font-size: 15px; }
@media (min-width: 960px) {
  .sizeguide { grid-template-columns: 5fr 7fr; gap: 80px; padding-block: 140px; }
  .tbl th, .tbl td { padding: 20px 12px; font-size: 16px; }
}

/* ---------- 8 · cómo comprar ---------- */
.steps { border-top: 1px solid var(--line); padding-block: 96px; }
.steps .h2 { margin-bottom: 48px; }
.steps__list { display: grid; gap: 40px; counter-reset: s; }
.step { display: grid; grid-template-columns: 40px 1fr; column-gap: 20px; row-gap: 4px; }
.step .icon { grid-row: 1 / span 3; }
.step__n { font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--red); }
.step h3 { font-size: 18px; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.step p { font-size: 14.5px; color: var(--muted); max-width: 34ch; }
@media (min-width: 960px) {
  .steps { padding-block: 120px; }
  .steps__list { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .step { grid-template-columns: 1fr; row-gap: 10px; padding-top: 24px; border-top: 1px solid var(--ink); }
  .step .icon { grid-row: auto; margin-bottom: 12px; }
}

/* ---------- 9 · beneficios ---------- */
.perks { background: var(--stone); }
.perks__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 12px; padding-block: 40px; }
.perks__list li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.perks .icon { width: 34px; height: 34px; }
@media (min-width: 960px) {
  .perks__list { grid-template-columns: repeat(4, 1fr); padding-block: 44px; }
  .perks__list li { flex-direction: row; justify-content: center; gap: 14px; font-size: 14px; }
}

/* ---------- 10 · lookbook ---------- */
.look { padding-block: 96px; }
.look__head { display: grid; gap: 20px; margin-bottom: 36px; }
.look__links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.look__links .link { font-size: 13px; }
.look__head > * { min-width: 0; }
@media (max-width: 520px) {
  /* el usuario de Instagram es largo: en celular el botón ocupa el ancho y aprieta el texto */
  .look__links .btn { width: 100%; padding-inline: 12px; font-size: 11px; letter-spacing: .06em; }
}
.look__grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; gap: 6px; }
.look__grid li { aspect-ratio: 3 / 4; overflow: hidden; background: var(--stone); }
.look__grid img { width: 100%; height: 100%; object-fit: cover; }
/* foto horizontal: ocupa el lugar de dos recuadros */
.look__grid li.look__wide { grid-column: span 2; aspect-ratio: 3 / 2; }
@media (min-width: 960px) {
  .look { padding-block: 128px; }
  .look__head { grid-template-columns: 1fr auto; align-items: end; margin-bottom: 48px; }
  .look__grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .look__grid li.look__big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}

/* ---------- 11 · FAQ ---------- */
.faq { background: var(--stone); padding-block: 96px; }
.faq__inner { display: grid; gap: 36px; }
.faq__head { display: grid; gap: 16px; align-content: start; }
.faq__head p { color: var(--muted); }
.faq__list { border-top: 1px solid var(--taupe); }
.qa { border-bottom: 1px solid var(--taupe); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-size: 17px; font-weight: 500; letter-spacing: -.01em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  background: linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
              linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat;
  transition: transform .3s var(--ease);
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { color: var(--muted); }
.qa p { padding: 0 32px 24px 0; color: var(--muted); max-width: 62ch; }
@media (min-width: 960px) {
  .faq { padding-block: 128px; }
  .faq__inner { grid-template-columns: 5fr 7fr; gap: 80px; }
}

/* ---------- 12 · CTA final ---------- */
.final { position: relative; min-height: 78svh; display: grid; align-items: end; color: var(--white); background: var(--ink); overflow: hidden; }
.final__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 18%; filter: grayscale(1) contrast(1.05); opacity: .9; }
.final__copy { position: relative; display: grid; gap: 28px; justify-items: start; padding-block: 64px; }
.final__title { font-size: clamp(44px, 9vw, 132px); font-weight: 500; font-style: normal; letter-spacing: -.045em; line-height: .92; max-width: 11ch; }

/* ---------- 13 · footer ---------- */
.footer { background: var(--ink); color: #d9d6d1; padding-top: 72px; font-size: 14px; }
.footer__grid { display: grid; gap: 40px; padding-bottom: 56px; }
.footer__brand img { height: 26px; width: auto; margin-bottom: 18px; }
.footer__brand p { max-width: 32ch; color: #b3afa9; }
.footer__col h3 { color: var(--white); margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a:hover { color: var(--white); }
.footer__book { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #4a4744; padding: 8px 14px; border-radius: var(--radius-btn); margin-top: 6px; }
.footer__book:hover { border-color: var(--white); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #2c2a28; padding-block: 24px calc(96px + env(safe-area-inset-bottom)); font-size: 12px; color: #a29e98; }
@media (min-width: 960px) {
  .footer__grid { grid-template-columns: 2fr 1.3fr 1fr 1fr; }
  .footer__base { padding-bottom: 28px; padding-right: 104px; }
}

/* ---------- botón flotante ---------- */
.fab {
  position: fixed; z-index: 45;
  right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--white);
  box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 6px 18px rgba(0,0,0,.18);
  transition: transform .3s var(--ease), background-color .25s, opacity .4s var(--ease), visibility .4s;
}
.fab .i-wa { width: 26px; height: 26px; }
.fab:hover { transform: translateY(-2px); background: #2a2a2a; }
.fab:active { transform: scale(.94); }
@media (min-width: 960px) { .fab { right: 28px; bottom: 28px; } }
/* aparece al pasar el hero, con un único pulso */
.js .fab:not(.is-visible) { opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9); }
.fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--ink); opacity: 0; pointer-events: none;
}
.fab.pulse::after { animation: fabPulse 1.5s var(--ease) .35s 1 both; }
@keyframes fabPulse { from { opacity: .55; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }

/* ---------- aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- animaciones ---------- */
/* hero: zoom lento de la foto y titular que se descubre línea por línea */
.hero__media { overflow: hidden; }
.hero__media img { animation: heroZoom 9s cubic-bezier(.16, .6, .3, 1) both; }
@keyframes heroZoom { from { transform: scale(1.08); } }
.hero__title { animation: none; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero__title .line > span { display: block; animation: lineUp 1.1s var(--ease) .15s both; }
.hero__title .line + .line > span { animation-delay: .29s; }
@keyframes lineUp { from { transform: translateY(110%); } }

/* fotos que se descubren como una cortina */
.js .unveil .cat__img,
.js .unveil .fabric__frame,
.js .unveil .final__img { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease); }
.js .unveil.is-in .cat__img,
.js .unveil.is-in .fabric__frame,
.js .unveil.is-in .final__img { clip-path: inset(0 0 0 0); }
.js .unveil .cat__img img { transform: scale(1.12); transition: transform 1.6s var(--ease); }
.js .unveil.is-in .cat__img img { transform: none; }
.js .unveil.is-in:hover .cat__img img { transform: scale(1.035); transition-duration: 1.2s; }
.js .unveil .cat__row { opacity: 0; transform: translateY(8px); transition: opacity .7s var(--ease) .45s, transform .7s var(--ease) .45s; }
.js .unveil.is-in .cat__row { opacity: 1; transform: none; }
.js .cats .cat:nth-child(2) .cat__img { transition-delay: .12s; }
.js .cats .cat:nth-child(3) .cat__img { transition-delay: .24s; }
.js .unveil .fabric__inset { opacity: 0; translate: 0 28px; transition: opacity .9s var(--ease) .55s, translate .9s var(--ease) .55s; }
.js .unveil.is-in .fabric__inset { opacity: 1; translate: 0 0; }

/* parallax leve: --py lo actualiza main.js al hacer scroll */
.js [data-parallax] { transform: translate3d(0, calc(var(--py, 0) * 1px), 0) scale(1.12); will-change: transform; }

/* cambio de color: la foto nueva se funde sobre la anterior */
.card__media .fade { opacity: 0; z-index: 1; }
.card__media .fade.is-in { opacity: 1; }

/* cambio de pestaña: las tarjetas salen juntas y entran en cascada */
.grid { transition: opacity .2s ease; }
.grid.is-switching { opacity: 0; }

/* preguntas frecuentes */
.qa.is-closing summary::after { transform: none; }

/* respuesta al tocar */
a, button { -webkit-tap-highlight-color: transparent; }
.qty button { transition: transform .18s var(--ease); }
.qty button:active:not(:disabled) { transform: scale(.82); }
.tab:active { opacity: .6; }
.cat:active .cat__img { opacity: .92; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
