﻿/* Mr Flow — gorras y streetwear, Caracas */

/* Epilogue, variable 400–900, latin (á é í ó ú ñ ¿ ¡ « ») — served from here, no Google request */
@font-face {
  font-family: "Epilogue";
  src: url("../assets/fonts/epilogue-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  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: "Archivo GB";
  src: url("../assets/fonts/archivo-gb-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: block;
}

:root {
  --paper: #eeeeeb;
  --paper-2: #e2e2dd;
  --paper-3: #d6d6d0;
  --ink: #0c0d0c;
  --ink-2: #1a1c1a;
  --ink-3: #272a27;
  --muted: #555955;
  --muted-ink: #a3a7a2;
  --green: #2bd66b;
  --green-2: #25c25f;
  --green-3: #1faf54;

  --font: "Epilogue", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-small: clamp(0.875rem, 0.84rem + 0.15vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.5rem, 1.2rem + 5vw, 5.5rem);
  --step-display: clamp(5.25rem, 11.4vw, 14rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --section: clamp(7rem, 12vw, 13rem);
  --nav-h: 64px;
  --jump-room: 0px; /* space kept free at the bottom for the catalog button (phones only) */

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  --t-press: .14s;
  --t-hover: .18s;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
  background: var(--paper);
}
/* the page ends on the developer's signature: past the end (the bounce on phones) it stays black */
html.at-end { background: var(--paper-2); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
h2, h3, summary { text-wrap: balance; }
p, dd { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--green); color: var(--ink); }

:focus-visible { outline: 2px solid var(--green-3); outline-offset: 3px; }
[data-tone="ink"] :focus-visible, [data-tone="photo"] :focus-visible { outline-color: var(--green); }
[data-tone="green"] :focus-visible { outline-color: var(--ink); }

.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 {
  position: fixed; left: var(--margin); top: -80px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

[data-tone="paper"] { background: var(--paper); color: var(--ink); }
[data-tone="ink"] { background: var(--ink); color: var(--paper); }
[data-tone="green"] { background: var(--green); color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.25rem;
  border: 0; border-radius: 0;
  font-size: 1rem; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.btn:active { transform: scale(.97); }
.btn--accent { background: var(--green); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--line { background: var(--paper-2); color: var(--ink); }
[data-tone="ink"] .btn--ink { background: var(--paper); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn--accent:hover { background: #4ee083; }
  .btn--ink:hover { background: var(--ink-3); }
  [data-tone="ink"] .btn--ink:hover { background: #ffffff; }
  .btn--line:hover { background: var(--paper-3); }
}

/* ---------- navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-inline: var(--margin);
  background: transparent;
  transition: background-color .3s ease, color .3s ease;
}
.nav[data-solid] { background: var(--paper); }
.nav[data-tone="ink"][data-solid], .nav[data-tone="photo"][data-solid] { background: var(--ink); color: var(--paper); }
.nav[data-tone="green"][data-solid] { background: var(--green); color: var(--ink); }
.nav[data-tone="paper"] { color: var(--ink); }
.nav__brand {
  display: inline-flex; align-items: center; gap: .65rem;
  text-decoration: none; font-weight: 900; font-size: var(--step-body); letter-spacing: -0.03em;
}
.nav__brand img { width: 40px; height: 40px; border-radius: 50%; }
.nav__links { display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); margin-left: auto; margin-right: clamp(.5rem, 1.6vw, 1.5rem); font-size: var(--step-small); font-weight: 500; }
.nav__links a { position: relative; text-decoration: none; padding: .5rem 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .3rem; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); }
html:has(dialog[open]) { overflow: hidden; }
.hero__pick {
  border: 0; background: none; padding: 4px 0; font: inherit; color: inherit; cursor: pointer; text-align: right;
  text-decoration: underline; text-decoration-color: var(--green-3); text-decoration-thickness: 2px; text-underline-offset: .3em;
}
.hero__pick:hover { text-decoration-color: currentColor; }
.toast__btn { margin-left: 8px; border: 0; padding: 4px 0; background: none; color: var(--green); font-weight: 500; text-decoration: underline; text-underline-offset: .2em; }
.nav__actions { display: flex; align-items: center; gap: .5rem; }
.nav__bag { min-height: 40px; padding: 0 1rem; font-size: var(--step-small); }
.nav__count:empty { display: none; }
.nav__bag.is-empty { background: transparent; color: inherit; padding-inline: .5rem; }
@media (hover: hover) and (pointer: fine) { .nav__bag.is-empty:hover { background: transparent; text-decoration: underline; text-underline-offset: .25em; } }
.nav__count {
  display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 .3em;
  background: var(--ink); color: var(--green); font-size: var(--step-small); font-weight: 900;
}
.nav__count.is-bump { animation: bump .45s var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }
.nav__menu {
  display: none; min-height: 40px; padding: 0 .75rem; border: 0; background: transparent;
  font-size: var(--step-small); font-weight: 500;
}

/* ---------- hero: the name holds, scroll down and the cap changes (one clip per cap) ---------- */
.hero__track { position: relative; height: 330svh; }
.hero__stage {
  --fh: min(calc(100svh - 168px), calc(34vw * 1.25));
  --fw: calc(var(--fh) * .8);
  --g: 24px;
  position: sticky; top: 0;
  height: 100svh; overflow: hidden;
  display: grid;
  grid-template-columns: 1fr var(--fw) 1fr;
  grid-template-rows: 1fr;
  column-gap: 24px;
  padding-inline: var(--margin);
}
.hero__name { display: contents; }
.hero__mr, .hero__flow {
  grid-row: 1; align-self: center;
  font-size: var(--step-display); font-weight: 900; letter-spacing: -0.045em; line-height: .9;
  position: relative; z-index: 2; white-space: nowrap;
}
.hero__mr { grid-column: 1; justify-self: start; }
.hero__flow { grid-column: 3; justify-self: end; margin-right: -.04em; }
.hero__reel { --c: 50svh; grid-column: 2; grid-row: 1; position: relative; height: 100svh; }
.hero__strip {
  display: grid; gap: var(--g);
  transform: translate3d(0, calc(var(--c) - var(--fh) / 2 - var(--p, 0) * (var(--fh) + var(--g))), 0);
  will-change: transform;
}
.hero__strip li { position: relative; height: var(--fh); background: var(--paper-2); overflow: hidden; cursor: pointer; }
.hero__strip picture, .hero__strip img, .hero__strip video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__strip img, .hero__strip video { object-fit: cover; }
/* each clip sits on its own first frame, so it fades in without a jump */
.hero__strip video { opacity: 0; transition: opacity .35s ease; }
.hero__strip li.is-playing video { opacity: 1; }
.hero__caption {
  grid-column: 3; grid-row: 1; align-self: center; justify-self: end;
  transform: translateY(calc(var(--step-display) * .62));
  font-size: var(--step-small); font-weight: 500; text-align: right;
  transition: opacity .25s ease;
}
.hero__caption.is-swap { opacity: 0; }
/* the cap's name on its own photo: phones and upright tablets only (see the stacked hero below) */
.hero__tag { display: none; }
.hero__foot {
  grid-column: 1; grid-row: 1; align-self: end;
  padding-bottom: 32px; max-width: 32ch;
  display: grid; gap: 1.25rem; justify-items: start;
}
.hero__lede { font-size: var(--step-body); }

/* intro motion for the hero */
.js .hero__mr, .js .hero__flow, .js .hero__foot, .js .hero__caption { opacity: 0; }
.is-loaded .hero__mr { animation: heroIn 1s var(--ease-out) .05s both; }
.is-loaded .hero__flow { animation: heroIn 1s var(--ease-out) .15s both; }
/* the frame never fades: its poster is painted on the first frame, so it counts as the page's main image right away */
.js .hero__reel { animation: reelIn 1.1s var(--ease-out) both; }
.is-loaded .hero__foot { animation: heroIn .9s var(--ease-out) .45s both; }
.is-loaded .hero__caption { animation: fadeIn .8s ease .7s both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes reelIn { from { transform: translateY(40px) scale(.97); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- detail: one frame, three distances ---------- */
.zoom__track { position: relative; height: 300svh; }
/* the stage starts below the menu bar, and the frame leaves room for both lines of the title,
   so "Bordado que" never slides under the menu */
.zoom__stage {
  --zw: min(30vw, calc((100svh - var(--nav-h) - 2.7 * var(--step-head)) * .8));
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid;
  grid-template-columns: 1fr var(--zw) 1fr;
  grid-template-rows: 1fr auto 1fr;
  column-gap: clamp(24px, 3vw, 48px);
  padding: var(--nav-h) var(--margin) 0;
}
.zoom__title { display: contents; }
.zoom__a, .zoom__b {
  grid-column: 1 / -1; justify-self: center; text-align: center;
  font-size: var(--step-head); font-weight: 900; letter-spacing: -0.04em; line-height: .9;
  position: relative; z-index: 2;
}
.zoom__a { grid-row: 1; align-self: end; padding-bottom: .25em; }
.zoom__b { grid-row: 3; align-self: start; margin-top: -.3em; transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); }
.zoom__stage[data-stage="1"] .zoom__b { opacity: 0; transform: translateY(.4em); }
.zoom__frame { grid-column: 2; grid-row: 2; width: var(--zw); aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-2); }
.zoom__frame img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(var(--s, 1)); transform-origin: var(--o, 50% 50%);
  transition: transform 1.1s var(--ease-in-out), transform-origin 1.1s var(--ease-in-out);
}
.zoom__stage[data-stage="2"] .zoom__frame img { --s: 1.9; --o: 61% 47%; }
.zoom__stage[data-stage="3"] .zoom__frame img { --s: 3.1; --o: 13% 50%; }
.zoom__notes { grid-column: 3; grid-row: 2; align-self: start; position: relative; max-width: 28ch; }
.zoom__notes li {
  position: absolute; inset: 0 0 auto 0;
  font-size: var(--step-body); color: var(--paper);
  opacity: 0; transform: translateY(12px);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
}
.zoom__stage[data-stage="1"] [data-note="1"],
.zoom__stage[data-stage="2"] [data-note="2"],
.zoom__stage[data-stage="3"] [data-note="3"] { opacity: 1; transform: none; transition-delay: .25s; }

/* ---------- catalog ---------- */
.shop { padding: var(--section) var(--margin) clamp(5rem, 9vw, 9rem); }
.shop__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end;
}
.shop__title { grid-column: 1 / 7; font-size: var(--step-head); font-weight: 900; letter-spacing: -0.04em; line-height: .9; }
.shop__intro { grid-column: 7 / 13; max-width: 46ch; }

.shop__bar {
  position: sticky; top: var(--nav-h); z-index: 6;
  display: flex; align-items: center; gap: 12px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: 12px 0;
  background: var(--paper);
}
.search {
  flex: 1 1 auto; max-width: 560px;
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 14px; background: var(--paper-2);
  transition: background-color var(--t-hover) ease;
}
.search:focus-within { background: var(--paper-3); }
.search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 1rem; outline: none; }
.search input::placeholder { color: var(--muted); }
.sort { display: flex; align-items: center; gap: 10px; margin-left: auto; font-size: var(--step-small); color: var(--muted); }
.sort select {
  appearance: none; height: 48px; padding: 0 40px 0 14px; border: 0; border-radius: 0;
  background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230c0d0c' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--ink); font-size: 1rem; cursor: pointer;
}
.view { display: flex; }
.view button {
  height: 48px; padding: 0 14px; border: 0; background: var(--paper-2); font-size: var(--step-small); font-weight: 500;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.view button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.shop__filters-btn { display: none; }

.shop__body {
  display: grid; grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px); margin-top: 28px; align-items: start;
}
.filters {
  position: sticky; top: calc(var(--nav-h) + 84px);
  max-height: calc(100svh - var(--nav-h) - 100px); overflow: auto;
  overscroll-behavior: contain; scrollbar-width: thin; padding-right: 8px;
}
.filters__head, .filters__foot { display: none; }
.fgroup + .fgroup { margin-top: 28px; }
.fgroup summary {
  display: flex; justify-content: space-between; align-items: center;
  list-style: none; cursor: pointer; font-weight: 500; padding: 4px 0 10px;
}
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary::after {
  content: ""; width: 8px; height: 8px; margin-right: 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .25s var(--ease-out);
}
.fgroup[open] summary::after { transform: rotate(-135deg) translate(-2px, 0); }
.fopt {
  display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 12px;
  padding: 7px 0; font-size: var(--step-small); cursor: pointer; line-height: 1.3;
}
.fopt input { appearance: none; margin: 0; width: 20px; height: 20px; background: var(--paper-3); cursor: pointer; display: grid; place-items: center; transition: background-color var(--t-hover) ease; }
.fopt input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg) translate(1px, -1px) scale(.6); opacity: 0; transition: transform .2s var(--ease-out), opacity .15s ease; }
.fopt input:checked { background: var(--ink); }
.fopt input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); opacity: 1; }
.fopt__n { color: var(--muted); font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.fgroup__opts.is-short .fopt--more { display: none; }
.fgroup__more {
  margin-top: 4px; padding: 6px 0; border: 0; background: none;
  font-size: var(--step-small); font-weight: 500; text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--green-3);
}
.fgroup__more:hover { text-decoration-color: currentColor; }
.fopt--more { animation: chipIn .25s var(--ease-out) both; }
.more { display: grid; justify-items: center; gap: 12px; margin-top: 56px; }
.more__note { font-size: var(--step-small); color: var(--muted); }
.card__price.is-old { color: var(--muted); font-weight: 400; }
.pd__date { font-size: var(--step-small); color: var(--muted); }
.fopt.is-zero { color: var(--muted); }
.fopt.is-zero .fopt__n { opacity: .6; }
@media (hover: hover) and (pointer: fine) { .fopt:hover input:not(:checked) { background: #c9c9c2; } }

.shop__status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; min-height: 40px; margin-bottom: 24px; }
.shop__count { font-size: var(--step-small); color: var(--muted); }
.shop__count strong { color: var(--ink); font-weight: 900; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 10px;
  border: 0; background: var(--ink); color: var(--paper); font-size: var(--step-small); font-weight: 500;
  animation: chipIn .3s var(--ease-out) both;
}
.chip svg { width: 10px; height: 10px; stroke: var(--green); stroke-width: 2.5; }
.chip--clear { background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: .2em; padding: 0 4px; }
@keyframes chipIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 228px), 1fr)); gap: 44px 20px; }
.card { animation: cardIn .6s var(--ease-out) both; animation-delay: calc(min(var(--i, 0), 12) * 45ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.card__media {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
  padding: 0; border: 0; background: var(--paper-2);
}
.card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-out), opacity .45s ease;
}
.card__media img + img { opacity: 0; }
.card__flag {
  position: absolute; left: 10px; top: 10px; z-index: 1;
  padding: 6px 8px; background: var(--green); color: var(--ink);
  font-size: var(--step-small); font-weight: 500; line-height: 1;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover .card__media img { transform: scale(1.04); }
  .card:hover .card__media img + img { opacity: 1; }
}
.card__fig { position: relative; }
.card__fig .card__flag { pointer-events: none; }
.add--quick {
  position: absolute; right: 10px; bottom: 10px; z-index: 1;
  min-height: 38px; background: var(--paper); color: var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .add--quick { transform: translateY(6px); opacity: .92; transition: transform .35s var(--ease-out), opacity .25s ease, background-color var(--t-hover) ease, color var(--t-hover) ease; }
  .card:hover .add--quick, .add--quick:focus-visible { transform: none; opacity: 1; }
}
.card__body { margin-top: 14px; display: grid; gap: 4px; }
.card__name { font-size: var(--step-body); font-weight: 500; line-height: 1.25; }
.card__name button { all: unset; cursor: pointer; }
.card__name button:focus-visible { outline: 2px solid var(--green-3); outline-offset: 3px; }
.card__meta { font-size: var(--step-small); color: var(--muted); }
.card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.card__price { font-size: var(--step-small); font-weight: 500; margin-top: 4px; }
.add {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border: 0; background: var(--paper-2); font-size: var(--step-small); font-weight: 500;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.add:active { transform: scale(.95); }
.add.is-done { background: var(--green); }
@media (hover: hover) and (pointer: fine) { .add:hover { background: var(--ink); color: var(--paper); } .add.is-done:hover { background: var(--green); color: var(--ink); } }

/* list view: one type size, fixed column starts */
.ltable { width: 100%; border-collapse: collapse; font-size: clamp(1.0625rem, .8rem + .7vw, 1.4rem); }
.ltable th { text-align: left; font-size: var(--step-small); font-weight: 500; color: var(--muted); padding: 0 12px 14px 0; }
.ltable td { padding: .5em 12px .5em 0; vertical-align: middle; }
.ltable tbody tr { cursor: pointer; transition: background-color var(--t-hover) ease; animation: cardIn .5s var(--ease-out) both; animation-delay: calc(min(var(--i, 0), 14) * 30ms); }
.ltable tbody tr:hover { background: var(--paper-2); }
.ltable td:first-child { padding-left: 8px; }
.ltable .lt__thumb { width: 52px; }
.ltable .lt__thumb img { width: 44px; height: 55px; object-fit: cover; }
.ltable .lt__name { font-weight: 500; }
.ltable .lt__name small { display: block; font-size: var(--step-small); font-weight: 400; color: var(--muted); }
.ltable .lt__add { text-align: right; }
.empty { display: grid; gap: 20px; justify-items: start; padding: 48px 0; max-width: 44ch; }
.noscript { max-width: 52ch; }

/* ---------- fit: Rafael's face-shape advice ---------- */
.fit { padding: var(--section) var(--margin); }
.fit__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.fit__title { font-size: var(--step-head); font-weight: 900; letter-spacing: -0.04em; line-height: .9; }
.fit__intro { margin-top: 28px; max-width: 48ch; }
.faces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 44px; }
.face {
  position: relative; display: grid; justify-items: center; gap: 12px;
  padding: 22px 8px 18px; background: var(--green-2); cursor: pointer;
  font-weight: 500; font-size: var(--step-small);
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.face:active { transform: scale(.97); }
.face input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.face svg { width: 52px; height: 64px; fill: none; stroke: currentColor; stroke-width: 2.5; transition: transform .5s var(--ease-out); }
.face:has(input:checked) { background: var(--ink); color: var(--green); }
.face:has(input:checked) svg { transform: scale(1.08); }
.face:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .face:hover { background: var(--green-3); } .face:has(input:checked):hover { background: var(--ink); } }

