/* =========================================================
   FERSE LOGISTIC S.A. — estilos del sitio estático
   Marca original: Onest · Azul #002EFF · Naranja #FD8002 · Azul secundario #265AA9
   ========================================================= */

/* ---------- Fuente Onest (variable, alojada en el servidor · SIL OFL 1.1) ---------- */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/onest-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/onest-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  /* Marca */
  --blue-600: #002eff;      /* azul de marca (títulos, enlaces, bandas) */
  --blue-700: #0024c7;      /* hover del azul */
  --blue-500: #265aa9;      /* azul secundario del sitio original */
  --orange-500: #fd8002;    /* naranja de marca (CTA de fondo) */
  --orange-600: #e66f00;    /* hover del CTA */
  --orange-700: #b85c00;    /* naranja como texto sobre blanco (AA 4.6:1) */
  --orange-cta: #e06c00;    /* botones de contacto: texto blanco bold 19px = AA texto grande (3.3:1) */
  --orange-cta-hover: #c45e00;

  /* Neutros (tinte azul, una sola familia) */
  --ink-900: #0a1440;       /* texto principal / fondos oscuros */
  --ink-700: #3d4663;       /* texto de párrafo */
  --ink-500: #5f6785;       /* texto secundario */
  --line: #dfe4f0;
  --surface: #ffffff;
  --surface-soft: #f4f6fb;

  /* Tipografía */
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.875rem;                                   /* 14 */
  --fs-sm: 0.9375rem;                                  /* 15 */
  --fs-base: 1.0625rem;                                /* 17 */
  --fs-lg: clamp(1.125rem, 1rem + 0.4vw, 1.25rem);     /* 18–20 */
  --fs-h4: 1.1875rem;                                  /* 19 */
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);     /* 20–24 */
  --fs-h2: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);     /* 30–44 */
  --fs-h1: clamp(2.25rem, 1.5rem + 3.4vw, 4rem);       /* 36–64 */
  --lh-body: 1.65;
  --lh-tight: 1.12;
  --lh-snug: 1.3;

  /* Espaciado (base 4px) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --section-y: clamp(2.5rem, 1.75rem + 3vw, 4.5rem);   /* espacio vertical entre bloques */
  --gutter: clamp(1.25rem, 0.75rem + 2.5vw, 2.5rem);
  --container: 75rem; /* 1200px */
  --measure: 62ch;

  /* Superficies */
  --radius-btn: 10px;       /* redondez de todos los botones */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgb(10 20 64 / 0.06), 0 2px 8px rgb(10 20 64 / 0.06);
  --shadow-md: 0 10px 30px -12px rgb(10 20 64 / 0.22);

  /* Capas */
  --header-h: 7rem;         /* alto del header (logo +35% y luego +25%) */
  --z-header: 50;
  --z-menu: 60;
  --z-totop: 40;

  /* Movimiento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur: 240ms;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgb(0 46 255 / 0.15);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink-700);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink-900);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: var(--lh-snug); letter-spacing: -0.01em; }
h4 { font-size: var(--fs-h4); font-weight: 600; line-height: var(--lh-snug); letter-spacing: -0.005em; }
p {
  margin: 0;
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}
p + p { margin-top: var(--sp-4); }
a { color: var(--blue-600); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-700); }
a[href^="tel:"] { white-space: nowrap; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
a, button, input, textarea { touch-action: manipulation; }
main:focus { outline: none; }
ul { margin: 0; padding: 0; }
address { font-style: normal; }

:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible,
.on-dark:focus-visible { outline-color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--sp-4); top: -100px;
  z-index: 100;
  padding: var(--sp-3) var(--sp-4);
  background: var(--ink-900); color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--sp-4); color: #fff; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--soft { background: var(--surface-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-500);
}
.eyebrow::before {
  content: ""; width: 1.5rem; height: 3px; border-radius: 2px;
  background: var(--orange-500);
}
.on-dark .eyebrow { color: #c9d4ff; }

.section-head { max-width: 46rem; margin-bottom: var(--sp-6); }
.section-head p { margin-top: var(--sp-4); font-size: var(--fs-lg); }
.lead { font-size: var(--fs-base); color: var(--ink-700); max-width: var(--measure); }
.split__body > p:not(.eyebrow):not(.tagline),
.section-head > p:not(.eyebrow) {
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink-700);
  max-width: var(--measure);
}
.prose { max-width: var(--measure); }
.prose p { color: var(--ink-700); }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--orange-500);
  --btn-fg: var(--ink-900);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-btn);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 1rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:hover { --btn-bg: var(--orange-600); color: var(--btn-fg); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--blue { --btn-bg: var(--blue-600); --btn-fg: #fff; }
.btn--blue:hover { --btn-bg: var(--blue-700); }
/* Botones de contacto (WhatsApp): naranja de marca oscurecido + texto blanco */
.btn--wa {
  --btn-bg: var(--orange-cta);
  --btn-fg: #fff;
  font-size: 1.1875rem;
  font-weight: 700;
}
.btn--wa:hover { --btn-bg: var(--orange-cta-hover); color: #fff; }
.btn--wa svg { width: 1.25em; height: 1.25em; }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: #fff;
  border-color: rgb(255 255 255 / 0.7);
}
.btn--ghost:hover { --btn-bg: #fff; --btn-fg: var(--ink-900); border-color: #fff; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-weight: 600; text-decoration: none;
}
.link-arrow svg { width: 1em; height: 1em; transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Barra superior ---------- */
.topbar {
  display: none;
  background: var(--ink-900);
  color: #d7ddf0;
  font-size: var(--fs-xs);
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5);
  min-height: 2.75rem;
}
.topbar__info { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-6); }
.topbar__item { display: inline-flex; align-items: center; gap: var(--sp-2); }
.topbar__item svg { width: 1rem; height: 1rem; color: var(--orange-500); flex: none; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
@media (min-width: 64rem) { .topbar { display: block; } }

/* ---------- Social ---------- */
.social { display: flex; gap: var(--sp-2); list-style: none; }
.social a {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-btn);
  color: inherit;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.social svg { width: 1.125rem; height: 1.125rem; }
.topbar .social a { width: 36px; height: 36px; }
.topbar .social a:hover { background: rgb(255 255 255 / 0.12); }
.social--solid a { background: var(--blue-600); color: #fff; }
.social--solid a:hover { background: var(--blue-700); color: #fff; }

/* ---------- Header / navegación ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: #fff; /* sólido: el logo PNG tiene fondo blanco */
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5);
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 223px; height: auto; }   /* 132px +35% +25% */
@media (min-width: 64rem) {
  :root { --header-h: 8rem; }
  .brand img { width: 254px; }                /* 150px +35% +25% */
}

.nav-toggle {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px;
  margin-right: calc(var(--sp-2) * -1);
  border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink-900);
  cursor: pointer;
}
.nav-toggle svg { width: 1.5rem; height: 1.5rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: var(--z-menu);
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--sp-4) var(--gutter) var(--sp-6);
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.site-nav.is-open {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s;
}
.site-nav ul { list-style: none; display: grid; gap: var(--sp-1); }
.site-nav a {
  display: flex; align-items: center;
  min-height: 48px;
  padding-inline: var(--sp-3);
  border-radius: var(--radius-sm);
  color: var(--ink-900);
  font-size: 1.0625rem; font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover { background: var(--surface-soft); color: var(--blue-600); }
.site-nav a[aria-current] { color: var(--blue-600); font-weight: 600; }
.site-nav .nav-cta { margin-top: var(--sp-4); }
.site-nav .nav-cta a {
  justify-content: center; gap: var(--sp-2);
  padding-inline: var(--sp-5);
  background: var(--orange-cta); color: #fff;
  border-radius: var(--radius-btn);
  font-size: 1.1875rem; font-weight: 700;
}
.site-nav .nav-cta a:hover { background: var(--orange-cta-hover); color: #fff; }
.site-nav__contact { margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--line); font-size: var(--fs-sm); display: grid; gap: var(--sp-2); }
.site-nav__contact a { min-height: 44px; padding: 0; color: var(--ink-700); font-size: var(--fs-sm); }

@media (min-width: 64rem) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; max-height: none; overflow: visible;
    padding: 0; background: none; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .site-nav ul { display: flex; align-items: center; gap: var(--sp-1); }
  .site-nav a { position: relative; padding-inline: var(--sp-4); font-size: 1rem; }
  .site-nav a:hover { background: none; }
  .site-nav a[aria-current]::after {
    content: ""; position: absolute; left: var(--sp-4); right: var(--sp-4); bottom: 8px;
    height: 2px; border-radius: 2px; background: var(--orange-500);
  }
  .site-nav .nav-cta { margin: 0 0 0 var(--sp-3); }
  .site-nav .nav-cta a { padding-inline: var(--sp-5); }
  .site-nav .nav-cta a::after { display: none; }
  .site-nav__contact { display: none; }
}

