/* Linkgerie México — sitio corporativo
   Dos superficies, como el brand book de Wacoal: el negro del set (#090A09) para la fotografía en color,
   y una página clara para el texto y la fotografía en blanco y negro. Azul acero como único acento.
   Tipografía: Archivo (ancho normal para texto; expandido en mayúsculas para rótulos, como GT America Expanded)
   y Newsreader (la serif de los títulos y las frases, como Wulkan Display). Las fotos van enteras, sin recorte. */

:root {
  --black: #090A09;
  --black-2: #121311;
  --paper: #FFFFFF;
  --paper-2: #F5F5F5;
  --ink: #121311;
  --white: #F4F2EE;

  --blue: #2F4A78;
  --blue-deep: #1E3358;
  --blue-light: #8FA9D6;

  /* tokens que cambian con el tema */
  --bg: var(--black);
  --bg-2: var(--black-2);
  --fg: var(--white);
  --muted: rgba(244, 242, 238, .66);
  --faint: rgba(244, 242, 238, .42);
  --line: rgba(244, 242, 238, .13);
  --accent: var(--blue-light);

  --serif: "Newsreader", "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --max: 1240px;
  --pad: clamp(20px, 5vw, 72px);
  --nav-h: 84px;
}

.light {
  --bg: var(--paper);
  --bg-2: var(--paper-2);
  --fg: var(--ink);
  --muted: rgba(18, 19, 17, .68);
  --faint: rgba(18, 19, 17, .45);
  --line: rgba(18, 19, 17, .14);
  --accent: var(--blue);
  background: var(--bg); color: var(--fg);
}

/* bloque oscuro dentro de una página clara: devuelve los tokens del tema oscuro */
.dark {
  --bg: var(--black);
  --bg-2: var(--black-2);
  --fg: var(--white);
  --muted: rgba(244, 242, 238, .66);
  --faint: rgba(244, 242, 238, .42);
  --line: rgba(244, 242, 238, .13);
  --accent: var(--blue-light);
  background: var(--bg); color: var(--fg);
}

* { box-sizing: border-box; }
html { background: var(--black); }
body {
  margin: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.page-nosotros, body.page-contacto, body.page-gracias, body.page-aviso-de-privacidad { background: var(--paper); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
ul { margin: 0; padding: 0; list-style: none; }
p, figure, blockquote { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }

/* ---------- tipografía ---------- */

.kicker, .eyebrow {
  font-family: var(--sans); font-stretch: 125%; font-weight: 500;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}
h1 {
  font-family: var(--serif); font-weight: 400; font-optical-sizing: auto;
  font-size: clamp(40px, 5.6vw, 76px); line-height: 1.04; letter-spacing: -.01em; max-width: 17ch;
}
h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 3.6vw, 50px); line-height: 1.1; letter-spacing: -.005em; max-width: 22ch;
}
.lead { font-size: clamp(16px, 1.4vw, 19px); max-width: 52ch; color: var(--muted); }
.section-intro { font-size: 17px; max-width: 56ch; color: var(--muted); }
.chapter-lead {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; max-width: 30ch; color: var(--fg);
}

.btn {
  display: inline-block; font-stretch: 125%; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  padding: 15px 28px; border: 1px solid rgba(244, 242, 238, .5); background: rgba(244, 242, 238, .06);
  transition: border-color .2s, background .2s;
}
.btn:hover { border-color: var(--white); background: rgba(244, 242, 238, .12); }
.btn-ghost { background: none; border-color: rgba(244, 242, 238, .28); }
.link-arrow {
  display: inline-block; font-stretch: 125%; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  color: var(--accent); padding-bottom: 4px; border-bottom: 1px solid currentColor;
}
.link-arrow::after { content: " →"; }
.credit { font-size: 11px; letter-spacing: .06em; color: var(--faint); }
.credit-inline { font-size: 11px; letter-spacing: .06em; color: var(--faint); margin-top: 10px; }

