/* ============================================================
   MAPRIMAQ — brand styles
   Palette (Brandbook): red #c0202c · gray #606161 · black #000
   Pattern-only reds: #a91e2d · #db2638
   Type: Decimal Bold (titles) · Decimal Book (subtitles/body)
   ============================================================ */

@font-face {
  font-family: 'Decimal';
  src: url('../assets/fonts/DecimalBook.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Decimal';
  src: url('../assets/fonts/DecimalBold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Decimal';
  src: url('../assets/fonts/DecimalExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-display: swap;
}

:root {
  --red: #c0202c;
  --red-bright: #db2638;
  --red-deep: #a91e2d;
  --gray: #606161;
  --ink: #131315;
  --paper: #ffffff;
  --paper-soft: #f6f6f7;
  --line: #e6e6e8;
  --radius: 10px;
  --container: 1000px;
  --header-h: 75px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Decimal', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  width: min(var(--container), 92vw);
  margin-inline: auto;
}

/* Visible to screen readers only — used for icon-button labels so they stay
   translatable through the normal data-i18n textContent pass. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.section { padding: clamp(3.03rem, 6.05vw, 4.98rem) 0; }

h1, h2, h3 { font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.38rem, 2.58vw, 2.18rem); }
h3 { font-size: 0.96rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.67rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--red);
  vertical-align: middle;
  margin-right: 0.45rem;
}
.eyebrow.light { color: #fff; }
.eyebrow.light::before { background: #fff; }

.section-head { max-width: 587px; margin-bottom: clamp(1.78rem, 3.56vw, 2.76rem); }
.section-lead { color: var(--gray); margin-top: 0.76rem; font-size: 0.85rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.64rem 1.42rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover { background: var(--red-bright); box-shadow: 0 10px 24px rgba(192, 32, 44, .32); }
.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: rgba(19, 19, 21, .06); }
.btn-light {
  background: #fff;
  color: var(--red);
}
.btn-light:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  transition: box-shadow .35s var(--ease);
}
.header-inner {
  width: min(var(--container), 94vw);
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.76rem;
}
.header-logo { display: flex; align-items: center; gap: 12px; }
.header-logo img { height: 52px; width: auto; }
.header-logo .logo-text { filter: brightness(0); }
@media (max-width: 600px) {
  .header-logo img { height: 39px; }
  .header-logo { gap: 9px; }
}

.site-header.scrolled { box-shadow: 0 2px 18px rgba(0, 0, 0, .08); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.33rem;
}
.header-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 400;
  position: relative;
  transition: color .25s;
}
.header-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--red-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.header-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-cta {
  padding: 0.43rem 1.02rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff !important;
  font-weight: 700;
  transition: background .25s;
}
.nav-cta:hover { background: var(--red-bright); }

.lang-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  font-size: 0.7rem;
  padding: 0.27rem 0.62rem;
  cursor: pointer;
  transition: border-color .25s, color .25s;
}
.lang-toggle [data-lang-opt] { opacity: .45; }
.lang-toggle [data-lang-opt].active { opacity: 1; font-weight: 700; }
.lang-sep { opacity: .45; margin: 0 2px; }

.burger {
  display: none;
  background: none;
  border: 0;
  width: 42px;
  height: 42px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}
.burger span {
  display: block;
  height: 2px;
  width: 23px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform .3s var(--ease);
}
.site-header.nav-open .burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
.site-header.nav-open .burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  /* vh first as the fallback: svh needs Safari 15.4+, and older WebKit drops
     the whole declaration rather than falling back. */
  min-height: 66vh;
  min-height: 66svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 1.11rem) 0 2.67rem;
}
/* The clipping lives on the background, NOT on .hero. It exists only to
   contain .hero-slide's scale(1.04)/translateX zoom; when it sat on .hero it
   also clipped the copy layers, so any viewport where the slide-2 ad grew
   past the hero box would silently swallow the ad instead of letting the
   section grow. .hero can no longer clip its own content on any screen. */
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
/* Carousel: slides stack on top of each other; the active one fades/slides in */
.hero-bg .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  opacity: 0;
  transform: translateX(2.5%) scale(1.04);
  transition: opacity 1.4s var(--ease), transform 6s linear;
}
.hero-bg .hero-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg,
    rgba(255, 255, 255, .96) 0%,
    rgba(255, 255, 255, .88) 34%,
    rgba(255, 255, 255, .45) 58%,
    rgba(255, 255, 255, 0) 82%);
}
/* Slide-owned copy layers stack in the same cell so each can crossfade
   independently without the hero jumping height between slides. */
