/* Tipografías alojadas en el propio sitio (01-11-2026). Antes venían de Google Fonts, que recibía
   la dirección IP de cada visitante. Fraunces e Inter, licencia SIL Open Font License 1.1
   (ver /fonts/OFL_Fraunces.txt y /fonts/OFL_Inter.txt). Solo el subconjunto latino (cubre el español). */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('../fonts/fraunces-latin-var.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: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-latin-var.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;
}

/* ==========================================================================
   ZIMPLIKA — Sistema de diseño v3 (estilos compartidos por todo el sitio)
   Paleta: marino profundo + marfil + champán. Tipografía: Fraunces + Inter.
   Ver PLAN_WEB_V3.md, sección "Sistema de diseño".
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Color */
  --navy: #0A1628;        /* base oscura: hero, footer, énfasis */
  --navy-2: #12213A;      /* tarjetas sobre oscuro */
  --ivory: #F6F4EF;       /* fondo claro general */
  --white: #FFFFFF;       /* solo tarjetas sobre claro */
  --ink: #1C1F26;         /* texto sobre claro */
  --ink-inv: #E8E6E1;     /* texto sobre oscuro */
  --slate: #5B6472;       /* texto secundario */
  --accent: #1F3F8F;      /* azul profundo: links, iconos, subrayados */
  --brass: #B8975A;       /* champán: líneas, numeración, detalles */
  --brass-text: #7D6230;  /* champán oscurecido para texto pequeño sobre claro (AA) */
  --red: #D91E2A;         /* solo logo + 1 CTA principal por página */
  --red-hover: #B8141F;
  --line: rgba(184, 151, 90, 0.35);       /* divisorias 1 px */
  --line-dark: rgba(184, 151, 90, 0.28);  /* divisorias sobre marino */
  --shadow: 0 2px 24px rgba(10, 22, 40, 0.08);
  --overlay: rgba(10, 22, 40, 0.72);

  /* Tipografía */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-text: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Escala */
  --fs-xs: 0.75rem;     /* 12 */
  --fs-sm: 0.875rem;    /* 14 */
  --fs-md: 1rem;        /* 16 */
  --fs-lg: 1.125rem;    /* 18 */
  --fs-xl: 1.375rem;    /* 22 */
  --fs-h3: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
  --fs-h2: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 3.2vw, 4rem);

  /* Espacio */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --section-y: clamp(4rem, 3rem + 5vw, 8rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --radius: 4px;
  --radius-btn: 2px;
  --header-h: 84px;
  --header-h-compact: 64px;
  --measure: 68ch;
}

/* ---------- 2. Reset y base --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--fs-md);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
ul, ol { margin: 0; padding: 0; }
p { margin: 0 0 var(--space-4); max-width: var(--measure); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-4);
  color: inherit;
  font-variation-settings: "opsz" 144;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
h4 { font-size: var(--fs-lg); font-weight: 600; font-family: var(--font-text); letter-spacing: 0; }
strong { font-weight: 600; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--brass); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Layout --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-5) var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.dark { background: var(--navy); color: var(--ink-inv); }
.dark a { color: var(--ink-inv); }
.dark p { color: var(--ink-inv); }
.dark .muted, .dark .lead { color: rgba(232, 230, 225, 0.78); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.dark .rule { border-color: var(--line-dark); }

/* ---------- 4. Tipografía utilitaria ------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brass-text); margin-bottom: var(--space-4);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--brass); }
.dark .eyebrow { color: var(--brass); }
.section-num {
  font-family: var(--font-text); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: 0.18em; color: var(--brass-text);
}
.dark .section-num { color: var(--brass); }
.lead { font-size: var(--fs-lg); color: var(--slate); }
.muted { color: var(--slate); }
.small { font-size: var(--fs-sm); }
.section-head { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head h2 { max-width: 22ch; }
.section-head .lead { margin-bottom: 0; }
.section-head--split {
  display: grid; grid-template-columns: 1fr; gap: var(--space-4) var(--space-8);
  align-items: end;
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .section-head--split .lead { padding-bottom: 0.35rem; }
}

/* ---------- 5. Botones -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 0.85rem 1.5rem; border-radius: var(--radius-btn);
  font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0.02em;
  line-height: 1; border: 1px solid transparent; text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn--primary:hover { background: var(--red-hover); border-color: var(--red-hover); color: #fff; }
.btn--navy { background: var(--navy); color: var(--ink-inv); border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-2); color: #fff; }
.btn--ivory { background: var(--ivory); color: var(--navy); border-color: var(--ivory); }
.btn--ivory:hover { background: #fff; color: var(--navy); }
.dark .btn--ivory, .dark .btn--ivory:hover { color: var(--navy); }
.dark .btn--primary, .dark .btn--primary:hover, .dark .btn--navy, .dark .btn--navy:hover { color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(28, 31, 38, 0.35); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.dark .btn--ghost { color: #fff; border-color: rgba(232, 230, 225, 0.6); }
.dark .btn--ghost:hover { border-color: var(--brass); color: #fff; }
.btn--lg { padding: 1.05rem 1.9rem; font-size: var(--fs-md); }
.btn--block { width: 100%; }
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-weight: 600; font-size: var(--fs-sm); color: var(--accent); letter-spacing: 0.01em;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .18s ease; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover svg { transform: translateX(3px); }
.dark .link-arrow { color: var(--brass); }

/* ---------- 6. Iconos SVG propios --------------------------------------- */
.icon { width: 28px; height: 28px; stroke: var(--accent); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--sm { width: 20px; height: 20px; }
.dark .icon { stroke: var(--brass); }

/* ---------- 7. Header --------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 239, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), var(--shadow); }
.header-bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
  height: var(--header-h); transition: height .2s ease;
}
.is-scrolled .header-bar { height: var(--header-h-compact); }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 46px; width: auto; transition: height .2s ease; }
.is-scrolled .brand img { height: 38px; }
.brand-tagline {
  display: none; font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--slate); border-left: 1px solid var(--line); padding-left: var(--space-3); line-height: 1.3;
}
@media (min-width: 1100px) { .brand-tagline { display: block; } }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px; background: transparent; border: 1px solid var(--line);
  border-radius: var(--radius-btn);
}
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav ul { list-style: none; display: flex; flex-direction: column; gap: 0; }
.site-nav a {
  display: block; padding: 0.85rem 0; color: var(--ink); font-weight: 500; font-size: var(--fs-sm);
  letter-spacing: 0.01em; border-bottom: 1px solid var(--line);
}
.site-nav a:hover { text-decoration: none; color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav .nav-cta { margin-top: var(--space-4); }
.nav-open .site-nav {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--ivory); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: var(--space-3) var(--gutter) var(--space-5);
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav, .nav-open .site-nav { display: block; position: static; background: transparent; border: 0; box-shadow: none; padding: 0; }
  .site-nav ul { flex-direction: row; align-items: center; gap: clamp(1rem, 0.5rem + 1vw, 1.75rem); }
  .site-nav a { padding: 0.5rem 0; border: 0; position: relative; }
  .site-nav a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
  }
  .site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
  .site-nav .nav-cta { margin: 0 0 0 var(--space-2); }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .site-nav ul { gap: 0.9rem; }
  .site-nav a { font-size: 0.8125rem; }
  .site-nav .nav-cta .btn { padding: 0.7rem 0.9rem; font-size: 0.8125rem; }
  .brand img { height: 40px; }
}

/* ---------- 8. Hero ----------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; color: var(--ink-inv); background: var(--navy);
  min-height: min(88vh, 820px); display: flex; align-items: center;
  padding-block: clamp(5rem, 4rem + 6vw, 9rem);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10, 22, 40, 0.90) 0%, rgba(10, 22, 40, 0.78) 45%, rgba(10, 22, 40, 0.55) 100%);
}
.hero__inner { max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: var(--space-5); }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--brass); }
.hero .lead { color: rgba(232, 230, 225, 0.86); max-width: 58ch; margin-bottom: var(--space-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-7); }
.hero__keys {
  list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-5);
  border-top: 1px solid var(--line-dark); padding-top: var(--space-5); max-width: 640px;
}
.hero__keys li { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--fs-sm); line-height: 1.4; color: rgba(232, 230, 225, 0.9); }
.hero__keys .icon { stroke: var(--brass); width: 20px; height: 20px; margin-top: 1px; }
@media (min-width: 1100px) { .hero__keys { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 820px; } }

/* Hero secundario (páginas interiores) */
.page-hero { background: var(--navy); color: var(--ink-inv); padding-block: clamp(3.5rem, 3rem + 3vw, 6rem); border-bottom: 1px solid var(--line-dark); }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero .lead { max-width: 60ch; margin-bottom: 0; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(232, 230, 225, 0.6); margin-bottom: var(--space-5); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); color: var(--brass); }
.breadcrumb a { color: inherit; }