.fit__result { margin-top: 36px; min-height: 12rem; }
.fit__all { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; max-width: 40rem; }
.fit__all dt { font-weight: 500; }
.fit__rule { font-size: var(--step-lead); font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.fit__why { margin-top: 12px; max-width: 52ch; }
.fit__picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.pick { display: grid; gap: 8px; padding: 0; border: 0; background: none; text-align: left; animation: cardIn .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
.pick span:first-child { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--green-2); }
.pick img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.pick span:last-child { font-size: var(--step-small); font-weight: 500; line-height: 1.25; }
@media (hover: hover) and (pointer: fine) { .pick:hover img { transform: scale(1.05); } }
.fit__actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 28px; }
.fit__actions a:not(.btn) { font-weight: 500; text-underline-offset: .2em; }
.fit__result.is-swap > * { animation: cardIn .5s var(--ease-out) both; }

.fit__video { position: sticky; top: calc(var(--nav-h) + 24px); }
.fit__player { position: relative; }
.fit__video video { width: 100%; aspect-ratio: 9 / 16; max-height: calc(100svh - var(--nav-h) - 110px); object-fit: cover; background: var(--green-3); }
.fit__sound {
  position: absolute; left: 10px; bottom: 10px; min-height: 40px; padding: 0 12px; border: 0;
  background: var(--ink); color: var(--green); font-size: var(--step-small); font-weight: 500;
  transition: scale var(--t-press) var(--ease-out); /* only the press, never the position */
}
.fit__sound:active { scale: .96; }
.fit__sound.is-start {
  left: 50%; top: 50%; bottom: auto; translate: -50% -50%;
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px 0 14px;
  font-size: 1rem; white-space: nowrap;
}
.fit__sound.is-start::before { content: ""; border-left: 12px solid currentColor; border-block: 7px solid transparent; }
.fit__video figcaption { margin-top: 12px; font-size: var(--step-small); max-width: 36ch; }

