/* =============================================================================
   F1 Cajas Automáticas — foundation stylesheet (f1.css)
   Tokens · reset · typography · layout · themes · shared components.
   API reference: _dev/DESIGN-SYSTEM.md  ·  Live examples: _dev/styleguide.html

   Cascade layers: everything here lives in @layer f1.*, so page stylesheets
   (assets/css/pages/*.css, unlayered) ALWAYS win without specificity fights.
   Breakpoints (max-width): 1280 · 991 (tablet) · 767 (mobile) · 479 (small)
   ============================================================================= */

@layer f1.reset, f1.tokens, f1.base, f1.layout, f1.components, f1.utilities;

/* Metric-matched local fallbacks (outside layers). While the Google fonts load (display=swap), text is
   set in Arial / Arial Narrow scaled so line breaks and heights match the web fonts → minimal layout
   shift. Measured in Chrome: Archivo 800 wdth 62 uppercase is 68.4% the width of Arial Bold and 84.4% of
   Arial Narrow Bold; Inter Tight 400 is 95.5% of Arial. Overrides = font metric / size-adjust
   (Archivo ascent .878 descent .21 · Inter Tight ascent .969 descent .241). A missing local() font makes
   its face unavailable, so the stack simply moves on to the next family. */
@font-face {
  font-family: "Archivo Fallback Narrow";
  src: local("Arial Narrow Bold"), local("ArialNarrow-Bold");
  font-weight: 100 900;
  font-stretch: 50% 200%;
  size-adjust: 84.4%;
  ascent-override: 104%;
  descent-override: 24.9%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 100 900;
  font-stretch: 50% 200%;
  size-adjust: 68.4%;
  ascent-override: 128.4%;
  descent-override: 30.7%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Tight Fallback";
  src: local("Arial"), local("ArialMT");
  font-weight: 100 550;
  size-adjust: 95.5%;
  ascent-override: 101.4%;
  descent-override: 25.3%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Tight Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 551 900;
  size-adjust: 95.5%;
  ascent-override: 101.4%;
  descent-override: 25.3%;
  line-gap-override: 0%;
}