/* ---------- 9. Componentes ---------------------------------------------- */
/* Tarjeta base */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(184, 151, 90, 0.6); }
.dark .card { background: var(--navy-2); border-color: var(--line-dark); }
.card h3 { margin-top: var(--space-3); }
.card p:last-child { margin-bottom: 0; }

/* Propuesta de valor */
.value { display: grid; gap: var(--space-7); }
.value__intro h2 { max-width: 16ch; }
.value__list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.value__list li { display: grid; grid-template-columns: 28px 1fr; gap: var(--space-4); padding: var(--space-5) 0; border-bottom: 1px solid var(--line); }
.value__list h4 { margin: 0 0 var(--space-1); }
.value__list p { margin: 0; color: var(--slate); font-size: var(--fs-sm); }
@media (min-width: 900px) {
  .value { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .value__list { grid-template-columns: 1fr 1fr; column-gap: var(--space-7); }
  .value__list li:nth-child(-n+2) { border-top: 0; }
}

/* Servicios */
.services { display: grid; gap: var(--space-5); }
.service {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--navy-2); }
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service:hover .service__media img { transform: scale(1.03); }
.service__body { padding: clamp(1.5rem, 1.2rem + 1vw, 2rem); display: flex; flex-direction: column; flex: 1; }
.service__body h3 { margin-top: var(--space-2); }
.service__body p { color: var(--slate); font-size: var(--fs-sm); }
.service__list { list-style: none; margin: var(--space-2) 0 var(--space-5); display: grid; gap: var(--space-2); font-size: var(--fs-sm); }
.service__list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.service__list li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.55em; border-radius: 50%; background: var(--brass); }
.service__body .link-arrow { margin-top: auto; }
@media (min-width: 900px) { .services { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Rubros */
.rubros { display: grid; gap: var(--space-5); }
.rubros__grid { list-style: none; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.rubros__grid li { background: var(--ivory); padding: var(--space-5); }
.rubros__grid h4 { margin: var(--space-3) 0 var(--space-1); }
.rubros__grid p { margin: 0; color: var(--slate); font-size: var(--fs-sm); }
.rubros__aside { position: relative; min-height: 320px; border-radius: var(--radius); overflow: hidden; }
.rubros__aside img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.rubros__aside figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-5);
  background: linear-gradient(180deg, rgba(10,22,40,0) 0%, rgba(10,22,40,.85) 100%);
  color: var(--ink-inv); font-size: var(--fs-sm);
}
@media (min-width: 700px) { .rubros__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .rubros { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .rubros__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Franja de instituciones */
.institutions { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.institutions li {
  padding: var(--space-4) var(--space-2); border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 500; line-height: 1.3;
  color: rgba(232, 230, 225, 0.86); font-variation-settings: "opsz" 24;
}
@media (min-width: 640px) {
  .institutions { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-6); }
}
@media (min-width: 1000px) { .institutions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.coverage { display: grid; gap: var(--space-5); margin-top: var(--space-7); }
.coverage__item { border-left: 1px solid var(--brass); padding-left: var(--space-4); }
.coverage__item strong { display: block; font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 500; margin-bottom: var(--space-1); color: #fff; }
.coverage__item p { margin: 0; font-size: var(--fs-sm); color: rgba(232, 230, 225, 0.78); }
@media (min-width: 800px) { .coverage { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Proceso */
.process { display: grid; gap: var(--space-7); align-items: center; }
.process__steps { list-style: none; counter-reset: paso; display: grid; gap: 0; }
.process__steps li { counter-increment: paso; display: grid; grid-template-columns: 56px 1fr; gap: var(--space-4); padding: var(--space-5) 0; border-top: 1px solid var(--line); }
.process__steps li:last-child { border-bottom: 1px solid var(--line); }
.process__steps li::before {
  content: "0" counter(paso); font-family: var(--font-display); font-size: 2rem; line-height: 1;
  color: var(--brass); font-weight: 500; font-variation-settings: "opsz" 144;
}
.process__steps h4 { margin: 0.25rem 0 var(--space-1); }
.process__steps p { margin: 0; color: var(--slate); font-size: var(--fs-sm); }
.process__media { border-radius: var(--radius); overflow: hidden; }
.process__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
@media (min-width: 900px) {
  .process { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .process__media { order: -1; }
}

/* Equipo por áreas */
.team { display: grid; gap: var(--space-7); align-items: start; }
.team__lead h2 { max-width: 14ch; }
.person { display: grid; grid-template-columns: 72px 1fr; gap: var(--space-4); align-items: start; margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.person__avatar {
  width: 72px; height: 72px; border-radius: var(--radius); background: var(--navy); color: var(--brass);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500;
  letter-spacing: 0.04em; box-shadow: inset 0 0 0 1px var(--line-dark), inset 0 0 0 4px var(--navy), inset 0 0 0 5px var(--brass);
}
.person strong { display: block; font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 500; line-height: 1.2; }
.person span { display: block; font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-text); margin: var(--space-1) 0 var(--space-2); }
.person p { margin: 0; font-size: var(--fs-sm); color: var(--slate); }
.areas { list-style: none; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.areas li { background: var(--white); padding: var(--space-5); }
.areas h4 { margin: var(--space-3) 0 var(--space-1); }
.areas p { margin: 0; color: var(--slate); font-size: var(--fs-sm); }
@media (min-width: 640px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } .areas li:last-child { grid-column: 1 / -1; } }
@media (min-width: 900px) { .team { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

/* Sector público */
.public { display: grid; gap: var(--space-7); align-items: center; }
.public__media { border-radius: var(--radius); overflow: hidden; }
.public__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.public__facts { list-style: none; display: grid; gap: var(--space-3); margin: var(--space-5) 0 var(--space-6); }
.public__facts li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--fs-sm); }
.public__facts .icon { width: 20px; height: 20px; margin-top: 2px; }
@media (min-width: 900px) { .public { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }

/* Banda ancha (cobertura nacional) */
.band { position: relative; isolation: isolate; color: var(--ink-inv); background: var(--navy); padding-block: clamp(4rem, 3rem + 4vw, 7rem); }
.band__media { position: absolute; inset: 0; z-index: -2; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--overlay); }
.band h2 { color: #fff; max-width: 20ch; }
.band .lead { max-width: 52ch; }
.band__stats { list-style: none; display: grid; gap: var(--space-5); margin-top: var(--space-6); }
.band__stats li { border-top: 1px solid var(--line-dark); padding-top: var(--space-3); font-size: var(--fs-sm); }
.band__stats strong { display: block; font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 500; color: #fff; margin-bottom: 2px; }
@media (min-width: 700px) { .band__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding: var(--space-5) 0; font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 500; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; border-right: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass);
  transform: rotate(45deg); transition: transform .2s ease; margin-right: 4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { color: var(--slate); padding-bottom: var(--space-5); margin: 0; max-width: 64ch; }

/* CTA final */
.cta { text-align: center; }
.cta h2 { color: #fff; max-width: 24ch; margin-inline: auto; }
.cta .lead { margin-inline: auto; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-6); }

/* Contacto */
.contact { display: grid; gap: var(--space-8); }
.contact__list { list-style: none; display: grid; gap: var(--space-4); margin: var(--space-5) 0; }
.contact__list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.contact__list .icon { width: 22px; height: 22px; margin-top: 2px; }
.contact__list span { display: block; font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-text); }
.contact__list a, .contact__list b { font-weight: 500; color: var(--ink); }
.company { border-top: 1px solid var(--line); padding-top: var(--space-5); font-size: var(--fs-sm); color: var(--slate); }
.company dl { display: grid; grid-template-columns: auto 1fr; gap: var(--space-1) var(--space-4); margin: 0; }
.company dt { font-weight: 600; color: var(--ink); }
.company dd { margin: 0; }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }

/* Formulario */
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem); box-shadow: var(--shadow); }
.form h2 { font-size: var(--fs-h3); }
.form__row { display: grid; gap: var(--space-4); }
.form__field { display: grid; gap: var(--space-2); margin-bottom: var(--space-4); }
.form__field label { font-size: var(--fs-sm); font-weight: 600; }
.form__field label small { font-weight: 400; color: var(--slate); }
.form__field input, .form__field select, .form__field textarea {
  width: 100%; font: inherit; font-size: var(--fs-md); color: var(--ink); background: var(--ivory);
  border: 1px solid rgba(28, 31, 38, 0.18); border-radius: var(--radius-btn); padding: 0.8rem 0.9rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form__field textarea { min-height: 140px; resize: vertical; }
.form__field input:focus, .form__field select:focus, .form__field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 63, 143, 0.15); background: #fff; }
.form__note { font-size: var(--fs-xs); color: var(--slate); margin: var(--space-3) 0 0; }
.form__status { display: none; margin-top: var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--radius-btn); font-size: var(--fs-sm); border: 1px solid var(--line); background: var(--ivory); }
.form__status.is-visible { display: block; }
.form__hp { position: absolute; left: -9999px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }

/* ---------- 10. Footer -------------------------------------------------- */
.site-footer { background: var(--navy); color: rgba(232, 230, 225, 0.8); border-top: 1px solid var(--line-dark); padding-block: var(--space-8) var(--space-6); font-size: var(--fs-sm); }
.footer-grid { display: grid; gap: var(--space-6); }
.footer-brand { font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; letter-spacing: 0.02em; color: #fff; margin-bottom: var(--space-3); }
.site-footer h4 { font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; display: grid; gap: var(--space-2); }
.site-footer a { color: rgba(232, 230, 225, 0.85); }
.site-footer a:hover { color: #fff; }
.site-footer p { color: inherit; margin-bottom: var(--space-2); max-width: 40ch; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line-dark); font-size: var(--fs-xs); color: rgba(232, 230, 225, 0.55); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* Botón flotante WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(10, 22, 40, 0.25); transition: transform .18s ease;
}
.wa-float:hover { transform: translateY(-2px); text-decoration: none; }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- 11. Movimiento sobrio --------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- 12. Utilidades ---------------------------------------------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-6 { margin-top: var(--space-6); }
.text-center { text-align: center; }
.stack > * + * { margin-top: var(--space-4); }

/* ==========================================================================
   Fase 2 — páginas interiores (servicios, sector público, experiencia, nosotros)
   ========================================================================== */

/* Grilla de tarjetas */
.cards { display: grid; gap: var(--space-5); }
.card .icon { margin-bottom: var(--space-3); }
.card h3 { font-size: var(--fs-xl); margin-top: 0; }
.card > p { font-size: var(--fs-sm); color: var(--slate); }
.card ul { list-style: none; margin: var(--space-3) 0 0; display: grid; gap: var(--space-2); font-size: var(--fs-sm); }
.card ul li { display: flex; gap: var(--space-3); align-items: flex-start; }
.card ul li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.55em; border-radius: 50%; background: var(--brass); }
.dark .card > p, .dark .card ul { color: rgba(232, 230, 225, 0.78); }
@media (min-width: 640px) { .cards--2, .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Rubros a ancho completo, con ejemplos por rubro */
.rubros__grid--full { grid-template-columns: 1fr; }
.rubros__grid--full ul { list-style: none; margin: var(--space-3) 0 0; display: grid; gap: var(--space-1); font-size: var(--fs-sm); color: var(--ink); }
.rubros__grid--full ul li { display: flex; gap: var(--space-3); align-items: flex-start; }
.rubros__grid--full ul li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 0.6em; border-radius: 50%; background: var(--brass); }
@media (min-width: 700px) { .rubros__grid--full { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .rubros__grid--full { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* División genérica texto + contenido (5/12 + 7/12) */
.split { display: grid; gap: var(--space-7); align-items: start; }
.split > :first-child h2 { max-width: 16ch; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split--even { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
  .split__sticky { position: sticky; top: calc(var(--header-h-compact) + 1.5rem); }
}

/* Caja de énfasis */
.callout { border-left: 2px solid var(--brass); background: var(--white); padding: var(--space-5); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); max-width: var(--measure); }
.callout p { font-size: var(--fs-sm); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { display: block; font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 500; margin-bottom: var(--space-2); }
.dark .callout { background: var(--navy-2); }

/* Lista con check */
.checklist { list-style: none; display: grid; gap: var(--space-3); }
.checklist li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--fs-sm); }
.checklist .icon { width: 20px; height: 20px; margin-top: 2px; }
.checklist strong { font-weight: 600; }
@media (min-width: 640px) { .checklist--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-6); } }

/* Ficha de datos (dl) */
.spec { margin: 0; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 600; font-size: var(--fs-sm); }
.spec dd { margin: 0; color: var(--slate); font-size: var(--fs-sm); }
.dark .spec { border-color: var(--line-dark); }
.dark .spec div { border-color: var(--line-dark); }
.dark .spec dd { color: rgba(232, 230, 225, 0.78); }

/* Tabla comparativa */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--line); }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--fs-sm); }
.compare th, .compare td { text-align: left; padding: var(--space-4) var(--space-3); border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-text); padding-top: var(--space-4); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 26%; }
.compare td { color: var(--slate); }
@media (max-width: 639px) {
  /* En celular la tabla se apila: cada fila es un bloque con etiquetas */
  .table-wrap { overflow: visible; }
  .compare { min-width: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tbody tr { padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
  .compare tbody th { padding: 0 0 var(--space-2); border: 0; font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 500; }
  .compare td { padding: var(--space-2) 0 var(--space-2) var(--space-4); border: 0; border-left: 1px solid var(--brass); margin-bottom: var(--space-2); }
  .compare td::before { content: attr(data-label); display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-text); margin-bottom: 2px; }
}

/* Proceso sin foto */
.process--solo { grid-template-columns: 1fr; }
.process--solo .process__steps { max-width: 820px; }
@media (min-width: 900px) { .process--solo { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }

/* Instituciones agrupadas por tipo (Experiencia) */
.inst-groups { display: grid; gap: var(--space-6) var(--space-8); }
.inst-group h3 { font-family: var(--font-text); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); margin-bottom: var(--space-2); }
.inst-group .institutions { grid-template-columns: 1fr; }
@media (min-width: 900px) { .inst-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Regiones (chips sobre banda oscura) */
.regions { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.regions li { border: 1px solid var(--line-dark); background: rgba(10, 22, 40, 0.5); color: #fff; padding: 0.45rem 0.9rem; font-size: var(--fs-sm); border-radius: var(--radius-btn); }

/* Bloque de texto largo */
.prose { max-width: var(--measure); }
.prose h3 { margin-top: var(--space-6); }
.prose ul, .prose ol { padding-left: 1.2rem; margin-bottom: var(--space-4); }
.prose li { margin-bottom: var(--space-2); }
.prose li::marker { color: var(--brass); }

/* ==========================================================================
   Fase 3 — guías (artículos largos con índice, secciones numeradas y fuentes)
   ========================================================================== */

/* Hero de guía: page-hero con foto de fondo bajo velo marino */
.guide-hero { position: relative; overflow: hidden; }
.guide-hero__media { position: absolute; inset: 0; }
.guide-hero__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.guide-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 22, 40, 0.94) 0%, rgba(10, 22, 40, 0.8) 60%, rgba(10, 22, 40, 0.62) 100%); }
.guide-hero .container { position: relative; }
.guide-hero h1 { max-width: 24ch; }
.guide-meta { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin-top: var(--space-5); font-size: var(--fs-sm); color: rgba(232, 230, 225, 0.78); }
.guide-meta li { display: flex; gap: var(--space-2); align-items: center; }
.guide-meta .icon { width: 18px; height: 18px; color: var(--brass); }

/* Cuerpo: índice lateral (3/12) + artículo (8/12) */
.guide { display: grid; gap: var(--space-7); align-items: start; }
.guide > * { min-width: 0; }
@media (min-width: 900px) {
  .guide { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); column-gap: var(--space-8); }
  .guide__aside { position: sticky; top: calc(var(--header-h-compact) + 1.5rem); }
}
.toc { border-top: 1px solid var(--line); padding-top: var(--space-4); }
.toc h2 { font-family: var(--font-text); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-text); margin-bottom: var(--space-3); }
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: var(--space-2); padding: 0; margin: 0; }
.toc li { counter-increment: toc; display: flex; gap: var(--space-3); font-size: var(--fs-sm); }
.toc li::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-display); color: var(--brass); flex: none; width: 1.6em; }
.toc a { color: var(--ink); }
.toc a:hover { color: var(--accent); }
.toc__cta { margin-top: var(--space-5); font-size: var(--fs-sm); color: var(--slate); }