.hero-grid { position: relative; z-index: 2; display: grid; }
/* translateZ(0) on BOTH layers (never just one, so their paint behaviour stays
   identical) gives each its own compositing layer. Cheap insurance against the
   iOS Safari bug where a stacked opacity:0 layer fails to repaint when it
   flips to 1 — not the confirmed cause, but free. */
.hero-copy, .hero-promo {
  grid-area: 1 / 1;
  align-self: center;
  transform: translateZ(0);
}
.hero-copy {
  max-width: 485px;
  opacity: 1;
  transition: opacity 1.4s var(--ease);
}
/* Text only belongs on the first hero slide; fades out in sync with the
   image crossfade (same duration as .hero-slide's opacity transition)
   once the carousel advances, so a later slide (e.g. an ad) shows clean. */
.hero-copy.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ---- Hero ad overlay (Apparel Show — slide 2) ---- */
/* No card chrome on purpose: it sits in the same spot as .hero-copy, at the
   same measure, and borrows the slide-1 type scale (.hero-kicker for the
   dates, a red display figure for the stands) so the two slides read as one
   hero. Same 1.4s fade as the image crossfade. */
.hero-promo {
  max-width: 498px;
  opacity: 1;
  transition: opacity 1.4s var(--ease);
}
.hero-promo.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.hero-promo-title {
  font-size: clamp(1.16rem, 2.27vw, 1.78rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero-promo-venue {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--gray);
}
/* Echoes .hero-number's red display figure so slide 2 keeps slide 1's accent. */
.hero-promo-stands {
  margin-top: 0.62rem;
  font-size: clamp(1rem, 2vw, 1.38rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--red);
}
.hero-promo-lead {
  margin-top: 0.58rem;
  font-size: 0.82rem;
  color: var(--gray);
}
/* Four exhibited technologies, one full-width row each: at two columns the
   logo chip would leave too little measure for the descriptions to read. */
.hero-promo-brands {
  list-style: none;
  margin-top: 0.85rem;
}
.hero-promo-brands a {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  padding: 0.4rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: border-color .25s var(--ease);
}
.hero-promo-brands a:hover { border-color: var(--red); }
.hero-promo-brands a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
/* Logos extracted from invite-apparel-show-2026.html. Their native aspect
   ratios run from 2.78:1 to 6.06:1, so every logo gets an IDENTICAL fixed
   chip and object-fit: contain scales it to fit inside — never stretched,
   and the row of four lines up regardless of source proportions.
   The paper chip also gives dark logos a consistent ground on the photo. */
.brand-logo {
  flex: 0 0 auto;
  width: 64px;
  height: 36px;
  padding: 4px 6px;
  object-fit: contain;
  object-position: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.hero-promo-brands a:hover .brand-logo {
  border-color: var(--red);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
}
/* min-width:0 lets the long descriptions wrap instead of stretching the row. */
.brand-text {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}
.brand-name {
  display: block;
  font-weight: 700;
  font-size: 0.77rem;
  color: var(--ink);
  transition: color .25s;
}
.hero-promo-brands a:hover .brand-name { color: var(--red); }
.brand-desc {
  display: block;
  margin-top: 0.13rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--gray);
}
/* Phones: the ad carries far more content than the slide-1 copy (header block
   + four sponsor rows), and both layers share one grid cell, so the ad sets
   the hero's height. Compact it so the whole ad fits a phone screen instead
   of running past the fold — measured 570px -> 511px at 375px wide.
   align-self:start applies to the ad only: it is the taller layer so this is
   a no-op today, but if it ever outgrows the row it now overflows downward
   (where the section can grow) rather than symmetrically off the top.
   .hero-copy stays centred so slide 1 is unchanged. */
@media (max-width: 700px) {
  .hero-promo { align-self: start; }
  .hero-promo-venue { margin-top: 0.3rem; }
  .hero-promo-stands { margin-top: 0.45rem; }
  .hero-promo-lead { margin-top: 0.45rem; }
  .hero-promo-brands { margin-top: 0.6rem; }
  .hero-promo-brands a { padding: 0.28rem 0; }
  /* Single-line labels don't need body's 1.6 leading. */
  .brand-name { line-height: 1.25; }
  .brand-desc { font-size: 0.7rem; line-height: 1.38; }
}
/* Narrow screens: shrink the chip rather than stacking, so the row reads the
   same and the description keeps as much measure as possible. */
@media (max-width: 560px) {
  .hero-promo-brands a { gap: 0.53rem; }
  .brand-logo {
    width: 52px;
    height: 30px;
    padding: 3px 5px;
  }
}

/* ---- Hero carousel controls ---- */
/* Grouped at the container's bottom-right; the wrapper spans the container so
   the pair lines up with the content edge, but only the buttons take clicks. */
.hero-nav {
  position: absolute;
  left: 50%;
  bottom: 1.16rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  gap: 0.53rem;
  pointer-events: none;
}
.hero-nav-btn {
  pointer-events: auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(6px);
  color: var(--red);
  cursor: pointer;
  transition: background .25s var(--ease), color .25s, transform .25s var(--ease), box-shadow .25s var(--ease);
}
.hero-nav-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-nav-btn:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(192, 32, 44, .32);
}
.hero-nav-btn:active { transform: translateY(0); }
.hero-nav-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.hero-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.76rem;
}
.hero-kicker::before {
  content: '';
  display: inline-block;
  width: 23px;
  height: 2px;
  background: var(--red);
  vertical-align: middle;
  margin-right: 0.53rem;
}
.hero-title { display: flex; flex-direction: column; gap: 0.09rem; }
.hero-number {
  font-size: clamp(2.76rem, 6.41vw, 4.98rem);
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: clamp(1.09rem, 2.4vw, 1.82rem);
  font-weight: 200;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.hero-lead {
  max-width: 445px;
  margin-top: 1.02rem;
  font-size: 0.87rem;
  color: var(--gray);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.71rem; margin-top: 1.42rem; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.07rem;
  transform: translateX(-50%);
  z-index: 2;
  width: 20px;
  height: 32px;
  border: 2px solid rgba(19, 19, 21, .3);
  border-radius: 999px;
}
.scroll-hint span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 7px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--red);
  animation: scrollNudge 1.8s var(--ease) infinite;
}
@keyframes scrollNudge {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Stats ---------- */
.stats {
  background: var(--red);
  color: #fff;
  padding: 2.14rem 0;
}
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 1.42rem;
  text-align: center;
}
.stat {
  flex: 0 1 160px;
}
.stat-number, .stat-plus {
  font-size: clamp(1.6rem, 3.2vw, 2.45rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.stat-label {
  display: block;
  margin-top: 0.22rem;
  font-size: 0.73rem;
  color: rgba(255, 255, 255, .82);
}

/* ---------- Divisions (full-width accordion) ---------- */
.division-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}
.division-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.16rem 1.33rem;
  background: var(--paper);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .35s var(--ease), border-color .35s;
}
.division-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "photo title toggle"
    "photo desc  toggle";
  align-items: center;
  column-gap: 1.02rem;
}
.division-photo {
  grid-area: photo;
  align-self: center;
  width: 130px;
  height: 77px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-soft);
}
.division-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.division-card:hover .division-photo img,
.division-card.open .division-photo img { transform: scale(1.06); }
.division-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s var(--ease);
}
.division-card:hover, .division-card:focus-visible, .division-card.open {
  box-shadow: 0 14px 34px rgba(19, 19, 21, .09);
  border-color: transparent;
}
.division-card:hover::before, .division-card:focus-visible::before, .division-card.open::before { transform: scaleY(1); }
.division-card:focus-visible { outline: none; }

