/* =========================================================================
   BIURA — landing (phase 2a: desktop parity with assets/homepage-reference.webp)
   -------------------------------------------------------------------------
   Scaling model
   - The composition is drawn on a 1024-unit canvas. --u = 1/1024 of the
     layout width (container-query unit, so the scrollbar is excluded),
     capped at --layout-max. Every landing length is calc(N * var(--u)), so
     at 1024 px the page is the mockup 1:1 and above it scales like a zoom.
   - Beyond the cap the .frame content stays centred; section backgrounds
     and photos stay full-bleed.
   - Below 1000 px (container width) the compact mobile/tablet design takes
     over. The threshold sits under 1024 on purpose: a 1024 px window with a
     classic (non-overlay) scrollbar has ~1007 px of layout and must still get
     the mockup composition (scaled 0.98), not the tablet one. Compact uses
     --u = 1px and fluid type (clamp/cqi): see the "Compact layout" block
     near the end. Motion (hero entrance, reveals, header states) is
     progressive enhancement gated on html.js + prefers-reduced-motion and
     always rests on the exact static (mockup) state.
   Numbers are mockup pixels (see docs/REFERENCIA_VISUAL_HOME.md and
   assets/ASSETS_SPEC.md); "mockup-fit" marks optical tweaks that only exist
   to match the reference image.
   ========================================================================= */

@property --u { syntax: "<length>"; inherits: true; initial-value: 1px; }

:root {
  --layout-max: 1640px;

  /* Type roles. Swap --font-ui (+ --font-ui-scale) to change the UI/body face,
     e.g. --font-ui: "Optima nova", …; --font-ui-scale: .97 */
  --font-hero: "Trirong", Georgia, "Times New Roman", serif;
  --font-display: "Gotu", Optima, Candara, "Segoe UI", sans-serif;
  --font-ui: "Mukta", "Optima nova", Optima, Candara, "Segoe UI", sans-serif;
  --font-ui-scale: 1;
  --font-eyebrow: "DM Sans", "Mukta", "Segoe UI", sans-serif;

  /* Palette (sampled from the mockup) */
  --ink: #231917;
  --ink-strong: #120B08;
  --ink-heading: #180E09;
  --text-muted: #433832;
  --espresso: #3A2E24;
  --on-dark: #FBF3EA;
  --on-dark-muted: #EDE8E2;
  --cream-btn: #F7EADD;
  --circle: #EDDFD5;
  --divider: #E6D8CF;
  --focus: #3A2E24;
  --focus-on-dark: #F7EADD;


  --header-offset: clamp(67px, 6.543vw, 107.3px); /* sticky header height, for anchor scrolling */

  /* Motion */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}