/* ---------- barra ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 32px;
  padding: 22px var(--pad);
  background: linear-gradient(to bottom, rgba(9, 10, 9, .9), rgba(9, 10, 9, 0));
  transition: background .3s, padding .3s;
}
.nav.scrolled {
  padding-top: 14px; padding-bottom: 14px;
  background: rgba(9, 10, 9, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(244, 242, 238, .13);
}
.nav-logo img { width: 132px; }
.logo-on-light { display: none; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a {
  font-stretch: 125%; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  color: rgba(244, 242, 238, .66); padding-bottom: 4px; border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a[aria-current="page"] { color: var(--white); border-bottom-color: var(--blue-light); }
.lang { display: flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .12em; color: rgba(244, 242, 238, .42); }
.lang button { font: inherit; letter-spacing: inherit; color: rgba(244, 242, 238, .42); background: none; border: 0; padding: 2px 0; cursor: pointer; border-bottom: 2px solid transparent; }
.lang button[aria-pressed="true"] { color: var(--white); border-bottom-color: var(--blue-light); }
.nav-toggle { display: none; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; padding: 8px; flex-direction: column; justify-content: center; gap: 6px; }
.nav-toggle span { display: block; height: 1px; background: var(--white); transition: transform .25s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav-mobile { display: none; }

/* barra sobre páginas claras */
body.page-nosotros .nav, body.page-contacto .nav, body.page-gracias .nav, body.page-aviso-de-privacidad .nav { background: linear-gradient(to bottom, rgba(255, 255, 255, .96), rgba(255, 255, 255, 0)); }
body.page-nosotros .nav.scrolled, body.page-contacto .nav.scrolled, body.page-gracias .nav.scrolled, body.page-aviso-de-privacidad .nav.scrolled { background: rgba(255, 255, 255, .92); border-bottom-color: rgba(18, 19, 17, .14); }
body.page-nosotros .logo-on-dark, body.page-contacto .logo-on-dark, body.page-gracias .logo-on-dark, body.page-aviso-de-privacidad .logo-on-dark { display: none; }
body.page-nosotros .logo-on-light, body.page-contacto .logo-on-light, body.page-gracias .logo-on-light, body.page-aviso-de-privacidad .logo-on-light { display: block; }
body.page-nosotros .nav-links a, body.page-contacto .nav-links a, body.page-gracias .nav-links a, body.page-aviso-de-privacidad .nav-links a { color: rgba(18, 19, 17, .62); }
body.page-nosotros .nav-links a:hover, body.page-contacto .nav-links a:hover,
body.page-nosotros .nav-links a[aria-current="page"], body.page-contacto .nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue); }
body.page-nosotros .lang, body.page-contacto .lang, body.page-nosotros .lang button, body.page-contacto .lang button, body.page-gracias .lang, body.page-gracias .lang button, body.page-aviso-de-privacidad .lang, body.page-aviso-de-privacidad .lang button { color: rgba(18, 19, 17, .45); }
body.page-nosotros .lang button[aria-pressed="true"], body.page-contacto .lang button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--blue); }
body.page-nosotros .nav-toggle span, body.page-contacto .nav-toggle span, body.page-gracias .nav-toggle span, body.page-aviso-de-privacidad .nav-toggle span { background: var(--ink); }

/* ---------- hero (foto entera) ---------- */

.hero { position: relative; background: var(--black); color: var(--white); }
.hero-img { width: 100%; height: auto; display: block; animation: hero-in 1.8s ease-out both; }
@keyframes hero-in { from { opacity: .4; } to { opacity: 1; } }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--black) 0%, rgba(9, 10, 9, .7) 30%, rgba(9, 10, 9, 0) 65%),
    linear-gradient(to right, rgba(9, 10, 9, .6), rgba(9, 10, 9, 0) 55%);
}
.hero-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--pad) clamp(48px, 7vw, 96px);
  display: grid; gap: 22px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hero .credit { position: absolute; right: var(--pad); bottom: 16px; color: rgba(244, 242, 238, .42); }
.hero .kicker, .hero .eyebrow { color: var(--blue-light); }
.hero-page .hero-body { padding-bottom: clamp(40px, 6vw, 80px); }
.hero-wide .hero-body { padding-bottom: clamp(28px, 4vw, 56px); }

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden; border-top: 1px solid rgba(244, 242, 238, .13); border-bottom: 1px solid rgba(244, 242, 238, .13);
  padding: 30px 0; background: var(--black);
}
/* la máscara va en el envoltorio interno: los bordes funden al negro de la cinta, nunca al fondo de la página */
.marquee-view {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: scroll 58s linear infinite; }
.marquee-track.reverse { animation-direction: reverse; animation-duration: 64s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; align-items: center; gap: clamp(48px, 6vw, 96px); padding-right: clamp(48px, 6vw, 96px); }
.marquee-list li { display: flex; align-items: center; height: 44px; }
.marquee-list img { height: 26px; width: auto; opacity: .72; transition: opacity .2s; }
.marquee-list li.tall img { height: 44px; }
.marquee-list li:hover img { opacity: 1; }
.marquee-retail .marquee-list img { height: 30px; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .hero-img { animation: none; } }