.article { counter-reset: sec; max-width: var(--measure); }
.article > h2 { counter-increment: sec; margin-top: var(--space-8); max-width: 26ch; scroll-margin-top: calc(var(--header-h-compact) + 1.5rem); }
.article > h2:first-child { margin-top: 0; }
.article > h2::before { content: counter(sec, decimal-leading-zero); display: block; font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 500; color: var(--brass); letter-spacing: 0; margin-bottom: var(--space-2); }
.article h3 { margin-top: var(--space-6); scroll-margin-top: calc(var(--header-h-compact) + 1.5rem); }
.article ul, .article ol { padding-left: 1.2rem; margin-bottom: var(--space-4); }
.article li { margin-bottom: var(--space-2); }
.article li::marker { color: var(--brass); }
.article .callout, .article .table-wrap { margin: var(--space-5) 0; max-width: none; }
.article .callout ul, .article .callout ol { margin-bottom: 0; font-size: var(--fs-sm); }
@media (min-width: 640px) { .article .compare { min-width: 640px; } }
.article .checklist { padding: 0; margin: var(--space-4) 0; }
.article .checklist li { margin: 0; }

/* Caja "En resumen" (oscura) */
.callout--summary { background: var(--navy); color: var(--ink-inv); }
.callout--summary strong { color: #fff; }
.callout--summary p, .callout--summary li { color: rgba(232, 230, 225, 0.85); }
.callout--summary ul { list-style: none; padding: 0; display: grid; gap: var(--space-2); }
.callout--summary li { display: flex; gap: var(--space-3); }
.callout--summary li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.55em; border-radius: 50%; background: var(--brass); }