@media (max-width: 999.98px) {
  :root { --header-offset: calc(60px + env(safe-area-inset-top)); }
}
@media (min-width: 768px) and (max-width: 999.98px) {
  :root { --header-offset: calc(72px + env(safe-area-inset-top)); }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: #F5EBE5;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: #F5EBE5;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  /* Unhinted glyphs + subpixel positioning on every platform: text widths follow the
     font's linear advances (as on macOS/Windows) and scale smoothly with --u. */
  text-rendering: geometricPrecision;
}
html.is-menu-open { overflow: hidden; scrollbar-gutter: stable; }
img, svg { display: block; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; text-rendering: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- accessibility helpers ---------- */
.skip-link {
  position: absolute; left: 12px; top: 12px; z-index: 1000;
  padding: 10px 16px; border-radius: 999px;
  background: var(--espresso); color: #FBF9F6; font-weight: 500;
  clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap;
}
.skip-link:focus, .skip-link:focus-visible { clip-path: none; width: auto; height: auto; overflow: visible; }

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

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
/* programmatic focus targets (headings reached from the sheet menu) need no ring */
[tabindex="-1"]:focus { outline: none; }
.science :focus-visible, .cta :focus-visible { outline-color: var(--focus-on-dark); }
/* #how-it-works (removed block) now lands on the method block: an anchor at its top */
.anchor-alias { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }
.btn:focus-visible, .icon-btn:focus-visible, .social a:focus-visible { border-radius: 999px; }

/* ---------- page frame & scaling ---------- */
.site { container: site / inline-size; }
/* --ui (unit for UI font sizes) must be declared where --u is, so it is computed from the real --u */
.site > * { --u: calc(min(100cqw, var(--layout-max)) / 1024); --ui: calc(var(--u) * var(--font-ui-scale)); }
.frame { position: relative; width: calc(1024 * var(--u)); margin-inline: auto; }

/* ---------- shared pieces ---------- */
.icon { width: calc(24 * var(--u)); height: calc(24 * var(--u)); flex: none; overflow: visible; }
.icon--arrow { stroke-width: 1.95; }

/* one rendered line of the mockup copy (see data-copy-lines); shrink-wrapped so each line is its own box */
.line { display: block; width: fit-content; max-width: 100%; }
.cta .line { margin-inline: auto; }

.eyebrow {
  font-family: var(--font-eyebrow);
  font-weight: 550;
  font-size: calc(11 * var(--u));
  line-height: calc(12 * var(--u));
  letter-spacing: .25em;
  text-transform: uppercase;
  white-space: nowrap;
}

.btn {
  display: inline-flex; align-items: center; flex: none;
  height: calc(var(--btn-h) * var(--u));
  padding: 0 calc(var(--btn-pr) * var(--u)) 0 calc(var(--btn-pl) * var(--u));
  gap: calc(var(--btn-gap) * var(--u));
  border: 0; border-radius: 999px;
  font-family: var(--font-ui); font-weight: 500;
  font-size: calc(var(--btn-fs) * var(--ui));
  line-height: calc(20 * var(--u));
  white-space: nowrap; text-decoration: none;
  transition: background-color .3s ease, color .3s ease, box-shadow .45s var(--ease-out), transform .35s var(--ease-out);
}
.btn .icon--arrow { width: calc(var(--btn-arrow) * var(--u)); height: calc(var(--btn-arrow) * var(--u)); transition: transform .45s var(--ease-out); }
.btn:active { transform: scale(.98); transition-duration: .3s, .3s, .45s, .12s; }
@media (hover: hover) {
  .btn:hover .icon--arrow, .link-arrow:hover .icon--arrow, .menu-cta:hover .icon--arrow { transform: translateX(calc(4 * var(--u))); }
  .btn--dark:hover, .btn--light:hover { box-shadow: 0 calc(10 * var(--u)) calc(24 * var(--u)) calc(-12 * var(--u)) rgba(35, 25, 18, .55); }
}
.btn--dark { background: var(--espresso); color: #FBF9F6; }
.btn--dark:hover { background: #4B3B2F; }
.btn--sm { --btn-h: 33; --btn-pl: 20; --btn-pr: 17.44; --btn-gap: 6.6; --btn-fs: 13.5; --btn-arrow: 13.5; }
.btn--lg { --btn-h: 37; --btn-pl: 27.8; --btn-pr: 26.9; --btn-gap: 16.83; --btn-fs: 15.1; --btn-arrow: 16; background: #3A2E25; color: #FCFBF8; }
.btn--outline {
  --btn-h: 36; --btn-pl: 24.35; --btn-pr: 19.9; --btn-gap: 9.2; --btn-fs: 15.1; --btn-arrow: 14.6;
  background: transparent; color: #0A0505; border: calc(1 * var(--u)) solid rgba(20, 12, 10, .82);
}
.btn--outline .icon--arrow { stroke-width: 1.55; }
.btn--outline:hover { background: rgba(58, 46, 36, .06); }
.btn--light { --btn-h: 36; --btn-pl: 32.35; --btn-pr: 24; --btn-gap: 14.1; --btn-fs: 15.1; --btn-arrow: 16.2; background: var(--cream-btn); color: #050202; }
.btn--light:hover { background: #FFF6EC; }

.icon-btn {
  display: grid; place-items: center; flex: none;
  width: calc(36 * var(--u)); height: calc(36 * var(--u));
  padding: 0; border: 0; border-radius: 50%; background: transparent; color: #0F0807;
}
.icon-btn { transition: background-color .3s ease, transform .3s var(--ease-out); }
@media (hover: hover) { .icon-btn:hover { background: rgba(58, 46, 36, .07); } }
.icon-btn:active { transform: scale(.94); }

/* ---------- motion (progressive enhancement) ----------
   - Hero entrance: pure CSS keyframes, only when html.js is set (inline script in <head>) and motion is
     allowed. fill-mode "backwards": after the run no animated property remains, so the resting state is
     the static page (= mockup at 1024). Only opacity/transform/clip-path animate: no layout shift.
   - Scroll reveals: per element (js/landing.js). JS arms the blocks that are not on screen yet (.is-armed);
     each item gets .rv-in (media: .is-visible) once ≥30 % of it sits above the bottom 18 % of the viewport,
     the block gets .is-visible when all its items are in and .is-armed is dropped after the transition. */
@media (prefers-reduced-motion: no-preference) {
  /* SEO/CWV: the LCP photo and the H1 are never hidden — no animation on the photo, the H1 lines only
     rise (transform), so both paint with the first frame */
  .js .eyebrow--hero { animation: rise .7s var(--ease-out) .12s backwards; }
  .js .hero__title .line { animation: title-rise .9s var(--ease-expo) .1s backwards; }
  .js .hero__title .line:nth-child(2) { animation-delay: .18s; }
  .js .hero__title .line:nth-child(3) { animation-delay: .26s; }
  .js .hero__lead { animation: rise .8s var(--ease-out) .6s backwards; }
  .js .hero__cta { animation: rise .8s var(--ease-out) .72s backwards; }
  .js .hero__play { animation: rise .8s var(--ease-out) .8s backwards; }

  /* per-element reveals (js/landing.js): each child of a .reveal block and each .reveal--media fades and
     rises on its own once clearly on screen; --rv-d staggers items that enter together (80 ms) */
  .reveal.is-armed:not(.reveal--media) > * {
    transition: opacity .85s var(--ease-out) var(--rv-d, 0ms), transform 1s var(--ease-expo) var(--rv-d, 0ms);
  }
  .reveal.is-armed:not(.is-visible):not(.reveal--media) > :not(.rv-in) { opacity: 0; transform: translateY(calc(22 * var(--u))); }
  .reveal--media.is-armed { transition: opacity 1s var(--ease-out) var(--rv-d, 0ms), transform 1.2s var(--ease-expo) var(--rv-d, 0ms); }
  .reveal--media.is-armed:not(.is-visible) { opacity: 0; transform: translateY(calc(16 * var(--u))) scale(1.03); }
}
@keyframes title-rise { from { transform: translateY(.28em); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(calc(14 * var(--u))); } to { opacity: 1; transform: none; } }

/* =========================================================================
   S1 Header — 67 tall, sticky (scrolled state can be added in phase 2b)
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 30; isolation: isolate;
  height: calc(67 * var(--u));
  transition: transform .5s var(--ease-out);
}
/* Backgrounds live on pseudo layers: the header itself must not get a filter/backdrop-filter/transform
   at rest, or the fixed sheet menu inside it would become header-relative. ::before = mockup gradient
   (scrollY 0), ::after = scrolled state (translucent, blurred, hairline). */
.site-header::before, .site-header::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  transition: opacity .45s var(--ease-out);
}
.site-header::before { background: linear-gradient(90deg, #F1E6DF 0, #F1E6DF 19%, #F4EAE4 25%, #F5EDE7 31%, #F5EDE7 62%, #F6EEEA 69%, #F7EFEA 88%, #F9EFE9 100%); }
.site-header::after {
  opacity: 0;
  background: rgba(247, 239, 234, .74);
  box-shadow: inset 0 -1px 0 rgba(58, 46, 36, .10), 0 12px 32px -22px rgba(45, 33, 26, .35);
}
.site-header.is-scrolled::before { opacity: 0; }
/* backdrop-filter only while scrolled: at rest it would put the header on its own compositing layer
   and change the text/SVG antialiasing against the mockup render */
.site-header.is-scrolled::after {
  opacity: 1;
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
          backdrop-filter: blur(18px) saturate(1.5);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner {
  display: flex; align-items: center; height: 100%;
  padding: 0 calc(38.33 * var(--u)) 0 calc(60.06 * var(--u));
}
.logo { display: block; flex: none; color: #120A08; }
.logo__svg { width: calc(226 * var(--u)); height: calc(40 * var(--u)); fill: currentColor; overflow: visible; }
.logo__word { fill: #000; }
.logo__tag { fill: #3E322E; }

.main-nav { margin: 0 0 calc(2.2 * var(--u)) calc(44 * var(--u)); }
.main-nav__list { display: flex; gap: calc(24 * var(--u)); }
.main-nav a {
  position: relative; display: block;
  font-size: calc(13 * var(--ui)); line-height: calc(20 * var(--u));
  color: var(--ink); white-space: nowrap;
  transition: color .3s ease;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(1 * var(--u)); height: max(1px, calc(1 * var(--u)));
  background: currentColor; transform: scaleX(0); transform-origin: right center;
  transition: transform .5s var(--ease-out);
}
.main-nav a:hover { color: #7A5C46; }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left center; }
.main-nav__extras { display: none; }

.header-actions { display: flex; align-items: center; margin-left: auto; }
.header-actions .btn { margin-right: calc(17.3 * var(--u)); }
.icon-btn--bag { margin-left: calc(1.37 * var(--u)); }
.nav-toggle { display: none; }

/* =========================================================================
   S2 Hero — 391 tall
   ========================================================================= */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: calc(391 * var(--u));
  background:
    radial-gradient(calc(170 * var(--u)) calc(105 * var(--u)) at calc(50% - 372 * var(--u)) calc(175 * var(--u)), rgba(248,241,237,.70), rgba(248,241,237,0)),
    radial-gradient(calc(120 * var(--u)) calc(85 * var(--u)) at calc(50% - 212 * var(--u)) calc(15 * var(--u)), rgba(248,239,234,.82), rgba(248,239,234,0)),
    linear-gradient(180deg, #F1E5DD 0, #F3E8E0 19.95%, #F4EAE2 33.25%, #F2E7DF 63.94%, #F0E4DC 73.15%, #F0E3DA 100%);
}
.hero picture { display: contents; } /* art-directed source (mobile crop); the img stays the positioned box */
.hero__photo {
  position: absolute; z-index: -1; top: 0; right: 0;
  width: calc(897.5 * var(--u)); height: 100%;
  object-fit: cover; object-position: 50% 21.33%;
  filter: saturate(.865) contrast(.95);
  -webkit-mask-image: linear-gradient(90deg, transparent 28.25%, #000 36.05%);
          mask-image: linear-gradient(90deg, transparent 28.25%, #000 36.05%);
}
.hero__content { padding: calc(51 * var(--u)) 0 0 calc(61.2 * var(--u)); } /* copy block (eyebrow → actions, ~284u) centred in the 391u hero */
.eyebrow--hero { letter-spacing: .334em; color: #2E241F; }
.hero__title {
  margin-top: calc(11 * var(--u));
  font-family: var(--font-hero); font-weight: 400;
  font-size: calc(42 * var(--u)); line-height: calc(44 * var(--u));
  letter-spacing: -.018em; color: #251911;
  font-synthesis: none; /* the emphasised word uses the real Trirong Italic, never a slanted roman */
}
.hero__title em { font-style: italic; letter-spacing: -.01em; }
.hero__lead {
  margin-top: calc(11.5 * var(--u));
  font-size: calc(15.6 * var(--ui)); line-height: calc(20.6 * var(--u));
  color: #261B16;
}
.hero__actions { display: flex; align-items: center; gap: calc(26 * var(--u)); margin-top: calc(19 * var(--u)); }
.hero__play {
  display: inline-flex; align-items: center; gap: calc(11 * var(--u));
  font-size: calc(14.2 * var(--ui)); line-height: calc(20 * var(--u));
  color: var(--ink); white-space: nowrap;
}
.hero__play:focus-visible { border-radius: 999px; outline-offset: calc(4 * var(--u)); }
.hero__play-ring {
  display: grid; place-items: center; flex: none;
  width: calc(33 * var(--u)); height: calc(33 * var(--u));
  border: max(1px, calc(1 * var(--u))) solid rgba(35, 25, 23, .55); border-radius: 50%;
  transition: background-color .35s ease, border-color .35s ease;
}
.hero__play-ring .icon { width: calc(13 * var(--u)); height: calc(13 * var(--u)); margin-left: calc(2 * var(--u)); stroke-width: 1.5; }
.hero__play-label { position: relative; }
.hero__play-label::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: max(1px, calc(1 * var(--u)));
  background: currentColor; transform: scaleX(0); transform-origin: right center; transition: transform .5s var(--ease-out);
}
@media (hover: hover) {
  .hero__play:hover .hero__play-ring { background: rgba(58, 46, 36, .07); border-color: rgba(35, 25, 23, .8); }
  .hero__play:hover .hero__play-label::after { transform: scaleX(1); transform-origin: left center; }
}

/* =========================================================================
   S2b Marcas — 84 tall: light band under the hero, eyebrow + auto-rotating logo carousel
   ========================================================================= */
.brands {
  --hair: max(1px, round(down, calc(1 * var(--u)), 1px));
  --visible: 6;
  position: relative; height: calc(84 * var(--u));
  background: linear-gradient(180deg, #F9F2ED 0, #F8F0EA 100%);
  box-shadow: inset 0 var(--hair) 0 rgba(58, 46, 36, .13);
}
.brands__inner {
  display: flex; align-items: center; height: 100%;
  padding: 0 calc(38.33 * var(--u)) 0 calc(61.2 * var(--u));
}
.brands__title {
  position: relative; flex: none;
  padding-right: calc(30 * var(--u)); margin-right: calc(30 * var(--u));
  font-size: calc(9.6 * var(--u)); line-height: calc(14 * var(--u)); letter-spacing: .26em;
  color: #2E241F;
}
.brands__title::after { /* thin vertical separator */
  content: ""; position: absolute; right: 0; top: calc(-3 * var(--u)); bottom: calc(-3 * var(--u));
  width: var(--hair); background: rgba(58, 46, 36, .2);
}
.brands__carousel { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; height: 100%; }
.brands__viewport {
  flex: 1 1 auto; min-width: 0; height: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 calc(18 * var(--u)), #000 calc(100% - 26 * var(--u)), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 calc(18 * var(--u)), #000 calc(100% - 26 * var(--u)), transparent 100%);
}
.brands__track {
  display: flex; height: 100%;
  transition: transform .9s var(--ease-in-out);
  will-change: transform;
}
.brands__track.is-instant { transition: none; }
.brands__item { flex: 0 0 calc(100% / var(--visible)); display: grid; place-items: center; }
.brands__logo {
  display: block;
  width: calc(var(--w) * var(--u) * var(--logo-scale, 1)); height: calc(var(--h) * var(--u) * var(--logo-scale, 1));
  background: var(--ink);
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.brands__controls { display: flex; align-items: center; gap: calc(8 * var(--u)); flex: none; margin-left: calc(14 * var(--u)); }
.brands__btn {
  display: grid; place-items: center; flex: none;
  width: calc(31 * var(--u)); height: calc(31 * var(--u)); padding: 0;
  border: var(--hair) solid rgba(35, 25, 23, .34); border-radius: 50%;
  background: transparent; color: var(--ink);
  transition: background-color .3s ease, border-color .3s ease, transform .3s var(--ease-out);
}
.brands__btn .icon { width: calc(15 * var(--u)); height: calc(15 * var(--u)); }
.brands__btn--pause { border-color: transparent; }
.brands__btn--pause .icon { width: calc(13 * var(--u)); height: calc(13 * var(--u)); }
.brands__btn[hidden] { display: none; }
.brands__btn:focus-visible { border-radius: 50%; outline-offset: 2px; }
@media (hover: hover) { .brands__btn:hover { background: rgba(58, 46, 36, .07); border-color: rgba(35, 25, 23, .6); } }
.brands__btn:active { transform: scale(.94); }

/* =========================================================================
   S3 El método BIURA — 172 tall dark band that opens the sequence: intro | hairline | 3 steps in copper
   circles | crystal sphere fading in on the right
   ========================================================================= */
.science {
  --hair: max(1px, round(down, calc(1 * var(--u)), 1px));
  --copper: #B98D68;
  position: relative; isolation: isolate; overflow: hidden;
  height: calc(172 * var(--u));
  color: var(--on-dark);
  background: linear-gradient(90deg, #2D2521 0, #28201C 55%, #2B221E 100%);
}
.science__media {
  position: absolute; z-index: -1; top: 0; right: 0;
  width: calc(300 * var(--u)); height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 46%);
          mask-image: linear-gradient(90deg, transparent 0, #000 46%);
}
.science__photo { width: 100%; height: 100%; object-fit: cover; object-position: 86% 42%; } /* no desaturating filter: skin tone matched to the hero (scripts/skin-tone.py) */
.science__inner { display: flex; align-items: center; height: 100%; padding-left: calc(61.2 * var(--u)); }
.science__intro { flex: none; width: calc(286 * var(--u)); }
.eyebrow--science { letter-spacing: .25em; color: #E4D6CA; }
.science__title {
  margin-top: calc(9 * var(--u));
  font-family: var(--font-hero); font-weight: 400;
  font-size: calc(30 * var(--u)); line-height: calc(31 * var(--u));
  letter-spacing: -.012em; color: var(--on-dark);
}
.science__text {
  margin-top: calc(9 * var(--u));
  font-size: calc(11.8 * var(--ui)); line-height: calc(15.5 * var(--u));
  color: var(--on-dark-muted);
}
.method {
  display: flex; align-items: flex-start; gap: calc(30 * var(--u));
  margin-left: calc(22 * var(--u)); padding-left: calc(28 * var(--u));
  border-left: var(--hair) solid rgba(247, 234, 221, .22);
}
.method__step { position: relative; display: flex; flex-direction: column; align-items: center; width: calc(110 * var(--u)); text-align: center; }
.method__icon {
  display: grid; place-items: center; flex: none;
  width: calc(42 * var(--u)); height: calc(42 * var(--u));
  border: var(--hair) solid var(--copper); border-radius: 50%;
  color: #F1E4D8;
  transition: background-color .4s ease, transform .6s var(--ease-expo);
}
.method__icon .icon { width: calc(19 * var(--u)); height: calc(19 * var(--u)); }
@media (hover: hover) { .method__step:hover .method__icon { background: rgba(185, 141, 104, .12); transform: translateY(calc(-2 * var(--u))); } }
.method__title { margin-top: calc(9 * var(--u)); font-size: calc(13.4 * var(--ui)); line-height: calc(17 * var(--u)); font-weight: 500; color: var(--on-dark); }
.method__text { margin-top: calc(4 * var(--u)); font-size: calc(11.2 * var(--ui)); line-height: calc(14.2 * var(--u)); color: #D9CCC1; }
.method__text .line { margin-inline: auto; }
.method__arrow {
  position: absolute; top: calc(52.5 * var(--u)); right: calc(-22 * var(--u));
  width: calc(14 * var(--u)); height: calc(14 * var(--u));
  stroke-width: 1.3; color: rgba(247, 234, 221, .6);
}

/* =========================================================================
   S4a / S4c Step blocks (01 Analizar, 03 Cuidar) — 244 tall, copy on the LEFT over the cream,
   photo on the right fading in from the left
   ========================================================================= */
.mblock {
  --hair: max(1px, round(down, calc(1 * var(--u)), 1px));
  position: relative; isolation: isolate; overflow: hidden;
  height: calc(244 * var(--u));
  background: linear-gradient(180deg, #F7EEE8 0, #F3E8E0 100%);
  box-shadow: inset 0 var(--hair) 0 rgba(58, 46, 36, .09);
}
.mblock__media {
  position: absolute; z-index: -1; top: 0; right: 0; bottom: 0;
  width: calc(640 * var(--u)); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32%);
          mask-image: linear-gradient(90deg, transparent 0, #000 32%);
}
.mblock__img { width: 100%; height: 100%; object-fit: cover; }
.mblock--analyze .mblock__media { width: calc(660 * var(--u)); } /* square corners, full bleed on the right (user) */
.mblock--analyze .mblock__img { object-position: 62% 50%; }
.mblock--select .mblock__media { width: calc(560 * var(--u)); }
.mblock--select .mblock__img { object-position: 50% 32%; }
.mblock__inner { display: flex; align-items: center; height: 100%; }
.mblock__content { padding-left: calc(61.2 * var(--u)); }
.eyebrow--step { letter-spacing: .25em; color: #221915; }
.mblock__title, .care__title {
  margin-top: calc(10 * var(--u));
  font-family: var(--font-hero); font-weight: 400;
  font-size: calc(31 * var(--u)); line-height: calc(32 * var(--u));
  letter-spacing: -.015em; color: var(--ink-heading);
}
.mblock__text {
  margin-top: calc(10 * var(--u));
  font-size: calc(14.4 * var(--ui)); line-height: calc(18.4 * var(--u));
  color: #271F1B;
}
.mblock__cta { margin-top: calc(17 * var(--u)); }

/* =========================================================================
   S4b 02 Planificar (Tu plan de cuidado) — 316 tall: devices on the LEFT, copy + 3 features + CTA on the right
   ========================================================================= */
.care {
  --hair: max(1px, round(down, calc(1 * var(--u)), 1px));
  position: relative; isolation: isolate; overflow: hidden;
  height: calc(316 * var(--u));
  background:
    radial-gradient(calc(420 * var(--u)) calc(230 * var(--u)) at calc(50% - 250 * var(--u)) 55%, rgba(252, 246, 242, .75), rgba(252, 246, 242, 0)),
    linear-gradient(180deg, #F5EAE3 0, #F3E7DF 100%);
  box-shadow: inset 0 var(--hair) 0 rgba(58, 46, 36, .09);
}
.care__inner {
  display: grid; grid-template-columns: calc(522 * var(--u)) 1fr; align-items: center;
  height: 100%; padding: 0 calc(38.33 * var(--u)) 0 calc(34 * var(--u));
}
.care__media { justify-self: start; }
.care__img { width: calc(490 * var(--u)); height: auto; }
.care__content { padding-left: calc(36 * var(--u)); }
.care__text {
  margin-top: calc(10 * var(--u));
  font-size: calc(14.4 * var(--ui)); line-height: calc(18.4 * var(--u));
  color: #271F1B;
}
.care__features { display: flex; margin-top: calc(15 * var(--u)); }
.care__feature {
  display: flex; flex-direction: column; align-items: center; gap: calc(7 * var(--u));
  padding: calc(2 * var(--u)) calc(24 * var(--u)); text-align: center;
}
.care__feature:first-child { padding-left: calc(4 * var(--u)); }
.care__feature + .care__feature { border-left: var(--hair) solid var(--divider); }
.care__feature-icon { width: calc(23 * var(--u)); height: calc(23 * var(--u)); color: #2B201B; }
.care__feature-label { font-size: calc(12.4 * var(--ui)); line-height: calc(14.8 * var(--u)); color: var(--ink); white-space: nowrap; }
.care__feature-label .line { margin-inline: auto; }
.care__cta { margin-top: calc(17 * var(--u)); }

/* =========================================================================
   S6 CTA — 209 tall, dark band with rings
   ========================================================================= */
.cta {
  position: relative; overflow: hidden;
  height: calc(209 * var(--u));
  color: #FCF7EE; text-align: center;
  background:
    url("../assets/cta-rings.svg") center / calc(1024 * var(--u)) 100% no-repeat,
    linear-gradient(90deg, rgba(30,23,20,.39) 0, rgba(30,23,20,.26) 6.25%, rgba(30,23,20,.21) 12.5%, rgba(30,23,20,.10) 25%, rgba(30,23,20,.15) 37.5%, rgba(30,23,20,.13) 50%, rgba(30,23,20,.10) 62.5%, rgba(30,23,20,.03) 75%, rgba(30,23,20,.15) 87.5%, rgba(30,23,20,.37) 93.75%, rgba(30,23,20,.62) 100%),
    linear-gradient(180deg, #322924 0, #372E2A 14.35%, #39302B 28.71%, #3E342F 43.06%, #433832 57.42%, #473A35 71.77%, #4A3E38 86.12%, #4D403A 100%);
  background-color: #342927; /* under the gradients (spec CT-01 base colour) */
}
.cta__inner { padding-top: calc(40.4 * var(--u)); }
.cta__title {
  padding-left: calc(7 * var(--u)); /* mockup-fit: the headline axis sits ~3.5 px right of the band centre */
  font-family: var(--font-display); font-weight: 400;
  font-size: calc(34.1 * var(--u)); line-height: calc(32.7 * var(--u));
  letter-spacing: .017em; color: #FCF7EE;
}
.cta__text {
  margin-top: calc(9.5 * var(--u));
  font-size: calc(15.9 * var(--ui)); line-height: calc(20 * var(--u));
  color: #F3EFE9;
}
.cta .btn { margin-top: calc(14.7 * var(--u)); }

/* =========================================================================
   S7 Footer — 232 tall (3 link columns: Explora · Sobre BIURA · Ayuda), flat top + dunes.
   Same markup on the landing and on the static pages (source: scripts/pages/footer.html).
   ========================================================================= */
.site-footer {
  position: relative; isolation: isolate; overflow: hidden;
  height: calc(232 * var(--u));
  background:
    linear-gradient(90deg, rgba(233,217,206,0) 0, rgba(233,217,206,0) 87.9%, rgba(233,217,206,.40) 100%),
    linear-gradient(180deg, #F7EDE7 0, #F6EBE5 28.57%, #F6EBE4 42.86%, #F7EBE2 50%, #F8EAE0 59.52%, #F8E9DE 66.67%);
}
.site-footer__dunes {
  /* fitted against the mockup (the asset is a different dune render): zoomed so its ripple
     field sits under the bottom row, faded in below the text, toned down to the mockup's sand */
  position: absolute; z-index: -1; left: 0; top: calc(-536.9 * var(--u)); /* 210u footer: -558.9u; anchored to the bottom */
  width: max(100%, calc(1628.5 * var(--u))); height: calc(916.5 * var(--u)); max-width: none;
  object-fit: cover; object-position: 0 0;
  filter: saturate(.96) brightness(1.24) contrast(.67);
  -webkit-mask-image: linear-gradient(180deg, transparent calc(691.1 * var(--u)), #000 calc(707.1 * var(--u)));
          mask-image: linear-gradient(180deg, transparent calc(691.1 * var(--u)), #000 calc(707.1 * var(--u)));
}
.site-footer__inner {
  display: grid;
  grid-template-columns: calc(372 * var(--u)) repeat(3, calc(142 * var(--u))) 1fr auto;
  grid-template-rows: 1fr auto;
  height: 100%;
  padding: 0 calc(45.22 * var(--u)) calc(16.26 * var(--u)) calc(54.61 * var(--u));
}
.footer-brand { padding-top: calc(26.89 * var(--u)); }
.logo--compact .logo__svg { width: calc(202.42 * var(--u)); height: calc(30.2 * var(--u)); }
.footer-brand__lema {
  margin-top: calc(18.93 * var(--u));
  font-size: calc(14.8 * var(--ui)); line-height: calc(18 * var(--u)); font-weight: 500;
  color: #1A110D;
}
.footer-brand__text {
  margin-top: calc(5.65 * var(--u));
  font-size: calc(10.45 * var(--ui)); line-height: calc(13.5 * var(--u));
  color: #51433D; white-space: nowrap;
}
.footer-nav { padding-top: calc(29.45 * var(--u)); }
.footer-nav__title {
  font-family: var(--font-ui); font-weight: 500;
  font-size: calc(14 * var(--ui)); line-height: calc(18 * var(--u));
  color: #130C09;
}
.footer-nav__list { margin-top: calc(3.3 * var(--u)); }
/* WCAG 2.2 target-size (2.5.8) at the mockup's 18-unit pitch: each link box is a real >=24 px tall
   target. Below ~1365 px wide (18u < 24 px) four 24 px targets need 96 px for 72 px of text, so the
   targets are spread symmetrically (offset --o from their text line, at most 1.5 x 6 px at 1024) and
   the text is re-centred inside its box with asymmetric padding. The li pitch, text position and
   rendering stay exactly the mockup's; focus ring and underline are drawn around the text line. */
.footer-nav__list li:nth-child(1) { --k: 0; }
.footer-nav__list li:nth-child(2) { --k: 1; }
.footer-nav__list li:nth-child(3) { --k: 2; }
.footer-nav__list li:nth-child(4) { --k: 3; }
.footer-nav__list li:nth-child(5) { --k: 4; }
.footer-nav__list a, .footer-nav__list button {
  --D: max(0px, 24px - 18 * var(--u));      /* missing height per target */
  --H: calc(18 * var(--u) + var(--D));      /* target height (>= 24 px) */
  --o: calc((var(--k, 0) - 2) * var(--D)); /* target centre minus text centre (5-link column) */
  position: relative;
  display: flex; align-items: center;
  width: fit-content; height: var(--H);
  margin: calc(var(--o) - var(--D) / 2) 0 calc(0px - var(--o) - var(--D) / 2);
  padding: max(0px, -2 * var(--o)) 0 max(0px, 2 * var(--o));
  border: 0; background: none; text-align: left;
  font-size: calc(11 * var(--ui)); line-height: calc(18 * var(--u));
  color: #4F443F; white-space: nowrap;
  transition: color .3s ease;
}
.footer-nav__list a::before, .footer-nav__list button::before,
.footer-nav__list a::after, .footer-nav__list button::after {
  content: ""; position: absolute; left: 0; right: 0; pointer-events: none;
}
.footer-nav__list a::before, .footer-nav__list button::before {
  /* the text line box: centred at H/2 - o inside the target */
  top: calc(var(--H) / 2 - var(--o) - 9 * var(--u)); height: calc(18 * var(--u));
  margin-inline: -4px; border-radius: 4px;
}
.footer-nav__list a::after, .footer-nav__list button::after {
  top: calc(var(--H) / 2 - var(--o) + 5 * var(--u)); height: max(1px, calc(.8 * var(--u)));
  background: currentColor; transform: scaleX(0); transform-origin: right center;
  transition: transform .5s var(--ease-out);
}
.footer-nav__list a:hover, .footer-nav__list button:hover { color: #1A110D; }
.footer-nav__list a:hover::after, .footer-nav__list button:hover::after { transform: scaleX(1); transform-origin: left center; }
/* transparent outline: invisible here (the ring is drawn on ::before around the text), but kept for forced-colors mode */
.footer-nav__list a:focus-visible, .footer-nav__list button:focus-visible { outline: 2px solid transparent; outline-offset: 0; }
.footer-nav__list a:focus-visible::before, .footer-nav__list button:focus-visible::before { outline: 2px solid var(--focus); outline-offset: 1px; }
.social { display: flex; padding-top: calc(25.8 * var(--u)); color: #070202; }
.social a {
  display: grid; place-items: center;
  width: calc(25.8 * var(--u)); height: calc(25.8 * var(--u));
}
.social a { transition: color .3s ease, transform .4s var(--ease-out); }
.social a:hover { color: #6B5446; transform: translateY(calc(-2 * var(--u))); }
.icon--instagram, .icon--youtube, .icon--linkedin { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
.icon--tiktok { width: calc(12.2 * var(--u)); height: calc(12.2 * var(--u)); }
.footer-bottom {
  grid-column: 1 / -1;
  display: flex; align-items: flex-end; justify-content: space-between;
  font-size: calc(10.9 * var(--ui)); line-height: calc(14 * var(--u));
}
.footer-bottom__copy { color: #553A2D; }
.footer-bottom__top {
  display: inline-flex; align-items: center; gap: calc(9.76 * var(--u));
  margin: 0 calc(5.18 * var(--u)) calc(3.29 * var(--u)) 0; /* §11.6: sits 3 px above the copyright baseline */
  font-size: calc(10.5 * var(--ui)); color: #3F261A;
}
.footer-bottom__top:hover { text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom__top .icon--arrow-up { transition: transform .45s var(--ease-out); }
@media (hover: hover) { .footer-bottom__top:hover .icon--arrow-up { transform: translateY(calc(-3 * var(--u))); } }
.icon--arrow-up { width: calc(12.6 * var(--u)); height: calc(12.6 * var(--u)); stroke-width: 2.3; }

/* =========================================================================
   Compact layout: mobile (< 768) and tablet (768–999), by .site container width.
   Same brand language at 1 unit = 1 px, fluid type (clamp + cqi), media-first
   sections, 44 px tap targets, safe-area insets, sheet menu.
   ========================================================================= */
@container site (width < 1000px) {
  .site > * {
    --u: 1px; --ui: calc(1px * var(--font-ui-scale));
    --gutter: clamp(20px, 6cqi, 48px);
    --hdr-h: 60px;
    --hairline: rgba(58, 46, 36, .12);
  }
  .frame { width: 100%; }
  .line { display: inline; width: auto; }
  .science__title, .cta__title, .footer-brand__lema { text-wrap: balance; }
  .hero__lead, .science__text, .cta__text, .footer-brand__text { text-wrap: pretty; }

  /* ---------- header ---------- */
  .site-header { height: calc(var(--hdr-h) + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
  .site-header__inner {
    height: var(--hdr-h);
    padding: 0 max(8px, env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  }
  .site-header .logo { position: relative; padding: 8px 0; }
  .site-header .logo__svg { width: 158px; height: 28px; }
  .header-actions { gap: 2px; }
  .header-actions .btn { display: none; }
  .icon-btn--user { display: none; }
  .icon-btn { width: 44px; height: 44px; }
  .icon-btn .icon { width: 24px; height: 24px; }
  .icon-btn--bag { margin-left: 0; }

  .nav-toggle {
    position: relative; display: grid; place-items: center;
    width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
    background: transparent; color: var(--ink);
    transition: background-color .3s ease;
  }
  @media (hover: hover) { .nav-toggle:hover { background: rgba(58, 46, 36, .07); } }
  .nav-toggle__bar {
    position: absolute; left: 11px; width: 22px; height: 1.5px; border-radius: 2px; background: currentColor;
    transition: transform .55s var(--ease-expo), width .4s var(--ease-out);
  }
  .nav-toggle__bar:first-child { transform: translateY(-4px); }
  .nav-toggle__bar:last-child { transform: translateY(4px); width: 15px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child { transform: rotate(-45deg); width: 22px; }

  /* ---------- sheet menu (full screen, under the header row) ---------- */
  .main-nav {
    position: fixed; inset: 0; z-index: -1; margin: 0;
    display: flex; flex-direction: column;
    padding:
      calc(var(--hdr-h) + env(safe-area-inset-top) + clamp(20px, 6svh, 48px))
      max(var(--gutter), env(safe-area-inset-right))
      calc(20px + env(safe-area-inset-bottom))
      max(var(--gutter), env(safe-area-inset-left));
    overflow-y: auto; overscroll-behavior: contain;
    background:
      radial-gradient(120% 60% at 100% 100%, rgba(226, 204, 189, .55), rgba(226, 204, 189, 0) 70%),
      radial-gradient(90% 50% at 0% 0%, rgba(252, 246, 242, .9), rgba(252, 246, 242, 0) 70%),
      linear-gradient(180deg, #F6EDE7 0, #F2E6DE 100%);
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .5s var(--ease-in-out), visibility 0s linear .5s;
  }
  .main-nav::before { /* hairline under the header row */
    content: ""; position: absolute; left: 0; right: 0;
    top: calc(var(--hdr-h) + env(safe-area-inset-top)); height: 1px; background: var(--hairline);
  }
  .main-nav.is-open { /* visibility flips instantly on open (focus can move in right away) */
    visibility: visible; clip-path: inset(0 0 0 0);
    transition: clip-path .75s var(--ease-expo);
  }
  .main-nav__list { display: block; counter-reset: nav; }
  .main-nav__list li { counter-increment: nav; border-bottom: 1px solid var(--hairline); }
  .main-nav a {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: 44px; padding: clamp(10px, 2.2svh, 18px) 2px;
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(30px, 8.6cqi, 46px); line-height: 1.12; letter-spacing: -.01em;
    color: var(--ink-heading); white-space: normal;
  }
  .main-nav a::before {
    content: counter(nav, decimal-leading-zero) / "";
    order: 2; flex: none;
    font-family: var(--font-eyebrow); font-weight: 550; font-size: 11px; letter-spacing: .22em; color: #8A7566;
  }
  .main-nav a::after { display: none; }
  .main-nav a:hover { color: #6E5240; }
  .main-nav a:active { opacity: .7; }
  .main-nav__extras { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 32px; }
  .menu-cta {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    height: 54px; padding: 0 28px; border: 0; border-radius: 999px;
    background: var(--espresso); color: #FBF9F6;
    font-weight: 500; font-size: 16.5px; line-height: 20px;
    transition: background-color .3s ease, transform .35s var(--ease-out);
  }
  .menu-cta .icon--arrow { width: 17px; height: 17px; stroke-width: 1.9; transition: transform .45s var(--ease-out); }
  .menu-cta:hover { background: #4B3B2F; }
  .menu-cta:active, .menu-chip:active { transform: scale(.98); }
  .main-nav__account { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .menu-chip {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    height: 50px; padding: 0 16px; border: 1px solid rgba(58, 46, 36, .24); border-radius: 999px;
    background: rgba(255, 253, 250, .45); color: var(--ink);
    font-size: 15.5px; line-height: 20px; font-weight: 500;
    transition: background-color .3s ease, transform .35s var(--ease-out);
  }
  .menu-chip .icon { width: 20px; height: 20px; }
  .menu-chip:hover { background: rgba(255, 253, 250, .8); }
  .main-nav__tagline {
    margin-top: 10px; text-align: center;
    font-family: var(--font-eyebrow); font-weight: 550; font-size: 10px; letter-spacing: .32em;
    text-transform: uppercase; color: #7E6A5C;
  }
  /* staggered entrance of the sheet content */
  .main-nav__list li, .main-nav__extras > * {
    opacity: 0; transform: translateY(22px);
    transition: opacity .25s ease, transform .3s ease;
  }
  .main-nav.is-open .main-nav__list li, .main-nav.is-open .main-nav__extras > * {
    opacity: 1; transform: none;
    transition: opacity .6s var(--ease-out) var(--d, .2s), transform .9s var(--ease-expo) var(--d, .2s);
  }
  .main-nav__list li:nth-child(1) { --d: .16s; }
  .main-nav__list li:nth-child(2) { --d: .22s; }
  .main-nav__list li:nth-child(3) { --d: .28s; }
  .main-nav__list li:nth-child(4) { --d: .34s; }
  .main-nav__extras > :nth-child(1) { --d: .42s; }
  .main-nav__extras > :nth-child(2) { --d: .48s; }
  .main-nav__extras > :nth-child(3) { --d: .54s; }

  /* ---------- hero: face-cropped photo on top, copy below ---------- */
  .hero { height: auto; display: flex; flex-direction: column; }
  .hero__photo {
    position: relative; z-index: 0; order: -1;
    width: 100%; height: auto; aspect-ratio: 39 / 40;
    object-position: 71% 30%;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 99%);
            mask-image: linear-gradient(180deg, #000 70%, transparent 99%);
  }
  .hero__inner { position: relative; z-index: 1; margin-top: clamp(-64px, -12cqi, -40px); }
  .hero__content { padding: 0 max(var(--gutter), env(safe-area-inset-right)) 44px max(var(--gutter), env(safe-area-inset-left)); }
  .eyebrow--hero { font-size: 11px; line-height: 14px; }
  .hero__title { margin-top: 14px; font-size: clamp(40px, 11.6cqi, 64px); line-height: 1.02; }
  .hero__title .line { display: block; width: fit-content; }
  .hero__lead { margin-top: 16px; max-width: 34em; font-size: clamp(16.5px, 4.4cqi, 19px); line-height: 1.5; }
  .hero__cta {
    --btn-h: 54; --btn-pl: 28; --btn-pr: 26; --btn-gap: 14; --btn-fs: 16.5; --btn-arrow: 17;
    display: flex; justify-content: center; width: 100%; margin-top: 28px;
  }

  /* ---------- method band: sphere as a top band, intro, steps as a list ---------- */
  .science { height: auto; display: flex; flex-direction: column; background: linear-gradient(180deg, #2B231F 0, #251E1B 100%); }
  .science__media {
    position: relative; order: -1; width: 100%; height: auto; aspect-ratio: 5 / 2;
    -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 50%, transparent 100%);
  }
  .science__photo { object-position: 72% 42%; }
  .science__inner { display: block; height: auto; margin-top: -18px; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 56px max(var(--gutter), env(safe-area-inset-left)); }
  .science__intro { width: auto; }
  .eyebrow--science { font-size: 11px; line-height: 14px; }
  .science__title { margin-top: 14px; font-size: clamp(34px, 9.4cqi, 48px); line-height: 1.06; }
  .science__title .line { display: block; }
  .science__text { margin-top: 14px; max-width: 34em; font-size: 16.5px; line-height: 1.55; text-wrap: pretty; }
  .method { display: grid; gap: 0; margin: 28px 0 0; padding: 0; border-left: 0; border-top: 1px solid rgba(247, 234, 221, .14); }
  .method__step {
    display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; align-items: center;
    width: auto; padding: 16px 0; text-align: left; border-bottom: 1px solid rgba(247, 234, 221, .14);
  }
  .method__icon { grid-row: span 2; width: 52px; height: 52px; border-width: 1px; }
  .method__icon .icon { width: 24px; height: 24px; }
  .method__title { align-self: end; margin: 0; font-size: 17px; line-height: 22px; }
  .method__text { align-self: start; margin-top: 2px; font-size: 15px; line-height: 1.4; }
  .method__text .line { display: inline; margin: 0; }
  .method__arrow { display: none; }

  /* ---------- step blocks (01 / 03): photo on top, copy below ---------- */
  .mblock { height: auto; display: flex; flex-direction: column; }
  .mblock__media, .mblock--analyze .mblock__media, .mblock--select .mblock__media {
    position: relative; inset: auto; order: -1; width: 100%; aspect-ratio: 2 / 1;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  }
  .mblock--analyze .mblock__img { object-position: 64% 50%; }
  .mblock--select .mblock__media { aspect-ratio: 3 / 2; }
  .mblock--select .mblock__img { object-position: 72% 50%; }
  .mblock__inner { display: block; height: auto; }
  .mblock__content { padding: 12px max(var(--gutter), env(safe-area-inset-right)) 64px max(var(--gutter), env(safe-area-inset-left)); }
  .eyebrow--step { font-size: 11px; line-height: 14px; }
  .mblock__title, .care__title { margin-top: 14px; font-size: clamp(32px, 9cqi, 46px); line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
  .mblock__title .line { display: block; }
  .mblock__text { margin-top: 14px; max-width: 34em; font-size: 17px; line-height: 1.5; text-wrap: pretty; }
  .mblock__cta {
    --btn-h: 54; --btn-pl: 28; --btn-pr: 24; --btn-gap: 12; --btn-fs: 16.5; --btn-arrow: 16;
    display: flex; justify-content: center; width: 100%; margin-top: 28px;
  }

  /* ---------- CTA ---------- */
  .cta { height: auto; padding: 76px var(--gutter) 80px; background-size: auto 130%, auto, auto; background-position: center, 0 0, 0 0; }
  .cta__inner { padding: 0; }
  .cta__title { padding-left: 0; font-size: clamp(30px, 8.8cqi, 48px); line-height: 1.1; }
  .cta__title .line { display: block; }
  .cta__text { margin-top: 14px; font-size: 16.5px; line-height: 1.5; }
  .cta .btn { --btn-h: 54; --btn-pl: 32; --btn-pr: 26; --btn-gap: 14; --btn-fs: 16.5; --btn-arrow: 17; margin-top: 30px; }

  /* ---------- footer: stacked ---------- */
  .site-footer { height: auto; }
  .site-footer__dunes { /* the ripple field only: sky and horizon are faded out */
    top: auto; bottom: 0; left: 50%; width: max(100%, 780px); height: auto; aspect-ratio: 1672 / 941;
    translate: -50% 0;
    -webkit-mask-image: linear-gradient(180deg, transparent 52%, #000 74%);
            mask-image: linear-gradient(180deg, transparent 52%, #000 74%);
  }
  .site-footer__inner {
    grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 36px 20px;
    padding: 56px max(var(--gutter), env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  }
  .footer-brand { grid-column: 1 / -1; padding: 0; }
  .logo--compact { width: fit-content; }
  .logo--compact .logo__svg { width: 190px; height: 28.35px; }
  .footer-brand__lema { margin-top: 22px; font-size: 18px; line-height: 1.35; }
  .footer-brand__text { margin-top: 8px; max-width: 36em; white-space: normal; font-size: 14.5px; line-height: 1.55; }
  .footer-nav { padding: 0; }
  .footer-nav__title { font-size: 15.5px; line-height: 22px; }
  .footer-nav__list { margin-top: 4px; }
  .footer-nav__list a, .footer-nav__list button {
    --o: 0px; --H: 44px;
    width: auto; height: auto; min-height: 44px; margin: 0; padding: 0;
    font-size: 15px; line-height: 1.3; white-space: normal;
  }
  .footer-nav__list a::before, .footer-nav__list button::before { top: 8px; bottom: 8px; height: auto; }
  .footer-nav__list a::after, .footer-nav__list button::after { top: auto; bottom: 10px; height: 1px; }
  .social { grid-column: 1 / -1; gap: 4px; margin-left: -10px; padding: 0; }
  .social a { width: 44px; height: 44px; }
  .icon--instagram, .icon--youtube, .icon--linkedin { width: 20px; height: 20px; }
  .icon--tiktok { width: 16px; height: 16px; }
  .footer-bottom {
    flex-wrap: wrap; align-items: center; gap: 4px 16px;
    margin-top: clamp(64px, 22cqi, 120px); padding-top: 14px; border-top: 1px solid rgba(58, 46, 36, .16);
    font-size: 13px; line-height: 18px;
  }
  .footer-bottom__top { min-height: 44px; margin: 0; gap: 8px; font-size: 13.5px; }
  .icon--arrow-up { width: 14px; height: 14px; stroke-width: 2; }
}

/* ---------- tablet refinements (768–1023) ---------- */
@container site (768px <= width < 1000px) {
  .site > * { --hdr-h: 72px; --gutter: clamp(40px, 6cqi, 56px); }
  .site-header .logo__svg { width: 192px; height: 34px; }
  .header-actions { gap: 6px; }
  .header-actions .btn { display: inline-flex; --btn-h: 44; --btn-pl: 22; --btn-pr: 18; --btn-gap: 8; --btn-fs: 14.5; --btn-arrow: 14; margin-right: 6px; }
  .icon-btn--user { display: grid; }

  .main-nav a { font-size: clamp(40px, 5.6cqi, 52px); }
  .main-nav__extras { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .main-nav__extras .menu-cta { flex: 1 1 280px; }
  .main-nav__account { flex: 1 1 320px; }
  .main-nav__tagline { flex-basis: 100%; }

  .hero__photo { aspect-ratio: 2 / 1; object-position: 50% 30%; }
  .hero__inner { margin-top: -64px; }
  .hero__content { padding-bottom: 56px; }
  .hero__title { font-size: clamp(56px, 7.4cqi, 72px); }
  .hero__lead { font-size: 19px; }
  .hero__cta { display: inline-flex; width: auto; }

  .science__media { aspect-ratio: 3 / 1; }
  .science__inner { margin-top: -28px; padding-bottom: 64px; }
  .science__text { font-size: 17px; }
  .method { grid-template-columns: repeat(3, 1fr); margin-top: 32px; padding-top: 28px; }
  .method__step { display: flex; flex-direction: column; align-items: center; padding: 0 16px; text-align: center; border-bottom: 0; }
  .method__step + .method__step { border-left: 1px solid rgba(247, 234, 221, .14); }
  .method__title { align-self: center; margin-top: 12px; }
  .method__text { align-self: center; margin-top: 4px; }
  .method__text .line { display: block; margin-inline: auto; }

  .mblock__media, .mblock--analyze .mblock__media { aspect-ratio: 5 / 2; }
  .mblock--select .mblock__media { aspect-ratio: 2 / 1; }
  .mblock__content { padding-bottom: 72px; }
  .mblock__text .line { display: block; }
  .mblock__cta { display: inline-flex; width: auto; }

  .cta { padding: 96px var(--gutter); background-size: auto 150%, auto, auto; }

  .site-footer__inner { grid-template-columns: repeat(3, 1fr); padding-top: 64px; }
  .footer-brand { grid-column: 1 / -1; }
  .social { grid-column: 1 / -1; }
}

/* ---------- hero copy + brand strip (compact) ---------- */
@container site (width < 1000px) {
  .hero__title { font-size: clamp(34px, 9.1cqi, 64px); line-height: 1.06; letter-spacing: -.02em; }
  .hero__lead { font-size: clamp(16px, 4.2cqi, 19px); }
  .hero__lead .line { display: inline; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 6px; margin-top: 28px; }
  .hero__cta { margin-top: 0; }
  .hero__play { align-self: center; min-height: 44px; gap: 12px; font-size: 15.5px; line-height: 20px; }
  .hero__play-ring { width: 36px; height: 36px; border-width: 1px; }
  .hero__play-ring .icon { width: 14px; height: 14px; margin-left: 2px; }
  .hero__play-label::after { height: 1px; }

  .brands { --visible: 3; --logo-scale: 1.04; height: auto; }
  .brands__inner {
    position: relative; display: block;
    padding: 18px max(var(--gutter), env(safe-area-inset-right)) 20px max(var(--gutter), env(safe-area-inset-left));
  }
  .brands__title {
    display: flex; align-items: center; min-height: 44px; margin: 0; padding: 0 150px 0 0;
    font-size: 10.5px; line-height: 16px; letter-spacing: .26em; white-space: normal;
  }
  .brands__title .line { display: inline; }
  .brands__title::after { display: none; }
  .brands__carousel { display: block; height: auto; }
  .brands__viewport {
    height: 76px; margin-top: 10px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  }
  .brands__controls { position: absolute; top: 18px; right: max(calc(var(--gutter) - 4px), env(safe-area-inset-right)); gap: 4px; margin: 0; }
  .brands__btn { width: 44px; height: 44px; border: 0; position: relative; }
  .brands__btn::before { /* 36 px visual ring inside the 44 px target */
    content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px solid rgba(35, 25, 23, .34);
  }
  .brands__btn--pause::before { border-color: transparent; }
  .brands__btn .icon { width: 17px; height: 17px; }
  .brands__btn--pause .icon { width: 15px; height: 15px; }
}
@container site (768px <= width < 1000px) {
  .hero__title { font-size: clamp(52px, 6.9cqi, 68px); }
  .hero__lead { font-size: 18.5px; }
  .hero__actions { flex-direction: row; align-items: center; gap: 28px; }
  .hero__play { align-self: auto; }
  .brands { --visible: 5; --logo-scale: 1.18; }
  .brands__viewport { height: 80px; margin-top: 4px; }
}

/* ---------- care plan (compact): devices on top, copy below ---------- */
@container site (width < 1000px) {
  .care { height: auto; }
  .care__inner { display: block; padding: 40px max(var(--gutter), env(safe-area-inset-right)) 64px max(var(--gutter), env(safe-area-inset-left)); }
  .care__media { margin: 0 -8px; }
  .care__img { width: 100%; max-width: 640px; margin-inline: auto; }
  .care__content { padding: 20px 0 0; }
  .care__title .line { display: block; }
  .care__text { margin-top: 14px; max-width: 34em; font-size: 17px; line-height: 1.5; text-wrap: pretty; }
  .care__features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; padding: 20px 0 2px; border-top: 1px solid var(--hairline); }
  .care__feature { gap: 10px; padding: 0 6px; }
  .care__feature:first-child { padding-left: 6px; }
  .care__feature + .care__feature { border-left: 1px solid var(--hairline); }
  .care__feature-icon { width: 26px; height: 26px; }
  .care__feature-label { white-space: normal; font-size: 13.5px; line-height: 1.3; color: #3E332D; }
  .care__feature-label .line { display: block; width: auto; }
  .care__cta {
    --btn-h: 54; --btn-pl: 28; --btn-pr: 24; --btn-gap: 12; --btn-fs: 16.5; --btn-arrow: 16;
    display: flex; justify-content: center; width: 100%; margin-top: 30px;
  }
}
@container site (768px <= width < 1000px) {
  .care__inner { display: grid; grid-template-columns: 1.15fr 1fr; column-gap: 32px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
  .care__media { margin: 0 0 0 -12px; }
  .care__content { padding: 0; }
  .care__title { font-size: clamp(32px, 4.4cqi, 40px); }
  .care__title .line { display: block; }
  .care__text { font-size: 16px; }
  .care__text .line { display: inline; }
  .care__features { margin-top: 22px; padding-top: 16px; }
  .care__feature-label { font-size: 13px; }
  .care__cta { display: inline-flex; width: auto; margin-top: 24px; }
}

/* ---------- no-JS fallback for the compact menu: a plain scrollable link row ---------- */
@container site (width < 1000px) {
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-header { height: auto; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; height: auto; min-height: var(--hdr-h); }
  html:not(.js) .main-nav {
    position: static; order: 3; flex-basis: 100%; z-index: auto;
    visibility: visible; clip-path: none; padding: 0 0 8px; background: none; overflow-x: auto;
  }
  html:not(.js) .main-nav::before, html:not(.js) .main-nav__extras { display: none; }
  html:not(.js) .main-nav__list { display: flex; gap: 20px; }
  html:not(.js) .main-nav__list li { border: 0; opacity: 1; transform: none; }
  html:not(.js) .main-nav a { font-family: var(--font-ui); font-size: 15px; white-space: nowrap; }
  html:not(.js) .main-nav a::before { content: none; }
}

/* The app layer lives in css/app.css (phase 3). */

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

/* Shared role tokens consumed by css/app.css (phase 3D). Not used by the landing itself. */
:root{
  --type-eyebrow: 11px; --type-small: 14px;
  --type-body: clamp(16px, 15px + .25vw, 18px); --type-lead: clamp(17px, 15.5px + .45vw, 20px);
  --type-h3: clamp(18px, 16.5px + .35vw, 21px); --type-h2: clamp(30px, 24px + 1.35vw, 44px);
  --type-h1: clamp(42px, 30px + 3vw, 72px);
  --header-h: 64px; --logo-h: 28px; --gutter: clamp(20px, 5vw, 80px); --frame-max: 1360px;
}
@media (min-width:1000px){ :root{ --header-h: 76px; --logo-h: 36px; } }

/* =========================================================================
   Idioma (fase 4 · I18N): selector en la cabecera (escritorio), en el menú móvil y en el pie, y aviso
   de idioma sugerido. Solo añade piezas: no cambia la composición del resto (la landing en español
   sigue idéntica salvo el propio selector). El botón de la cabecera vive en el margen derecho del marco.
   ========================================================================= */
.lang-switch {
  position: absolute; top: 50%; right: calc(5 * var(--u)); transform: translateY(-50%);
}
.lang-switch__btn {
  display: inline-flex; align-items: center; gap: calc(2.5 * var(--u));
  min-width: 24px; min-height: 24px; height: calc(30 * var(--u)); padding: 0 calc(3 * var(--u));
  border: 0; border-radius: calc(6 * var(--u)); background: transparent; color: var(--ink);
  font-family: var(--font-eyebrow); font-weight: 550; font-size: calc(9.6 * var(--ui)); letter-spacing: .14em;
  transition: background-color .3s ease;
}
@media (hover: hover) { .lang-switch__btn:hover { background: rgba(58, 46, 36, .07); } }
.lang-switch__chev { width: calc(10 * var(--u)); height: calc(10 * var(--u)); transition: transform .3s var(--ease-out); }
.lang-switch__btn[aria-expanded="true"] .lang-switch__chev { transform: rotate(180deg); }
.lang-switch__list {
  position: absolute; top: calc(100% + 8 * var(--u)); right: 0; z-index: 60; min-width: calc(150 * var(--u));
  margin: 0; padding: calc(6 * var(--u)); list-style: none;
  background: #FCF8F5; border: 1px solid rgba(58, 46, 36, .14); border-radius: calc(12 * var(--u));
  box-shadow: 0 calc(18 * var(--u)) calc(40 * var(--u)) rgba(35, 25, 23, .14);
}
.lang-switch__list[hidden] { display: none; }
.lang-switch__list a {
  display: flex; align-items: center; min-height: 32px; padding: 0 calc(12 * var(--u));
  border-radius: calc(8 * var(--u)); color: var(--ink); font-size: calc(13 * var(--ui)); line-height: 1.3;
}
.lang-switch__list a:hover, .lang-switch__list a:focus-visible { background: rgba(58, 46, 36, .07); }
.lang-switch__list a[aria-current="true"] { font-weight: 600; }
.lang-switch__list a[aria-current="true"]::after { content: ""; width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: currentColor; }

.footer-bottom { position: relative; }
/* Preferencias del pie (idioma de I18N + país de entrega de COMMERCE, js/country.js monta en [data-country-picker]).
   Escritorio: centradas sobre la fila del pie y fuera del flujo, así © y «Volver arriba» quedan donde estaban. */
.footer-bottom__prefs {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: calc(22 * var(--u)); white-space: nowrap;
}
.footer-bottom__prefs [data-country-picker]:empty { display: none; }
.footer-bottom__prefs:not(:has(.lang-foot, .country-pick)) { display: none; }
.lang-foot__list { display: flex; flex-wrap: wrap; gap: 0 calc(10 * var(--u)); margin: 0; padding: 0; list-style: none; }
.lang-foot a { display: inline-block; color: #553A2D; letter-spacing: .06em; }
.lang-foot abbr { text-decoration: none; }
.lang-foot a:hover { color: #1A110D; text-decoration: underline; text-underline-offset: 2px; }
.lang-foot a[aria-current="true"] { color: #1A110D; font-weight: 600; }

.lang-menu { display: none; }

/* aviso de idioma sugerido (discreto, abajo; nunca redirige) */
.lang-hint {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 900;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  width: max-content; max-width: calc(100vw - 32px); transform: translateX(-50%);
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(35, 25, 23, .94); color: #FBF6F2; box-shadow: 0 12px 32px rgba(35, 25, 23, .25);
  font-size: 14px; line-height: 1.35;
}
.lang-hint__text { margin: 0; }
.lang-hint__go, .lang-hint__stay {
  min-height: 36px; padding: 0 14px; border-radius: 999px; font: inherit; font-weight: 500;
}
.lang-hint__go { border: 0; background: #F7EADD; color: #231917; display: inline-flex; align-items: center; }
.lang-hint__stay { border: 1px solid rgba(251, 246, 242, .4); background: transparent; color: #FBF6F2; }
.lang-hint :focus-visible { outline-color: #F7EADD; }
@media (prefers-reduced-motion: no-preference) { .lang-hint { animation: langHintIn .5s var(--ease-out) both; } }
@keyframes langHintIn { from { opacity: 0; transform: translate(-50%, 12px); } }

@container site (width < 1000px) {
  .lang-switch { display: none; }
  .lang-menu { display: block; }
  .lang-menu__title { margin: 4px 0 8px; font-family: var(--font-eyebrow); font-weight: 550; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: #7E6A5C; }
  .lang-menu__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
  .lang-menu__list a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
    border: 1px solid rgba(58, 46, 36, .2); border-radius: 999px; color: var(--ink); font-size: 14.5px;
  }
  .lang-menu__list a[aria-current="true"] { background: var(--espresso); border-color: var(--espresso); color: #FBF9F6; }
  .footer-bottom__prefs { position: static; transform: none; order: 3; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 4px; white-space: normal; }
  .lang-foot { padding-bottom: 6px; }
  .lang-foot__list { gap: 0 4px; margin-left: -10px; }
  .lang-foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 13px; }
}

/* ---- País de entrega en el pie (fase 4 · COMMERCE, js/country.js): moneda, envío y plazos; no cambia el idioma ---- */
.country-pick { display: inline-flex; align-items: center; align-self: flex-end; gap: calc(8 * var(--u)); color: #553A2D; }
.country-pick__label { font-size: inherit; }
.country-pick__select {
  appearance: none; -webkit-appearance: none; min-height: 28px; padding: 0 calc(22 * var(--u)) 0 calc(8 * var(--u));
  border: 1px solid rgba(58, 46, 36, .28); border-radius: 999px; color: #3F261A; font: inherit;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%233F261A' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right calc(8 * var(--u)) center / 9px 6px;
  cursor: pointer;
}
.country-pick__select:focus-visible { outline: 2px solid #3F261A; outline-offset: 2px; }
@media (max-width: 999.98px) {
  .country-pick { align-self: flex-start; margin: 0; gap: 10px; font-size: 13px; }
  .country-pick__select { min-height: 44px; padding: 0 30px 0 12px; background-position: right 12px center; font-size: 15px; }
}
/* App layer hidden until css/app.css arrives (REVIEW-F4: app.css is loaded on demand by js/app-boot.js; it shows the
   layer with .is-open / html.app-boot). Without this rule the empty layer would sit under the footer meanwhile. */
.app-layer { display: none; }
