/* Fuentes servidas desde la propia tienda (licencia SIL OFL, ver /fonts) */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url('/fonts/jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fuentes servidas desde la propia tienda (licencia SIL OFL, ver /fonts) */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url('/fonts/jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================
   Maxine Sports — hoja de estilos
   Estética: minimalismo editorial (ref. Alo Yoga)
   ========================================================= */

:root {
  --bg: #faf9f7;
  --bg-2: #f1eee9;
  --sand: #e8e3dc;
  --ink: #111111;
  --ink-2: #4a4845;
  --muted: #6b665f; /* contraste AA sobre el fondo crema */
  --line: #e4e0da;
  --white: #ffffff;
  --sale: #b3452f;

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-logo: 'Jost', 'Futura', 'Century Gothic', sans-serif;
  --track: 0.14em;
  --radius: 2px;

  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(64px, 9vw, 128px);

  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 68px;
  --announce-h: 36px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  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; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
p { margin: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

body.no-scroll { overflow: hidden; }

/* ---------- Utilidades ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.eyebrow--light { color: rgba(255,255,255,.8); }
.eyebrow a { border-bottom: 1px solid currentColor; padding-bottom: 1px; }

.section { padding: 0 var(--gutter); margin-top: var(--section); }
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
}
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.section__title { font-size: clamp(26px, 3vw, 40px); font-weight: 400; }
.section__foot { display: flex; justify-content: center; margin-top: 56px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--dark:hover { background: #2a2a2a; }
.btn--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--light:hover { background: var(--sand); border-color: var(--sand); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--block { width: 100%; }
.btn--wa svg { width: 18px; height: 18px; flex: none; }
.btn.is-disabled { opacity: .35; pointer-events: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
}
.link-arrow i { font-style: normal; transition: transform .35s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* Animación de aparición */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Barra de anuncio ---------- */
.announcement {
  height: var(--announce-h);
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  position: relative;
  z-index: 60;
}
.announcement__track {
  display: flex;
  gap: 80px;
  height: 100%;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: marquee 38s linear infinite;
  padding-left: 80px;
}
.announcement__track span {
  font-size: 10.5px;
  letter-spacing: var(--track);
  text-transform: uppercase;
  font-weight: 500;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cabecera ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: transparent;
  color: var(--white);
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
  margin-bottom: calc(-1 * var(--header-h));
}
.header.is-solid {
  background: rgba(250,249,247,.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner {
  height: 100%;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.header__nav { display: flex; gap: 24px; padding-right: 32px; white-space: nowrap; }
.header__nav a, .mobile-menu nav a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
.header__nav a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header .is-sale { color: inherit; opacity: .85; }
.header.is-solid .is-sale { color: var(--sale); opacity: 1; }

/* Logo: MAXINE fino con SPORTS espaciado debajo */
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  font-family: var(--font-logo);
}
.logo__main { font-size: 1em; font-weight: 300; letter-spacing: .1em; padding-left: .1em; }
.logo__sub  { font-size: .3em; font-weight: 400; letter-spacing: .9em; padding-left: .9em; margin-top: .35em; }
.header__logo { font-size: 30px; }

.header__actions { display: flex; justify-content: flex-end; gap: 6px; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  position: relative;
  border-radius: 999px;
  transition: background .3s var(--ease);
}
.icon-btn:hover { background: rgba(127,127,127,.12); }
.icon-btn__label { display: none; }
.cart-count {
  position: absolute;
  top: 4px; right: 2px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: currentColor;
  font-size: 9.5px;
  font-weight: 700;
  display: grid; place-items: center;
}
.cart-count::after { content: attr(data-n); }
.header .cart-count { color: var(--white); }
.header .cart-count span, .cart-count { color: var(--white); }
#cartCount { background: var(--white); color: var(--ink); }
.header.is-solid #cartCount { background: var(--ink); color: var(--white); }

.header__burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  align-items: flex-start;
}
.header__burger span { display: block; height: 1.5px; width: 22px; background: currentColor; transition: transform .35s var(--ease), width .35s var(--ease); }
.header__burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

/* Menú móvil */
.mobile-menu {
  position: fixed;
  inset: calc(var(--header-h)) 0 0 0;
  background: var(--bg);
  z-index: 45;
  padding: 40px var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(-100%);
  transition: transform .5s var(--ease);
  overflow: hidden;
}
.mobile-menu.is-open { transform: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 22px; }
.mobile-menu nav a { font-size: 22px; letter-spacing: .08em; font-weight: 500; }
.mobile-menu .is-sale { color: var(--sale); }
.mobile-menu__foot { display: flex; flex-wrap: wrap; row-gap: 12px; gap: 24px; font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  animation: heroZoom 9s var(--ease) forwards;
  transform-origin: center;
}
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.45) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 0 var(--gutter) clamp(56px, 9vh, 110px);
  max-width: 760px;
}
.hero__title {
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: .98;
  margin-bottom: 20px;
}
.hero__sub { font-size: clamp(15px, 1.3vw, 18px); color: rgba(255,255,255,.88); max-width: 460px; margin-bottom: 36px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 40px;
  width: 1px; height: 64px;
  background: rgba(255,255,255,.3);
  overflow: hidden;
}
.hero__scroll span {
  position: absolute; inset: 0;
  background: var(--white);
  transform: translateY(-100%);
  animation: scrollHint 2.2s var(--ease) infinite;
}
@keyframes scrollHint { 0% { transform: translateY(-100%);} 60% { transform: translateY(100%);} 100% { transform: translateY(100%);} }

/* Entrada del hero: solo CSS, no depende de JavaScript */
.hero-in { animation: heroIn 1s var(--ease) both; }
.hero-in:nth-child(1) { animation-delay: .15s; }
.hero-in:nth-child(2) { animation-delay: .25s; }
.hero-in:nth-child(3) { animation-delay: .35s; }
.hero-in:nth-child(4) { animation-delay: .45s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-in { animation: none; } }

/* ---------- Categorías ---------- */
.categories { margin-top: 8px; padding: 0 8px; }
.categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.cat-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--sand);
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 1.2s var(--ease); }
.cat-card:hover img { transform: scale(1.05); }
.cat-card__label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,0));
  font-size: 12px; letter-spacing: var(--track); text-transform: uppercase; font-weight: 600;
}
.cat-card__label i { font-style: normal; transition: transform .4s var(--ease); }
.cat-card:hover .cat-card__label i { transform: translateX(6px); }
.cat-card.reveal:nth-child(2) { transition-delay: .08s; }
.cat-card.reveal:nth-child(3) { transition-delay: .16s; }
.cat-card.reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Productos ---------- */
.filter-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.filter-tabs button {
  padding: 10px 18px;
  font-size: 11px; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase;
  color: var(--muted);
  border-radius: 999px;
  transition: color .3s, background .3s;
}
.filter-tabs button:hover { color: var(--ink); }
.filter-tabs button.is-active { color: var(--ink); background: var(--bg-2); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 20px;
}
.product {
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 1;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.product.is-hidden { display: none; }
.catalog-msg { grid-column: 1 / -1; padding: 48px 0; text-align: center; color: var(--muted); }
[hidden] { display: none !important; }
.product__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-2);
}
.product__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: opacity .6s var(--ease), transform 1s var(--ease);
}
.product__media img.alt { opacity: 0; }
.product:hover .product__media img.alt { opacity: 1; }
.product:hover .product__media img.main { transform: scale(1.03); }
.product__tag {
  font-size: 10px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase;
  color: var(--muted);
}
.product__tag--sale { color: var(--sale); }
.product__wish {
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.85);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .3s, transform .3s, background .3s;
}
.product:hover .product__wish, .product__wish.is-on { opacity: 1; transform: none; }
.product__wish svg { width: 16px; height: 16px; }
.product__wish.is-on svg { fill: var(--ink); stroke: var(--ink); }
.product__quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  padding: 14px;
  background: var(--white);
  color: var(--ink);
  font-size: 10.5px; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase;
  transform: translateY(calc(100% + 14px));
  transition: transform .45s var(--ease), background .3s;
  text-align: center;
}
.product:hover .product__quick { transform: none; }
.product__quick:hover { background: var(--ink); color: var(--white); }
.product__quick-icon { display: none; }