/* Fórmula destacada */
.formula { font-family: var(--font-display); font-size: var(--fs-xl); line-height: 1.4; padding: var(--space-4) var(--space-5); border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); margin: var(--space-4) 0; }
.formula small { display: block; font-family: var(--font-text); font-size: var(--fs-sm); color: var(--slate); margin-top: var(--space-2); }

/* Fuentes y nota de alcance */
.sources { border-top: 1px solid var(--line); padding-top: var(--space-5); margin-top: var(--space-8); }
.sources h2 { font-size: var(--fs-xl); max-width: none; }
.sources h2::before { display: none; }
.sources ol { padding-left: 1.2rem; font-size: var(--fs-sm); color: var(--slate); }
.sources a { overflow-wrap: anywhere; }
.article__note { font-size: var(--fs-sm); color: var(--slate); border-top: 1px solid var(--line); padding-top: var(--space-4); margin-top: var(--space-6); }

/* Índice de guías y página 404 */
.guide-list .card { display: flex; flex-direction: column; }
.guide-list .card h3 { margin-bottom: var(--space-2); }
.guide-list .card h3 a { color: inherit; }
.guide-list .card p { flex: 1; }
.guide-list .card .link-arrow { margin-top: var(--space-3); }
.guide-list .card .small { color: var(--brass-text); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: var(--fs-xs); margin-bottom: var(--space-3); }
.notfound { min-height: 60vh; display: grid; align-items: center; }
.notfound__code { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--brass); margin-bottom: var(--space-2); }
.notfound ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