/* ---------- cifras ---------- */

.stats {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) var(--pad);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.stats div { display: grid; gap: 8px; padding-left: 18px; border-left: 1px solid var(--line); }
.stats strong { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 5.4vw, 74px); line-height: .95; letter-spacing: -.02em; }
.stats span { font-size: 13px; letter-spacing: .04em; color: var(--muted); max-width: 18ch; }

/* ---------- apertura de página y capítulos (páginas claras) ---------- */

.page-open {
  max-width: var(--max); margin: 0 auto;
  padding: calc(var(--nav-h) + clamp(56px, 8vw, 110px)) var(--pad) clamp(40px, 5vw, 64px);
  display: grid; gap: 22px;
}
.bn-row {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.bn-row img { width: 100%; height: auto; }
.bn-row .credit-inline { grid-column: 1 / -1; }

.chapter { padding: clamp(64px, 9vw, 128px) var(--pad); }
.chapter-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.chapter-inner.chapter-text-only { grid-template-columns: 1fr 1fr; align-items: start; }
.chapter-img { max-width: 440px; }
.chapter-img img { width: 100%; height: auto; }
.chapter-text { display: grid; gap: 20px; }
.chapter-text p { color: var(--muted); max-width: 56ch; }
.chapter-text .chapter-lead { color: var(--fg); }
.chapter-text .link-arrow { justify-self: start; }

/* ---------- mapa de orígenes y cadenas (home) ---------- */

.map-section { padding: clamp(64px, 9vw, 128px) var(--pad) clamp(24px, 4vw, 48px); }
.map-inner { max-width: var(--max); margin: 0 auto; display: grid; gap: clamp(28px, 4vw, 48px); }
.map-head { display: grid; grid-template-columns: 1fr auto; gap: 18px clamp(40px, 8vw, 140px); align-items: center; }
.map-head-text { display: grid; gap: 18px; }
.map-logo { width: clamp(180px, 22vw, 300px); height: auto; justify-self: end; opacity: .9; }
.map { width: 100%; height: auto; }
.chains { padding: clamp(40px, 6vw, 72px) var(--pad) clamp(64px, 9vw, 128px); }
.chains-inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 28px; }
.chains-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.chains-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.chains-list li { background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 30px 24px; min-height: 108px; }
.chains-list img { max-height: 34px; max-width: 150px; width: auto; height: auto; opacity: .85; }

/* ---------- sección genérica ---------- */

.section { padding: clamp(64px, 9vw, 128px) var(--pad); }
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }

/* ---------- frases (statement) ---------- */

.statement { padding: clamp(80px, 11vw, 150px) var(--pad); background: var(--bg-2); }
.statement-inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 24px; justify-items: start; }
.statement-blue { background: var(--blue-deep); color: var(--white); }
.statement-blue .kicker { color: rgba(244, 242, 238, .6); }
.statement-text { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 52px); line-height: 1.15; max-width: 28ch; }
.statement-blue .link-arrow { color: var(--white); }

.pillars-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; width: 100%; }
.pillars-list li { display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid rgba(244, 242, 238, .2); }
.pillars-list .num { font-family: var(--serif); font-size: 40px; line-height: 1; color: rgba(244, 242, 238, .55); }
.pillars-list strong { font-weight: 500; font-size: 17px; }
.pillars-list span:last-child { font-size: 14px; color: rgba(244, 242, 238, .7); }

/* categorías (marcas) */
.statement-lead { color: var(--white); max-width: 34ch; }
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(32px, 6vw, 96px); width: 100%; margin-top: 16px; }
.cats li { display: grid; grid-template-columns: 56px 1fr; grid-template-areas: "n t" "n d"; column-gap: 12px; row-gap: 2px; padding: 18px 0; border-top: 1px solid rgba(244, 242, 238, .2); }
.cat-num { grid-area: n; font-family: var(--serif); font-size: 26px; line-height: 1.2; color: rgba(244, 242, 238, .5); }
.cats strong { grid-area: t; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; }
.cats li > span:last-child { grid-area: d; font-size: 14px; color: rgba(244, 242, 238, .68); }