/* Selector de talla en el teléfono (sube desde abajo) */
.size-sheet {
  position: fixed; inset: 0; z-index: 85;
  background: rgba(17,17,17,.4);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.size-sheet.is-open { opacity: 1; pointer-events: auto; }
.size-sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  padding: 18px 16px calc(22px + env(safe-area-inset-bottom));
  border-radius: 14px 14px 0 0;
  transform: translateY(100%);
  transition: transform .4s var(--ease);
}
.size-sheet.is-open .size-sheet__panel { transform: none; }
.size-sheet__head { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; margin-bottom: 20px; }
.size-sheet__head img { width: 56px; aspect-ratio: 3/4; object-fit: cover; object-position: top; background: var(--bg-2); }
.size-sheet__name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.size-sheet__meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.size-sheet__sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
.size-sheet__sizes button {
  height: 52px;
  font-size: 14px; font-weight: 600;
  border: 1px solid var(--line);
  background: var(--white);
  transition: background .2s, color .2s, border-color .2s;
}
.size-sheet__sizes button:active { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Selector de tallas dentro de quick add */
.product__sizes {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: var(--white);
  padding: 12px;
  display: none;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
}
.product__sizes.is-open { display: grid; }
.product__sizes button {
  padding: 10px 0;
  font-size: 11px; font-weight: 600;
  border: 1px solid var(--line);
  transition: background .25s, color .25s, border-color .25s;
}
.product__sizes button:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.product__info { display: flex; flex-direction: column; gap: 6px; }
.product__row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.product__name { font-size: 13.5px; font-weight: 500; }
.product__price { font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.product__price s { color: var(--muted); font-weight: 400; margin-right: 8px; }
.product__price.is-sale { color: var(--sale); }
.product__color { font-size: 12px; color: var(--muted); }
.swatches { display: flex; gap: 8px; margin-top: 4px; }
.swatch {
  width: 18px; height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 0 0 1px transparent;
  transition: box-shadow .25s;
  position: relative;
}
.swatch.is-active { box-shadow: 0 0 0 1px var(--bg), 0 0 0 2px var(--ink); }

/* ---------- Editorial ---------- */
.editorial {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.editorial__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.editorial__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.editorial__text { max-width: 480px; display: flex; flex-direction: column; gap: 22px; }
.editorial__title { font-size: clamp(30px, 3.4vw, 48px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.08; }
.editorial__text p { color: var(--ink-2); font-size: 15.5px; line-height: 1.75; }
.editorial__text .link-arrow { align-self: flex-start; margin-top: 6px; }

/* ---------- Banner colección ---------- */
.collection {
  position: relative;
  margin-top: var(--section);
  height: clamp(520px, 80vh, 820px);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.collection__media { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.collection__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.collection::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.42); }
.collection__content { position: relative; z-index: 1; max-width: 640px; padding: 0 var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.collection__content h2 { font-size: clamp(36px, 5vw, 68px); font-weight: 400; letter-spacing: -0.02em; }
.collection__content p { color: rgba(255,255,255,.9); font-size: 16px; max-width: 480px; }
.collection__content .btn { margin-top: 10px; }

/* ---------- Carrusel ---------- */
.carousel-nav { display: flex; gap: 8px; }
.carousel-nav button {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid; place-items: center;
  transition: background .3s, border-color .3s, color .3s;
}
.carousel-nav button:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.carousel-nav button:disabled { opacity: .3; pointer-events: none; }
.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 20px) / 4);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel .product { scroll-snap-align: start; }

/* ---------- Valores ---------- */
.values { padding-top: var(--section); border-top: 1px solid var(--line); }
.values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.value { display: flex; flex-direction: column; gap: 14px; }
.value svg { width: 28px; height: 28px; stroke-width: 1.2; margin-bottom: 6px; }
.value h3 { font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.value p { color: var(--ink-2); font-size: 14px; line-height: 1.7; }
.value.reveal:nth-child(2) { transition-delay: .08s; }
.value.reveal:nth-child(3) { transition-delay: .16s; }
.value.reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Comunidad ---------- */
.community__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.community__item { aspect-ratio: 1; overflow: hidden; background: var(--sand); }
.community__item img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; transition: transform 1s var(--ease), filter .6s; }
.community__item:hover img { transform: scale(1.06); }
.community__item.reveal:nth-child(2) { transition-delay: .06s; }
.community__item.reveal:nth-child(3) { transition-delay: .12s; }
.community__item.reveal:nth-child(4) { transition-delay: .18s; }
.community__item.reveal:nth-child(5) { transition-delay: .24s; }
.community__item.reveal:nth-child(6) { transition-delay: .30s; }

/* ---------- Newsletter ---------- */
.newsletter {
  margin-top: var(--section);
  background: var(--bg-2);
  padding: clamp(64px, 8vw, 110px) var(--gutter);
}
.newsletter__inner { max-width: 560px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.newsletter h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 400; letter-spacing: -0.02em; }
.newsletter p { color: var(--ink-2); }
.newsletter__form { display: flex; width: 100%; margin-top: 12px; border: 1px solid var(--ink); }
.newsletter__form input {
  flex: 1;
  min-width: 0;
  padding: 16px 20px;
  font: inherit;
  font-size: 14px;
  border: 0;
  background: transparent;
  outline: none;
}
.newsletter__form input::placeholder { color: var(--muted); }
.newsletter__form .btn { border-radius: 0; padding-inline: 28px; }
.newsletter__msg { font-size: 13px; color: var(--muted); min-height: 1.5em; }

/* ---------- Pie ---------- */
.footer { padding: clamp(56px, 7vw, 96px) var(--gutter) 32px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 48px; }
.footer__brand { max-width: 320px; display: flex; flex-direction: column; gap: 20px; }
.footer__logo { font-size: 34px; align-self: flex-start; }
.footer__brand p { color: var(--ink-2); font-size: 14px; }
.footer__social { display: flex; gap: 6px; }
.footer__social a { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; border: 1px solid var(--line); transition: background .3s, color .3s, border-color .3s; }
.footer__social a:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.footer__social svg { width: 16px; height: 16px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col .footer__title { font-size: 11px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; margin-bottom: 8px; }
.footer__col a { font-size: 14px; color: var(--ink-2); transition: color .3s; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
}
.footer__legal { display: flex; gap: 20px; }
.footer__locale { font-size: 12px; color: var(--muted); letter-spacing: .04em; }

/* ---------- Bolsa (drawer) ---------- */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(17,17,17,.4);
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease);
  z-index: 70;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(440px, 100vw);
  background: var(--bg);
  z-index: 80;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .5s var(--ease);
  box-shadow: -20px 0 60px rgba(0,0,0,.08);
}
.cart.is-open { transform: none; }
.cart__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.cart__head h2 { font-size: 13px; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; }
.cart__head h2 span { color: var(--muted); font-weight: 400; }
.cart__shipping { padding: 18px 24px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.cart__bar { height: 2px; background: var(--line); margin-top: 12px; }
.cart__bar span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .6s var(--ease); }
.cart__items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart__empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; color: var(--ink-2); }
.cart-item { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 88px; aspect-ratio: 3/4; object-fit: cover; background: var(--sand); }
.cart-item__body { display: flex; flex-direction: column; gap: 6px; }
.cart-item__row { display: flex; justify-content: space-between; gap: 12px; }
.cart-item__name { font-size: 13.5px; font-weight: 500; }
.cart-item__meta { font-size: 12px; color: var(--muted); }
.cart-item__price { font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.cart-item__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 30px; height: 30px; display: grid; place-items: center; font-size: 14px; transition: background .25s; }
.qty button:hover { background: var(--bg-2); }
.qty span { min-width: 28px; text-align: center; font-size: 12.5px; font-weight: 500; }
.cart-item__remove { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
.cart-item__remove:hover { color: var(--ink); border-color: var(--ink); }
.cart__foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.cart__total { display: flex; justify-content: space-between; font-size: 14px; }
.cart__total strong { font-weight: 600; }
.cart__note { font-size: 12px; color: var(--muted); margin-bottom: 8px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--ink); color: var(--white);
  padding: 12px 20px;
  font-size: 12px; letter-spacing: .06em;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  z-index: 90;
  width: max-content;
  max-width: calc(100vw - 32px);
  text-align: center;
  line-height: 1.45;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .carousel { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
  .community__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 1180px) {
  .header__nav { display: none; }
  .header__burger { display: flex; }
  .header__inner { grid-template-columns: 40px 1fr auto; }
  .header__logo { justify-self: center; font-size: 24px; }
  .categories__grid { grid-template-columns: repeat(2, 1fr); }
  .editorial { grid-template-columns: 1fr; }
  .editorial__text { max-width: none; }
  .values__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section__head--center { align-items: center; }
  .carousel-nav { align-self: flex-end; }
}
@media (max-width: 600px) {
  body { font-size: 14px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .carousel { grid-auto-columns: 72%; gap: 12px; }
  .community__grid { grid-template-columns: repeat(2, 1fr); }
  .values__grid { grid-template-columns: 1fr; }
  .hero { min-height: 560px; }
  .hero__ctas .btn { flex: 1; }
  .hero__scroll { display: none; }
  .hero__media { grid-template-columns: 1fr; }
  .hero__second { display: none; }
  .collection__media { grid-template-columns: 1fr; }
  .collection__media img:not(:nth-child(2)) { display: none; }
  .newsletter__form { flex-direction: column; border: 0; gap: 10px; }
  .newsletter__form input { border: 1px solid var(--ink); }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  /* Botón + siempre visible en el teléfono */
  .product__quick {
    left: auto; right: 8px; bottom: 8px;
    width: 40px; height: 40px; padding: 0;
    border-radius: 999px;
    display: grid; place-items: center;
    transform: none;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
  }
  .product__quick-text { display: none; }
  .product__quick-icon { display: block; width: 18px; height: 18px; stroke-width: 1.8; }
  .product__wish { opacity: 1; transform: none; }
  .product__sizes { display: none !important; }
  /* Filtros en una sola fila deslizable */
  .filter-tabs {
    flex-wrap: nowrap; overflow-x: auto;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter);
    scrollbar-width: none; width: calc(100% + 2 * var(--gutter));
  }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tabs button { white-space: nowrap; flex: none; }
}


/* =========================================================
   Páginas internas (producto, ayuda, 404)
   ========================================================= */
.header.is-static { margin-bottom: 0; }

/* Enlace que cubre la foto de la tarjeta */
.product__media-link { position: absolute; inset: 0; display: block; }
.product.is-soldout .product__media img.main { opacity: .55; }
.product__sizes button.is-soldout,
.size-sheet__sizes button.is-soldout { color: var(--muted); text-decoration: line-through; background: var(--bg-2); cursor: not-allowed; }
.size-sheet__sizes button.is-soldout { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.size-sheet__sizes button small { font-size: 9.5px; font-weight: 500; text-decoration: none; letter-spacing: .04em; margin-top: 2px; }
.size-sheet__label { display: flex; justify-content: space-between; align-items: baseline; }
.size-sheet__label .eyebrow { margin-bottom: 12px; }
.size-sheet__guide, .pdp__guide { font-size: 12.5px; color: var(--ink-2); border-bottom: 1px solid currentColor; padding-bottom: 1px; }

/* ---------- Ruta ---------- */
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 18px var(--gutter);
  font-size: 12px; color: var(--muted);
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current] { color: var(--ink-2); }

/* ---------- Ficha de producto ---------- */
.pdp__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  padding: 0 var(--gutter);
  align-items: start;
}
.pdp__slides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pdp__slides img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; background: var(--bg-2); }
.pdp__slides img:only-child { grid-column: 1 / -1; max-width: 640px; }
.pdp__dots { display: none; }