/* ==========================================================================
   Logos — instituciones (referencias) y marcas suministradas
   Tarjetas blancas, logos en gris que recuperan color al pasar el cursor.
   ========================================================================== */
.logos { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin-top: var(--space-6); padding: 0; }
.logos li {
  display: grid; place-items: center; min-height: 72px; padding: var(--space-3) var(--space-4);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.logos li:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.logos img {
  display: block; width: 100%; max-width: 200px; height: 40px; object-fit: contain;
  filter: none; transition: transform 0.25s ease;
}
.logos li:hover img, .logos li:focus-within img { filter: none; }
.logos__chip { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 500; color: var(--navy); text-align: center; line-height: 1.25; }
.logos__note { font-size: var(--fs-xs); color: var(--slate); max-width: none; margin: var(--space-4) 0 0; line-height: 1.5; }
.dark .logos__note { color: rgba(232, 230, 225, 0.7); }
.dark .logos li { border-color: transparent; }
.inst-groups--logos { grid-template-columns: 1fr; gap: var(--space-6); }
.inst-groups--logos .logos { margin-top: var(--space-3); }
@media (min-width: 640px) {
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
  .logos li { min-height: 96px; padding: var(--space-4) var(--space-5); }
  .logos img { height: 56px; }
}
@media (min-width: 1000px) {
  .logos { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .inst-groups--logos .logos { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .logos li, .logos img { transition: none; } .logos li:hover { transform: none; } }

/* Segundo nivel: "Marcas que cotizamos habitualmente" (un escalón más discreto que la franja principal).
   Bloque .logos-sub = título + lead + grilla .logos--secondary de chips bajos (logo 32 px desktop / 24 px móvil).
   La nota legal .logos__note va UNA sola vez, debajo de ambas filas. */
.logos-sub { margin-top: var(--space-6); border-top: 1px solid var(--line); padding-top: var(--space-5); }
.dark .logos-sub { border-top-color: var(--line-dark); }
.logos-sub__title { font-family: var(--font-text); font-size: var(--fs-md); font-weight: 600; color: var(--navy); letter-spacing: -0.01em; margin: 0 0 var(--space-1); }
.dark .logos-sub__title { color: #fff; }
.logos-sub__lead { font-size: var(--fs-sm); color: var(--slate); margin: 0; max-width: 64ch; line-height: 1.5; }
.dark .logos-sub__lead { color: rgba(232, 230, 225, 0.78); }
.logos.logos--secondary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); margin-top: var(--space-4); }
.logos--secondary li { min-height: 48px; padding: var(--space-2) var(--space-3); }
.logos--secondary li:hover { transform: none; box-shadow: none; }
.logos--secondary img { height: 24px; max-width: 110px; }
@media (min-width: 640px) {
  .logos.logos--secondary { gap: var(--space-3); }
  .logos--secondary li { min-height: 56px; padding: var(--space-2) var(--space-4); }
  .logos--secondary img { height: 32px; max-width: 130px; }
}
@media (min-width: 1000px) {
  .logos.logos--secondary { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Stats: cifras de credibilidad (verdaderas y verificables). Número en Fraunces champán, texto en Inter.
   Sobre claro el número usa --brass-text (AA); sobre .dark usa --brass. Columnas: 2 · 3 (≥ 700) · 4 (≥ 1000). */
.stats { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-5); margin: 0; padding: 0; }
.stats li { border-top: 1px solid var(--line); padding-top: var(--space-3); }
.dark .stats li { border-top-color: var(--line-dark); }
.stats strong {
  display: block; font-family: var(--font-display); font-variation-settings: "opsz" 144; font-weight: 500;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); line-height: 1.1; letter-spacing: -0.015em;
  color: var(--brass-text); margin-bottom: var(--space-2);
}
.dark .stats strong { color: var(--brass); }
.stats span { display: block; font-size: var(--fs-sm); color: var(--slate); line-height: 1.45; }
.dark .stats span { color: rgba(232, 230, 225, 0.8); }
.stats--hero { margin-top: var(--space-7); max-width: 960px; }
.stats-band { padding-block: var(--space-6); border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5) var(--space-6); } .stats-band { padding-block: var(--space-7); } }