/* ---------- how to buy: one verb at a time ---------- */
.how__panel { position: relative; display: flow-root; height: 100svh; overflow: clip; background: var(--ink); color: var(--paper); }
.how__panel > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.56) saturate(1.05);
  transform: scale(1.08); transition: transform 1.6s var(--ease-out);
}
.how__panel.is-in > img { transform: scale(1); }
/* the verb and its sentence travel together, so they can never overlap */
.how__group {
  position: sticky; top: 50%; margin-top: 50svh; transform: translateY(-50%);
  z-index: 1; display: grid; justify-items: center; gap: clamp(14px, 1.6vw, 24px);
  padding-inline: var(--margin); text-align: center;
}
.how__verb { font-size: var(--step-display); font-weight: 900; letter-spacing: -0.05em; line-height: .85; white-space: nowrap; }
.how__text { max-width: 36ch; }
.how__text h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.how__text p { font-size: var(--step-body); font-weight: 500; text-shadow: 0 1px 12px rgb(0 0 0 / .35); }

/* ---------- story: the name holds, the chapters pass ---------- */
.story { padding-top: var(--section); overflow: clip; }
.story__intro { position: relative; z-index: 3; padding-inline: var(--margin); display: grid; gap: 20px; justify-items: start; max-width: calc(26ch + 2 * var(--margin)); margin-bottom: -36svh; }
.story__statement { max-width: 22ch; font-size: clamp(1.25rem, .85rem + 1.15vw, 2.125rem); font-weight: 500; line-height: 1.22; letter-spacing: -0.015em; }
.story__link { font-weight: 500; text-underline-offset: .22em; text-decoration-color: var(--green); text-decoration-thickness: 2px; }
.story__track { position: relative; margin-top: 4svh; padding-bottom: 30svh; }
/* the name stays pinned in the middle; the chapters pass on both sides of it */
.story__title {
  position: sticky; top: 0; z-index: 2; height: 100svh;
  display: grid; place-content: center; text-align: center;
  font-size: clamp(3.5rem, 8.4vw, 10.5rem); font-weight: 900; letter-spacing: -0.05em; line-height: .84;
  color: var(--paper); pointer-events: none; white-space: nowrap;
}
.story__title span { display: block; }
.story__list { position: relative; z-index: 1; margin-top: -48svh; display: grid; gap: 16svh; padding-inline: var(--margin); }
/* name ≈ 4.5em wide → leaves 31vw per side; 24vw cards keep ~5vw of air next to the name */
.story__item { width: min(24vw, 420px); }
.story__item:nth-child(even) { margin-left: auto; }
.story__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--ink-2); }
.story__text { margin-top: 20px; max-width: 36ch; }
.story__text h3 { font-size: var(--step-lead); font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.story__when { font-size: var(--step-small); font-weight: 500; color: var(--green); margin-top: 8px; }
.story__text p:last-child { margin-top: 12px; color: #d8dad5; }
@media (prefers-reduced-motion: no-preference) {
  .js .story__item { opacity: 0; transform: translateY(56px); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); }
  .js .story__item.is-in { opacity: 1; transform: none; }
  .reveal-all .story__item { opacity: 1 !important; transform: none !important; }
}

/* ---------- faq ---------- */
.faq { padding: var(--section) var(--margin); overflow-x: clip; }
.faq__title { font-size: var(--step-head); font-weight: 900; letter-spacing: -0.04em; line-height: .9; max-width: 13ch; }
.faq__list { margin-top: 80px; margin-left: calc(100% / 3); max-width: 52rem; display: grid; gap: 12px; }
.faq details { padding: 18px 24px; margin-inline: -24px; transition: background-color .3s ease; }
.faq details[open] { background: var(--paper-2); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  list-style: none; cursor: pointer; font-size: var(--step-lead); line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 11px; height: 11px; margin-right: 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, 0); }
.faq details p { margin-top: 14px; max-width: 48ch; }
.faq details[open] p { animation: heroIn .45s var(--ease-out) both; }
@media (hover: hover) and (pointer: fine) { .faq details:not([open]):hover { background: var(--paper-2); } }