/* tarjetas con marco (nosotros) */
.cards-section { background: var(--paper-2); padding: clamp(64px, 9vw, 128px) var(--pad); }
.cards-inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 32px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cards li { display: grid; grid-template-rows: auto auto 1fr; gap: 16px; padding: 36px 32px 34px; background: var(--paper); border: 1px solid rgba(18, 19, 17, .16); border-radius: 16px; box-shadow: 0 1px 0 rgba(18, 19, 17, .04); }
.cards-section.dark { background: var(--black); }
.cards-section.dark .cards li { background: var(--paper); color: var(--ink); border-color: rgba(18, 19, 17, .18); box-shadow: 0 12px 40px rgba(0, 0, 0, .35); }
.card-num { font-stretch: 125%; font-size: 12px; letter-spacing: .18em; font-weight: 500; color: var(--blue); }
.cards-section.dark .card-num { color: var(--blue); }
.cards strong { font-family: var(--sans); font-stretch: 125%; font-weight: 500; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; line-height: 1.4; }
.cards p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.card-foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-stretch: 125%; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--faint); }
.cards-inner > .link-arrow { justify-self: start; }

/* ---------- puertas (inicio) ---------- */

.doors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--black); color: var(--white); }
.door { position: relative; overflow: hidden; aspect-ratio: 16 / 10; display: block; background: var(--black-2); }
.door img { width: 100%; height: 100%; object-fit: cover; opacity: .84; transition: transform 1.2s ease, opacity .4s; }
.door:hover img { transform: scale(1.03); opacity: 1; }
.door::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(9, 10, 9, .92), rgba(9, 10, 9, .1) 55%); }
.door-text { position: absolute; left: clamp(20px, 3vw, 40px); right: 20px; bottom: clamp(20px, 3vw, 36px); z-index: 1; display: grid; gap: 6px; }
.door-num { font-family: var(--serif); font-size: 22px; color: var(--blue-light); }
.door-title { font-family: var(--serif); font-size: clamp(30px, 3.2vw, 44px); line-height: 1; }
.door-sub { font-size: 13px; letter-spacing: .04em; color: rgba(244, 242, 238, .66); }

/* ---------- pilares (marcas) ---------- */

.pillar {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 8vw, 120px) var(--pad);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center;
  border-top: 1px solid var(--line);
}
.pillar-rev .pillar-text { order: -1; }
.pillar-img img { width: 100%; height: auto; }
.pillar-img-bn { max-width: 460px; justify-self: center; }
.pillar-text { display: grid; gap: 16px; }
.pillar-num { font-family: var(--serif); font-size: clamp(64px, 8vw, 120px); line-height: .9; color: var(--accent); letter-spacing: -.02em; }
.logo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 20px; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.logo-grid li { display: flex; align-items: center; min-height: 34px; }
.logo-grid img { width: auto; height: auto; max-height: 40px; max-width: 130px; opacity: .88; }
.logo-grid li.tall img { max-height: 62px; }
.logo-text { font-family: var(--serif); font-size: 26px; line-height: 1; letter-spacing: .04em; opacity: .88; }

/* ---------- presencia ---------- */

.retail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.retail-grid li { background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 34px 26px; min-height: 120px; }
.retail-grid img { max-height: 36px; max-width: 150px; width: auto; height: auto; opacity: .82; transition: opacity .2s; }
.retail-grid li:hover img { opacity: 1; }

/* ---------- operación ---------- */

.ops { display: grid; border-top: 1px solid var(--line); }
.ops li { display: grid; grid-template-columns: 90px 1fr; grid-template-areas: "n t" "n d"; column-gap: 20px; row-gap: 6px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.ops .num { grid-area: n; font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--accent); }
.ops strong { grid-area: t; font-weight: 500; font-size: 18px; color: var(--fg); }
.ops span:last-child { grid-area: d; font-size: 15px; color: var(--muted); max-width: 60ch; }

/* ---------- contacto ---------- */