/* Couriers: mini-franja "Despachamos con" (logos pequeños en chips blancos) */
.couriers { margin-top: var(--space-6); border-top: 1px solid var(--line); padding-top: var(--space-5); }
.dark .couriers { border-top-color: var(--line-dark); }
.couriers__label { font-family: var(--font-text); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-text); margin: 0 0 var(--space-3); }
.dark .couriers__label { color: var(--brass); }
.couriers__list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0; padding: 0; }
.couriers__list li { display: grid; place-items: center; padding: var(--space-2) var(--space-4); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.dark .couriers__list li { border-color: transparent; }
.couriers__list img { display: block; height: 28px; width: auto; max-width: 140px; object-fit: contain; }
.couriers__list li:hover img { filter: none; }
.couriers__text { font-size: var(--fs-sm); color: var(--slate); margin: var(--space-3) 0 0; max-width: none; }
.couriers__note { font-size: var(--fs-xs); color: var(--slate); margin: var(--space-2) 0 0; max-width: none; line-height: 1.5; }
.dark .couriers__text { color: rgba(232, 230, 225, 0.78); }
.dark .couriers__note { color: rgba(232, 230, 225, 0.7); }
@media (min-width: 640px) { .couriers__list img { height: 36px; max-width: 180px; } }

/* ==========================================================================
   Seguimiento de envío (seguimiento/index.html + js/seguimiento.js)
   Un campo grande + botón; línea de tiempo de 6 pasos; selector de courier.
   ========================================================================== */
.track { max-width: 800px; margin-inline: auto; }
.track__form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem); box-shadow: var(--shadow); }
.track__form label { display: block; font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 500; letter-spacing: -0.01em; margin-bottom: var(--space-4); }
.track__row { display: grid; gap: var(--space-3); }
.track__input {
  width: 100%; font: inherit; font-size: 1.25rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); background: var(--ivory); border: 1px solid rgba(28, 31, 38, 0.22); border-radius: var(--radius-btn);
  padding: 1rem 1.1rem; min-height: 60px; transition: border-color .15s ease, box-shadow .15s ease;
}
.track__input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--slate); opacity: 1; }
.track__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 63, 143, 0.15); background: #fff; }
.track__row .btn { min-height: 60px; }
.track__hint { font-size: var(--fs-sm); color: var(--slate); margin: var(--space-4) 0 0; max-width: none; }
.track__hint code { font-family: inherit; font-weight: 600; color: var(--ink); letter-spacing: 0.04em; }
@media (min-width: 640px) { .track__row { grid-template-columns: minmax(0, 1fr) auto; } }

/* Resultado */
.track__result { margin-top: var(--space-6); }
.track__result[hidden] { display: none; }
.track-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem); }
.track-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: var(--space-3) var(--space-5); padding-bottom: var(--space-5); border-bottom: 1px solid var(--line); margin-bottom: var(--space-6); }
.track-card__code { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 500; letter-spacing: 0.04em; margin: 0; }
.track-card__code span { display: block; font-family: var(--font-text); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-text); margin-bottom: var(--space-1); }
.track-card__status { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); font-weight: 600; color: var(--navy); border: 1px solid var(--brass); border-radius: var(--radius-btn); padding: 0.5rem 0.9rem; }
.track-card__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }
.track-card__status.is-final { background: var(--navy); color: var(--ink-inv); border-color: var(--navy); }