/* ---------- contact: the first WhatsApp message types itself ---------- */
.contact {
  min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto auto auto;
  padding: calc(var(--nav-h) + clamp(2rem, 5vw, 4.5rem)) var(--margin) 28px;
}
.contact__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px 24px; align-items: baseline; }
.contact__kicker { font-size: var(--step-small); font-weight: 500; color: var(--green); }
.contact__lead { max-width: 30ch; font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.015em; line-height: 1.22; }
.contact__chat { grid-row: 3; display: block; margin-top: 8vh; color: var(--paper); text-decoration: none; }
.contact__msg {
  display: block; max-width: 16ch; text-wrap: balance;
  font-size: clamp(3.25rem, 9.2vw, 10.5rem); font-weight: 900; letter-spacing: -0.045em; line-height: .92;
}
.contact__msg .w { white-space: nowrap; }
.contact__msg .c { position: relative; transition: color .26s ease; }
/* letters still to type wait as a faint outline of the message */
.js .contact__msg .c:not(.is-on) { color: rgb(238 238 235 / .1); }
.contact__msg .c.is-caret::after {
  content: ""; position: absolute; right: -.07em; top: .1em; bottom: .02em; width: .07em;
  background: var(--green); animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.contact__meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  margin-top: clamp(24px, 4vh, 44px); font-size: var(--step-small); font-weight: 500;
}
.contact__status { color: var(--muted-ink); }
.contact__go {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 52px; padding: 0 1.25rem;
  background: var(--green); color: var(--ink); font-size: 1rem; font-weight: 500;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.contact__go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease-out); }