.division-card h3 { grid-area: title; align-self: end; margin: 0; }
.division-head > p {
  grid-area: desc;
  align-self: start;
  color: var(--gray);
  font-size: 0.78rem;
  margin: 0.18rem 0 0;
  max-width: 62ch;
}

/* Toggle affordance (pill on the right) */
.division-toggle {
  grid-area: toggle;
  align-self: center;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.37rem;
  padding: 0.37rem 0.76rem;
  background: rgba(192, 32, 44, .06);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--red);
  transition: background .2s, color .2s;
}
.division-card:hover .division-toggle,
.division-toggle:hover { background: rgba(192, 32, 44, .12); color: var(--red-bright); }
.toggle-chevron {
  width: 12px;
  height: 12px;
  transition: transform .4s var(--ease);
}
.division-card.open .toggle-chevron { transform: rotate(180deg); }

@media (max-width: 760px) {
  .division-head {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "photo"
      "title"
      "desc"
      "toggle";
    row-gap: 0.36rem;
  }
  .division-photo { width: 100%; height: 114px; margin-bottom: 0.62rem; }
  .division-toggle { justify-self: start; margin-top: 0.45rem; }
}

/* Collapsible list (animated via max-height, set in JS) */
.division-list-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease);
}
.division-card.open .division-list-wrap {
  margin-top: 0.76rem;
  border-top: 1px solid var(--line);
  padding-top: 0.76rem;
}
.division-list {
  list-style: none;
  columns: 230px;
  column-gap: 1.33rem;
  cursor: default;
}
.division-list li { break-inside: avoid; }
/* Items rise in gently once the panel opens */
.division-card.open .division-list li {
  animation: liRise .5s var(--ease) backwards;
}
@keyframes liRise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .division-card.open .division-list li { animation: none; }
}