.contact-hero {
  max-width: var(--max); margin: 0 auto;
  padding: calc(var(--nav-h) + clamp(56px, 8vw, 110px)) var(--pad) clamp(56px, 8vw, 110px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start;
}
.contact-intro { display: grid; gap: 22px; }
.contact-intro h1 { font-size: clamp(48px, 6vw, 88px); max-width: 12ch; }
.contact-list { display: grid; }
.contact-list li { display: grid; gap: 8px; padding: 26px 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-label { font-stretch: 125%; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: var(--faint); }
.contact-value { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; overflow-wrap: anywhere; }
a.contact-value:hover { color: var(--accent); }

/* formulario */
.contact-intro .contact-list { margin-top: 12px; }
.contact-form { display: grid; gap: 18px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); background: var(--paper-2); }
.contact-form .hp { position: absolute; left: -9999px; }
.field { display: grid; gap: 6px; }
.field label { font-stretch: 125%; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--faint); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--fg); background: transparent;
  border: 0; border-bottom: 1px solid rgba(18, 19, 17, .35); padding: 10px 0; border-radius: 0; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--blue); }
.field textarea { resize: vertical; min-height: 120px; }
.form-legal { font-size: 12px; color: var(--muted); }
.form-legal a { text-decoration: underline; }
.btn-dark { justify-self: start; color: var(--white); background: var(--ink); border-color: var(--ink); }
.btn-dark:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.page-open-tall { min-height: 60vh; align-content: start; }
.legal-text { padding-top: 0; }
.legal-text p { max-width: 64ch; margin-bottom: 18px; color: var(--muted); }
.footer .legal a { text-decoration: underline; }

/* ---------- pie ---------- */

.footer { background: var(--black-2); color: rgba(244, 242, 238, .66); padding: 64px var(--pad) 40px; border-top: 1px solid rgba(244, 242, 238, .13); }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 22px; }
.footer-top { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer img { width: 150px; }
.footer-links { display: flex; gap: 24px; margin-left: auto; flex-wrap: wrap; }
.footer-links a { font-stretch: 125%; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: rgba(244, 242, 238, .66); }
.footer-links a:hover { color: var(--white); }
.footer-line { font-size: 15px; max-width: 48ch; }
.footer .legal { font-size: 12px; color: rgba(244, 242, 238, .42); padding-top: 18px; border-top: 1px solid rgba(244, 242, 238, .13); display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .stats, .pillars-list, .cards { grid-template-columns: repeat(2, 1fr); }
  .retail-grid, .chains-list { grid-template-columns: repeat(3, 1fr); }
  .hero { padding-top: var(--nav-h); }
  .hero-body { position: static; padding-top: 28px; }
  .hero-shade { display: none; }
  .hero .credit { position: static; padding: 0 var(--pad) 12px; text-align: right; }
}
@media (max-width: 780px) {
  :root { --nav-h: 72px; }
  .nav { gap: 18px; padding: 16px var(--pad); }
  .nav-links { display: none; }
  .lang { margin-left: auto; }
  .nav-toggle { display: flex; }
  .nav-mobile {
    position: fixed; top: 0; left: 0; right: 0; z-index: 19;
    padding: 96px var(--pad) 32px; background: rgba(9, 10, 9, .97); color: var(--white);
    display: grid; gap: 18px; transform: translateY(-110%); transition: transform .3s ease;
    border-bottom: 1px solid rgba(244, 242, 238, .13);
  }
  .nav-mobile.open { transform: none; }
  .nav-mobile a { font-family: var(--serif); font-size: 30px; }
  body.page-nosotros .nav-mobile, body.page-contacto .nav-mobile { background: rgba(255, 255, 255, .97); color: var(--ink); }

  .doors { grid-template-columns: 1fr; }
  .chapter-inner, .chapter-inner.chapter-text-only, .pillar, .contact-hero { grid-template-columns: 1fr; }
  .chapter-img { max-width: 100%; }
  .pillar-rev .pillar-text { order: 0; }
  .pillar-img { order: 2; }
  .bn-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .retail-grid, .chains-list { grid-template-columns: repeat(2, 1fr); }
  .cats, .cards { grid-template-columns: 1fr; }
  .ops li { grid-template-columns: 60px 1fr; }
  .contact-intro h1 { font-size: 46px; }
}

/* ---------- hero partido: texto + foto cuadrada en blanco y negro (prueba 14-sep) ---------- */

.hero-split { position: relative; background: var(--bg); color: var(--fg); padding-top: var(--nav-h); }
.hero-split-inner {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 6vw, 88px) var(--pad) clamp(48px, 7vw, 96px);
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center;
}
.hero-split-text { display: grid; gap: 22px; }
.hero-split-text .eyebrow { color: var(--accent); }
.hero-split-figure { margin: 0; }
.hero-split-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; animation: hero-in 1.8s ease-out both; }
.hero-split-figure .credit { display: block; margin-top: 10px; text-align: left; }
.hero-split.light .btn { border-color: rgba(18, 19, 17, .5); background: rgba(18, 19, 17, .04); color: var(--ink); }
.hero-split.light .btn:hover { border-color: var(--ink); background: rgba(18, 19, 17, .08); }
.hero-split.light .btn-ghost { background: none; border-color: rgba(18, 19, 17, .28); }