.js .contact__chat:not(.is-typed) .contact__go { opacity: 0; transform: translateY(10px); }
.contact__chat.is-typed .contact__go { opacity: 1; transform: none; transition: opacity .4s ease, transform .5s var(--ease-out), background-color var(--t-hover) ease; }
.contact__chat:active .contact__go { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .contact__chat:hover .contact__msg .c.is-on { color: var(--green); }
  .contact__chat:hover .contact__go { background: #4ee083; }
  .contact__chat:hover .contact__go svg { transform: translateX(4px); }
}
.contact__ways {
  grid-row: 4; margin-top: clamp(40px, 9vh, 96px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--paper);
}
.contact__ways li + li .contact__way { border-left: 1px solid rgb(238 238 235 / .18); padding-left: 20px; }
.contact__way { display: grid; gap: 4px; align-content: start; height: 100%; padding: 18px 20px 18px 0; text-decoration: none; }
.contact__way span { font-size: var(--step-small); color: var(--muted-ink); }
.contact__way strong { font-size: clamp(1.0625rem, .9rem + .5vw, 1.375rem); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; overflow-wrap: anywhere; }
a.contact__way { transition: background-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { a.contact__way:hover strong { text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: .2em; text-decoration-thickness: 2px; } }
.contact__corners {
  grid-row: 5; display: flex; justify-content: space-between; align-items: end; gap: 16px;
  margin-top: clamp(40px, 8vh, 80px); font-size: var(--step-small); color: var(--muted-ink);
}
.contact__corners a { color: var(--paper); font-weight: 500; text-underline-offset: .2em; }

/* ---------- footer ---------- */
.foot {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 16px;
  padding: 14svh var(--margin) 30px; font-size: var(--step-small);
}
.foot__what, .foot__year { color: var(--muted); }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; }
.foot__links a { text-decoration: none; font-weight: 500; }
.foot__links a:hover { text-decoration: underline; text-underline-offset: .2em; }
.foot__year { text-align: right; }

/* ---------- cookie notice ---------- */
.consent {
  position: fixed; left: var(--margin); bottom: var(--margin); z-index: 90;
  width: min(430px, calc(100vw - 2 * var(--margin)));
  display: grid; gap: 14px; padding: 18px 20px;
  background: var(--ink); color: var(--paper); font-size: var(--step-small); line-height: 1.45;
  border: 1px solid rgb(238 238 235 / .16); /* stays visible over the dark sections */
  box-shadow: 0 16px 40px rgb(0 0 0 / .28); /* taste-skill-ignore: floating notice */
  animation: consentIn .55s var(--ease-out) .9s both;
  transition: opacity .25s ease, transform .3s var(--ease-out);
}
.consent.is-out { opacity: 0; transform: translateY(16px); }
.consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.consent__actions a { color: var(--paper); font-weight: 500; text-underline-offset: .2em; text-decoration-color: var(--green); text-decoration-thickness: 2px; }
.consent__ok { margin-left: auto; min-height: 42px; padding: 0 1.1rem; background: var(--green); color: var(--ink); font-size: var(--step-small); }
@media (hover: hover) and (pointer: fine) { .consent__ok:hover { background: #4ee083; } }
@keyframes consentIn { from { opacity: 0; transform: translateY(24px); } }
@media (max-width: 760px) { .consent { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: auto; } }

/* ---------- floating pair: the catalog shortcut and WhatsApp share one height and one baseline ---------- */
:root {
  --float-h: 56px;               /* height of both floating buttons */
  --float-b: var(--margin);      /* their distance from the bottom edge */
  --float-gap: 10px;
}

/* shortcut to the catalog: shows on arrival, leaves once you reach the catalog */
.jump {
  position: fixed; right: calc(var(--margin) + var(--float-h) + var(--float-gap)); bottom: var(--float-b); z-index: 60;
  display: flex; align-items: stretch; height: var(--float-h);
  background: var(--ink); color: var(--paper);
  border: 1px solid rgb(238 238 235 / .16); /* stays visible over the dark sections */
  box-shadow: 0 14px 34px rgb(0 0 0 / .22); /* taste-skill-ignore: floating shortcut */
  transition: opacity .3s ease, transform .45s var(--ease-out), translate .35s var(--ease-out);
}
.jump.is-out { opacity: 0; transform: translateY(18px); pointer-events: none; }
.jump__go {
  display: flex; align-items: center; gap: 12px; min-width: 0; padding: 0 20px 0 8px;
  background: var(--green); color: var(--ink); line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-hover) ease, scale var(--t-press) var(--ease-out);
}
/* the arrow sits in its own black tile and drops a few times after the button arrives */
.jump__ico {
  flex: none; display: grid; place-items: center;
  width: calc(var(--float-h) - 16px); height: calc(var(--float-h) - 16px);
  background: var(--ink); color: var(--green);
}
.jump__ico svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  animation: jumpNudge 1.5s var(--ease-in-out) 1.6s 3;
}
@keyframes jumpNudge { 0%, 55%, 100% { transform: none; } 28% { transform: translateY(4px); } }
.jump__txt { display: grid; gap: 4px; min-width: 0; }
.jump__t { font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.02em; }
.jump__s { font-size: .8125rem; font-weight: 500; color: rgb(12 13 12 / .72); font-variant-numeric: tabular-nums; }
.jump__x {
  flex: none; display: grid; place-items: center; width: 50px; padding: 0; border: 0; background: transparent; color: var(--paper);
  transition: background-color var(--t-hover) ease, scale var(--t-press) var(--ease-out);
}
.jump__x svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.jump__go:active, .jump__x:active { scale: .97; }
.jump :focus-visible { outline-color: var(--green); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .jump__go:hover { background: #4ee083; }
  .jump__x:hover { background: var(--ink-3); }
}

/* floating WhatsApp: square like every button here; black over the green section */
.wa {
  position: fixed; right: var(--margin); bottom: var(--float-b); z-index: 60;
  display: grid; place-items: center; width: var(--float-h); height: var(--float-h);
  background: var(--green); color: var(--ink);
  border: 1px solid rgb(238 238 235 / .16); /* stays visible over the dark sections */
  box-shadow: 0 14px 34px rgb(0 0 0 / .22); /* taste-skill-ignore: floating shortcut */
  animation: waIn .6s var(--ease-out) .7s backwards;
  transition: opacity .3s ease, transform .45s var(--ease-out), translate .35s var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease, scale var(--t-press) var(--ease-out);
}
.wa svg { position: relative; width: 30px; height: 30px; fill: currentColor; }
/* two soft rings when it first arrives, so a phone visitor notices it once (and never again) */
.wa::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  border: 2px solid var(--green); opacity: 0;
  animation: waRing 1.7s var(--ease-out) 1.5s 2;
}
.wa[data-on="green"]::before { border-color: var(--ink); }
@keyframes waRing { from { opacity: .75; transform: scale(1); } to { opacity: 0; transform: scale(1.45); } }
.wa.is-out { opacity: 0; transform: translateY(18px); pointer-events: none; }
.wa[data-on="green"] { background: var(--ink); color: var(--green); }
.wa:active { scale: .95; }
.wa:focus-visible { outline-color: var(--green); outline-offset: 2px; }
.wa[data-on="green"]:focus-visible { outline-color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .wa:hover { background: #4ee083; }
  .wa[data-on="green"]:hover { background: var(--ink-3); }
}
@keyframes waIn { from { opacity: 0; transform: translateY(18px) scale(.8); } }

/* phones: one row along the bottom, a wide catalog bar on the left and a bigger WhatsApp on the right;
   while the cookie notice is open both wait just above it */
@media (max-width: 760px) {
  :root { --float-h: 62px; --float-b: calc(12px + env(safe-area-inset-bottom, 0px)); --float-gap: 8px; }
  .jump { left: var(--margin); right: calc(var(--margin) + var(--float-h) + var(--float-gap)); translate: 0 calc(-1 * var(--consent-h, 0px)); }
  .jump__go { flex: 1; padding-right: 14px; }
  .jump__t { font-size: 1.125rem; }
  .jump__x { width: 48px; }
  .wa { translate: 0 calc(-1 * var(--consent-h, 0px)); }
  .wa svg { width: 34px; height: 34px; }
}
/* narrow upright tablets: a 430px cookie notice (bottom-left) would reach the catalog shortcut (bottom-right) */
@media (min-width: 761px) and (max-width: 880px) {
  .consent { width: 380px; }
}
/* the narrowest phones: the arrow tile steps out so "Ver catálogo" never gets cut */
@media (max-width: 350px) {
  .jump__ico { display: none; }
  .jump__go { padding-left: 14px; }
}

/* ---------- legal pages (privacidad, términos) ---------- */
.nav__back { min-height: 40px; padding: 0 1rem; font-size: var(--step-small); }
.legal {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px clamp(32px, 6vw, 112px); align-items: start;
  padding: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)) var(--margin) clamp(5rem, 10vw, 9rem);
}
.legal__head { position: sticky; top: calc(var(--nav-h) + 32px); }
.legal__title { font-size: var(--step-head); font-weight: 900; letter-spacing: -0.04em; line-height: .9; }
.legal__date { margin-top: 18px; font-size: var(--step-small); color: var(--muted); }
.legal__body { display: grid; gap: clamp(36px, 4vw, 56px); max-width: 42rem; }
.legal__body section { scroll-margin-top: calc(var(--nav-h) + 24px); }
.legal__body h2 { font-size: var(--step-lead); font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.legal__body p, .legal__body ul { margin-top: 12px; }
.legal__body ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 8px; }
.legal__body a { font-weight: 500; text-underline-offset: .2em; text-decoration-color: var(--green-3); text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.legal__body code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .88em; padding: 1px 6px; background: var(--paper-2); }
@media (max-width: 760px) {
  .legal { grid-template-columns: 1fr; }
  .legal__head { position: static; }
}