@media (hover: hover) {
  .division-list li[data-img] {
    cursor: pointer;
    transition: color .2s;
  }
  .division-list li[data-img]:hover { color: var(--red); }
  .division-list li[data-img]::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 7px;
    border-radius: 50%;
    background: var(--red);
    opacity: .45;
    vertical-align: middle;
  }
}

/* Floating machine preview that follows the cursor */
.machine-peek {
  position: fixed;
  z-index: 200;
  width: min(258px, 34vw);
  pointer-events: none;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
  opacity: 0;
  transform: translateY(10px) scale(.96);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.machine-peek.show { opacity: 1; transform: none; }
.machine-peek img {
  width: 100%;
  height: 153px;
  object-fit: cover;
  display: block;
  background: var(--paper-soft);
}
.peek-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.62rem;
  padding: 0.43rem 0.71rem;
  font-size: 0.7rem;
  color: var(--gray);
}
.peek-brand {
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.division-list li {
  font-size: 0.73rem;
  color: var(--ink);
  padding: 0.21rem 0 0.21rem 0.89rem;
  position: relative;
}
.division-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 7px;
  height: 2px;
  background: var(--red);
  transform: skewX(-30deg);
}

/* ---------- Nosotros / About ---------- */
.about { background: var(--paper); }
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.78rem, 4.27vw, 3.56rem);
  align-items: start;
}
.about-copy h2 { margin-bottom: 0.89rem; }
.about-copy p:not(.eyebrow) {
  color: var(--gray);
  margin-bottom: 0.76rem;
  font-size: 0.84rem;
}
.about-timeline {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.16rem, 2.23vw, 1.78rem);
}
.about-timeline h3 {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.02rem;
}
.timeline { list-style: none; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 7px;
  bottom: 7px;
  width: 2px;
  background: var(--line);
}
.timeline li {
  position: relative;
  padding: 0 0 1.02rem 1.51rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(192, 32, 44, .14);
}
.tl-year {
  display: block;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.85rem;
  line-height: 1.6;
}
.timeline li p { color: var(--gray); font-size: 0.76rem; margin-top: 0.13rem; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------- Pattern background (official brand patterns) ---------- */
.pattern-bg {
  position: absolute;
  inset: 0;
  background: var(--red) url('../assets/img/pattern-filled.svg') 55% 42% / 680% auto;
}
.pattern-bg.subtle {
  background: var(--red) url('../assets/img/pattern-outline.jpg') center / cover;
}

/* ---------- MAPRITÉCNICA ---------- */
.mapritecnica {
  position: relative;
  color: #fff;
  overflow: hidden;
}
.mapritecnica .container { position: relative; z-index: 2; }
.mapritecnica-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.51rem, 3.56vw, 3.2rem);
  align-items: center;
}
.mapritecnica h2 { margin-bottom: 0.85rem; }
.mapritecnica-copy > p { color: rgba(255, 255, 255, .92); max-width: 392px; }
.serv-list {
  list-style: none;
  margin: 1.16rem 0 1.42rem;
}
.serv-list li {
  padding: 0.41rem 0 0.41rem 1.25rem;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  font-size: 0.8rem;
}
.serv-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 9px;
  height: 3px;
  background: #fff;
  transform: skewX(-30deg);
}
.mapritecnica-img img {
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  width: 100%;
  object-fit: cover;
}

