/* =========================================================================
   EuroLatam Solutions Group — BASE
   Tokens, reset y tipografía. Derivado del Design System v2.0 (Dark Cinematic).
   Ningún valor de color/espaciado debe escribirse "a mano" en otros archivos:
   usar siempre las variables de este archivo.
   ========================================================================= */

:root {
  /* --- 01 · COLOR ------------------------------------------------------- */
  /* Primarios */
  --deep-space: #07101e;
  --dark-navy: #0d1b2e;
  --sky-blue: #4a96d4;
  /* Secundarios */
  --navy-mid: #142236;
  --navy-light: #1e3352;
  --blue-light: #7bb8e8;
  --blue-deep: #2271b3;
  /* Neutros */
  --white: #ffffff;
  --off-white: #f0f4f8;
  --steel-gray: #8899b0;
  --muted: #2c3e54;

  /* Roles semánticos (usar estos, no los nombres de color) */
  --bg-1: var(--deep-space); /* base de página */
  --bg-2: var(--dark-navy); /* tarjetas y paneles */
  --bg-3: var(--navy-mid); /* superficies anidadas */
  --bg-4: var(--navy-light); /* estados hover */
  --accent: var(--sky-blue); /* CTA, nav activa, eyebrow, headline en cursiva */
  --fg-1: var(--white); /* texto primario */
  --fg-2: var(--steel-gray); /* texto secundario */

  /* Bordes y líneas (03 · Rahmen & Trennlinien) */
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-accent: rgba(74, 150, 212, 0.5);

  /* --- 02 · TIPOGRAFÍA -------------------------------------------------- */
  --font-display: 'Barlow', 'Helvetica Neue', Arial, sans-serif; /* titulares, nav, labels, botones, cifras */
  --font-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif; /* texto corrido */

  /* Escala fluida: móvil → escritorio */
  --fs-hero: clamp(2.25rem, 1.25rem + 4.4vw, 3.75rem); /* 36 → 60px */
  --fs-h2: clamp(1.75rem, 1.28rem + 2.1vw, 2.5rem); /* 28 → 40px */
  --fs-h3: clamp(1.25rem, 1.13rem + 0.55vw, 1.5rem); /* 20 → 24px */
  --fs-body: 1rem; /* 16px  · DM Sans 400 */
  --fs-body-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-small: 0.875rem;
  --fs-stat: clamp(2rem, 1.4rem + 2.6vw, 3rem); /* 32 → 48px */
  --fs-label: 0.6875rem; /* 11px · eyebrow / labels */

  --lh-tight: 1.08;
  --lh-heading: 1.2;
  --lh-body: 1.7;
  --tracking-label: 0.25em; /* 4px @ 11px — eyebrow, labels, badges */
  --tracking-btn: 0.16em; /* 2px @ 12px — botones */

  /* --- 03 · ESPACIADO (raster de 8px) ----------------------------------- */
  --sp-xs: 4px;
  --sp-s: 8px;
  --sp-m: 16px; /* base */
  --sp-l: 24px;
  --sp-xl: 32px;
  --sp-2xl: 48px;
  --sp-3xl: 64px;
  --sp-4xl: 80px;
  --section-y: clamp(48px, 6vw, 88px); /* ritmo vertical entre secciones */

  /* --- 03 · FORMA ------------------------------------------------------- */
  --radius-btn: 2px; /* 0–2px · carácter industrial */
  --radius-card: 8px; /* 4–8px */
  --radius-panel: 8px;
  --radius-media: 16px; /* fotos y vídeos grandes */
  --radius-pill: 40px; /* excepción */
  --radius-round: 50%; /* excepción · botón play */

  /* --- LAYOUT ----------------------------------------------------------- */
  --container: 1240px;
  --container-narrow: 820px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 84px;

  /* --- MOVIMIENTO (sutil, nunca decorativo) ----------------------------- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 160ms var(--ease);
  --t: 260ms var(--ease);
  --t-slow: 600ms var(--ease);

  --z-header: 100;
  --z-menu: 200;
  --z-fab: 90;
}

/* --- RESET ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-l));
}

body {
  min-height: 100svh;
  background-color: var(--bg-1);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

/* Fondo de reserva sólo en las fotos, nunca en logos ni iconos con transparencia */
.card__media,
.split__media,
.member__photo,
.office__media,
.hero__bg,
.page-hero__bg {
  background-color: var(--bg-3);
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
}

::selection {
  background: var(--accent);
  color: var(--deep-space);
}

/* --- TIPOGRAFÍA ----------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  line-height: var(--lh-heading);
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.005em;
}

h3 {
  font-size: var(--fs-h3);
}

p {
  text-wrap: pretty;
}

/* Segunda línea del titular en cursiva Sky Blue.
   REGLA DE MARCA: máximo 1 línea cursiva por titular. */
.headline-accent {
  display: block;
  font-weight: 300;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0;
}

/* Eyebrow — firma de composición: línea 32px + 16px gap + Barlow 500 11px */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-m);
  margin-bottom: var(--sp-l);
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fg-2);
}

.eyebrow::before {
  content: '';
  flex: none;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.eyebrow--center {
  justify-content: center;
}

.lead {
  font-size: var(--fs-body-lg);
  color: var(--fg-2);
  max-width: 62ch;
}

.text-muted {
  color: var(--fg-2);
}

/* --- LAYOUT --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--section-y);
}

.section--alt {
  background: var(--bg-2);
}

.section__head {
  max-width: 68ch;
  margin-bottom: var(--sp-3xl);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head p {
  margin-top: var(--sp-m);
  color: var(--fg-2);
  font-size: var(--fs-body-lg);
}

.grid {
  display: grid;
  gap: var(--sp-l);
}

@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--2-lg {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- ACCESIBILIDAD -------------------------------------------------------- */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-btn);
}

.skip-link {
  position: absolute;
  top: var(--sp-s);
  left: var(--sp-s);
  z-index: 999;
  padding: var(--sp-s) var(--sp-m);
  background: var(--accent);
  color: var(--deep-space);
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius-btn);
  transform: translateY(-200%);
  transition: transform var(--t-fast);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

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

/* --- REVELADO AL HACER SCROLL (progresivo: sin JS, el contenido se ve) ----- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}

.reveal.is-visible,
.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