.pdp__info { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 22px; max-width: 480px; }
.pdp__info > .product__tag { margin-bottom: -12px; }
.pdp__name { font-size: clamp(26px, 2.6vw, 36px); font-weight: 400; letter-spacing: -0.015em; line-height: 1.1; }
.pdp__price { font-size: 18px; font-weight: 500; margin-top: -10px; }
.pdp__price .is-sale { color: var(--sale); }
.pdp__price s { color: var(--muted); font-weight: 400; margin-right: 6px; }
.pdp__block { display: flex; flex-direction: column; gap: 12px; }
.pdp__label { font-size: 12px; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--ink-2); }
.pdp__label strong { color: var(--ink); font-weight: 600; letter-spacing: .04em; text-transform: none; font-size: 13.5px; margin-left: 4px; }
.pdp__label-row { display: flex; justify-content: space-between; align-items: baseline; }
.pdp__swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch--lg { width: 30px; height: 30px; }
.pdp__sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 8px; }
.pdp__sizes button {
  height: 50px;
  font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color .2s, background .2s, color .2s;
}
.pdp__sizes button:hover:not(:disabled) { border-color: var(--ink); }
.pdp__sizes button.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pdp__sizes button.is-soldout { color: var(--muted); background: var(--bg-2); text-decoration: line-through; cursor: not-allowed; }
.pdp__hint { font-size: 13px; color: var(--sale); min-height: 1.2em; margin-top: -4px; }
.pdp__sizesBlock, #pdpSizesBlock.is-error .pdp__sizes { animation: shake .4s; }
#pdpSizesBlock.is-error .pdp__sizes button:not(:disabled) { border-color: var(--sale); }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.pdp__add { padding: 18px; font-size: 12px; }
.pdp__perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.pdp__perks li { display: flex; gap: 10px; align-items: baseline; }
.pdp__perks li::before { content: '—'; color: var(--muted); }
.pdp__details { border-top: 1px solid var(--line); }
.pdp__details details { border-bottom: 1px solid var(--line); }
.pdp__details summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0;
  font-size: 12px; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase;
}
.pdp__details summary::-webkit-details-marker { display: none; }
.pdp__details summary::after { content: '+'; font-size: 18px; font-weight: 300; transition: transform .3s var(--ease); }
.pdp__details details[open] summary::after { transform: rotate(45deg); }
.pdp__text, .pdp__benefits { padding-bottom: 20px; font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.pdp__text p + p { margin-top: 10px; }
.pdp__text a { color: var(--ink); border-bottom: 1px solid currentColor; }
.pdp__benefits { margin: 0; padding-left: 18px; }
.related { margin-top: clamp(64px, 8vw, 110px); }
.pdp-bar { display: none; }

/* ---------- Ayuda y legales ---------- */
.help {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(32px, 5vw, 64px) var(--gutter) 0;
}
.help__nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.help__nav a { padding: 10px 14px; font-size: 13.5px; color: var(--ink-2); border-radius: 999px; transition: background .2s, color .2s; }
.help__nav a:hover { color: var(--ink); background: var(--bg-2); }
.help__nav a[aria-current] { color: var(--ink); background: var(--bg-2); font-weight: 600; }
.help__body h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 400; letter-spacing: -0.02em; margin-bottom: 14px; }
.help__body h2 { font-size: 13px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; margin: 40px 0 14px; }
.help__body p, .help__body li { font-size: 15.5px; line-height: 1.75; color: var(--ink-2); }
.help__body p + p { margin-top: 12px; }
.help__body ul, .help__body ol { padding-left: 20px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.help__body a:not(.btn):not(.contact-card) { color: var(--ink); border-bottom: 1px solid currentColor; }
.help__body strong { color: var(--ink); font-weight: 600; }
.help__lead { font-size: 18px !important; color: var(--ink) !important; max-width: 560px; }
.help__note { font-size: 13px !important; color: var(--muted) !important; margin-top: 12px; }
.help__cta { margin-top: 48px; padding: 28px; background: var(--bg-2); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.help__cta p { color: var(--ink) !important; }

.facts, .measure { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div, .measure div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt, .measure dt { font-size: 13px; font-weight: 600; color: var(--ink); }
.facts dd, .measure dd { margin: 0; font-size: 15px; color: var(--ink-2); }
.facts + p { margin-top: 18px; }

.unit-toggle { display: inline-flex; padding: 4px; background: var(--bg-2); border-radius: 999px; margin: 28px 0 16px; }
.unit-toggle button { padding: 9px 18px; font-size: 12px; font-weight: 600; letter-spacing: .06em; border-radius: 999px; color: var(--ink-2); }
.unit-toggle button.is-active { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.js .size-tables[data-show="in"] .size-table[data-unit="cm"],
.js .size-tables[data-show="cm"] .size-table[data-unit="in"] { display: none; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.size-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-bottom: 8px; }
.size-table caption { text-align: left; font-size: 12px; color: var(--muted); padding-bottom: 10px; }
.size-table th, .size-table td { padding: 13px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.size-table thead th { font-size: 11px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--ink); background: var(--bg-2); }
.size-table tbody th { font-weight: 700; }
.size-table td { color: var(--ink-2); font-variant-numeric: tabular-nums; }

.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 28px; }
.contact-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--white); border: 1px solid var(--line); transition: border-color .25s, transform .25s var(--ease); }
.contact-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.contact-card__title { font-size: 12px; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; }
.contact-card__text { font-size: 15px; color: var(--ink-2); }
.contact-card__cta { font-size: 13px; font-weight: 600; margin-top: 8px; }
.link-list { list-style: none; padding: 0 !important; }

.notfound { min-height: 55vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; padding: 64px var(--gutter); }
.notfound h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 400; }
.notfound p { color: var(--ink-2); max-width: 420px; }