/* ---------- Brand logo marquee (inside Servicios) ---------- */
.brands-inline { margin-top: clamp(2.14rem, 4.27vw, 3.2rem); }
.brands-inline h3 {
  text-align: center;
  font-size: 0.89rem;
  margin-bottom: 1.02rem;
}
.logo-marquee {
  overflow: hidden;
  /* Fade the strip out at both edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeSlide 90s linear infinite;
}
.logo-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
}
/* Each logo keeps the uniform 2:1 cell it was designed in, so relative
   logo sizes stay balanced; the cell's own padding spaces the strip. */
.marquee-group img {
  height: clamp(57px, 7.12vw, 85px);
  width: auto;
  display: block;
}
/* The track holds two identical groups; sliding one full group width
   (-50%) loops seamlessly. */
@keyframes marqueeSlide {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Presence ---------- */
.presence-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.02rem;
  align-items: stretch;
}

/* Stylized minimalist map */
.presence-map {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(0.89rem, 2.14vw, 1.6rem);
  display: flex;
  align-items: center;
}
.presence-map svg { width: 100%; height: auto; }
.map-neighbor {
  fill: #eeeef0;
  stroke: #fff;
  stroke-width: 1.5;
}
.map-country {
  fill: #dedfe3;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-linejoin: round;
  transition: fill .3s;
}
.presence-map:hover .map-country { fill: #d6d7dc; }
.map-label {
  font-family: 'Decimal', 'Helvetica Neue', Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  fill: #9a9aa0;
  text-anchor: middle;
}
.map-pin .dot {
  fill: var(--red);
  stroke: #fff;
  stroke-width: 2;
}
.map-pin .pulse {
  fill: var(--red);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: pinPulse 2.4s var(--ease) infinite;
}
.map-pin:nth-of-type(2) .pulse { animation-delay: .5s; }
.map-pin:nth-of-type(3) .pulse { animation-delay: 1s; }
@keyframes pinPulse {
  0% { transform: scale(.35); opacity: .45; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .map-pin .pulse { animation: none; }
}
.map-pin .pin-label {
  font-family: 'Decimal', 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  fill: var(--ink);
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(246, 246, 247, .85);
  stroke-width: 3;
}

.presence-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.02rem;
}
.presence-card {
  border-radius: var(--radius);
  padding: 1.42rem 1.25rem;
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease);
}
.presence-card:hover { transform: translateY(-6px); }
.presence-card::after {
  content: '';
  position: absolute;
  right: -46px;
  bottom: -41px;
  width: 147px;
  height: 98px;
  background: url('../assets/img/icon-1.png') no-repeat center / contain;
  opacity: .55;
}
.presence-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 0.53rem;
}
.presence-card h3 { font-size: 1.16rem; margin-bottom: 0.27rem; }
.presence-card p { color: rgba(255, 255, 255, .7); font-size: 0.76rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.78rem, 4.27vw, 3.56rem);
  align-items: start;
}
.contact-copy h2 { margin-bottom: 0.76rem; }
.contact-copy > p { color: var(--gray); max-width: 312px; }
.contact-info { list-style: none; margin-top: 1.33rem; }
.contact-info a {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-block;
  padding: 0.23rem 0;
  transition: color .25s;
}
.contact-info a:hover { color: var(--red); }

.contact-form {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.16rem, 2.58vw, 1.82rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.contact-form label { display: flex; flex-direction: column; gap: 0.31rem; }
.contact-form label span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray);
}
.contact-form input, .contact-form textarea {
  font: inherit;
  padding: 0.58rem 0.71rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  transition: border-color .25s, box-shadow .25s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192, 32, 44, .12);
}
.contact-form .btn { align-self: flex-start; margin-top: 0.31rem; }
.form-status { font-size: 0.75rem; min-height: 1.4em; }
.form-status.ok { color: #1a7f37; }
.form-status.error { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--red);
  color: #fff;
  overflow: hidden;
}
.site-footer .container { position: relative; z-index: 2; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.78rem;
  padding: clamp(2.14rem, 4.27vw, 3.2rem) 0 1.42rem;
}
.footer-logo {
  height: 105px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left top;
}
@media (max-width: 600px) { .footer-logo { height: 77px; } }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 0.53rem; }
.footer-nav a, .footer-contact a {
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color .25s;
}
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 1.02rem 0 1.33rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, .5);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg img { transform: none !important; }
  .hero-copy, .hero-promo { transition: none; }
  .scroll-hint span { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-scrim {
    background: linear-gradient(180deg,
      rgba(255, 255, 255, .95) 0%,
      rgba(255, 255, 255, .88) 60%,
      rgba(255, 255, 255, .6) 100%);
  }
  .mapritecnica-grid, .contact-grid { grid-template-columns: 1fr; }
  .mapritecnica-img { order: -1; }
  .presence-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.42rem; }
}

/* Collapse to the burger menu well before the (large) logo can collide
   with the nav links (the Spanish nav needs ~1140px to fit). */
@media (max-width: 1160px) {
  .burger { display: flex; }
  .header-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.11rem 6vw 1.51rem;
    gap: 0.89rem;
    box-shadow: 0 18px 30px rgba(0, 0, 0, .12);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .site-header.nav-open .header-nav {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .site-header.nav-open { background: #fff; }
  .site-header.nav-open .logo-text { filter: brightness(0); }
  .header-nav a, .site-header.nav-open .header-nav a { color: var(--ink); }
  .site-header.nav-open .lang-toggle { color: var(--ink); border-color: var(--line); }
}

@media (max-width: 820px) {
  .form-row { grid-template-columns: 1fr; }
}