/* ---------- product dialog ---------- */
dialog { padding: 0; border: 0; max-width: none; max-height: none; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: rgb(12 13 12 / .62); }
.pd { width: min(1080px, calc(100vw - 32px)); max-height: calc(100svh - 32px); margin: auto; overflow: auto; box-shadow: 0 30px 80px rgb(0 0 0 / .35); } /* taste-skill-ignore: dialog */
.pd[open] { animation: pdIn .45s var(--ease-out) both; }
.pd[open]::backdrop { animation: fadeIn .3s ease both; }
@keyframes pdIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.pd__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.pd__gallery { background: var(--paper-2); }
.pd__main { aspect-ratio: 4 / 5; overflow: hidden; }
.pd__main img { width: 100%; height: 100%; object-fit: cover; animation: fadeIn .4s ease both; }
.pd__thumbs { display: flex; gap: 8px; padding: 8px; }
.pd__thumbs button { width: 64px; aspect-ratio: 4 / 5; padding: 0; border: 0; background: var(--paper-3); opacity: .55; transition: opacity var(--t-hover) ease; }
.pd__thumbs button[aria-current="true"], .pd__thumbs button:hover { opacity: 1; }
.pd__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd__info { position: relative; padding: clamp(24px, 3.4vw, 48px); display: grid; align-content: start; gap: 12px; }
.pd__close, .bag__close {
  justify-self: end; min-height: 40px; padding: 0 12px; border: 0; background: var(--paper-2); font-size: var(--step-small); font-weight: 500;
}
.pd__close:hover, .bag__close:hover { background: var(--paper-3); }
.pd__team { font-size: var(--step-small); color: var(--muted); margin-top: 8px; }
.pd__title { font-size: var(--step-lead); font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.pd__variant { font-weight: 500; }
.pd__price { font-weight: 500; }
.pd__desc { margin-top: 8px; max-width: 46ch; }
.pd__details { display: grid; gap: 6px; font-size: var(--step-small); margin-top: 4px; }
.pd__details li { display: flex; gap: 10px; }
.pd__details li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .55em; background: var(--green); }
.pd__buy { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-top: 16px; }
.pd__size { display: grid; gap: 6px; font-size: var(--step-small); color: var(--muted); }
.pd__size select { height: 48px; min-width: 96px; border: 0; padding: 0 12px; background: var(--paper-2); color: var(--ink); font-size: 1rem; }
.qty { display: inline-flex; align-items: center; height: 48px; background: var(--paper-2); }
.qty button { width: 44px; height: 100%; border: 0; background: transparent; font-size: 1.25rem; }
.qty button:hover { background: var(--paper-3); }
.qty output { min-width: 2ch; text-align: center; font-weight: 500; font-variant-numeric: tabular-nums; }
.pd__add { flex: 1 1 200px; }
.pd__more { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; font-size: var(--step-small); font-weight: 500; }
.pd__more a { text-underline-offset: .2em; }

/* ---------- bag ---------- */
.bag {
  width: min(460px, 100vw); height: 100svh; max-height: 100svh;
  margin: 0 0 0 auto; box-shadow: -20px 0 60px rgb(0 0 0 / .3); /* taste-skill-ignore: dialog */
}
.bag[open] { animation: bagIn .45s var(--ease-out) both; }
.bag[open]::backdrop { animation: fadeIn .3s ease both; }
@keyframes bagIn { from { transform: translateX(100%); } to { transform: none; } }
.bag__inner { display: grid; grid-template-rows: auto 1fr auto; height: 100%; }
.bag__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; }
.bag__title { font-size: var(--step-lead); font-weight: 900; letter-spacing: -0.02em; }
.bag__items { overflow: auto; padding: 0 24px; align-self: start; }
.bag__empty { padding: 0 24px; color: var(--muted); }
.bag__item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; animation: cardIn .35s var(--ease-out) both; }
.bag__item img { width: 56px; height: 70px; object-fit: cover; background: var(--paper-2); }
.bag__item p { font-size: var(--step-small); line-height: 1.3; }
.bag__item small { display: block; color: var(--muted); font-size: var(--step-small); }
.bag__item .qty { height: 36px; }
.bag__item .qty button { width: 32px; font-size: 1rem; }
.bag__form { padding: 16px 24px 0; display: grid; gap: 14px; align-self: end; }
.field { display: grid; gap: 6px; font-size: var(--step-small); color: var(--muted); }
.field input, .field textarea {
  width: 100%; border: 0; border-radius: 0; background: var(--paper-2); color: var(--ink);
  padding: 12px; font-size: 1rem; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--green-3); outline-offset: 0; }
.field--choice { display: grid; gap: 8px; }
.field--choice legend { margin-bottom: 6px; }
.field--choice label { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1rem; cursor: pointer; }
.field--choice input { accent-color: var(--ink); width: 18px; height: 18px; }
.bag__foot { padding: 18px 24px 24px; display: grid; gap: 12px; }
.bag__note { font-size: var(--step-small); color: var(--muted); }
.bag__send { min-height: 56px; }
.bag__send[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.bag__clear { justify-self: start; border: 0; background: none; padding: 4px 0; font-size: var(--step-small); text-decoration: underline; text-underline-offset: .2em; color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  transform: translate(-50%, calc(100% + 40px)); visibility: hidden; padding: 14px 18px;
  background: var(--ink); color: var(--paper); font-size: var(--step-small); font-weight: 500;
  box-shadow: 0 16px 40px rgb(0 0 0 / .3); /* taste-skill-ignore: toast overlay */
  transition: transform .45s var(--ease-out), visibility 0s linear .45s;
  max-width: calc(100vw - 32px);
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .45s var(--ease-out), visibility 0s; }
.toast b { color: var(--green); font-weight: 500; }

/* ---------- section entrances ---------- */
.js [data-reveal] [data-r], .js [data-reveal][data-r] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal].is-in [data-r] { opacity: 1; transform: none; }
.reveal-all [data-reveal] [data-r] { opacity: 1 !important; transform: none !important; }

/* ---------- phone and tablet ---------- */
@media (max-width: 1080px) {
  .shop__body { grid-template-columns: 1fr; }
  .shop__filters-btn { display: inline-flex; }
  .filters {
    position: fixed; inset: 0; z-index: 70; max-height: none; padding: 0;
    background: var(--paper); display: grid; grid-template-rows: auto 1fr auto;
    transform: translateX(-100%); visibility: hidden;
    transition: transform .4s var(--ease-out), visibility 0s linear .4s;
  }
  .filters.is-open { transform: none; visibility: visible; transition: transform .4s var(--ease-out), visibility 0s; }
  .filters__head, .filters__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px var(--margin); }
  .filters__title { font-size: var(--step-lead); font-weight: 900; }
  .filters__close { min-height: 40px; padding: 0 12px; border: 0; background: var(--paper-2); font-weight: 500; }
  .filters__groups { overflow: auto; padding: 8px var(--margin) 24px; }
  .filters__foot .btn { flex: 1; }
  .sort > span { display: none; }
  .fit__grid { grid-template-columns: 1fr; }
  .fit__video { position: relative; top: 0; max-width: 360px; }
  .fit__picks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact__ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__ways li:nth-child(odd) .contact__way { border-left: 0; padding-left: 0; }
  .contact__ways li:nth-child(n + 3) .contact__way { border-top: 1px solid rgb(238 238 235 / .18); }
}