/* si el hero es claro, la barra se comporta como en las páginas claras */
body:has(.hero-split.light) { background: var(--paper); }
/* las cifras llevan su propio negro a todo el ancho: ya no dependen del fondo del cuerpo */
body:has(.hero-split.light) .stats {
  max-width: none; background: var(--black); color: var(--white);
  padding-left: max(var(--pad), calc((100% - var(--max)) / 2));
  padding-right: max(var(--pad), calc((100% - var(--max)) / 2));
}
body:has(.hero-split.light) .nav { background: linear-gradient(to bottom, rgba(255, 255, 255, .96), rgba(255, 255, 255, 0)); }
body:has(.hero-split.light) .nav.scrolled { background: rgba(255, 255, 255, .92); border-bottom-color: rgba(18, 19, 17, .14); }
body:has(.hero-split.light) .logo-on-dark { display: none; }
body:has(.hero-split.light) .logo-on-light { display: block; }
body:has(.hero-split.light) .nav-links a { color: rgba(18, 19, 17, .62); }
body:has(.hero-split.light) .nav-links a:hover, body:has(.hero-split.light) .nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue); }
body:has(.hero-split.light) .lang, body:has(.hero-split.light) .lang button { color: rgba(18, 19, 17, .45); }
body:has(.hero-split.light) .lang button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--blue); }
body:has(.hero-split.light) .nav-toggle span { background: var(--ink); }
body:has(.hero-split.light) .nav-mobile { background: rgba(255, 255, 255, .97); color: var(--ink); }

@media (max-width: 860px) {
  .hero-split-inner { grid-template-columns: 1fr; gap: 28px; padding-top: 20px; }
  .hero-split-figure { order: -1; margin: 0 calc(-1 * var(--pad)); }
  .hero-split-figure .credit { padding-left: var(--pad); }
  .map-head { grid-template-columns: 1fr; }
  .map-logo { justify-self: start; width: 160px; }
}
@media (prefers-reduced-motion: reduce) { .hero-split-img { animation: none; } }

/* banda oscura de la home: la cinta funde a negro en los bordes y hay aire negro antes de ella */
.band-dark { background: var(--black); color: var(--white); padding-top: clamp(48px, 6vw, 80px); }
/* ---------- categorías sobre blanco: letras celestes, líneas negras (prueba 14-sep) ---------- */
.statement-light { background: var(--paper); color: var(--ink); }
.statement-light .statement-lead { color: var(--ink); }
.statement-light .cats li { border-top-color: var(--ink); }
.statement-light .kicker { color: var(--blue); }
.statement-light .cats strong { color: var(--ink); }
.statement-light .cat-num { color: rgba(18, 19, 17, .45); }
.statement-light .cats li > span:last-child { color: rgba(18, 19, 17, .68); }

/* ---------- operación: qué hacemos en negro, el proceso en cinco pasos, mapa oscuro ---------- */
.ops-section { background: var(--black); color: var(--white); }
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(20px, 3vw, 40px); list-style: none; padding: 0; margin: 0; }
.process li { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--ink); align-content: start; }
.process-num { font-stretch: 125%; font-size: 12px; letter-spacing: .18em; font-weight: 500; color: var(--blue); }
.process strong { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; }
.process li > span:last-child { font-size: 14px; color: var(--muted); }
.map-dark { background: var(--black); color: var(--white); }
.map-dark .kicker { color: var(--blue-light); }
.map-dark .chapter-lead { color: var(--white); }
@media (max-width: 1000px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .process { grid-template-columns: 1fr; } }
.h2-logo { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25em; }
.h2-logo img { height: .92em; width: auto; align-self: center; position: relative; top: .04em; }
.cards-section.dark .section-intro { color: var(--muted); }
.cards-section.dark .cards p { color: rgba(18, 19, 17, .68); }