/* Registered properties (outside layers) — animatable spotlight + timeline */
@property --spot-x { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@property --spot-y { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@property --spot-w { syntax: '<percentage>'; inherits: true; initial-value: 22%; }
@property --spot-h { syntax: '<percentage>'; inherits: true; initial-value: 30%; }

/* ----------------------------------------------------------------------------
   TOKENS
   ---------------------------------------------------------------------------- */
@layer f1.tokens {
  :root {
    /* primitives */
    --black: #000;
    --white: #fff;
    --grey-50: #f6f7f8;
    --grey-100: #eeeeee;
    --grey-150: #e7e7e7;
    --grey-200: #d4d4d4;
    --grey-300: #cccccc;
    --grey-400: #a3a3a3;
    --grey-500: #8a8a8a;
    --grey-600: #5c5c5c;
    --grey-700: #474747;
    --grey-800: #2e2e2e;
    --grey-850: #1f1f1f;
    --grey-900: #171717;
    --grey-950: #0f0f0f;

    --red-300: #ff6259;   /* hover on dark */
    --red-400: #ff3b30;   /* brand text/lines on dark  (5.9:1 on #000) */
    --red-500: #e0201a;   /* brand fill on dark        (white text 4.8:1) */
    --red-600: #cc1a1a;   /* brand text/lines/fill on light (5.6:1 on #fff) */
    --red-700: #a81414;   /* hover on light */

    --ok: #72af4c;        /* verified states only (garantía, sin cargo…) */
    --ok-ink-light: #3e7b26;
    --wa: #25d366;        /* WhatsApp green — floating bubble ONLY */

    /* type */
    --font-display: "Archivo", "Archivo Fallback Narrow", "Archivo Fallback", "Roboto Condensed", sans-serif;
    --font-body: "Inter Tight", "Inter Tight Fallback", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
    --display-stretch: 62%;
    --display-weight: 800;

    --fs-display: clamp(5.5rem, 1.5rem + 13vw, 15rem);
    --fs-h1: clamp(3.6rem, 1.6rem + 6.6vw, 8rem);
    --fs-h2: clamp(3rem, 1.5rem + 4.4vw, 5.5rem);
    --fs-h3: clamp(2rem, 1.2rem + 2.2vw, 3rem);
    --fs-h4: clamp(1.5rem, 1.1rem + 1vw, 2rem);
    --fs-h5: clamp(1.25rem, 1.1rem + .4vw, 1.5rem);
    --fs-eyebrow: clamp(1.125rem, .85rem + .75vw, 1.5rem);
    --fs-lead: clamp(1.125rem, 1rem + .35vw, 1.25rem);
    --fs-body: 1rem;
    --fs-small: .875rem;
    --fs-micro: .75rem;

    --lh-display: .92;   /* measured: < .9 makes accented capitals (Á É Í Ó Ú Ñ) touch the line above */
    --lh-display-tight: .84; /* numbers / single-line / accent-free headings only (.lh-tight) */
    --lh-body: 1.4;
    --ls-display: -.03em;
    --ls-body: .015em;
    --ls-mono: .04em;

    /* spacing (responsive overrides below) */
    --sp-3xs: .25rem;
    --sp-2xs: .5rem;
    --sp-xs: .75rem;
    --sp-s: 1rem;
    --sp-m: 2rem;
    --sp-l: 3rem;
    --sp-xl: 4rem;
    --sp-2xl: 5rem;
    --sp-3xl: 6rem;

    /* layout */
    --container: 80rem;
    --gutter: 2.5rem;
    --section: 6rem;
    --nav-h: 5rem;
    --topbar-h: 2.25rem;
    --radius-tile: 4px;

    /* motion */
    --ease-btn: cubic-bezier(.32, .72, 0, 1);
    --ease-osmo: cubic-bezier(.625, .05, 0, 1);
    --ease-bracket: cubic-bezier(.65, .05, 0, 1);
    --ease-dock: cubic-bezier(.16, 1, .3, 1);
    --ease-reveal: cubic-bezier(.77, 0, .175, 1);   /* ≈ power4.inOut */
    --ease-out3: cubic-bezier(.215, .61, .355, 1);  /* ≈ power3.out */

    --z-pixels: 5;
    --z-float: 80;
    --z-menu: 85;
    --z-header: 90;
    --z-toast: 88;
  }

  @media (max-width: 991px) {
    :root {
      --sp-m: 1.5rem;
      --sp-l: 2.5rem;
      --sp-xl: 3rem;
      --sp-2xl: 4rem;
      --sp-3xl: 5rem;
    }
  }
  @media (max-width: 767px) {
    :root {
      --sp-m: 1.25rem;
      --sp-l: 1.5rem;
      --sp-xl: 2rem;
      --sp-2xl: 3rem;
      --sp-3xl: 4rem;
      --gutter: 1.25rem;
      --section: 4rem;
      --nav-h: 4rem;
      --topbar-h: 2rem;
    }
  }

  /* ---------- semantic theme tokens (swap per section) ---------- */
  :root,
  .theme-light,
  .theme-grey,
  .theme-grey-flat {
    --bg: #fff;
    --bg-2: #f6f7f8;
    --bg-3: #e7e7e7;
    --fg: #000;
    --fg-muted: #5c5c5c;
    --line: #d4d4d4;
    --line-strong: #000;
    --brand: var(--red-600);
    --brand-hover: var(--red-700);
    --brand-fill: var(--red-600);
    --on-brand: #fff;
    --brand-tint: color-mix(in srgb, var(--red-600) 12%, transparent);
    --ok-ink: var(--ok-ink-light);
    --ok-tint: color-mix(in srgb, var(--ok) 14%, transparent);
    --input-border: #8a8a8a;
    --muted-fill: #cccccc;
    --glass: color-mix(in srgb, #fff 70%, transparent);
    --star: var(--brand);
    color-scheme: light;
  }
  .theme-grey { --bg: #f6f7f8; --bg-2: #fff; }
  .theme-grey-flat { --bg: #f6f7f8; --bg-2: #fff; }

  .theme-dark,
  .hero,
  .page-hero,
  .site-header,
  .menu,
  .footer,
  .toast,
  .lightbox,
  .glass {
    --bg: #000;
    --bg-2: #171717;
    --bg-3: #0f0f0f;
    --fg: #fff;
    --fg-muted: #a3a3a3;
    --line: #2e2e2e;
    --line-strong: #474747;
    --brand: var(--red-400);
    --brand-hover: var(--red-300);
    --brand-fill: var(--red-500);
    --on-brand: #fff;
    --brand-tint: color-mix(in srgb, var(--red-400) 24%, transparent);
    --ok-ink: var(--ok);
    --ok-tint: color-mix(in srgb, var(--ok) 16%, transparent);
    --input-border: #5c5c5c;
    --muted-fill: #2e2e2e;
    --glass: color-mix(in srgb, #000 35%, transparent);
    --star: var(--brand);
    color-scheme: dark;
  }

  .theme-brand {
    --bg: var(--red-600);
    --bg-2: #b01616;
    --bg-3: #9a1212;
    --fg: #fff;
    --fg-muted: #fff;
    --line: color-mix(in srgb, #fff 35%, transparent);
    --line-strong: #fff;
    --brand: #fff;
    --brand-hover: #fff;
    --brand-fill: #000;
    --on-brand: #fff;
    --brand-tint: color-mix(in srgb, #000 22%, transparent);
    --ok-ink: #fff;
    --ok-tint: color-mix(in srgb, #000 22%, transparent);
    --input-border: #fff;
    --muted-fill: #000;
    --glass: color-mix(in srgb, #000 25%, transparent);
    --star: #fff;
    color-scheme: dark;
  }
}

/* ----------------------------------------------------------------------------
   RESET
   ---------------------------------------------------------------------------- */
@layer f1.reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  img, picture, video, canvas, svg, iframe { display: block; max-width: 100%; }
  img, video { height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
  button { background: none; border: 0; padding: 0; cursor: pointer; }
  a { color: inherit; }
  table { border-collapse: collapse; }
  [hidden] { display: none !important; }
  dialog { padding: 0; border: 0; }
  :where(h1, h2, h3, h4, h5, h6, p, li, figcaption) { overflow-wrap: break-word; }
}

/* ----------------------------------------------------------------------------
   BASE
   ---------------------------------------------------------------------------- */
@layer f1.base {
  html {
    scroll-padding-top: calc(var(--nav-h) + 1rem);
    overflow-x: clip;
  }
  @media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
  }
  html.is-locked { overflow: hidden; }

  body {
    min-height: 100vh;
    overflow-x: clip;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    letter-spacing: var(--ls-body);
    font-weight: 400;
    color: var(--fg);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  /* theme paint */
  .theme-light, .theme-dark, .theme-brand, .theme-grey-flat { background-color: var(--bg); color: var(--fg); }
  .theme-grey { background: linear-gradient(180deg, #e7e7e7 30%, #f6f7f8); color: var(--fg); }

  /* halftone dot grid (dark sections) — dense at the top, fading out */
  .bg-dots { position: relative; isolation: isolate; }
  .bg-dots::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
      radial-gradient(circle, color-mix(in srgb, var(--red-400) 42%, transparent) 0 1.3px, transparent 1.9px),
      radial-gradient(circle, color-mix(in srgb, var(--red-400) 22%, transparent) 0 .9px, transparent 1.4px);
    background-size: 14px 14px, 14px 14px;
    background-position: 0 0, 7px 7px;
    -webkit-mask-image: radial-gradient(120% 80% at 72% 0%, #000 0%, rgba(0,0,0,.55) 38%, transparent 72%);
            mask-image: radial-gradient(120% 80% at 72% 0%, #000 0%, rgba(0,0,0,.55) 38%, transparent 72%);
  }
  .bg-dots--bottom::before {
    -webkit-mask-image: radial-gradient(120% 80% at 30% 100%, #000 0%, rgba(0,0,0,.5) 38%, transparent 72%);
            mask-image: radial-gradient(120% 80% at 30% 100%, #000 0%, rgba(0,0,0,.5) 38%, transparent 72%);
  }

  ::selection { background: var(--red-500); color: #fff; }

  :focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
  :focus:not(:focus-visible) { outline: none; }

  /* ---------- typography roles ---------- */
  h1, h2, h3, .display, .h1, .h2, .h3 {
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    font-stretch: var(--display-stretch);
    font-variation-settings: "wdth" 62;
    font-synthesis: none;
    text-transform: uppercase;
    letter-spacing: var(--ls-display);
    word-spacing: .05em;
    line-height: var(--lh-display);
    text-wrap: balance;
    overflow-wrap: normal;
    hyphens: manual;
  }
  .display { font-size: var(--fs-display); line-height: .88; }
  h1, .h1 { font-size: var(--fs-h1); }
  h2, .h2 { font-size: var(--fs-h2); }
  h3, .h3 { font-size: var(--fs-h3); letter-spacing: -.015em; line-height: .95; }
  .lh-tight { line-height: var(--lh-display-tight); }

  h4, h5, h6, .h4, .h5 {
    font-family: var(--font-body);
    font-weight: 400;
    font-stretch: normal;
    font-variation-settings: normal;
    text-transform: none;
    letter-spacing: -.01em;
    line-height: 1.08;
    text-wrap: balance;
  }
  h4, .h4 { font-size: var(--fs-h4); }
  h5, h6, .h5 { font-size: var(--fs-h5); line-height: 1.15; }

  .eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: var(--fs-eyebrow);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--brand);
  }
  .eyebrow--sm { font-size: clamp(1rem, .9rem + .3vw, 1.25rem); }

  .lead {
    font-size: var(--fs-lead);
    line-height: 1.35;
    letter-spacing: .02em;
    color: var(--fg-muted);
    text-wrap: pretty;
  }
  .lead--strong { color: var(--fg); }
  .body-l { font-size: 1.125rem; line-height: 1.45; }
  .small { font-size: var(--fs-small); }

  .mono, .micro {
    font-family: var(--font-mono);
    letter-spacing: var(--ls-mono);
  }
  .micro {
    font-size: var(--fs-micro);
    line-height: 1.35;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
  }
  .micro--brand { color: var(--brand); }
  .micro--muted { color: var(--fg-muted); }

  /* ¿ ¡ in uppercase display headings (wrapped by f1.js): sit on the capital baseline instead of descending
     into an accented capital (Á É Í Ó Ú) on the next line */
  .punct-lift { position: relative; top: -.14em; }

  strong, b { font-weight: 600; }
  p { text-wrap: pretty; }
  small { font-size: .8125rem; }

  .logo--invert { filter: brightness(0) invert(1); }
}

/* ----------------------------------------------------------------------------
   LAYOUT
   ---------------------------------------------------------------------------- */
@layer f1.layout {
  .container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
  }
  .container--md { --container: 66rem; }
  .container--sm { --container: 48rem; }
  .container--wide { --container: 90rem; }

  .section { position: relative; isolation: isolate; padding-block: var(--section); }
  .section--sm { padding-block: calc(var(--section) * .66); }
  .section--xs { padding-block: var(--sp-l); }
  .section--flush-top { padding-top: 0; }
  .section--flush-bottom { padding-bottom: 0; }
  .section--clip { overflow: clip; }

  /* grids */
  .grid { display: grid; gap: var(--grid-gap, var(--sp-m)); }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-auto { grid-template-columns: repeat(auto-fill, minmax(min(var(--min, 16rem), 100%), 1fr)); }
  .grid--gap-s { --grid-gap: 1rem; }
  .grid--gap-l { --grid-gap: var(--sp-l); }

  @media (max-width: 991px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 767px) {
    .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  }
  @media (max-width: 479px) {
    .grid-4 { grid-template-columns: minmax(0, 1fr); }
  }

  /* unequal two-column split, collapses at 991 */
  .split {
    display: grid;
    grid-template-columns: var(--split, 1fr 1fr);
    column-gap: var(--split-gap, var(--sp-2xl));
    row-gap: var(--sp-l);
    align-items: var(--split-align, start);
  }
  .split > * { min-width: 0; }
  .split--2-1 { --split: 2fr 1fr; }
  .split--1-2 { --split: 1fr 2fr; }
  .split--3-2 { --split: 1.5fr 1fr; }
  .split--2-3 { --split: 1fr 1.5fr; }
  .split--115 { --split: 1.15fr 1fr; }
  .split--085 { --split: .85fr 1fr; }
  .split--1-125 { --split: 1fr 1.25fr; }
  .split--center { --split-align: center; }
  .split--end { --split-align: end; }
  .split--stretch { --split-align: stretch; }
  .split--gap-m { --split-gap: var(--sp-l); }
  @media (max-width: 991px) {
    .split { grid-template-columns: minmax(0, 1fr); }
    .split--reverse-mobile > :first-child { order: 2; }
  }

  /* stack / cluster */
  .stack { display: flex; flex-direction: column; gap: var(--stack-gap, 1rem); }
  .stack > * { min-width: 0; }
  .stack--2xs { --stack-gap: .25rem; }
  .stack--xs { --stack-gap: .5rem; }
  .stack--s { --stack-gap: 1rem; }
  .stack--m { --stack-gap: 1.5rem; }
  .stack--l { --stack-gap: var(--sp-m); }
  .stack--xl { --stack-gap: var(--sp-l); }
  .stack--start { align-items: flex-start; }
  .stack--center { align-items: center; text-align: center; }

  .cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster-gap, .75rem); }
  .cluster--xs { --cluster-gap: .5rem; }
  .cluster--l { --cluster-gap: 1.5rem; }
  .cluster--between { justify-content: space-between; }
  .cluster--center { justify-content: center; }
  .cluster--start { align-items: flex-start; }
  .cluster--nowrap { flex-wrap: nowrap; }

  .sticky-top { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
  @media (max-width: 991px) { .sticky-top { position: static; } }

  .bleed { margin-inline: calc(-1 * var(--gutter)); }
}

/* ----------------------------------------------------------------------------
   COMPONENTS — icons, skip link, top bar, header/nav, mobile menu
   ---------------------------------------------------------------------------- */
@layer f1.components {
  /* icons: <svg class="icon" aria-hidden="true"><use href="#i-name"/></svg> */
  .icon {
    display: inline-block;
    flex: none;
    width: var(--icon-size, 1.25rem);
    height: var(--icon-size, 1.25rem);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    overflow: visible;
  }
  .icon--xs { --icon-size: .875rem; }
  .icon--sm { --icon-size: 1rem; }
  .icon--lg { --icon-size: 1.5rem; }
  .icon--xl { --icon-size: 2rem; }
  .icon--2xl { --icon-size: 2.5rem; }
  .icon--brand { color: var(--brand); }
  .icon--thin { stroke-width: 1.25; }

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

  /* skip link */
  .skip-link {
    position: fixed;
    top: .75rem;
    left: .75rem;
    z-index: 1000;
    padding: .75rem 1rem;
    background: #fff;
    color: #000;
    font: 500 .875rem/1 var(--font-body);
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform .2s;
  }
  .skip-link:focus, .skip-link:focus-visible { transform: none; outline: 2px solid var(--red-600); outline-offset: 2px; }

  /* ---------- top bar ---------- */
  .topbar {
    position: relative;
    z-index: calc(var(--z-header) + 1);
    min-height: var(--topbar-h);
    display: flex;
    align-items: center;
    background: #000;
    color: #a3a3a3;
    border-bottom: 1px solid #1f1f1f;
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--topbar-h); }
  .topbar__list { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; min-width: 0; }
  .topbar__item { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; min-width: 0; }
  .topbar__item .icon { --icon-size: .875rem; color: var(--red-400); }
  .topbar a { text-decoration: none; transition: color .2s; }
  .topbar a:hover { color: #fff; }
  .topbar__extra { color: #858585; } /* 5.7:1 on #000 */
  @media (max-width: 1280px) { .topbar__extra { display: none; } }
  @media (max-width: 991px) { .topbar__item--address { display: none; } }
  @media (max-width: 767px) {
    .topbar { font-size: .625rem; }
    .topbar__list { gap: 1rem; }
  }
  /* the hours + "Importadores directos EE.UU." pair no longer fits inside the gutters below 400px */
  @media (max-width: 399px) { .topbar__item--right { display: none; } }

  /* ---------- site header (sticky, transparent over dark hero → glass) ---------- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    height: var(--nav-h);
    color: #fff;
    background-color: transparent;
    transition: background-color .35s ease, border-color .35s ease, backdrop-filter .35s ease;
    border-bottom: 1px solid transparent;
  }
  .site-header.is-scrolled,
  .site-header--solid,
  html.is-menu-open .site-header {
    background-color: color-mix(in srgb, #000 90%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom-color: color-mix(in srgb, #fff 8%, transparent);
  }
  html.is-menu-open .site-header { background-color: #000; }

  .nav {
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 1rem;
  }
  .nav__logo { display: inline-flex; align-items: center; justify-self: start; padding-block: .5rem; }
  .nav__logo img { width: clamp(11rem, 8rem + 5vw, 14rem); height: auto; }
  .nav__links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
  .nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: .5rem .75rem;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: .02em;
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
  }
  .nav__link::after {
    content: "";
    position: absolute;
    left: .75rem;
    right: .75rem;
    bottom: .5rem;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .735s var(--ease-osmo);
  }
  .nav__link[aria-current="page"] { color: var(--red-400); }
  .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
  @media (hover: hover) and (pointer: fine) {
    .nav__link:hover { color: var(--red-400); }
    .nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
  }
  .nav__actions { justify-self: end; display: flex; align-items: center; gap: .75rem; }

  .nav__toggle {
    display: none;
    position: relative;
    width: 3rem;
    height: 3rem;
    margin-right: -.625rem;
    color: #fff;
  }
  .nav__bars, .nav__bars::before, .nav__bars::after {
    position: absolute;
    left: 50%;
    width: 1.5rem;
    height: 1.5px;
    margin-left: -.75rem;
    background: currentColor;
    transition: transform .45s var(--ease-btn), opacity .2s, top .45s var(--ease-btn);
  }
  .nav__bars { top: 50%; margin-top: -.75px; }
  .nav__bars::before, .nav__bars::after { content: ""; left: 0; margin-left: 0; }
  .nav__bars::before { top: -7px; }
  .nav__bars::after { top: 7px; }
  .nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
  .nav__toggle[aria-expanded="true"] .nav__bars::before { top: 0; transform: rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__bars::after { top: 0; transform: rotate(-45deg); }

  /* no-JS fallback for the hamburger: a plain link to the footer navigation */
  .nav__nojs { display: none; }
  @media (max-width: 991px) {
    .nav { grid-template-columns: 1fr auto; }
    .nav__links { display: none; }
    .js .nav__toggle { display: block; }
    html:not(.js) .nav__nojs {
      display: inline-flex;
      align-items: center;
      gap: .5rem;
      min-height: 2.75rem;
      margin-right: -.5rem;
      padding-inline: .5rem;
      font: 500 .75rem/1 var(--font-mono);
      letter-spacing: .08em;
      text-transform: uppercase;
      color: #fff;
      text-decoration: none;
    }
    .nav__nojs .icon { --icon-size: 1.5rem; }
  }
  @media (max-width: 767px) {
    .site-header .nav .nav__cta { display: none; }
    .nav__logo img { width: 11rem; }
  }

  /* ---------- mobile menu (full-screen) ---------- */
  .menu {
    position: fixed;
    inset: 0;
    z-index: var(--z-menu);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: calc(var(--nav-h) + var(--topbar-h) + 1.5rem) var(--gutter) max(2rem, env(safe-area-inset-bottom));
    background: #000;
    color: #fff;
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility 0s linear .35s;
  }
  .menu.is-open { opacity: 1; visibility: visible; transition: opacity .35s ease, visibility 0s; }
  .menu__list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid #2e2e2e; }
  .menu__item { border-bottom: 1px solid #2e2e2e; }
  .menu__link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 0 .7rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 62%;
    font-variation-settings: "wdth" 62;
    font-size: clamp(3rem, 2rem + 6vw, 4.5rem);
    line-height: .88;
    letter-spacing: -.02em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    transition: color .2s;
  }
  .menu__index { font: 500 .75rem/1 var(--font-mono); letter-spacing: .06em; color: #a3a3a3; }
  .menu__link[aria-current="page"] { color: var(--red-400); }
  .menu__link:hover { color: var(--red-400); }
  .menu__actions { display: grid; gap: .5rem; }
  .menu__actions .btn { width: 100%; }
  .menu__info { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; margin-top: auto; padding-top: 1rem; color: #a3a3a3; }
  .menu__info li { display: flex; gap: .625rem; align-items: flex-start; }
  .menu__info .icon { --icon-size: 1rem; color: var(--red-400); margin-top: .1em; }
  .menu__info a { text-decoration: none; }

  @media (prefers-reduced-motion: no-preference) {
    .menu .menu__item, .menu .menu__actions, .menu .menu__info {
      opacity: 0;
      transform: translate3d(0, 1.25rem, 0);
      transition: opacity .6s var(--ease-out3), transform .6s var(--ease-out3);
    }
    .menu.is-open .menu__item, .menu.is-open .menu__actions, .menu.is-open .menu__info {
      opacity: 1;
      transform: none;
      transition-delay: calc(var(--i, 0) * 55ms + 80ms);
    }
  }
  @media (min-width: 992px) { .menu { display: none; } }
}

/* ----------------------------------------------------------------------------
   COMPONENTS — buttons (roll-up), links, section header, chips, checklist
   ---------------------------------------------------------------------------- */
@layer f1.components {
  /* Markup you write:  <a class="btn btn--primary" href="…"><svg class="icon">…</svg><span>Label</span></a>
     f1.js enhances it into two stacked layers (.btn--ready) for the roll-up hover. */
  .btn {
    --btn-h: 3rem;
    --btn-px: 1.25rem;
    --btn-fs: 1rem;
    --btn-bg: var(--brand-fill);
    --btn-fg: var(--on-brand);
    --btn-bd: var(--brand-fill);
    --btn-bg-h: var(--fg);
    --btn-fg-h: var(--bg);
    --btn-bd-h: var(--fg);
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .625rem;
    min-height: var(--btn-h);
    max-width: 100%;
    padding: 0 var(--btn-px);
    overflow: clip;
    vertical-align: middle;
    font-family: var(--font-body);
    font-size: var(--btn-fs);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: .02em;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    color: var(--btn-fg);
    background-color: var(--btn-bg);
    border: 1px solid var(--btn-bd);
    border-radius: 0;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: color .3s var(--ease-btn), background-color .3s var(--ease-btn), border-color .3s var(--ease-btn);
  }
  .btn .icon { --icon-size: 1.125rem; }
  .btn .icon--wa { --icon-size: 1.25rem; }
  .btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

  /* enhanced structure (built by f1.js) — the single column spans the whole button so the hover/focus
     layer fills it edge to edge (icon buttons, block buttons, stacked groups); the label centres itself */
  .btn.btn--ready { display: inline-grid; padding: 0; align-items: stretch; justify-content: stretch; grid-template-columns: minmax(0, 1fr); }
  .btn__layer { grid-area: 1 / 1; display: grid; min-width: 0; }
  .btn__label {
    grid-area: 1 / 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .625rem;
    min-height: calc(var(--btn-h) - 2px);
    padding: 0 var(--btn-px);
    min-width: 0;
  }
  .btn__layer--hover {
    z-index: 1;
    color: var(--btn-fg-h);
    background-color: var(--btn-bg-h);
    translate: 0 calc(100% + 1px);
    transition: translate .45s var(--ease-btn);
  }
  .btn__layer--hover .btn__label { translate: 0 25%; transition: translate .45s var(--ease-btn); }
  .btn__layer--base .btn__label { transition: translate .45s var(--ease-btn), scale .45s var(--ease-btn); }

  .btn--ready:focus-visible,
  .btn--ready[aria-pressed="true"],
  .btn--ready[aria-selected="true"] { border-color: var(--btn-bd-h); }
  .btn--ready:focus-visible .btn__layer--hover,
  .btn--ready[aria-pressed="true"] .btn__layer--hover,
  .btn--ready[aria-selected="true"] .btn__layer--hover,
  .btn--ready:focus-visible .btn__layer--hover .btn__label,
  .btn--ready[aria-pressed="true"] .btn__layer--hover .btn__label,
  .btn--ready[aria-selected="true"] .btn__layer--hover .btn__label { translate: 0 0; }

  @media (hover: hover) and (pointer: fine) {
    .btn:not(.btn--ready):hover { color: var(--btn-fg-h); background-color: var(--btn-bg-h); border-color: var(--btn-bd-h); }
    .btn--ready:hover { border-color: var(--btn-bd-h); }
    .btn--ready:hover .btn__layer--hover { translate: 0 0; transition-delay: .05s; }
    .btn--ready:hover .btn__layer--hover .btn__label { translate: 0 0; transition-delay: .065s; }
    .btn--ready:hover .btn__layer--base .btn__label { translate: 0 -25%; scale: .85; transition-duration: .95s; }
  }
  .btn:active { transition-duration: .1s; }

  /* variants — all read the section theme */
  .btn--secondary {
    --btn-bg: transparent;
    --btn-fg: var(--fg);
    --btn-bd: var(--brand);
    --btn-bg-h: var(--brand-fill);
    --btn-fg-h: var(--on-brand);
    --btn-bd-h: var(--brand-fill);
  }
  .btn--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--fg);
    --btn-bd: color-mix(in srgb, var(--fg) 30%, transparent);
    --btn-bg-h: var(--fg);
    --btn-fg-h: var(--bg);
    --btn-bd-h: var(--fg);
  }
  .btn--light {
    --btn-bg: #fff;
    --btn-fg: #000;
    --btn-bd: #fff;
    --btn-bg-h: var(--red-500);
    --btn-fg-h: #fff;
    --btn-bd-h: var(--red-500);
  }
  .btn--dark {
    --btn-bg: #000;
    --btn-fg: #fff;
    --btn-bd: #000;
    --btn-bg-h: var(--red-500);
    --btn-fg-h: #fff;
    --btn-bd-h: var(--red-500);
  }
  .theme-brand .btn--dark { --btn-bg-h: #fff; --btn-fg-h: #000; --btn-bd-h: #fff; }
  .btn--text {
    --btn-bg: transparent;
    --btn-fg: currentColor;
    --btn-bd: transparent;
    --btn-bg-h: var(--fg);
    --btn-fg-h: var(--bg);
    --btn-bd-h: var(--fg);
  }
  .btn--muted {
    --btn-bg: var(--muted-fill);
    --btn-fg: var(--fg);
    --btn-bd: var(--muted-fill);
    --btn-bg-h: var(--fg);
    --btn-fg-h: var(--bg);
    --btn-bd-h: var(--fg);
  }

  /* sizes & shapes */
  .btn--sm { --btn-h: 2.75rem; --btn-px: 1rem; --btn-fs: .9375rem; }
  .btn--lg { --btn-h: 3.25rem; --btn-px: 1.5rem; --btn-fs: 1.0625rem; }
  .btn--block { display: flex; width: 100%; }
  .btn--block.btn--ready { display: grid; }
  .btn--icon { --btn-px: 0; width: var(--btn-h); }
  .btn--icon .btn__label { padding: 0; }
  .btn--mono { font-family: var(--font-mono); font-size: calc(var(--btn-fs) * .9); letter-spacing: .04em; }
  /* text button whose label should line up with the text column (pulls its own padding out) */
  .btn--flush { margin-inline-start: calc(-1 * var(--btn-px)); }

  @media (max-width: 479px) {
    .btn:not(.btn--icon) { white-space: normal; }
  }

  .btn-group { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
  .btn-group--center { justify-content: center; }
  @media (max-width: 479px) {
    .btn-group--stack > .btn { width: 100%; }
    .btn-group--stack > .btn.btn--ready { display: grid; }
    /* A trailing .btn--text always drops to its own row on phones (a zero-height flex break before it)
       and pulls its padding out, so its label lines up with the gutter / the button above. */
    .btn-group:not(.btn-group--stack):not(.btn-group--center):has(> .btn--text:last-child:not(:first-child))::after {
      content: "";
      order: 1;
      flex: 0 0 100%;
      height: 0;
    }
    .btn-group:not(.btn-group--stack):not(.btn-group--center) > .btn--text:last-child:not(:first-child) {
      order: 2;
      margin-top: -.5rem; /* cancels the extra row gap of the break */
      margin-inline-start: calc(-1 * var(--btn-px));
    }
  }

  /* ---------- text link with drawn underline ---------- */
  .link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .4em;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
  }
  .link::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -.125em;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0) rotate(.001deg);
    transform-origin: right;
    transition: transform .735s var(--ease-osmo);
  }
  .link .icon { --icon-size: 1em; transition: translate .45s var(--ease-btn); }
  .link--brand { color: var(--brand); }
  .link--mono { font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .05em; text-transform: uppercase; }
  .link--alt::before { transform: scaleX(1) rotate(.001deg); transform-origin: left; }
  .link--alt::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -.125em;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0) rotate(.001deg);
    transform-origin: left;
    transition: transform .735s var(--ease-osmo);
  }
  .link:focus-visible::before { transform: scaleX(1); transform-origin: left; }
  /* standalone links: ≥44px tall hit area without changing layout (padding pulled back by margins) */
  .link--touch,
  .card__footer > .link,
  .breadcrumb a,
  .footer__contact a,
  .footer__bottom a,
  .map-badge .link {
    --link-pad: max(0px, calc((2.75rem - 1lh) / 2));
    padding-block: var(--link-pad);
    margin-block: calc(-1 * var(--link-pad));
  }
  .link--touch::before, .link--touch::after,
  .card__footer > .link::before, .card__footer > .link::after,
  .footer__contact .link::before, .footer__contact .link::after,
  .footer__bottom .link::before, .footer__bottom .link::after,
  .map-badge .link::before, .map-badge .link::after { bottom: calc(var(--link-pad, 0px) - .125em); }
  @media (hover: hover) and (pointer: fine) {
    .link:hover::before { transform: scaleX(1) rotate(.001deg); transform-origin: left; }
    .link:hover .icon { translate: .2em 0; }
    .link--alt:hover::before { transform: scaleX(0) rotate(.001deg); transform-origin: right; }
    .link--alt:hover::after { transform: scaleX(1) rotate(.001deg); transition-delay: .3s; }
  }
  .prose a:not([class]) { color: var(--brand); text-underline-offset: .2em; text-decoration-thickness: 1px; }

  /* ---------- section header ---------- */
  .section-head { display: grid; gap: 1rem; max-width: 62rem; margin-bottom: var(--sp-xl); justify-items: start; }
  .section-head > .h2, .section-head > h2 { margin-top: .125rem; }
  .section-head .lead { max-width: 46ch; margin-top: .25rem; }
  .section-head--center { text-align: center; justify-items: center; margin-inline: auto; }
  .section-head--center .lead { margin-inline: auto; }
  .section-head--flush { margin-bottom: 0; }
  .section-head--split {
    max-width: none;
    grid-template-columns: 1.5fr 1fr;
    column-gap: var(--sp-2xl);
    align-items: end;
  }
  .section-head__main { display: grid; gap: 1rem; justify-items: start; }
  .section-head--split .lead { margin: 0; padding-bottom: .35rem; }
  @media (max-width: 991px) {
    .section-head--split { grid-template-columns: minmax(0, 1fr); }
  }

  /* hairline title: "Patinamiento ————" */
  .rule-title { display: flex; align-items: center; gap: 1.25rem; }
  .rule-title::after { content: ""; flex: 1 1 3rem; min-width: 3rem; height: 1px; background: var(--brand); }

  .hr { height: 1px; border: 0; margin: 0; background: var(--line); }
  .hr--strong { background: var(--line-strong); }

  /* ---------- chips ---------- */
  .chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
  .chip {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    min-height: 1.75rem;
    padding: .3125rem .5rem;
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--fg);
    background: var(--brand-tint);
    border: 1px solid var(--brand);
    max-width: 100%;
    white-space: normal; /* short chips stay on one line; long ones wrap inside narrow columns instead of overflowing */
    text-wrap: balance;
  }
  .chip .icon { --icon-size: .875rem; stroke-width: 2; }
  .chip--ok { color: var(--ok-ink); background: var(--ok-tint); border-color: var(--ok); }
  .chip--neutral { color: var(--fg-muted); background: transparent; border-color: var(--line-strong); }
  .chip--solid { color: var(--on-brand); background: var(--brand-fill); border-color: var(--brand-fill); }
  .chip--lg { min-height: 2.25rem; padding: .5rem .75rem; font-size: .8125rem; }
  .chip--wrap { white-space: normal; } /* kept for compatibility (now the default) */
  .chip--nowrap { white-space: nowrap; }

  /* ---------- checklist ---------- */
  .checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
  .checklist > li {
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr);
    column-gap: 1rem;
    align-items: start;
    font-size: var(--fs-lead);
    line-height: 1.3;
    letter-spacing: .02em;
  }
  .checklist > li::before {
    content: "";
    width: 1.5rem;
    height: 1.5rem;
    margin-top: calc((1.3em - 1.5rem) / 2);
    background: var(--brand-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M5.5 12.5l4 4 9-9'/%3E%3C/svg%3E") center / 1.0625rem no-repeat;
  }
  .checklist--sm > li { font-size: 1rem; grid-template-columns: 1.25rem minmax(0, 1fr); column-gap: .75rem; }
  .checklist--sm > li::before { width: 1.25rem; height: 1.25rem; margin-top: calc((1.3em - 1.25rem) / 2); background-size: .875rem; }
  .checklist--lines { gap: 0; }
  .checklist--lines > li { padding-block: 1rem; border-top: 1px solid var(--line); }
  .checklist--lines > li:last-child { border-bottom: 1px solid var(--line); }
}

/* ----------------------------------------------------------------------------
   COMPONENTS — stats/odometer, brackets, cards, glass, data rows,
                tabs + spotlight, accordion
   ---------------------------------------------------------------------------- */
@layer f1.components {
  /* ---------- stat + odometer ---------- */
  .stat { display: grid; gap: .625rem; align-content: start; min-width: 0; }
  .stat__value {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 62%;
    font-variation-settings: "wdth" 62;
    font-size: var(--stat-size, clamp(3rem, 2.2rem + 2.4vw, 4.5rem));
    line-height: .86;
    letter-spacing: -.02em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--fg);
  }
  .stat__unit { font-size: .56em; letter-spacing: -.01em; margin-left: .06em; }
  .stat__label {
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--fg-muted);
  }
  .stat--brand .stat__value { color: var(--brand); }
  .stat--xl .stat__value { --stat-size: min(var(--fs-display), 30cqw); line-height: .86; }
  .stat--xl { container-type: inline-size; }
  .stat--xl .stat__label { font-family: var(--font-body); font-size: var(--fs-lead); letter-spacing: .02em; text-transform: none; font-weight: 400; }
  .stat--center { justify-items: center; text-align: center; }

  .stats { display: grid; grid-template-columns: repeat(var(--stats-cols, 4), minmax(0, 1fr)); border-top: 1px solid var(--line); }
  .stats > .stat { padding: 1.5rem 1.5rem 1.25rem; border-left: 1px solid var(--line); }
  .stats > .stat:first-child { border-left: 0; padding-left: 0; }
  .stats--boxed { border: 1px solid var(--line); }
  .stats--boxed > .stat:first-child { padding-left: 1.5rem; }
  @media (max-width: 767px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats > .stat { padding: 1.25rem 1rem; }
    .stats > .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
    .stats > .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
    .stats--boxed > .stat:nth-child(odd) { padding-left: 1rem; }
  }

  /* odometer parts (built by f1.js from [data-odometer])
     The window keeps the element's own line box (--odo-step = line-height / font-size, no layout shift) but
     the digits inside roll on a taller pitch, so neighbouring digits sit well outside the window: at rest
     nothing but the final digit shows, and mid-roll you see one digit sliding through, not stacked slivers.
     A thin bleed + soft vertical fade keeps tall glyph edges from being cut hard. */
  .odo { display: inline; --odo-bleed: .04em; --odo-win: calc(var(--odo-step, 1) * 1em + 2 * var(--odo-bleed)); --odo-pitch: calc(var(--odo-step, 1) * 1em + .85em); }
  .odo__mask {
    display: inline-block;
    vertical-align: top;
    height: var(--odo-win);
    margin-block: calc(-1 * var(--odo-bleed));
    overflow: clip;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 var(--odo-bleed), #000 calc(100% - var(--odo-bleed)), transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0, #000 var(--odo-bleed), #000 calc(100% - var(--odo-bleed)), transparent 100%);
  }
  .odo__roller {
    display: block;
    margin-top: calc((var(--odo-win) - var(--odo-pitch)) / 2);
    line-height: var(--odo-pitch);
    white-space: pre;
    text-align: center;
    transform: translate3d(0, 0, 0);
    will-change: transform;
  }
  .odo.is-rolling .odo__roller {
    transform: translate3d(0, calc(var(--odo-to) * var(--odo-pitch) * -1), 0);
    transition: transform var(--odo-duration, 2s) var(--ease-out3) var(--odo-delay, 0s);
  }

  /* ---------- corner brackets ---------- */
  .brackets { position: relative; --bk-size: 1rem; --bk-w: 1px; --bk-gap: .5rem; --bk-color: var(--brand); }
  .brackets::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    background:
      linear-gradient(var(--bk-color) 0 0) 0 0 / var(--bk-size) var(--bk-w),
      linear-gradient(var(--bk-color) 0 0) 0 0 / var(--bk-w) var(--bk-size),
      linear-gradient(var(--bk-color) 0 0) 100% 0 / var(--bk-size) var(--bk-w),
      linear-gradient(var(--bk-color) 0 0) 100% 0 / var(--bk-w) var(--bk-size),
      linear-gradient(var(--bk-color) 0 0) 0 100% / var(--bk-size) var(--bk-w),
      linear-gradient(var(--bk-color) 0 0) 0 100% / var(--bk-w) var(--bk-size),
      linear-gradient(var(--bk-color) 0 0) 100% 100% / var(--bk-size) var(--bk-w),
      linear-gradient(var(--bk-color) 0 0) 100% 100% / var(--bk-w) var(--bk-size);
    background-repeat: no-repeat;
    transition: inset .4s var(--ease-bracket), opacity .4s var(--ease-bracket);
  }
  .brackets:focus-within::after,
  .brackets:focus-visible::after,
  .brackets.is-active::after,
  .is-active > .brackets::after,
  .brackets--on::after { inset: calc(-1 * var(--bk-gap)); opacity: 1; }
  .brackets--inset.brackets--on::after, .brackets--inset.is-active::after { inset: 0; }
  @media (hover: hover) and (pointer: fine) {
    .brackets:hover::after { inset: calc(-1 * var(--bk-gap)); opacity: 1; }
  }
  /* Outset brackets are drawn outside the box, so a clipping box (.ratio) must not clip them. Its media
     fill the box exactly (object-fit / absolute iframe), so dropping the clip changes nothing else. */
  .brackets.ratio { overflow: visible; }
  .brackets--lg { --bk-size: 1.5rem; --bk-gap: .75rem; }
  .brackets--bold { --bk-w: 2px; }
  .brackets--white { --bk-color: #fff; }

  /* ---------- card ---------- */
  .card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    padding: var(--card-pad, 2.5rem);
    color: var(--fg);
    background: var(--bg-2);
  }
  .card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
  .card__icon { --icon-size: 2rem; color: var(--brand); stroke-width: 1.35; }
  .card__index { font-family: var(--font-mono); font-size: .8125rem; font-weight: 500; letter-spacing: .06em; color: var(--fg-muted); }
  .card__title { font-family: var(--font-body); font-size: var(--fs-h4); font-weight: 400; font-stretch: normal; font-variation-settings: normal; line-height: 1.05; letter-spacing: -.01em; text-transform: none; text-wrap: balance; }
  .card__text { color: var(--fg-muted); font-size: 1.0625rem; line-height: 1.45; letter-spacing: .015em; }
  .card__footer { margin-top: auto; padding-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
  .card--outline { background: transparent; border: 1px solid var(--line); }
  .card--compact { --card-pad: 1.75rem; }
  .card--flat-top .card__top { margin-bottom: .25rem; }
  @media (max-width: 767px) { .card { --card-pad: 1.5rem; } }

  /* glass card (over photography) */
  .glass {
    position: relative;
    padding: 1.25rem;
    color: #fff;
    background: color-mix(in srgb, #000 38%, transparent);
    border: 1px solid color-mix(in srgb, #999 45%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  /* mono data rows ("orden de trabajo", horarios…) */
  .data-rows { display: grid; list-style: none; margin: 0; padding: 0; }
  .data-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 0;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: .8125rem;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .data-row:first-child { border-top: 0; }
  .data-row__label { color: var(--fg-muted); }
  .data-row__value { text-align: right; }
  .data-row__value--ok { color: var(--ok-ink); }
  .data-row__value--brand { color: var(--brand); }

  /* info list (icon + label + value) */
  .info-list { display: grid; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
  .info-list__item { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); column-gap: .875rem; align-items: start; }
  .info-list__item > .icon { --icon-size: 1.375rem; color: var(--brand); margin-top: .05rem; }
  .info-list__label { display: block; font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: .25rem; }
  .info-list__value { font-size: 1.0625rem; line-height: 1.4; }

  /* ---------- tabs / segmented selector ---------- */
  .tabs__list {
    display: grid;
    grid-template-columns: repeat(var(--tab-cols, 3), minmax(0, 1fr));
    gap: .75rem;
  }
  .tab {
    position: relative;
    isolation: isolate;
    overflow: clip;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 2.75rem;
    padding: .625rem .875rem;
    font-family: var(--font-body);
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .02em;
    text-align: center;
    color: var(--fg);
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--fg) 30%, transparent);
    cursor: pointer;
    transition: color .35s var(--ease-btn), border-color .35s var(--ease-btn);
  }
  .tab::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--brand-fill);
    translate: 0 calc(100% + 1px);
    transition: translate .45s var(--ease-btn);
  }
  .tab .icon { --icon-size: 1.125rem; }
  .tab[aria-selected="true"] { color: var(--on-brand); border-color: var(--brand-fill); }
  .tab[aria-selected="true"]::before { translate: 0 0; }
  @media (hover: hover) and (pointer: fine) {
    .tab:hover:not([aria-selected="true"]) { border-color: var(--brand); }
  }
  .tab--left { justify-content: flex-start; text-align: left; }
  .tabs__panel:focus-visible { outline-offset: 6px; }
  @media (prefers-reduced-motion: no-preference) {
    .tabs__panel.is-entering { animation: f1-fade-up .45s var(--ease-out3) both; }
  }
  @media (max-width: 767px) { .tabs__list { --tab-cols: 2; gap: .5rem; } }

  @keyframes f1-fade-up {
    from { opacity: 0; transform: translate3d(0, .75rem, 0); }
    to { opacity: 1; transform: none; }
  }
  @keyframes f1-rise {
    from { opacity: 0; transform: translate3d(0, 1.5rem, 0); }
  }

  /* ---------- spotlight media ---------- */
  .spotlight {
    --spot-x: 50%;
    --spot-y: 50%;
    --spot-w: 22%;
    --spot-h: 30%;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #000;
    transition: --spot-x .8s var(--ease-osmo), --spot-y .8s var(--ease-osmo), --spot-w .8s var(--ease-osmo), --spot-h .8s var(--ease-osmo);
  }
  .spotlight__img { width: 100%; height: 100%; object-fit: cover; opacity: .8; filter: grayscale(.4) contrast(1.08) brightness(.85); }
  .spotlight::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--red-600);
    mix-blend-mode: multiply;
    opacity: .16;
    pointer-events: none;
  }
  .spotlight__mask {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: #000;
    opacity: .82;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse var(--spot-w) var(--spot-h) at var(--spot-x) var(--spot-y), transparent 0%, transparent 45%, #000 100%);
            mask-image: radial-gradient(ellipse var(--spot-w) var(--spot-h) at var(--spot-x) var(--spot-y), transparent 0%, transparent 45%, #000 100%);
  }
  .spotlight__fade {
    position: absolute;
    inset: -1px;
    z-index: 3;
    pointer-events: none;
    background:
      linear-gradient(180deg, #000 0%, transparent 16%, transparent 78%, #000 100%),
      linear-gradient(90deg, #000 0%, transparent 8%, transparent 92%, #000 100%);
  }
  .spotlight--bg { position: absolute; inset: 0; z-index: -1; }
  .spotlight__marker {
    position: absolute;
    z-index: 4;
    left: var(--spot-x);
    top: var(--spot-y);
    width: .75rem;
    height: .75rem;
    margin: -.375rem 0 0 -.375rem;
    border: 1px solid var(--red-400);
    background: color-mix(in srgb, var(--red-400) 35%, transparent);
    pointer-events: none;
  }

  /* ---------- accordion ---------- */
  .accordion { border-bottom: 1px solid var(--line-strong); }
  .accordion__item { border-top: 1px solid var(--line-strong); }
  .accordion__heading { margin: 0; font: inherit; font-variation-settings: normal; letter-spacing: inherit; text-transform: none; line-height: inherit; }
  .accordion__trigger {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 1.25rem;
    padding: 1.5rem 0;
    text-align: left;
    font-family: var(--font-body);
    font-size: clamp(1.125rem, 1rem + .45vw, 1.5rem);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0;
    color: var(--fg);
    cursor: pointer;
    transition: color .2s;
  }
  .accordion__index { align-self: start; padding-top: .35em; font-family: var(--font-mono); font-size: .8125rem; font-weight: 500; letter-spacing: .06em; color: var(--fg-muted); }
  .accordion__icon {
    position: relative;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--brand);
    color: var(--fg);
    transition: background-color .3s var(--ease-btn), border-color .3s var(--ease-btn), color .3s;
  }
  .accordion__icon::before, .accordion__icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: .875rem;
    height: 1.5px;
    margin: -.75px 0 0 -.4375rem;
    background: currentColor;
    transition: transform .45s var(--ease-osmo);
  }
  .accordion__icon::after { transform: rotate(90deg); }
  .accordion__item.is-open .accordion__icon { background: var(--brand-fill); border-color: var(--brand-fill); color: var(--on-brand); }
  .accordion__item.is-open .accordion__icon::after { transform: rotate(0deg) scaleX(0); }
  @media (hover: hover) and (pointer: fine) {
    .accordion__trigger:hover { color: var(--brand); }
  }
  .accordion__panel {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows .5s var(--ease-osmo), visibility 0s linear 0s;
  }
  .js .accordion__item:not(.is-open) > .accordion__panel {
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows .5s var(--ease-osmo), visibility 0s linear .5s;
  }
  .accordion__body { min-height: 0; overflow: hidden; }
  .accordion__content {
    padding: 0 4rem 1.75rem calc(1.25rem + 2ch + .5rem);
    max-width: 68ch;
    font-size: 1.0625rem;
    line-height: 1.5;
    color: var(--fg-muted);
  }
  .accordion__content > * + * { margin-top: .75rem; }
  .accordion--no-index .accordion__trigger { grid-template-columns: minmax(0, 1fr) auto; }
  .accordion--no-index .accordion__content { padding-left: 0; }
  @media (max-width: 767px) {
    .accordion__trigger { column-gap: .875rem; padding: 1.25rem 0; }
    .accordion__content { padding: 0 0 1.5rem; }
    .accordion__icon { width: 2.5rem; height: 2.5rem; }
  }
}

/* ----------------------------------------------------------------------------
   COMPONENTS — slider, marquee/ticker, logo strip, scroll timeline,
                reveal, arrival sequence, pixel dissolve
   ---------------------------------------------------------------------------- */
@layer f1.components {
  /* ---------- slider (no-JS: scroll-snap row · JS: centered infinite loop) ---------- */
  .slider { --slide-w: min(26.5rem, 82vw); --slide-gap: 1rem; position: relative; }
  .slider__viewport { position: relative; overflow: hidden; padding-block: .75rem; }
  .slider__track {
    display: flex;
    gap: var(--slide-gap);
    list-style: none;
    margin: 0;
    padding: 0 var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .slider__track::-webkit-scrollbar { display: none; }
  .slider__slide { position: relative; flex: 0 0 var(--slide-w); min-width: 0; scroll-snap-align: center; }
  .slider__slide > * { height: 100%; }

  .slider--ready .slider__track {
    display: grid;
    grid-template-columns: var(--slide-w);
    justify-content: center;
    overflow: visible;
    padding: 0;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
  }
  .slider--ready .slider__slide {
    grid-area: 1 / 1;
    transform: translate3d(calc(var(--x, 0) * (100% + var(--slide-gap))), 0, 0);
    transition: opacity .4s var(--ease-reveal);
    backface-visibility: hidden;
  }
  /* not a scroll container once enhanced: focusing an off-screen slide can't shift the carousel */
  .slider--ready .slider__viewport { overflow: clip; }
  .slider--ready.is-dragging .slider__track { cursor: grabbing; }
  .slider--ready img { -webkit-user-drag: none; user-select: none; }
  /* Side slides recede. Text cards (reviews…) stay readable (≥4.5:1 for muted text on white cards):
     light fade + grayscale. Photo-only sliders (.slider--photos) keep the strong .45 dim. */
  .slider--dim.slider--ready .slider__slide:not(.is-active) { opacity: .9; filter: grayscale(1); }
  .slider--dim.slider--photos.slider--ready .slider__slide:not(.is-active),
  .slider--dim-strong.slider--ready .slider__slide:not(.is-active) { opacity: .45; filter: none; }
  .slider--dim.slider--ready .slider__slide { transition: opacity .4s var(--ease-reveal), filter .4s var(--ease-reveal); }
  /* without JS the row scrolls natively; prev/next and the counter would do nothing */
  html:not(.js) .slider__controls { display: none; }
  .slider--fade .slider__viewport {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  }
  .slider__controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: var(--sp-l); }
  .slider__count { min-width: 5.5ch; text-align: center; font-family: var(--font-mono); font-size: .875rem; font-weight: 500; letter-spacing: .06em; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
  .slider__dots { display: flex; gap: .25rem; }
  .slider__dot { position: relative; width: 1.75rem; height: 2.75rem; }
  .slider__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: .5rem; height: .5rem; margin: -.25rem 0 0 -.25rem; background: var(--line-strong); transition: background .3s, transform .3s; }
  .slider__dot[aria-current="true"]::before { background: var(--brand-fill); transform: scale(1.35); }
  .slider__slide.is-clone { pointer-events: auto; }
  .slider--photos { --slide-w: min(22rem, 72vw); }
  .slider--wide { --slide-w: min(38rem, 84vw); }
  @media (max-width: 479px) { .slider { --slide-w: 85vw; } .slider--photos { --slide-w: 74vw; } }

  /* ---------- marquee / ticker ---------- */
  .marquee { --marquee-gap: 3rem; --marquee-duration: 40s; position: relative; overflow: hidden; }
  .marquee__track { display: flex; width: 100%; }
  .marquee__group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem var(--marquee-gap);
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
  }
  .marquee--ready .marquee__track { width: max-content; animation: f1-marquee var(--marquee-duration) linear infinite; }
  .marquee--ready .marquee__group { flex: none; flex-wrap: nowrap; padding-right: var(--marquee-gap); }
  .marquee--reverse .marquee__track { animation-direction: reverse; }
  /* edge fade only while moving: the static (no-JS / reduced-motion) row shows its first and last items in full */
  .marquee--fade.marquee--ready {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  }
  .marquee:focus-within .marquee__track,
  .marquee.is-paused .marquee__track { animation-play-state: paused; }
  @media (hover: hover) and (pointer: fine) {
    .marquee:hover .marquee__track { animation-play-state: paused; }
  }
  @keyframes f1-marquee { to { transform: translate3d(-50%, 0, 0); } }

  .ticker { padding-block: .875rem; border-block: 1px solid var(--line); --marquee-gap: 2.25rem; }
  .ticker__item {
    display: inline-flex;
    align-items: center;
    gap: var(--marquee-gap);
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: .875rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .ticker__item::after { content: ""; width: .4375rem; height: .4375rem; background: currentColor; flex: none; }
  .marquee:not(.marquee--ready) .marquee__group { padding-inline: var(--gutter); }
  .marquee:not(.marquee--ready) .ticker__item { white-space: normal; text-align: center; }
  .ticker a { padding-block: .75rem; text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
  .ticker a:hover { text-decoration-thickness: 2px; }

  /* brand logos on white: grayscale + multiply, colour on hover.
     One definite 1fr×1fr cell, so the image's 100% height resolves to the tile (resize the tile freely). */
  .logo-tile { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; width: 7.5rem; height: 3.75rem; }
  .logo-tile img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; opacity: .72; transition: filter .5s var(--ease-dock), opacity .5s var(--ease-dock); }
  @media (hover: hover) and (pointer: fine) {
    .logo-tile:hover img { filter: none; opacity: 1; }
  }

  /* ---------- scroll timeline 01/02/03 ---------- */
  .timeline { --tl-box: 3rem; position: relative; display: grid; list-style: none; margin: 0; padding: 0; }
  .timeline__item { position: relative; display: grid; grid-template-columns: var(--tl-box) minmax(0, 1fr); column-gap: 2.5rem; padding-bottom: 3.5rem; }
  .timeline__item:last-child { padding-bottom: 0; }
  .timeline__item::before,
  .timeline__item::after {
    content: "";
    position: absolute;
    left: calc(var(--tl-box) / 2 - .5px);
    top: var(--tl-box);
    bottom: 0;
    width: 1px;
  }
  .timeline__item::before { background: var(--line-strong); }
  .timeline__item::after { background: var(--brand); transform-origin: top; transform: scaleY(var(--tl-fill, 1)); }
  .timeline__item:last-child::before, .timeline__item:last-child::after { display: none; }
  .timeline__num {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: var(--tl-box);
    height: var(--tl-box);
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--on-brand);
    background: var(--brand-fill);
    border: 1px solid var(--brand-fill);
    transition: background-color .35s var(--ease-btn), color .35s var(--ease-btn), border-color .35s var(--ease-btn);
  }
  .timeline__content { display: grid; gap: .75rem; padding-top: .45rem; transition: opacity .45s ease; }
  .timeline__title { font-family: var(--font-body); font-size: var(--fs-h4); font-weight: 400; font-stretch: normal; font-variation-settings: normal; line-height: 1.08; letter-spacing: -.01em; text-transform: none; }
  .timeline__text { color: var(--fg-muted); font-size: 1.0625rem; line-height: 1.45; max-width: 52ch; }
  .timeline--live .timeline__item:not(.is-reached) .timeline__num { color: var(--fg); background: var(--bg); border-color: var(--brand); }
  .timeline--live .timeline__item:not(.is-reached) .timeline__content { opacity: .35; }
  @media (max-width: 767px) {
    .timeline { --tl-box: 2.5rem; }
    .timeline__item { column-gap: 1.25rem; padding-bottom: 2.5rem; }
    .timeline__num { font-size: 1rem; }
    .timeline__content { padding-top: .3rem; }
  }

  /* ---------- reveal on scroll ----------
     Never hidden: anything holding keyboard focus (:focus-within; f1.js also reveals it for good) and the
     above-the-fold hero copy, which gets a CSS-only entrance below instead of waiting for f1.js. */
  @media (prefers-reduced-motion: no-preference) {
    .js [data-reveal]:not(.is-revealed):not(:focus-within):not(:is(.hero, .page-hero) *),
    .js [data-reveal-stagger]:not(.is-revealed):not(:is(.hero, .page-hero) *) > :not(:focus-within) {
      opacity: 0;
      transform: translate3d(0, var(--reveal-distance, 2em), 0);
    }
    /* hero entrance: starts with the first paint (no JS needed), short stagger, never holds the H1 back long */
    :is(.hero, .page-hero) :is([data-reveal], [data-reveal-stagger] > *) {
      animation: f1-rise .9s var(--ease-out3) backwards;
      animation-delay: calc(var(--rise-base, 0ms) + var(--rise-i, 0) * 80ms);
    }
    :is(.hero, .page-hero) [data-reveal] { --rise-base: 400ms; }
    :is(.hero, .page-hero) [data-reveal-stagger][data-reveal-delay] { --rise-base: 300ms; }
    :is(.hero, .page-hero) [data-reveal-stagger] > :nth-child(2) { --rise-i: 1; }
    :is(.hero, .page-hero) [data-reveal-stagger] > :nth-child(3) { --rise-i: 2; }
    :is(.hero, .page-hero) [data-reveal-stagger] > :nth-child(4) { --rise-i: 3; }
    :is(.hero, .page-hero) [data-reveal-stagger] > :nth-child(5) { --rise-i: 4; }
    :is(.hero, .page-hero) [data-reveal-stagger] > :nth-child(6) { --rise-i: 5; }
    :is(.hero, .page-hero) [data-reveal-stagger] > :nth-child(n+7) { --rise-i: 6; }
    /* the headline (LCP) rises with the first line, never behind the stagger */
    :is(.hero, .page-hero) [data-reveal-stagger] > :is(h1, h2, .h1, .h2) { --rise-i: 0; --rise-base: 0ms; }
    .js [data-reveal]:not(.reveal-done),
    .js [data-reveal-stagger]:not(.reveal-done) > * {
      transition: opacity .8s var(--ease-reveal), transform .8s var(--ease-reveal);
      transition-delay: var(--reveal-delay, 0ms);
    }
    /* arrival sequence (hero "orden de trabajo" cards) */
    .js [data-sequence] > :not(.is-in) { opacity: 0; transform: translate3d(1.875rem, 0, 0) scale(.94); }
    .js [data-sequence]:not(.sequence-done) > * { transition: opacity .8s var(--ease-out3), transform .8s var(--ease-out3); transform-origin: 100% 50%; }
  }

  /* ---------- pixel dissolve (built by f1.js) ---------- */
  .pixels {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: var(--z-pixels);
    display: flex;
    align-items: flex-end;
    color: #fff;
    pointer-events: none;
  }
  .pixels__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; }
  .pixels__cell { width: calc(100% + 1px); aspect-ratio: 1; background: currentColor; opacity: 0; }
  @media (prefers-reduced-motion: reduce) { .pixels { display: none; } }
}

/* ----------------------------------------------------------------------------
   COMPONENTS — heroes, overlay, breadcrumb, media frames, floating stat card,
                rating, review, lightbox, thumbs, map, blueprint
   ---------------------------------------------------------------------------- */
@layer f1.components {
  /* photo overlay for dark heroes: L→R black + bottom fade + subtle red multiply */
  .overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(0,0,0,.55) 0%, transparent 22%),
      linear-gradient(0deg, #000 0%, rgba(0,0,0,.55) 22%, transparent 50%),
      linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.6) 42%, rgba(0,0,0,.15) 100%);
  }
  .overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--red-600);
    mix-blend-mode: multiply;
    opacity: .14;
  }
  .overlay--strong { background:
      linear-gradient(180deg, rgba(0,0,0,.6) 0%, transparent 25%),
      linear-gradient(0deg, #000 0%, rgba(0,0,0,.6) 30%, transparent 60%),
      linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.72) 50%, rgba(0,0,0,.35) 100%); }
  /* for photos that are already dark (storefront at dusk, interiors): keeps the image visible on the right */
  .overlay--soft { background:
      linear-gradient(180deg, rgba(0,0,0,.5) 0%, transparent 18%),
      linear-gradient(90deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.05) 100%),
      linear-gradient(0deg, #000 0%, rgba(0,0,0,.35) 18%, transparent 40%); }
  .overlay--soft::after { opacity: .1; }
  .grade { filter: grayscale(.25) contrast(1.06) brightness(.92); }

  /* ---------- home hero (100svh, crossfade slideshow) ---------- */
  .hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: calc(100svh - var(--topbar-h));
    margin-top: calc(-1 * var(--nav-h));
    padding-top: var(--nav-h);
    overflow: hidden;
    background: #000;
    color: #fff;
  }
  .hero__media { position: absolute; inset: 0; z-index: -2; background: #000; }
  .hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
  .hero__slide:first-child, .hero__slide.is-active { opacity: 1; }
  .hero__media.is-live .hero__slide:not(.is-active) { opacity: 0; }
  .hero__slide img { width: 100%; height: 100%; object-fit: cover; }
  @media (prefers-reduced-motion: no-preference) {
    .hero__media.is-live .hero__slide img { transform: scale(1.07); transition: transform 9s linear; }
    .hero__media.is-live .hero__slide.is-active img { transform: scale(1); }
  }
  .hero__body { flex: 1; display: flex; align-items: center; padding-block: var(--sp-xl); }
  .hero__grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--sp-m); align-items: center; width: 100%; }
  .hero__aside { display: grid; gap: 1rem; max-width: 24rem; justify-self: end; width: 100%; }
  .hero__stats { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.16); }
  @media (max-width: 991px) {
    .hero__grid { grid-template-columns: minmax(0, 1fr); }
    .hero__aside { display: none; }
  }

  /* ---------- inner page hero ---------- */
  .page-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: max(32rem, 70svh);
    margin-top: calc(-1 * var(--nav-h));
    padding-top: calc(var(--nav-h) + var(--sp-2xl));
    padding-bottom: var(--sp-2xl);
    overflow: hidden;
    background: #000;
    color: #fff;
  }
  .page-hero__media { position: absolute; inset: 0; z-index: -2; }
  .page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
  .page-hero__content { display: grid; gap: 1.25rem; justify-items: start; max-width: 60rem; }
  .page-hero__content .lead { color: #d0d0d0; max-width: 52ch; }
  .page-hero__content .btn-group { margin-top: .75rem; }
  .page-hero--short { min-height: max(26rem, 56svh); }
  @media (max-width: 767px) {
    .page-hero { min-height: max(28rem, 72svh); }
  }

  /* "En esta página" strip at the bottom of an inner hero: hairline row of numbered anchor links
     <nav class="page-index" aria-label="En esta página"><ol class="page-index__list">
       <li><a class="page-index__link" href="#x"><span class="page-index__num" aria-hidden="true">01</span>
           <span class="page-index__label">Label</span>[<svg class="icon icon--sm page-index__icon">chevron-down</svg>]</a></li> */
  .page-index { margin-top: var(--sp-xl); }
  .page-index__list {
    display: grid;
    grid-template-columns: repeat(var(--page-index-cols, 4), minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, .2);
  }
  .page-index__list > li { min-width: 0; }
  .page-index__list > li + li { border-left: 1px solid rgba(255, 255, 255, .14); }
  .page-index__link {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    column-gap: .75rem;
    min-height: 2.75rem;
    height: 100%;
    padding: 1.125rem 1rem .5rem;
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #d0d0d0;
    text-decoration: none;
    transition: color .3s ease;
  }
  .page-index__list > li:first-child .page-index__link { padding-left: 0; }
  .page-index__link::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 2px;
    background: var(--red-400);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .735s var(--ease-osmo);
  }
  .page-index__num { color: var(--red-400); font-variant-numeric: tabular-nums; }
  .page-index__label { text-wrap: balance; }
  .page-index__icon { color: #a3a3a3; transition: translate .45s var(--ease-btn), color .3s; }
  .page-index__link:focus-visible { color: #fff; outline-offset: -2px; }
  .page-index__link:focus-visible::before { transform: scaleX(1); transform-origin: left; }
  .page-index__link:focus-visible .page-index__icon { color: #fff; translate: 0 3px; }
  @media (hover: hover) and (pointer: fine) {
    .page-index__link:hover { color: #fff; }
    .page-index__link:hover::before { transform: scaleX(1); transform-origin: left; }
    .page-index__link:hover .page-index__icon { color: #fff; translate: 0 3px; }
  }
  @media (max-width: 767px) {
    .page-index { margin-top: var(--sp-l); }
    .page-index__list { --page-index-cols: 2; }
    .page-index__list > li:nth-child(odd) { border-left: 0; }
    .page-index__list > li:nth-child(odd) .page-index__link { padding-left: 0; }
    .page-index__list > li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
    .page-index__link { grid-template-columns: auto minmax(0, 1fr); padding: .75rem .75rem; }
    .page-index__icon { display: none; }
  }

  /* glass data card in an inner hero's aside (Atención / Ubicación): hidden ≤991 where the aside collapses
     <div class="glass hero-card"><div class="hero-card__head"><span class="micro micro--brand">…</span>…</div>
       <ul class="data-rows">…</ul></div> */
  .hero-card { display: grid; gap: .75rem; padding: 1.25rem 1.5rem; }
  .hero-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: .75rem; border-bottom: 1px solid color-mix(in srgb, #fff 16%, transparent); }
  .hero-card .data-rows { border: 0; }
  .hero-card .data-row { padding: .625rem 0; font-size: .75rem; border-color: color-mix(in srgb, #fff 16%, transparent); }
  .hero-card .data-row:first-child { padding-top: 0; }
  .hero-card .data-row:last-child { padding-bottom: 0; }
  .hero-card .data-row__label { color: #a3a3a3; }
  .hero-card .link { justify-self: start; color: #fff; }
  @media (max-width: 991px) { .hero-card { display: none; } }

  .breadcrumb { font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #a3a3a3; }
  .breadcrumb ol { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
  .breadcrumb li { display: inline-flex; align-items: center; gap: .5rem; }
  .breadcrumb li + li::before { content: "/"; color: #5c5c5c; }
  .breadcrumb a { text-decoration: none; transition: color .2s; }
  .breadcrumb a:hover { color: #fff; }
  .breadcrumb [aria-current="page"] { color: var(--red-400); }

  /* ---------- media frame + floating stat card ---------- */
  .media-frame { position: relative; }
  .media-frame__img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: var(--ratio, 4 / 5); }
  .ratio { aspect-ratio: var(--ratio, 16 / 9); overflow: hidden; }
  .ratio > img, .ratio > iframe, .ratio > video { width: 100%; height: 100%; object-fit: cover; }
  .cover { width: 100%; height: 100%; object-fit: cover; }

  .float-card {
    --bg: #fff; --fg: #000; --fg-muted: #5c5c5c; --brand: var(--red-600); --line: #d4d4d4;
    position: absolute;
    z-index: 4;
    display: grid;
    gap: .875rem;
    padding: 1rem 1.25rem 1.125rem;
    color: #000;
    background: #fff;
    box-shadow: 0 0 12px rgba(0,0,0,.05), 0 12px 32px rgba(0,0,0,.08);
  }
  .float-card--tr { top: calc(-1 * var(--sp-m)); right: calc(-1 * var(--sp-m)); }
  .float-card--tl { top: calc(-1 * var(--sp-m)); left: calc(-1 * var(--sp-m)); }
  .float-card--br { bottom: calc(-1 * var(--sp-m)); right: calc(-1 * var(--sp-m)); }
  .float-card--bl { bottom: calc(-1 * var(--sp-m)); left: calc(-1 * var(--sp-m)); }
  .float-card__label { font-family: var(--font-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #5c5c5c; }
  .float-card__row { display: grid; grid-template-columns: auto 1px auto; align-items: stretch; column-gap: 1.25rem; }
  .float-card__divider { background: #d4d4d4; }
  .float-card__num { display: block; font-family: var(--font-display); font-weight: 800; font-stretch: 62%; font-variation-settings: "wdth" 62; font-size: 2.75rem; line-height: .86; letter-spacing: -.02em; text-transform: uppercase; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .float-card__num--brand { color: var(--red-600); }
  .float-card__caption { display: block; margin-top: .375rem; font-size: .8125rem; line-height: 1.25; color: #5c5c5c; }
  @media (max-width: 991px) {
    .float-card--tr, .float-card--br { right: var(--gutter); }
    .float-card--tl, .float-card--bl { left: var(--gutter); }
  }
  @media (max-width: 767px) {
    .float-card { position: relative; inset: auto; margin: calc(-1 * var(--sp-l)) 1rem 0 auto; width: fit-content; max-width: calc(100% - 2rem); }
    .float-card--tl, .float-card--bl { margin: calc(-1 * var(--sp-l)) auto 0 1rem; }
    .float-card__num { font-size: 2.25rem; }
  }

  /* ---------- stars + rating block ---------- */
  .stars { display: inline-flex; gap: .125rem; color: var(--star); }
  .stars .icon { --icon-size: 1rem; }
  .stars--lg .icon { --icon-size: 1.375rem; }
  /* partial rating: style="--rating: 4.7" fills that share of the 5 stars, the rest stays faint */
  .stars--partial {
    --_fill: calc(var(--rating, 5) / 5 * 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 var(--_fill), rgba(0,0,0,.25) var(--_fill));
            mask-image: linear-gradient(90deg, #000 var(--_fill), rgba(0,0,0,.25) var(--_fill));
  }

  .rating { position: relative; display: grid; justify-items: start; gap: .875rem; padding: 1.75rem; border: 1px solid var(--line); background: var(--bg); }
  .rating__source { display: inline-flex; align-items: center; gap: .625rem; font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-muted); }
  .rating__source img { width: 1.25rem; height: 1.25rem; }
  .rating__label { font-family: var(--font-display); font-weight: 800; font-stretch: 62%; font-variation-settings: "wdth" 62; font-size: var(--fs-h3); line-height: .9; letter-spacing: -.01em; text-transform: uppercase; }
  .rating__score-row { display: flex; align-items: flex-end; gap: 1rem; }
  .rating__score { font-family: var(--font-display); font-weight: 800; font-stretch: 62%; font-variation-settings: "wdth" 62; font-size: clamp(4.5rem, 3.5rem + 3vw, 6.5rem); line-height: .86; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
  .rating__score-row .stars { margin-bottom: .45rem; }
  .rating__count { font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-muted); }
  .rating--inline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: 0; border: 0; background: none; }
  .rating--inline .rating__inline-score { font-family: var(--font-mono); font-size: .875rem; font-weight: 600; letter-spacing: .04em; }
  .rating--inline .rating__count { color: inherit; opacity: .8; }
  .rating--inline img { width: 1.25rem; height: 1.25rem; }

  /* ---------- review card ---------- */
  .review { position: relative; display: flex; flex-direction: column; gap: 1.25rem; height: 100%; padding: 2rem; background: var(--bg-2); color: var(--fg); }
  .review__head { display: flex; align-items: center; gap: .875rem; }
  .review__who { display: grid; gap: .125rem; min-width: 0; }
  .review__name { font-weight: 600; font-size: 1.0625rem; line-height: 1.25; }
  .review__meta { font-family: var(--font-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-muted); }
  .review__source { margin-left: auto; width: 1.25rem; height: 1.25rem; flex: none; }
  .review__text { font-size: 1.0625rem; line-height: 1.5; letter-spacing: .01em; }
  .review__text.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--clamp, 6); overflow: hidden; }
  .review__more { align-self: flex-start; margin-top: calc(-.5rem - var(--link-pad, 0px)); }
  .review__foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: .75rem; }

  .avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    font-family: var(--font-mono);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--fg);
    background: var(--brand-tint);
    border: 1px solid var(--brand);
  }

  /* ---------- thumbs (gallery items that open the lightbox) ---------- */
  .thumb { position: relative; display: block; color: inherit; text-decoration: none; cursor: zoom-in; }
  .thumb__media { position: relative; display: block; overflow: hidden; background: var(--bg-2); }
  .thumb--fill { height: 100%; }
  .thumb--fill .thumb__media { height: 100%; aspect-ratio: auto; }
  .thumb__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-dock), filter .6s; }
  .thumb__caption {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    padding: .375rem .625rem;
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    background: #000;
  }
  .thumb__zoom { position: absolute; top: .75rem; right: .75rem; z-index: 2; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; background: #000; color: #fff; opacity: 0; transition: opacity .3s; }
  .thumb:focus-visible .thumb__zoom { opacity: 1; }
  @media (hover: hover) and (pointer: fine) {
    .thumb:hover .thumb__media img { transform: scale(1.04); }
    .thumb:hover .thumb__zoom { opacity: 1; }
  }

  /* ---------- lightbox (dialog built by f1.js) ---------- */
  .lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    color: #fff;
    background: rgba(0,0,0,.95);
    overscroll-behavior: contain;
  }
  .lightbox::backdrop { background: rgba(0,0,0,.7); }
  .lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
  .lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem var(--gutter); }
  .lightbox__count { font-family: var(--font-mono); font-size: .875rem; font-weight: 500; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
  .lightbox__stage { position: relative; min-height: 0; touch-action: pan-y; }
  .lightbox__img {
    position: absolute;
    inset: 0 calc(var(--gutter) + 3.75rem);
    margin: auto;
    width: auto;
    height: auto;
    max-width: calc(100% - 2 * (var(--gutter) + 3.75rem));
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
  }
  .lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; }
  .lightbox__nav--prev { left: var(--gutter); }
  .lightbox__nav--next { right: var(--gutter); }
  .lightbox__caption { min-height: 3.5rem; padding: 1rem var(--gutter) 1.25rem; text-align: center; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: #a3a3a3; }
  @media (prefers-reduced-motion: no-preference) {
    .lightbox__img.is-entering { animation: f1-fade .35s ease both; }
  }
  @keyframes f1-fade { from { opacity: 0; } to { opacity: 1; } }
  @media (max-width: 767px) {
    .lightbox__img { inset: 0 0 4.5rem; max-width: 100%; max-height: calc(100% - 4.5rem); }
    .lightbox__nav { top: auto; bottom: 0; translate: none; }
  }

  /* ---------- map frame ---------- */
  /* The frame owns the size (--ratio via .ratio, or the parent's height) and never gets shorter than
     --map-min-h; the iframe is laid over it, so it can't overflow or be cropped by a short ratio box. */
  .map-frame { position: relative; min-height: var(--map-min-h, 20rem); background: var(--bg-2); }
  .map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.08); transition: filter .6s ease; }
  .map-frame--dark iframe { filter: grayscale(1) invert(.9) contrast(.9) brightness(.95); }
  .map-frame:is(:hover, :focus-within) iframe { filter: none; }
  .map-badge {
    --fg: #fff; --fg-muted: #a3a3a3; --brand: var(--red-400);
    position: absolute; z-index: 4; left: 1rem; bottom: 1rem; display: grid; gap: .625rem; max-width: calc(100% - 2rem); padding: 1rem 1.25rem; background: #000; color: #fff;
  }
  .map-badge .micro:not(.micro--muted) { color: var(--brand); }  /* first micro label = brand */
  .map-badge .micro--muted { color: var(--fg-muted); }            /* optional secondary micro line */

  /* ---------- blueprint hairlines ---------- */
  .blueprint { position: relative; }
  .blueprint::before,
  .blueprint::after {
    content: "";
    position: absolute;
    pointer-events: none;
    opacity: .35;
    z-index: 0;
  }
  .blueprint::before { top: 50%; left: 0; width: 100%; height: 1000%; transform: translateY(-50%); border-inline: 1px solid var(--line-strong); }
  .blueprint::after { left: 50%; top: calc(-1 * var(--sp-l)); width: 1000%; height: calc(100% + 2 * var(--sp-l)); transform: translateX(-50%); border-block: 1px solid var(--line-strong); }
}

/* ----------------------------------------------------------------------------
   COMPONENTS — forms, footer, floating WhatsApp, mobile toast, final CTA
   ---------------------------------------------------------------------------- */
@layer f1.components {
  /* ---------- forms ---------- */
  .form { display: grid; gap: 1.5rem; }
  .form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  @media (max-width: 767px) { .form__row { grid-template-columns: minmax(0, 1fr); } }

  .field { display: grid; gap: .5rem; min-width: 0; margin: 0; padding: 0; border: 0; }
  .field__label, .field > legend {
    display: flex;
    align-items: baseline;
    gap: .375rem;
    padding: 0;
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--fg-muted);
  }
  .field > legend { margin-bottom: .5rem; width: 100%; }
  .field__opt { margin-left: auto; text-transform: none; letter-spacing: .02em; font-family: var(--font-body); font-size: .8125rem; }
  .field__req { color: var(--brand); }

  .input, .select, .textarea {
    display: block;
    width: 100%;
    min-height: 3rem;
    padding: .75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.4;
    letter-spacing: .01em;
    color: var(--fg);
    background-color: var(--bg);
    border: 1px solid var(--input-border);
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color .2s ease, box-shadow .2s ease;
  }
  .input::placeholder, .textarea::placeholder { color: var(--fg-muted); opacity: 1; }
  .textarea { min-height: 8.5rem; resize: vertical; }
  .select {
    padding-right: 2.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23888'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: .625rem;
  }
  @media (hover: hover) and (pointer: fine) {
    .input:hover, .select:hover, .textarea:hover { border-color: var(--fg-muted); }
  }
  .input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
  .input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
  .field__hint { font-size: .8125rem; line-height: 1.35; color: var(--fg-muted); }
  .field__error { display: none; align-items: center; gap: .5rem; font-size: .875rem; line-height: 1.3; font-weight: 500; color: var(--brand); }
  .field__error .icon { --icon-size: 1rem; }
  .field.is-invalid .field__error { display: flex; }
  .field.is-invalid :is(.input, .select, .textarea),
  :is(.input, .select, .textarea)[aria-invalid="true"] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
  .field.is-valid :is(.input, .select, .textarea) { border-color: var(--ok); }

  /* segmented radio tiles */
  .segmented { display: grid; grid-template-columns: repeat(var(--seg-cols, 3), minmax(0, 1fr)); gap: .5rem; }
  .segmented--2 { --seg-cols: 2; }
  .segmented--4 { --seg-cols: 4; }
  @media (max-width: 767px) { .segmented { --seg-cols: 2; } }
  @media (max-width: 379px) { .segmented { --seg-cols: 1; } }
  .seg { position: relative; display: flex; min-width: 0; }
  .seg__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
  .seg__label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 3.25rem;
    padding: .75rem .875rem;
    font-family: var(--font-mono);
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: .02em;
    text-align: center;
    color: var(--fg);
    border: 1px solid var(--input-border);
    box-shadow: inset 0 0 0 0 var(--brand-fill);
    transition: box-shadow .35s var(--ease-btn), color .25s ease, border-color .25s ease;
  }
  .seg__input:checked + .seg__label { color: var(--on-brand); border-color: var(--brand-fill); box-shadow: inset 0 0 0 8rem var(--brand-fill); }
  .seg__input:focus-visible + .seg__label { outline: 2px solid var(--brand); outline-offset: 3px; }
  @media (hover: hover) and (pointer: fine) {
    .seg__input:not(:checked):hover + .seg__label { border-color: var(--fg); }
  }
  .seg--left .seg__label { justify-content: flex-start; text-align: left; }

  /* checkbox chips */
  .chip-checks { display: flex; flex-wrap: wrap; gap: .5rem; }
  .chip-check { position: relative; display: inline-flex; max-width: 100%; }
  .chip-check__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
  .chip-check__label {
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    min-height: 2.75rem;
    padding: .5rem .875rem;
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--fg);
    border: 1px solid var(--input-border);
    transition: border-color .2s, background-color .2s;
  }
  .chip-check__label::before {
    content: "";
    flex: none;
    width: .875rem;
    height: .875rem;
    border: 1px solid currentColor;
    background: transparent center / .75rem no-repeat;
    transition: background-color .2s, border-color .2s;
  }
  .chip-check__input:checked + .chip-check__label { border-color: var(--brand); background-color: var(--brand-tint); }
  .chip-check__input:checked + .chip-check__label::before {
    border-color: var(--brand-fill);
    background-color: var(--brand-fill);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='square'%3E%3Cpath d='M5.5 12.5l4 4 9-9'/%3E%3C/svg%3E");
  }
  .chip-check__input:focus-visible + .chip-check__label { outline: 2px solid var(--brand); outline-offset: 3px; }
  @media (hover: hover) and (pointer: fine) {
    .chip-check__input:not(:checked):hover + .chip-check__label { border-color: var(--fg); }
  }

  /* mono "ticket" panel (live message preview) */
  .ticket {
    position: relative;
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-2);
    border-top: 3px solid var(--brand-fill);
    font-family: var(--font-mono);
    font-size: .875rem;
    line-height: 1.6;
    letter-spacing: .01em;
  }
  .ticket__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .875rem; border-bottom: 1px dashed var(--line-strong); }
  .ticket__body { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--fg); min-height: 6rem; }
  .ticket__body:empty::before { content: attr(data-empty); color: var(--fg-muted); }

  .form-msg { display: flex; gap: .75rem; align-items: flex-start; padding: .875rem 1rem; font-size: .9375rem; line-height: 1.4; border-left: 3px solid; }
  .form-msg .icon { --icon-size: 1.125rem; margin-top: .1em; }
  .form-msg--error { color: var(--fg); border-color: var(--brand); background: var(--brand-tint); }
  .form-msg--success { color: var(--fg); border-color: var(--ok); background: var(--ok-tint); }
  .form-msg--success .icon { color: var(--ok-ink); }
  .form-msg--error .icon { color: var(--brand); }

  /* ---------- final CTA helper ---------- */
  .cta-final { text-align: center; display: grid; justify-items: center; gap: 1.25rem; }
  .cta-final .h1, .cta-final h2 { max-width: 16ch; }
  .cta-final .btn-group { margin-top: 1rem; justify-content: center; }
  /* "Tu transmisión," must fit one line on 360–399px phones (no orphan "TU") */
  @media (max-width: 399px) {
    .cta-final .h1, .cta-final h2 { font-size: clamp(2.75rem, 1rem + 10vw, 3.6rem); }
  }
  /* the closing band: section.section.theme-dark.bg-dots.bg-dots--bottom.section--cta */
  .section--cta { padding-block: calc(var(--section) * 1.25); }

  /* ---------- footer ---------- */
  .footer { position: relative; isolation: isolate; overflow: hidden; padding-top: var(--sp-3xl); background: #000; color: #fff; }
  .footer::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18rem;
    z-index: -1;
    width: min(70rem, 140vw);
    height: 30rem;
    translate: -50% 0;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--red-500) 26%, transparent), transparent);
    filter: blur(20px);
    pointer-events: none;
  }
  .footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, 1.5fr); gap: var(--sp-l) var(--sp-2xl); }
  .footer__brand { display: grid; gap: 1.5rem; align-content: start; justify-items: start; }
  .footer__logo img { width: 14rem; height: auto; }
  .footer__statement { max-width: 38ch; color: #a3a3a3; font-size: 1rem; line-height: 1.5; }
  .footer__heading { margin-bottom: 1.25rem; font-family: var(--font-mono); font-size: .75rem; font-weight: 500; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; color: var(--red-400); }
  .footer__links { display: grid; gap: .25rem; list-style: none; margin: 0; padding: 0; }
  .footer__links a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 1.0625rem; }
  .footer__links a[aria-current="page"] { color: var(--red-400); }
  .footer__contact { display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; }
  .footer__contact li { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); column-gap: .875rem; align-items: start; color: #d4d4d4; line-height: 1.45; }
  .footer__contact .icon { --icon-size: 1.25rem; color: var(--red-400); margin-top: .05rem; }
  .footer__contact a { text-decoration: none; }
  .footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 2rem;
    margin-top: var(--sp-2xl);
    padding-block: 1.5rem max(1.5rem, env(safe-area-inset-bottom));
    border-top: 1px solid #2e2e2e;
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #a3a3a3;
  }
  .footer__bottom a { color: #fff; }
  @media (max-width: 991px) {
    .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .footer__brand { grid-column: 1 / -1; }
  }
  @media (max-width: 767px) {
    .footer__top { grid-template-columns: minmax(0, 1fr); }
    .footer__bottom { flex-direction: column; align-items: flex-start; padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
  }

  /* ---------- floating WhatsApp bubble ---------- */
  .wa-float {
    position: fixed;
    right: max(1.25rem, env(safe-area-inset-right));
    bottom: max(1.25rem, env(safe-area-inset-bottom));
    z-index: var(--z-float);
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    color: #fff;
    background: var(--wa);
    box-shadow: 0 8px 24px rgba(0,0,0,.28);
    text-decoration: none;
    transition: transform .45s var(--ease-btn), bottom .5s var(--ease-btn), box-shadow .3s;
  }
  .wa-float .icon { --icon-size: 1.75rem; }
  .wa-float__label {
    position: absolute;
    right: calc(100% + .75rem);
    top: 50%;
    padding: .5rem .75rem;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    background: #000;
    opacity: 0;
    translate: .5rem -50%;
    pointer-events: none;
    transition: opacity .3s, translate .45s var(--ease-btn);
  }
  .wa-float:focus-visible .wa-float__label { opacity: 1; translate: 0 -50%; }
  @media (hover: hover) and (pointer: fine) {
    .wa-float:hover { transform: scale(1.06); }
    .wa-float:hover .wa-float__label { opacity: 1; translate: 0 -50%; }
  }
  html.has-toast .wa-float { bottom: calc(var(--toast-h, 12rem) + 1.5rem); }
  html.is-menu-open .wa-float { opacity: 0; visibility: hidden; pointer-events: none; }
  /* phones: the bubble waits for the first scroll (past the header threshold) instead of sitting on
     the hero's last line at load */
  @media (max-width: 767px) {
    .wa-float { transition: transform .45s var(--ease-btn), bottom .5s var(--ease-btn), box-shadow .3s, opacity .3s, visibility 0s; }
    html.js:not(.has-scrolled) .wa-float { opacity: 0; visibility: hidden; transform: scale(.6); transition: transform .3s var(--ease-btn), opacity .2s, visibility 0s linear .3s; }
  }

  /* ---------- mobile "¿Tu caja está fallando?" toast ---------- */
  .toast {
    position: fixed;
    left: .75rem;
    right: .75rem;
    bottom: max(.75rem, env(safe-area-inset-bottom));
    z-index: var(--z-toast);
    display: grid;
    gap: .625rem;
    padding: 1.25rem 1.25rem 1.25rem;
    color: #fff;
    background: #000;
    border: 1px solid #2e2e2e;
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
    translate: 0 calc(100% + 2rem);
    transition: translate .6s var(--ease-btn);
  }
  .toast.is-visible { translate: 0 0; }
  html.is-menu-open .toast { visibility: hidden; translate: 0 calc(100% + 2rem); }
  /* while visible, the page reserves its height at the end and keeps focused elements clear of it */
  @media (max-width: 767px) {
    html.has-toast { scroll-padding-bottom: calc(var(--toast-h, 15rem) + 1rem); }
    html.has-toast .footer__bottom { padding-bottom: calc(var(--toast-h, 15rem) + 1.75rem + env(safe-area-inset-bottom)); }
  }
  .toast__eyebrow { font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--red-400); padding-right: 3rem; }
  .toast__title { font-family: var(--font-display); font-weight: 800; font-stretch: 62%; font-variation-settings: "wdth" 62; font-size: 2.125rem; line-height: .95; letter-spacing: -.02em; text-transform: uppercase; }
  .toast__text { font-size: .875rem; line-height: 1.4; color: #a3a3a3; }
  .toast .btn { margin-top: .375rem; }
  .toast__close { position: absolute; top: .375rem; right: .375rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; color: #fff; }
  .toast__close .icon { --icon-size: 1.25rem; }
  @media (min-width: 768px) { .toast { display: none !important; } }
}

/* ----------------------------------------------------------------------------
   UTILITIES
   ---------------------------------------------------------------------------- */
@layer f1.utilities {
  .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
  .text-center { text-align: center; }
  .text-left { text-align: left; }
  .text-brand { color: var(--brand); }
  .text-muted { color: var(--fg-muted); }
  .text-ok { color: var(--ok-ink); }
  .text-fg { color: var(--fg); }
  .upper { text-transform: uppercase; }
  .balance { text-wrap: balance; }
  .pretty { text-wrap: pretty; }
  .nowrap { white-space: nowrap; }
  .measure { max-width: 45ch; }
  .measure-s { max-width: 30ch; }
  .measure-l { max-width: 62ch; }
  .measure-title { max-width: 15ch; }
  .mx-auto { margin-inline: auto; }
  .w-full { width: 100%; }
  .relative { position: relative; }
  .mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
  .mt-2xs { margin-top: .5rem; } .mb-2xs { margin-bottom: .5rem; }
  .mt-xs { margin-top: .75rem; } .mb-xs { margin-bottom: .75rem; }
  .mt-s { margin-top: 1rem; } .mb-s { margin-bottom: 1rem; }
  .mt-m { margin-top: var(--sp-m); } .mb-m { margin-bottom: var(--sp-m); }
  .mt-l { margin-top: var(--sp-l); } .mb-l { margin-bottom: var(--sp-l); }
  .mt-xl { margin-top: var(--sp-xl); } .mb-xl { margin-bottom: var(--sp-xl); }
  .mt-2xl { margin-top: var(--sp-2xl); } .mb-2xl { margin-bottom: var(--sp-2xl); }
  .mt-3xl { margin-top: var(--sp-3xl); } .mb-3xl { margin-bottom: var(--sp-3xl); }
  @media (max-width: 991px) { .hide-lt-lg { display: none !important; } }
  @media (min-width: 992px) { .show-lt-lg { display: none !important; } }
  @media (max-width: 767px) { .hide-lt-md { display: none !important; } }
  @media (min-width: 768px) { .show-lt-md { display: none !important; } }
}

/* reduced motion: final states, no transitions/animations beyond simple fades */
@media (prefers-reduced-motion: reduce) {
  @layer f1.utilities {
    *, *::before, *::after {
      animation-duration: .01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .01ms !important;
      transition-delay: 0s !important;
      scroll-behavior: auto !important;
    }
    .marquee__track { animation: none !important; }
  }
}

@media print {
  @layer f1.utilities {
    .site-header, .topbar, .menu, .wa-float, .toast, .pixels, .skip-link { display: none !important; }
    .js [data-reveal], .js [data-reveal-stagger] > *, .js [data-sequence] > * { opacity: 1 !important; transform: none !important; }
  }
}