@media (max-width: 760px) {
  :root { --nav-h: 58px; --section: clamp(5.5rem, 22vw, 7rem); --jump-room: 80px; }
  .nav__links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    display: grid; gap: 0; padding: 8px var(--margin) 16px;
    background: var(--paper); color: var(--ink); box-shadow: 0 20px 40px rgb(0 0 0 / .18); /* taste-skill-ignore: menu */
    font-size: 1.25rem; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s ease, transform .3s var(--ease-out), visibility 0s linear .3s;
  }
  .nav__links a { padding: 12px 0; }
  .nav[data-menu-open] .nav__links { opacity: 1; transform: none; visibility: visible; transition: opacity .25s ease, transform .3s var(--ease-out), visibility 0s; }
  .nav[data-menu-open] { background: var(--paper); color: var(--ink); }
  .nav__menu { display: inline-flex; align-items: center; }
  .nav__brand span { font-size: 1.125rem; }
  .nav__brand img { width: 36px; height: 36px; }



  .zoom__track { height: 280svh; }
  .zoom__stage {
    --zw: min(70vw, calc((100svh - 380px) * .8));
    grid-template-columns: 1fr; grid-template-rows: 1fr auto auto auto 1fr;
    justify-items: center; row-gap: 0;
    padding-bottom: var(--jump-room); /* the notes stay clear of the catalog button */
  }
  .zoom__a { grid-row: 1; }
  .zoom__frame { grid-column: 1; grid-row: 2; }
  .zoom__b { grid-row: 3; }
  /* room for the longest note (four lines), so title, photo and notes stay centred as one block */
  .zoom__notes { grid-column: 1; grid-row: 4; align-self: start; justify-self: center; text-align: center; margin-top: 18px; width: min(34ch, 100%); min-height: 6rem; }
  .zoom__notes li { font-size: 1rem; }

  .shop__head { grid-template-columns: 1fr; row-gap: 18px; }
  .shop__title, .shop__intro { grid-column: 1; }
  .shop__bar { flex-wrap: wrap; gap: 8px; }
  .search { flex-basis: 100%; max-width: none; }
  .sort { margin-left: 0; flex: 1; }
  .sort select { width: 100%; }
  .view { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
  .add--quick { right: 8px; bottom: 8px; min-height: 36px; padding: 0 10px; }
  .ltable { font-size: 1rem; }
  .ltable th:nth-child(3), .ltable td:nth-child(3) { display: none; }


  /* two by two, icon beside the word: "Cuadrado" never gets cut */
  .faces { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 32px; }
  .face { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; gap: 12px; padding: 12px 14px; font-size: 1rem; }
  .face svg { width: 30px; height: 38px; }
  .fit__all { grid-template-columns: 1fr; }
  .fit__picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fit__video { max-width: none; }

  .how__verb { font-size: min(20vw, 6rem); }
  .how__text p { font-size: 1.0625rem; }

  .story__title { position: relative; height: auto; place-content: start; text-align: left; padding-inline: var(--margin); font-size: 17vw; }
  .story__list { margin-top: 40px; gap: 56px; }
  .story__item { width: 78%; }
  .story__track { margin-top: 56px; padding-bottom: 12svh; }
  .story__intro { margin-bottom: 0; max-width: none; }

  .faq__list { margin-left: 0; margin-top: 48px; }
  .faq details { margin-inline: calc(var(--margin) * -1); padding: 16px var(--margin); }
  .faq summary { font-size: var(--step-lead); }

  .contact { min-height: 0; padding-top: var(--section); padding-bottom: 24px; }
  .contact__top { grid-template-columns: 1fr; }
  .contact__chat { margin-top: 44px; }
  .contact__msg { max-width: none; font-size: min(13.6vw, 4.5rem); }
  .contact__meta { margin-top: 24px; }
  .contact__go { width: 100%; justify-content: center; min-height: 56px; }
  .contact__ways { grid-template-columns: 1fr; margin-top: 44px; }
  .contact__ways li:nth-child(n) .contact__way { border-left: 0; border-top: 0; padding-left: 0; }
  .contact__way { grid-template-columns: 6rem minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgb(238 238 235 / .18); }
  .contact__way strong { font-size: 1.0625rem; }
  .contact__corners { flex-direction: column; align-items: start; gap: 10px; margin-top: 32px; }
  .story__statement { max-width: none; }

  .foot { grid-template-columns: 1fr; gap: 8px; padding: 20svh var(--margin) 24px; font-size: var(--step-small); }
  .foot__links { justify-content: flex-start; }
  .foot__year { text-align: left; }

  /* "added to your order" pops up above the floating pair instead of covering WhatsApp */
  .toast { bottom: calc(var(--float-b) + var(--float-h) + 12px); }

  .pd { width: 100vw; max-height: 100svh; height: 100svh; }
  .pd__inner { grid-template-columns: 1fr; }
  .pd__info { padding: 20px var(--margin) 32px; }
  .pd__close { position: fixed; top: 12px; right: 12px; z-index: 2; background: var(--paper); }
}

/* hero stacked: phones, and tablets held upright.
   The cap's window takes the height that the name, the caption and the text leave, so the text
   at the bottom always fits on screen, whatever the phone. */
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
  .hero__track { height: 300svh; }
  .hero__stage {
    --name: min(21vw, 11svh);
    --wmax: 74vw;
    --peek: 48px; /* the gap and a sliver of the next cap, above and below */
    --fw: min(var(--wmax), calc((100svh - 400px) * .8)); /* browsers without container units */
    --fh: calc(var(--fw) * 1.25);
    --g: 12px;
    grid-template-columns: 1fr;
    grid-template-rows: calc(var(--nav-h) + 6px) auto minmax(0, 1fr) auto auto;
    column-gap: 0;
  }
  .hero__mr, .hero__flow { font-size: var(--name); }
  .hero__mr { grid-column: 1; grid-row: 2; align-self: end; }
  .hero__reel { --c: calc((var(--fh) + var(--peek)) / 2); grid-column: 1; grid-row: 3; align-self: center; justify-self: center; width: var(--fw); height: calc(var(--fh) + var(--peek)); overflow: hidden; }
  .hero__flow { grid-column: 1; grid-row: 4; }
  /* no room beside "Flow" here: the cap's name rides on its photo instead, and only the one in the frame shows */
  .hero__caption { display: none; }
  .hero__tag {
    position: absolute; left: 10px; bottom: 10px; z-index: 1;
    display: inline-flex; align-items: center; gap: 12px; max-width: calc(100% - 20px);
    padding: 8px 10px 7px 12px; border: 0;
    background: var(--paper); color: var(--ink);
    font-size: .875rem; font-weight: 500; line-height: 1.25; text-align: left;
    opacity: 0; transform: translateY(8px); visibility: hidden;
    transition: opacity .25s ease, transform .35s var(--ease-out), visibility 0s linear .35s;
  }
  .hero__tag-t { display: grid; min-width: 0; }
  .hero__tag-t > span { text-wrap: balance; } /* the narrowest phones: a long name drops a line instead of being cut */
  .hero__tag-c { font-size: .8125rem; font-weight: 400; color: var(--muted); }
  .hero__tag svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .hero__strip li.is-current .hero__tag {
    opacity: 1; transform: none; visibility: visible;
    transition: opacity .3s ease .12s, transform .45s var(--ease-out) .12s, visibility 0s;
  }
  .hero__foot { grid-column: 1; grid-row: 5; padding-top: 14px; padding-bottom: calc(20px + var(--jump-room, 0px)); max-width: 46ch; }
  .hero__lede { font-size: 1rem; }
  @supports (height: 1cqh) {
    .hero__reel { container-type: size; width: 100%; height: auto; align-self: stretch; --c: 50cqh; }
    .hero__strip { width: var(--fw); margin-inline: auto; }
    .hero__stage { --fw: min(var(--wmax), calc((100cqh - var(--peek)) * .8)); }
  }
}
@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait) {
  /* the catalog shortcut sits bottom-right here and would cover the end of the lede: keep its height free */
  :root { --jump-room: calc(var(--float-h) + var(--margin) + 4px); }
  .hero__stage { --wmax: 56vw; }
  .hero__lede { font-size: var(--step-body); }
}
/* phones only: the hero is a reel. The line of text goes, and the clips take all the room between
   "Mr" and "Flow" (as wide as the screen allows), with only a thin sliver of the next one showing */