/* Línea de tiempo: vertical en celular, horizontal desde 800 px */
.timeline { list-style: none; display: grid; gap: 0; margin: 0 0 var(--space-6); padding: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: var(--space-4); padding: 0 0 var(--space-5); }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li.is-done::before { background: var(--navy); }
.timeline__dot {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: var(--white);
  display: grid; place-items: center; position: relative; z-index: 1; flex: none;
}
.timeline__dot svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; display: none; }
.is-done .timeline__dot { background: var(--navy); border-color: var(--navy); }
.is-done .timeline__dot svg { display: block; }
.is-current .timeline__dot { background: var(--brass); border-color: var(--brass); box-shadow: 0 0 0 4px rgba(184, 151, 90, 0.25); }
.is-current .timeline__dot svg { display: block; stroke: var(--navy); }
.timeline__label { display: block; font-weight: 600; font-size: var(--fs-sm); color: var(--slate); line-height: 1.3; padding-top: 4px; }
.is-done .timeline__label { color: var(--ink); }
.is-current .timeline__label { color: var(--navy); }
.timeline__date { display: block; font-size: var(--fs-xs); color: var(--slate); margin-top: 2px; letter-spacing: 0.02em; }
.is-current .timeline__date { color: var(--brass-text); font-weight: 600; }
@media (min-width: 800px) {
  .timeline { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-2); }
  .timeline li { grid-template-columns: 1fr; gap: var(--space-3); padding: 0; justify-items: start; }
  .timeline li::before { left: 28px; right: calc(-1 * var(--space-2)); top: 13px; bottom: auto; height: 2px; width: auto; }
  .timeline__label { padding-top: 0; padding-right: var(--space-2); }
}

/* Datos del envío */
.track-meta { margin: 0; border-top: 1px solid var(--line); }
.track-meta div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.track-meta dt { font-weight: 600; font-size: var(--fs-sm); }
.track-meta dd { margin: 0; color: var(--ink); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.track-card__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.track-card__actions .btn img { height: 18px; width: auto; }
.track-card__note { border-left: 2px solid var(--brass); padding: var(--space-2) var(--space-4); margin: var(--space-5) 0 0; font-size: var(--fs-sm); color: var(--slate); max-width: none; }

/* Sin resultado / selector de courier */
.track-empty, .track-couriers { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem); }
.track-empty h2, .track-couriers h2 { font-size: var(--fs-h3); margin-bottom: var(--space-3); }
.track-empty p:last-child, .track-couriers p:last-child { margin-bottom: 0; }
.track-couriers__list { list-style: none; display: grid; gap: var(--space-3); margin: var(--space-5) 0 var(--space-4); padding: 0; }
.track-courier {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-4) var(--space-5); background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-align: left; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.track-courier:hover, .track-courier:focus-visible { border-color: var(--brass); transform: translateY(-2px); box-shadow: var(--shadow); }
.track-courier img { height: 28px; width: auto; max-width: 140px; object-fit: contain; }
.track-courier span { font-size: var(--fs-sm); font-weight: 600; color: var(--accent); white-space: nowrap; }
@media (min-width: 640px) {
  .track-couriers__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .track-courier { flex-direction: column; justify-content: center; text-align: center; min-height: 120px; }
  .track-courier img { height: 32px; max-width: 160px; }
}
.track__status { display: none; margin-top: var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--radius-btn); font-size: var(--fs-sm); border: 1px solid var(--line); background: var(--ivory); max-width: none; }
.track__status.is-visible { display: block; }
.track__help { margin-top: var(--space-7); border-top: 1px solid var(--line); padding-top: var(--space-5); }
.track__help h2 { font-size: var(--fs-h3); }

/* ==========================================================================
   Recursos para compradores (recursos/index.html + recursos/gracias.html + js/recursos.js)
   Tarjetas con portada del PDF, formulario mínimo en modal (correo + institución)
   y caja "Descarga la versión para llevar" al final de cada guía.
   ========================================================================== */
.resources { display: grid; gap: var(--space-5); }
.resource { display: grid; grid-template-columns: 1fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.resource:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.resource__cover { background: var(--navy); border-bottom: 1px solid var(--line); padding: var(--space-5) var(--space-5) 0; display: flex; align-items: flex-end; justify-content: center; }
.resource__cover img { width: 100%; max-width: 220px; height: auto; border-radius: 3px 3px 0 0; box-shadow: 0 -4px 24px rgba(0, 0, 0, .35); }
.resource__body { padding: clamp(1.5rem, 1.2rem + 1vw, 2rem); display: flex; flex-direction: column; }
.resource__body .small { color: var(--brass-text); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: var(--fs-xs); margin-bottom: var(--space-3); }
.resource__body h3 { margin: 0 0 var(--space-2); font-size: var(--fs-xl); }
.resource__body p { font-size: var(--fs-sm); color: var(--slate); flex: 1; }
.resource__meta { font-size: var(--fs-xs); color: var(--slate); margin-bottom: var(--space-4); }
.resource__body .btn { align-self: flex-start; }
@media (min-width: 640px) { .resources { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .resource { grid-template-columns: 200px 1fr; }
  .resource__cover { border-bottom: 0; border-right: 1px solid var(--line); padding: var(--space-5) var(--space-4) 0; }
  .resource__cover img { max-width: 160px; }
}

/* Modal del formulario de descarga */
.modal { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: var(--gutter); background: var(--overlay); }
.modal.is-open { display: flex; }
.modal__panel { width: 100%; max-width: 480px; max-height: calc(100vh - 2 * var(--gutter)); overflow: auto; position: relative; }
.modal__panel .form { padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); }
.modal__close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius-btn); background: transparent; color: var(--ink); font-size: 22px; line-height: 1; }
.modal__close:hover { border-color: var(--ink); }
.modal__resource { font-size: var(--fs-sm); color: var(--slate); border-left: 2px solid var(--brass); padding-left: var(--space-3); margin-bottom: var(--space-5); }
.modal__resource strong { display: block; color: var(--ink); }
body.modal-open { overflow: hidden; }