/* ---------- Móvil: ficha y ayuda ---------- */
@media (max-width: 860px) {
  .pdp__grid { grid-template-columns: 1fr; padding: 0; gap: 24px; }
  .breadcrumb { padding: 14px var(--gutter); }
  /* Galería deslizable de borde a borde */
  .pdp__gallery { position: relative; }
  .pdp__slides {
    display: flex; gap: 0;
    overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .pdp__slides::-webkit-scrollbar { display: none; }
  .pdp__slides img { flex: 0 0 100%; scroll-snap-align: start; max-width: none !important; }
  .pdp__dots { display: flex; justify-content: center; gap: 6px; position: absolute; left: 0; right: 0; bottom: 14px; }
  .pdp__dots[hidden] { display: none; }
  .pdp__dots span { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.6); box-shadow: 0 0 0 1px rgba(0,0,0,.08); transition: width .3s, background .3s; }
  .pdp__dots span.is-active { width: 18px; background: var(--white); }
  .pdp__info { position: static; max-width: none; padding: 0 var(--gutter); }

  .help { grid-template-columns: 1fr; gap: 24px; padding-top: 20px; }
  .help__nav {
    position: static; flex-direction: row; overflow-x: auto;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .help__nav::-webkit-scrollbar { display: none; }
  .help__nav a { white-space: nowrap; flex: none; border: 1px solid var(--line); }
  .help__nav a[aria-current] { border-color: var(--ink); background: var(--ink); color: var(--white); }
  .facts div, .measure div { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 600px) {
  /* Barra fija para añadir al carrito, a mano del pulgar */
  .page-product { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .pdp-bar {
    display: flex; align-items: center; gap: 14px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(250,249,247,.96);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    transition: transform .35s var(--ease);
  }
  .pdp-bar.is-hidden { transform: translateY(110%); }
  .pdp-bar__text { flex: 1; min-width: 0; }
  .pdp-bar__name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pdp-bar__meta { font-size: 12.5px; color: var(--muted); }
  .pdp-bar .btn { padding: 15px 26px; }
  .page-product .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .help__body p, .help__body li { font-size: 15px; }
  .help__cta { padding: 22px; }
  .size-table th, .size-table td { padding: 12px 8px; font-size: 13.5px; }
}