@media (max-width: 760px) {
  .hero__stage { --wmax: calc(100vw - 2 * var(--margin)); --peek: 36px; --g: 8px; } /* (36 − 2×8) / 2 = a 10px sliver */
  .hero__lede { display: none; }
  .hero__foot { padding: 0 0 calc(var(--jump-room) + 4px); }
  /* tall phones run out of width first: the frame then grows taller than 4:5 (up to about 2:3) so it
     still fills the height, like a reel; the clip and its photo are cropped at the sides, never stretched */
  @supports (height: 1cqh) {
    .hero__stage { --fh: min(calc(var(--fw) / .68), calc(100cqh - var(--peek))); }
  }
}

/* phones turned sideways: short and wide */
@media (orientation: landscape) and (max-height: 520px) and (min-width: 761px) {
  .hero__stage { --fh: calc(100svh - 96px); min-height: 360px; }
  .hero__mr, .hero__flow { font-size: min(11.4vw, 26svh); }
  .hero__foot { grid-column: 3; align-self: end; justify-self: end; justify-items: end; text-align: right; padding-bottom: 16px; }
  .hero__lede { display: none; }
}

/* ---------- reduced motion: keep content, drop travel ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .hero__track { height: auto; }
  .hero__stage { position: relative; }
  .hero__strip { transform: translate3d(0, calc(var(--c) - var(--fh) / 2), 0); }
  .zoom__track { height: auto; }
  .zoom__stage { position: relative; }
  .zoom__stage .zoom__b { opacity: 1 !important; transform: none !important; }
  .zoom__notes li { position: static; opacity: 1; transform: none; }
  .zoom__notes li + li { margin-top: 12px; }
  .how__panel > img { transform: none; }
}

/* ============================================================
   Firma del desarrollador (German Buchszer): la franja clara con su G.
   Generada en germanweb\tools\firma.mjs; aquí solo se ajusta a los tonos de esta web.
   ============================================================ */
/* Firma de German Buchszer (B · franja con la G). Generada por germanweb\tools\firma.mjs: no editar a mano en cada web. */
/* ---------- La G ---------- */
.gbw-g { display: block; height: 100%; width: auto; overflow: visible; --g-top: #ffffff; --g-front: #cfcfd4; --g-side: #8a8a90; }
.gbw-g--ink { --g-top: #9a9aa1; --g-front: #1c1c1f; --g-side: #55555b; }
.gbw-g polygon { stroke-width: 1.2; stroke-linejoin: round; }
.gbw-g .t { fill: var(--g-top); stroke: var(--g-top); }
.gbw-g .f { fill: var(--g-front); stroke: var(--g-front); }
.gbw-g .s { fill: var(--g-side); stroke: var(--g-side); }
@media (prefers-reduced-motion: no-preference) {
  .gbw--wait .gbw-g g { opacity: 0; transform: translateY(-14px); }
  .gbw.is-in .gbw-g g { animation: gbw-vx 720ms cubic-bezier(0.23, 1, 0.32, 1) both; animation-delay: calc(var(--i, 0) * 46ms + 120ms); }
}
@keyframes gbw-vx { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.gbw-g g:nth-child(1){--i:12}.gbw-g g:nth-child(2){--i:11}.gbw-g g:nth-child(3){--i:13}.gbw-g g:nth-child(4){--i:10}.gbw-g g:nth-child(5){--i:14}.gbw-g g:nth-child(6){--i:9}.gbw-g g:nth-child(7){--i:15}.gbw-g g:nth-child(8){--i:8}.gbw-g g:nth-child(9){--i:0}.gbw-g g:nth-child(10){--i:7}.gbw-g g:nth-child(11){--i:1}.gbw-g g:nth-child(12){--i:6}.gbw-g g:nth-child(13){--i:2}.gbw-g g:nth-child(14){--i:5}.gbw-g g:nth-child(15){--i:3}.gbw-g g:nth-child(16){--i:4}


/* ---------- B · Firma con la G: una franja ---------- */
.gbB {
  --b-bg: #000000; --b-ink: #ffffff; --b-muted: #9d9da4; --b-chip: #1c1c1f; --b-chip-hover: #2a2a2e;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding: 20px clamp(16px, 4vw, 40px);
  background: var(--b-bg); color: var(--b-ink);
  font-size: 14px; line-height: 1.3;
}
.gbB--light { --b-bg: #ececf0; --b-ink: #0a0a0b; --b-muted: #5f5f66; --b-chip: #dcdce2; --b-chip-hover: #cfcfd6; }
/* Dentro de una columna (no a todo el ancho): una tarjeta con esquinas */
.gbB--card { border-radius: 16px; }
.gbB__id { display: inline-flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; min-height: 44px; }
.gbB__g { height: 42px; flex: none; }
.gbB__txt { display: flex; flex-direction: column; gap: 2px; }
.gbB__txt small { font-size: 12px; color: var(--b-muted); }
.gbB__txt b { font-size: 18px; font-weight: 750; font-stretch: 108%; letter-spacing: -0.02em; }
.gbB__links { display: flex; flex-wrap: wrap; gap: 8px; }
.gbB__links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--b-chip); color: var(--b-ink); font-size: 13px; font-weight: 650; text-decoration: none;
  transition: background-color 180ms ease, transform 140ms cubic-bezier(0.23, 1, 0.32, 1);
}
.gbB__links a.is-main { background: var(--b-ink); color: var(--b-bg); }
.gbB__links a:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .gbB__links a:not(.is-main):hover { background: var(--b-chip-hover); }
  .gbB__id .gbw-g { transition: transform 500ms cubic-bezier(0.23, 1, 0.32, 1); }
  .gbB__id:hover .gbw-g { transform: rotate(-8deg) translateY(-1px); }
}
@media (prefers-reduced-motion: no-preference) {
  .gbw--wait .gbB__txt, .gbw--wait .gbB__links a { opacity: 0; transform: translateY(8px); }
  .gbB .gbB__txt, .gbB .gbB__links a { transition: opacity 500ms ease, transform 600ms cubic-bezier(0.23, 1, 0.32, 1), background-color 180ms ease; }
  .gbB .gbB__txt { transition-delay: 380ms, 380ms, 0s; }
  .gbB .gbB__links a:nth-child(1) { transition-delay: 560ms, 560ms, 0s; }
  .gbB .gbB__links a:nth-child(2) { transition-delay: 620ms, 620ms, 0s; }
  .gbB .gbB__links a:nth-child(3) { transition-delay: 680ms, 680ms, 0s; }
  .gbB.is-in .gbB__txt, .gbB.is-in .gbB__links a { opacity: 1; transform: none; }
}


.gbw :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.gbB { font-family: inherit; }
.gbB, .gbB * { box-sizing: border-box; }
.gbB p, .gbB small, .gbB b { margin: 0; }
.gbB--light { --b-bg: var(--paper-2); --b-ink: var(--ink); --b-chip: var(--paper-3); --b-chip-hover: #cacac4; padding-inline: var(--margin); padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