/* Descarga directa en gracias.html */
.download { max-width: 720px; margin-inline: auto; text-align: center; }
.download__file { display: inline-flex; align-items: center; gap: var(--space-4); text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4) var(--space-5); margin: var(--space-5) 0; }
.download__file img { width: 72px; height: auto; border-radius: 2px; box-shadow: var(--shadow); }
.download__file strong { display: block; }
.download__file span { font-size: var(--fs-sm); color: var(--slate); }
.download__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }

/* Caja "Descarga la versión para llevar" (final de cada guía) y CTA de catálogo */
.takeaway { display: grid; gap: var(--space-4); align-items: center; background: var(--navy); color: var(--ink-inv); border-left: 2px solid var(--brass); border-radius: 0 var(--radius) var(--radius) 0; padding: var(--space-5); margin-top: var(--space-7); }
.takeaway .eyebrow { color: var(--brass); margin-bottom: var(--space-2); }
.takeaway h3 { color: #fff; margin-bottom: var(--space-2); }
.takeaway p { color: rgba(232, 230, 225, .8); font-size: var(--fs-sm); margin: 0; }
.takeaway img { width: 96px; height: auto; border-radius: 2px; box-shadow: 0 4px 20px rgba(0, 0, 0, .4); }
.takeaway .btn { justify-self: start; }
@media (min-width: 700px) { .takeaway { grid-template-columns: auto 1fr auto; } }
.catalog-cta { display: grid; gap: var(--space-4); align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-5); margin-top: var(--space-6); }
.catalog-cta img { width: 88px; height: auto; border-radius: 2px; box-shadow: var(--shadow); }
.catalog-cta h4 { margin-bottom: var(--space-1); }
.catalog-cta p { font-size: var(--fs-sm); color: var(--slate); margin: 0; }
.dark .catalog-cta { background: var(--navy-2); border-color: var(--line-dark); }
.dark .catalog-cta h4 { color: #fff; }
.dark .catalog-cta p { color: rgba(232, 230, 225, .78); }
@media (min-width: 700px) { .catalog-cta { grid-template-columns: auto 1fr auto; } }

/* ---------- Rastreo rápido en portada ---------- */
.home-track { position: relative; z-index: 2; margin-top: -2.25rem; margin-bottom: .5rem; }
.home-track__form { display: flex; align-items: center; gap: .75rem; background: var(--white); border-top: 3px solid var(--brass); border-radius: 10px; box-shadow: 0 10px 30px rgba(10,22,40,.18); padding: .9rem 1rem; max-width: 820px; margin: 0 auto; }
.home-track__label { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--navy); white-space: nowrap; }
.home-track__label .icon { width: 1.4rem; height: 1.4rem; color: var(--accent); }
.home-track__input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: .7rem .85rem; border: 1px solid #cfd5dd; border-radius: 8px; color: var(--ink); background: var(--ivory); }
.home-track__input:focus { outline: 2px solid var(--accent); outline-offset: 1px; background: var(--white); }
@media (max-width: 640px) {
  .home-track { margin-top: -1.5rem; }
  .home-track__form { flex-wrap: wrap; }
  .home-track__label { width: 100%; }
  .home-track__form .btn { width: 100%; }
}

/* ============ NOTICIAS ============ */
.news-bar { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between; margin-bottom: var(--space-6); }
.news-bar__side { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.news-status { margin: 0; }
.news-tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.news-tabs button {
  font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
  padding: 0.6rem 1.1rem; border-radius: var(--radius-btn);
  background: transparent; color: var(--ink); border: 1px solid rgba(28, 31, 38, 0.25);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.news-tabs button:hover { border-color: var(--ink); }
.news-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.news-tabs button:focus-visible, .news-refresh:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.news-refresh { padding: 0.55rem 1rem; font-size: var(--fs-sm); }
.news-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
@media (min-width: 700px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card {
  display: flex; flex-direction: column; gap: var(--space-3); min-width: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 1.1rem + .6vw, 1.75rem);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(184, 151, 90, 0.6); }
.news-card__meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center; margin: 0; font-size: var(--fs-xs); color: var(--slate); }
.news-card__source { font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brass-text); }
.news-card h3 { font-size: var(--fs-lg); line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover { color: var(--accent); text-decoration: underline; }
.news-card__excerpt { margin: 0; color: var(--slate); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.news-card__more { margin-top: auto; font-size: var(--fs-sm); }
.news-card--skeleton { min-height: 200px; background: linear-gradient(90deg, #fff 25%, #f0ede6 50%, #fff 75%); background-size: 200% 100%; animation: news-shimmer 1.4s linear infinite; }
@keyframes news-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .news-card--skeleton { animation: none; } }
.news-empty { grid-column: 1 / -1; text-align: center; color: var(--slate); padding: var(--space-8) 0; }
.news-note { margin-top: var(--space-6); max-width: 70ch; }

/* ==========================================================================
   Utilidades (01-11-2026): reemplazan los atributos style="" del HTML para que
   la política de seguridad de contenido (CSP) no necesite 'unsafe-inline'.
   Llevan !important para conservar la misma prioridad que tenía el estilo en línea.
   ========================================================================== */
.u-oculto { display: none !important; }
.u-trazo { stroke: currentColor !important; }
.u-centro { justify-content: center !important; }
.u-sinmax { max-width: none !important; }
.u-mt5 { margin-top: var(--space-5) !important; }
.u-fsh3 { font-size: var(--fs-h3) !important; }
.u-borde-sup { border-top: 1px solid var(--line-dark) !important; }
.form__aviso { margin: 0 0 var(--space-3); }
/* Contraste del botón rojo del menú: «.site-nav a» le ponía texto oscuro sobre rojo */
.site-nav a.btn--primary, .site-nav a.btn--primary:hover { color: #fff; }