/* ---------- Hero (inicio) ---------- */
.hero {
  position: relative; isolation: isolate;
  display: flex; align-items: center;
  min-height: clamp(34rem, 78svh, 46rem);
  color: #fff;
  overflow: hidden;
  background: var(--ink-900);
}
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slides { z-index: -2; }
.hero__slide { opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(10 20 64 / 0.92) 0%, rgb(10 20 64 / 0.72) 45%, rgb(10 20 64 / 0.25) 100%),
    linear-gradient(0deg, rgb(10 20 64 / 0.55), transparent 45%);
}
.hero__content { padding-block: var(--sp-8); max-width: 44rem; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero__tagline {
  display: inline-block;
  margin-top: var(--sp-5);
  padding-left: var(--sp-4);
  border-left: 4px solid var(--orange-500);
  font-size: var(--fs-lg); font-weight: 500; color: #fff;
}
.hero__text { margin-top: var(--sp-5); max-width: 52ch; color: #dfe4f5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero__pause {
  position: absolute; right: var(--gutter); bottom: var(--sp-5);
  display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: 44px; padding: 0 var(--sp-4);
  border: 1px solid rgb(255 255 255 / 0.45); border-radius: var(--radius-btn);
  background: rgb(10 20 64 / 0.45); color: #fff;
  font: 500 var(--fs-xs)/1 var(--font);
  cursor: pointer;
}
.hero__pause[hidden] { display: none; }
.hero__pause:hover { background: rgb(10 20 64 / 0.7); }
.hero__pause svg { width: 0.875rem; height: 0.875rem; }
.hero__pause .icon-play { display: none; }
.hero__pause[aria-pressed="true"] .icon-pause { display: none; }
.hero__pause[aria-pressed="true"] .icon-play { display: block; }

/* ---------- Encabezado de páginas internas ---------- */
.page-hero {
  position: relative; isolation: isolate;
  padding-block: clamp(5rem, 3rem + 8vw, 9rem) clamp(4rem, 2.5rem + 6vw, 7rem);
  color: #fff; background: var(--ink-900); overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(10 20 64 / 0.9), rgb(10 20 64 / 0.55));
}
.page-hero h1 { color: #fff; }
.page-hero p { margin-top: var(--sp-4); max-width: 52ch; font-size: var(--fs-lg); color: #dfe4f5; }
.breadcrumb { margin-bottom: var(--sp-4); font-size: var(--fs-sm); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--sp-2); color: #9aa6cf; }
.breadcrumb a { color: #dfe4f5; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: #fff; }

/* ---------- Bloques a dos columnas ---------- */
.split {
  display: grid; gap: var(--sp-7);
  align-items: center;
}
@media (min-width: 56rem) {
  .split { grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 4vw, 4rem); }
  .split--reverse > :first-child { order: 2; }
}
.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.split__media--cutout img { border-radius: 0; box-shadow: none; }
.split__body h2 + p { margin-top: var(--sp-4); }
.split__body h2 + p, .split__body .lead + p { margin-top: var(--sp-5); }
.split__body .btn, .split__body .link-arrow { margin-top: var(--sp-6); }
.value-title { margin-top: var(--sp-5); margin-bottom: var(--sp-3); font-size: var(--fs-h4); }
.brand-name { display: block; color: var(--blue-600); }
.tagline { margin-top: var(--sp-3); font-size: var(--fs-h3); font-weight: 600; color: var(--blue-500); line-height: var(--lh-snug); }

/* ---------- Servicios ---------- */
.services {
  display: grid; gap: var(--sp-5);
  list-style: none;
}
@media (min-width: 48rem) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .services { grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); } }
.service {
  display: flex; flex-direction: column;
  padding: var(--sp-3) var(--sp-3) var(--sp-6);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.service:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service__media { overflow: hidden; border-radius: var(--radius-md); aspect-ratio: 4 / 3; }
.service__media img { width: 100%; height: 100%; object-fit: cover; }
.service__body { display: flex; flex-direction: column; flex: 1; padding: var(--sp-5) var(--sp-3) 0; }
.service h3 { color: var(--blue-600); }
.service p { margin-top: var(--sp-3); font-size: var(--fs-sm); }
.service .checklist { margin-top: var(--sp-4); }
.service__group + .service__group { margin-top: var(--sp-4); }
.service__group h4 { margin-top: var(--sp-4); font-size: 1rem; color: var(--ink-900); }
.service__group .checklist { margin-top: var(--sp-2); }

.checklist { list-style: none; display: grid; gap: var(--sp-2); font-size: var(--fs-sm); line-height: 1.5; }
.checklist li { display: grid; grid-template-columns: 1.25rem 1fr; gap: var(--sp-2); align-items: start; }
.checklist svg { width: 1.125rem; height: 1.125rem; margin-top: 0.15em; color: var(--orange-700); }
.on-dark .checklist { font-size: var(--fs-base); }
.on-dark .checklist svg { color: var(--orange-500); }
.on-dark .checklist li { color: #eef1fb; }

/* ---------- Banda CTA ---------- */
.cta-band { background: var(--blue-600); color: #fff; }
.cta-band .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-5);
  padding-block: var(--sp-6);
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.cta-band p { margin-top: var(--sp-2); color: #dbe2ff; }

/* ---------- Modalidades (bloques con imagen de fondo) ---------- */
.mode {
  position: relative; isolation: isolate;
  display: flex; align-items: center;
  min-height: 22rem;
  color: #fff; background: var(--ink-900);
  overflow: hidden;
}
.mode__bg { position: absolute; inset: 0; z-index: -2; }
.mode__bg img { width: 100%; height: 100%; object-fit: cover; }
.mode::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(10 20 64 / 0.9) 0%, rgb(10 20 64 / 0.65) 50%, rgb(10 20 64 / 0.15) 100%);
}
.mode--right::before {
  background: linear-gradient(270deg, rgb(10 20 64 / 0.9) 0%, rgb(10 20 64 / 0.65) 50%, rgb(10 20 64 / 0.15) 100%);
}
.mode .container { padding-block: var(--sp-7); }
@media (min-width: 48rem) { .mode { min-height: clamp(22rem, 48svh, 30rem); } }
.mode__content { max-width: 28rem; }
.mode--right .mode__content { margin-left: auto; }
.mode h3 { color: #fff; font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.02em; line-height: var(--lh-tight); }
.mode .checklist { margin-top: var(--sp-5); }
@media (max-width: 47.99rem) {
  .mode::before, .mode--right::before { background: linear-gradient(0deg, rgb(10 20 64 / 0.92) 10%, rgb(10 20 64 / 0.55) 100%); }
}

/* ---------- Experiencia / imágenes apiladas ---------- */
.stack { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--sp-4); align-items: end; }
.stack img { width: 100%; border-radius: var(--radius-lg); object-fit: cover; }
.stack__main { aspect-ratio: 480 / 680; }
.stack__side { display: grid; gap: var(--sp-4); }
.stack__side img { aspect-ratio: 260 / 367; }
.stat {
  padding: var(--sp-5);
  border-radius: var(--radius-lg);
  background: var(--blue-600); color: #fff;
}
.stat__number { display: block; font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat__label { display: block; margin-top: var(--sp-2); font-size: var(--fs-sm); font-weight: 500; color: #dbe2ff; }

/* ---------- Contacto (bloque en inicio y página) ---------- */
.contact-grid { display: grid; gap: var(--sp-5); }
@media (min-width: 48rem) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  display: flex; flex-direction: column; gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.contact-card__icon {
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  border-radius: var(--radius-md);
  background: #e8edff; color: var(--blue-600);
}
.contact-card__icon svg { width: 1.375rem; height: 1.375rem; }
.contact-card h3 { font-size: var(--fs-h4); }
.contact-card p, .contact-card address { font-size: var(--fs-sm); }
.contact-card a { font-weight: 500; word-break: break-word; }

/* ---------- Contacto: WhatsApp + datos ---------- */
.contact-layout { display: grid; gap: var(--sp-4); }
@media (min-width: 64rem) { .contact-layout { grid-template-columns: 1fr 1.2fr; gap: var(--sp-6); align-items: stretch; } }
.contact-main { display: flex; flex-direction: column; gap: var(--sp-4); }
.contact-map {
  flex: 1;
  min-height: 18rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.contact-map iframe { display: block; width: 100%; height: 100%; min-height: 18rem; border: 0; }
.contact-map { display: flex; }
.contact-map iframe { flex: 1; }
/* Vista previa del mapa (no contacta a Google hasta el clic) */
.map-facade {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-5);
  text-align: center;
  background-color: #eef2fa;
  background-image:
    linear-gradient(115deg, transparent 46%, rgb(255 255 255 / 0.95) 46%, rgb(255 255 255 / 0.95) 50%, transparent 50%),
    linear-gradient(20deg, transparent 62%, rgb(255 255 255 / 0.9) 62%, rgb(255 255 255 / 0.9) 64.5%, transparent 64.5%),
    linear-gradient(rgb(10 20 64 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(10 20 64 / 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 28px 28px, 28px 28px;
}
.map-facade__pin {
  display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: var(--orange-cta); color: #fff;
  box-shadow: 0 8px 20px -8px rgb(224 108 0 / 0.6);
}
.map-facade__pin svg { width: 1.75rem; height: 1.75rem; }
.map-facade p { text-align: center; -webkit-hyphens: manual; hyphens: manual; text-wrap: balance; }
.map-facade__place { font-weight: 600; color: var(--ink-900); font-size: var(--fs-sm); }
.map-facade__load svg { width: 1.1em; height: 1.1em; }
.map-facade__note { max-width: 34ch; font-size: var(--fs-xs); color: var(--ink-500); }
.contact-layout .contact-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
.contact-layout .contact-card {
  display: grid; grid-template-columns: 3rem 1fr; column-gap: var(--sp-4); row-gap: var(--sp-1);
  padding: var(--sp-5);
}
.contact-layout .contact-card > :not(.contact-card__icon) { grid-column: 2; }
.contact-layout .contact-card__icon { grid-row: span 3; }
.contact-wa {
  display: grid; grid-template-columns: 3rem 1fr; gap: var(--sp-4); align-items: center;
  padding: var(--sp-5);
  border-radius: var(--radius-lg);
  background: var(--ink-900); color: #dfe4f5;
}
.contact-wa h3 { color: #fff; font-size: var(--fs-h4); }
.contact-wa a { color: #fff; }
.contact-wa .btn { grid-column: 1 / -1; width: 100%; }
.contact-card__icon--wa { background: rgb(255 255 255 / 0.12); color: #fff; }
.contact-social { display: flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-2); font-weight: 600; color: var(--ink-900); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: #b9c2df; font-size: var(--fs-sm); }
.site-footer .container { padding-block: var(--sp-8) var(--sp-6); }
.footer__top { display: grid; gap: var(--sp-6); }
@media (min-width: 48rem) { .footer__top { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer__brand strong { display: block; color: #fff; font-size: 1.125rem; font-weight: 700; }
.footer__brand p { margin-top: var(--sp-2); max-width: 40ch; }
.site-footer h2 { margin-bottom: var(--sp-3); color: #fff; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.footer__links { list-style: none; display: grid; gap: var(--sp-1); }
.footer__links a { display: inline-flex; align-items: center; min-height: 36px; color: #dfe4f5; text-decoration: none; }
.footer__links a:hover { color: #fff; text-decoration: underline; }
.site-footer address a { color: #dfe4f5; }
.site-footer .social { margin-top: var(--sp-3); }
.site-footer .social a { background: rgb(255 255 255 / 0.08); color: #fff; }
.site-footer .social a:hover { background: var(--orange-500); color: var(--ink-900); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3);
  margin-top: var(--sp-7); padding-top: var(--sp-5);
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: var(--fs-xs); color: #9aa6cf;
}

/* ---------- Volver arriba ---------- */
.to-top {
  position: fixed; right: var(--sp-4); bottom: calc(var(--sp-4) + env(safe-area-inset-bottom, 0px)); z-index: var(--z-totop);
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 0; border-radius: var(--radius-btn);
  background: var(--orange-500); color: var(--ink-900);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur), background-color var(--dur);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s, background-color var(--dur); }
.to-top:hover { background: var(--orange-600); }
.to-top svg { width: 1.25rem; height: 1.25rem; }

/* ---------- Página legal ---------- */
.legal { max-width: 46rem; }
.legal h2 { margin-top: var(--sp-7); font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { margin-top: var(--sp-5); font-size: var(--fs-h4); }
.legal p, .legal ul { margin-top: var(--sp-4); }
.legal ul { padding-left: 1.25rem; display: grid; gap: var(--sp-2); }
.legal li::marker { color: var(--orange-700); }
.legal .updated { margin-top: 0; font-size: var(--fs-sm); color: var(--ink-500); }
.pending { padding: 0.05em 0.35em; border-radius: 4px; background: #fff1d6; color: #7a3d00; font-weight: 600; }
.draft-note { margin-bottom: var(--sp-6); padding: var(--sp-4) var(--sp-5); border-left: 4px solid var(--orange-500); border-radius: var(--radius-sm); background: #fff7eb; color: var(--ink-900); font-size: var(--fs-sm); }
.form__consent { font-size: var(--fs-xs); color: var(--ink-500); }
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }
.footer__legal a { color: #dfe4f5; }

/* ---------- 404 ---------- */
.notfound { padding-block: var(--sp-9); text-align: left; }
.notfound .code { font-size: clamp(4rem, 3rem + 6vw, 8rem); font-weight: 700; line-height: 1; color: var(--blue-600); letter-spacing: -0.04em; }
.notfound h1 { margin-top: var(--sp-4); font-size: var(--fs-h2); }
.notfound p { margin-top: var(--sp-4); max-width: 48ch; }
.notfound .hero__actions .btn--ghost { --btn-fg: var(--ink-900); border-color: var(--line); }

/* ---------- Revelado al hacer scroll (solo con JS y sin reduced-motion) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.js .reveal.is-in { 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; }
  .js .reveal { opacity: 1; transform: none; }
  .service:hover { transform: none; }
}

@media print {
  .topbar, .site-header, .hero__pause, .to-top, .cta-band, .mode { display: none !important; }
  body { color: #000; }
}

/* ---------- Utilidades ---------- */
.mt-5 { margin-top: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }
.pt-0 { padding-top: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
