/* ==========================================================================
   CARDINAL — tokens.css · CAPA DE IDENTIDAD FINAL
   Fuente: cardinal-logo-mini-guia.pdf + handoff V2 (21/10/2026).
   Paleta de marca: Navy #15283A · Ivory #F8F9F3 · Coral #E96E44. Tipografía: Jost.
   Los tokens [DERIVADO] son tonos del mismo sistema necesarios para contraste AA
   (texto coral sobre ivory, grises de texto secundario, líneas). No son colores nuevos de marca.
   ========================================================================== */

/* Jost: sólo los pesos usados (Regular 400 para texto, Medium 500 para títulos y UI). */
@font-face { font-family: 'Jost'; src: url('../fonts/jost-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('../fonts/jost-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  /* Marca */
  --color-primary: #15283A;          /* Navy */
  --color-bg: #F8F9F3;               /* Ivory */
  --color-accent: #E96E44;           /* Coral */

  /* [DERIVADO] */
  --color-primary-2: #1C3247;
  --color-accent-hover: #EE8360;
  --color-accent-ink: #A9441F;       /* coral para TEXTO sobre ivory (5.6:1) */
  --color-on-accent: #15283A;        /* texto navy sobre botón coral (4.85:1) */
  --color-secondary: #6B7883;
  --color-secondary-soft: #BCC4CB;
  --color-secondary-ink: #56646F;
  --color-stone: #EEEFE7;            /* ivory tenue para alternar secciones */
  --color-surface: #FFFFFF;          /* tarjetas sobre ivory tenue */
  --color-line: #DADDD3;
  --color-text: #15283A;
  --color-muted: #56646F;            /* 5.7:1 sobre ivory */
  --color-placeholder: #6B7883;
  --color-on-dark: #F8F9F3;
  --color-on-dark-muted: #B9C3CC;
  --color-line-dark: rgba(248, 249, 243, 0.16);
  --color-focus: #E96E44;
  --color-error-on-dark: #F6B39B;
  --color-error-bg: rgba(233, 110, 68, 0.12);

  /* Tipografía */
  --font-sans: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-body: var(--font-sans);
  --font-brand: var(--font-sans);
  --font-accent: var(--font-sans);
  --weight-heading: 500;

  /* Logo (proporción del SVG: 880 × 204) */
  --logo-height: 34px;
  --logo-height-footer: 34px;
  --logo-mark-size: 10px;
}

/* ==========================================================================
   CARDINAL — site.css
   Componentes y layout. NO contiene valores de identidad: colores, fuentes
   y medidas del logo se leen de tokens.css (el build concatena ambos).
   ========================================================================== */

/* Los tokens de identidad (color, tipografía, logo) están en tokens.css.
   Acá quedan sólo los tokens estructurales (escala, layout). */
:root {
  --fs-eyebrow: 0.75rem;
  --fs-small: 0.875rem;
  /* Escala V1.1 (Command Center 08/10). Mobile 390 → desktop 1440:
     H1 38→54 · H2 28→38 · H3 21→23 · body 16→17 · destacado 18→20 */
  --fs-body: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  --fs-lead: clamp(1.125rem, 1.05rem + 0.25vw, 1.25rem);
  --fs-h3: clamp(1.3125rem, 1.2rem + 0.35vw, 1.4375rem);
  --fs-h3-lg: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem);
  --fs-h2: clamp(1.75rem, 1.45rem + 1.2vw, 2.375rem);
  --fs-h1: clamp(2.375rem, 1.9rem + 2vw, 3.375rem);
  --fs-metric: clamp(2.25rem, 1.8rem + 2vw, 3.25rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --section-y: clamp(3.5rem, 2.5rem + 3.5vw, 5.5rem);
  --header-h: 68px;
  --radius: 2px;
  --measure: 62ch;

}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
p, h1, h2, h3, li, dd, dt, blockquote { overflow-wrap: break-word; }

:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 1px; }
.section--dark :focus-visible, .site-header :focus-visible, .hero :focus-visible { outline-color: var(--color-on-dark); }

.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: 1rem; top: -100px; z-index: 100; background: var(--color-on-dark); color: var(--color-primary); padding: 0.75rem 1rem; font-weight: 600; }
.skip-link:focus { top: 0.75rem; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(760px + 2 * var(--gutter)); }

/* ---------- Tipografía ---------- */
.h1, .h2, .h3 { font-family: var(--font-display); font-weight: var(--weight-heading); letter-spacing: -0.015em; }
.h1 { font-size: var(--fs-h1); line-height: 1.1; max-width: 21ch; text-wrap: balance; letter-spacing: -0.025em; }
.h1--page { font-size: var(--fs-h2); max-width: none; margin-bottom: 2rem; }
.h2 { font-size: var(--fs-h2); line-height: 1.18; max-width: 26ch; text-wrap: balance; letter-spacing: -0.02em; }
.h3 { font-size: var(--fs-h3); line-height: 1.3; }
.h3--lg { font-size: var(--fs-h3-lg); line-height: 1.25; }
.eyebrow { font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: 0.12em; color: var(--color-accent-ink); margin-bottom: 1rem; line-height: 1.4; }
.section--dark .eyebrow, .hero .eyebrow { color: var(--color-accent); }
.eyebrow--muted, .section--dark .eyebrow--muted { color: var(--color-muted); }
.section-body { color: var(--color-muted); max-width: 52ch; font-size: var(--fs-lead); }
.section--dark .section-body { color: var(--color-on-dark-muted); }
.attribution { font-size: var(--fs-small); color: var(--color-muted); margin-top: 1rem; }

/* ---------- Botones y links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.75rem 1.5rem; font-size: 0.9375rem; font-weight: 600; line-height: 1.25; text-decoration: none; border-radius: var(--radius); border: 1.5px solid transparent; cursor: pointer; text-align: center; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.btn--primary { background: var(--color-accent); color: var(--color-on-accent); }
.btn--primary:hover { background: var(--color-accent-hover); }
.btn--outline { border-color: currentColor; background: transparent; }
.btn--outline:hover { background: rgba(255, 255, 255, 0.08); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; font-weight: 600; font-size: 0.9375rem; text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.link-arrow::after { content: ''; width: 22px; height: 1.5px; background: var(--color-accent); flex: none; }
.link-arrow--back::after { display: none; }
.section-cta { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; min-height: 44px; flex: none; }
.brand-logo { display: block; height: var(--logo-height); width: auto; }
.brand--footer .brand-logo { height: var(--logo-height-footer); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-primary); color: var(--color-on-dark); border-bottom: 1px solid var(--color-line-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav-list { display: flex; align-items: center; gap: 0.25rem; list-style: none; padding: 0; }
.nav-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.6rem; font-size: 0.875rem; text-decoration: none; color: var(--color-on-dark-muted); white-space: nowrap; }
.nav-list a:hover, .nav-list a[aria-current='true'] { color: var(--color-on-dark); }
.nav-cta { min-height: 44px; padding: 0.5rem 1rem; font-size: 0.875rem; white-space: nowrap; color: var(--color-accent); }
.nav-cta:hover { color: var(--color-on-dark); }
.menu-toggle { display: none; }

.lang { display: inline-flex; align-items: center; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; white-space: nowrap; }
.lang-item { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; text-decoration: none; }
.lang-item.is-current { color: var(--color-on-dark); }
a.lang-item { color: var(--color-on-dark-muted); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; }
a.lang-item:hover { color: var(--color-on-dark); text-decoration-color: currentColor; }
.lang-sep { color: var(--color-on-dark-muted); }

/* Navegación compacta: debajo de 1240px pasa a menú (evita nav en dos líneas en EN). */
@media (max-width: 1239.98px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -10px; background: none; border: 0; color: var(--color-on-dark); cursor: pointer; }
  .menu-icon { position: relative; width: 22px; height: 12px; }
  .menu-icon span { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform .2s ease, top .2s ease; }
  .menu-icon span:first-child { top: 0; }
  .menu-icon span:last-child { top: 10px; }
  .menu-toggle[aria-expanded='true'] .menu-icon span:first-child { top: 5px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded='true'] .menu-icon span:last-child { top: 5px; transform: rotate(-45deg); }

  .nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 1.5rem var(--gutter) 2rem; background: var(--color-primary); overflow-y: auto; overscroll-behavior: contain; }
  .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--color-line-dark); }
  .nav-list a { width: 100%; min-height: 56px; padding: 0; font-size: 1.125rem; color: var(--color-on-dark); white-space: normal; }
  .lang--nav { margin: 1.25rem 0 1.5rem -12px; font-size: 0.9375rem; }
  .nav-cta { min-height: 52px; font-size: 1rem; }
  .no-js .nav { position: static; display: flex; padding: 0 0 1.5rem; }
  .no-js .header-inner { height: auto; flex-wrap: wrap; padding-top: 0.75rem; }
  .no-js .menu-toggle { display: none; }
  body.menu-open { overflow: hidden; }
}
.page-privacy .nav-list { display: none; }
@media (max-width: 1239.98px) { .page-privacy .nav-list { display: flex; } }

/* ---------- Secciones ---------- */
.section { padding-block: var(--section-y); }
.section--light { background: var(--color-bg); }
.section--stone { background: var(--color-stone); }
.section--dark { background: var(--color-primary); color: var(--color-on-dark); }
.section-head { margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head .h2 + .section-body { margin-top: 1.25rem; }
@media (min-width: 960px) {
  .section-head--split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2rem, 4vw, 5rem); align-items: end; }
  .section-head--split .eyebrow { grid-column: 1 / -1; }
  .section-head--split .h2 { grid-column: 1; }
  .section-head--split .section-body { grid-column: 2; margin-top: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--color-primary); color: var(--color-on-dark); padding-block: clamp(4rem, 3rem + 6vw, 8.5rem) clamp(4rem, 3rem + 5vw, 7.5rem); }
.hero-inner { position: relative; z-index: 1; }
.hero .h1 { margin-bottom: 1.5rem; }
.hero-body { max-width: 46ch; font-size: var(--fs-lead); color: var(--color-on-dark-muted); margin-bottom: 2.25rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
@media (max-width: 899.98px) {
  }

/* ---------- Problemas ---------- */
.problem-list { border-top: 1px solid var(--color-line); }
.problem { display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 1rem; row-gap: 0.5rem; padding-block: 1.75rem; border-bottom: 1px solid var(--color-line); }
.problem-num { font-size: var(--fs-small); font-weight: 600; color: var(--color-accent-ink); padding-top: 0.35rem; font-variant-numeric: tabular-nums; }
.problem-title { grid-column: 2; }
.problem-text { grid-column: 2; color: var(--color-muted); max-width: var(--measure); }
@media (min-width: 900px) {
  .problem { grid-template-columns: 4rem minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(1.5rem, 3vw, 3.5rem); padding-block: 2.25rem; }
  .problem-title, .problem-text { grid-column: auto; }
}

/* ---------- Diagnóstico ---------- */
.diag-grid { display: grid; gap: 3rem; }
.diag-main .section-head { margin-bottom: 2rem; }
.highlight { border-left: 2px solid var(--color-accent); padding-left: 1.25rem; font-family: var(--font-accent); font-size: var(--fs-lead); line-height: 1.5; max-width: 42ch; margin-bottom: 2rem; }
.evidence { border-top: 1px solid var(--color-line-dark); padding-top: 1.5rem; }
.evidence blockquote p { color: var(--color-on-dark-muted); max-width: var(--measure); }
.evidence figcaption { margin-top: 0.75rem; font-size: var(--fs-small); color: var(--color-secondary-soft); }
@media (min-width: 960px) {
  .diag-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .diag-side { padding-top: 2.25rem; }
}

/* ---------- Dónde intervenimos ---------- */
.territories { display: grid; gap: 3rem; }
.territory .h3 { margin-bottom: 0.75rem; padding-top: 1rem; border-top: 2px solid var(--color-accent); display: inline-block; }
.territory p { color: var(--color-muted); }
@media (min-width: 720px) { .territories { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; } }
@media (min-width: 1024px) { .territories { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 3rem); } }

/* ---------- Change & Adoption ---------- */
.change-grid { display: grid; gap: 2.5rem; }
.change-grid .section-head { margin-bottom: 0; }
.dimensions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--color-line-dark); margin-bottom: 2rem; }
.dimensions li { padding: 0.8rem 0; border-bottom: 1px solid var(--color-line-dark); font-family: var(--font-display); font-size: 1.0625rem; }
.change-side > p { color: var(--color-on-dark-muted); max-width: var(--measure); margin-bottom: 1.5rem; }
.change-side .partners { color: var(--color-on-dark); border-left: 2px solid var(--color-accent); padding-left: 1.25rem; margin-bottom: 2.25rem; }
@media (min-width: 600px) { .dimensions { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 1.25rem; } }
@media (min-width: 960px) { .change-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: clamp(3rem, 6vw, 6rem); } }

/* ---------- Sobre Cardinal ---------- */
.about-grid { display: grid; gap: 3rem; }
.about-photo img { width: 100%; max-width: min(420px, 82vw); aspect-ratio: 560 / 830; object-fit: cover; object-position: 50% 22%; background: var(--color-stone); }
.about-photo figcaption { display: flex; flex-direction: column; margin-top: 1rem; }
.about-name { font-family: var(--font-display); font-size: var(--fs-h3); }
.about-role { color: var(--color-muted); font-size: var(--fs-small); }
.about-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: var(--fs-small); color: var(--color-accent-ink); text-underline-offset: 4px; align-self: flex-start; }
.about-text .section-head { margin-bottom: 1.5rem; }
.about-text > p { color: var(--color-muted); max-width: var(--measure); margin-bottom: 1rem; }
.about-text .about-closing { font-family: var(--font-display); font-size: var(--fs-h3-lg); line-height: 1.35; color: var(--color-text); margin-top: 2rem; }
@media (min-width: 720px) and (max-width: 959.98px) { .about-photo img { max-width: 320px; } }
@media (min-width: 960px) { .about-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(3rem, 6vw, 6rem); align-items: start; } }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 3rem; }
.contact-intro .section-head { margin-bottom: 2.5rem; }
.whatsapp { border-top: 1px solid var(--color-line-dark); padding-top: 1.75rem; }
.whatsapp .h3 { margin-bottom: 0.35rem; }
.whatsapp p { color: var(--color-on-dark-muted); margin-bottom: 1.25rem; }
.whatsapp .whatsapp-number { margin: 0.75rem 0 0; font-size: var(--fs-small); }
.btn--light { color: var(--color-on-dark); }
.form-intro { color: var(--color-on-dark-muted); margin-bottom: 1.75rem; max-width: 52ch; }
.form-grid { display: grid; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field label { font-size: var(--fs-small); font-weight: 600; color: var(--color-on-dark); }
.req { color: var(--color-accent); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 0.75rem 0.9rem; font-size: 1rem; line-height: 1.4; background: var(--color-on-dark); color: var(--color-text); border: 1.5px solid transparent; border-radius: var(--radius); }
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--color-placeholder); opacity: 1; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 1px; }
.field [aria-invalid='true'] { border-color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); }
.field-error { font-size: var(--fs-small); color: var(--color-error-on-dark); }
.form-extra { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn--submit { margin-top: 1.5rem; width: 100%; }
.form-status { margin-top: 1rem; min-height: 1.5em; font-size: 0.9375rem; color: var(--color-on-dark); }
.form-status.is-success { padding: 1rem 1.25rem; border-left: 2px solid var(--color-secondary); background: rgba(255, 255, 255, 0.06); }
.form-status.is-error { padding: 1rem 1.25rem; border-left: 2px solid var(--color-accent); background: var(--color-error-bg); }
.form-status a { font-weight: 600; text-underline-offset: 3px; }
@media (min-width: 600px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
  .field--full, .field[data-field='organization'] { grid-column: 1 / -1; }
  .btn--submit { width: auto; }
}
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(3rem, 6vw, 6rem); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-bg); border-top: 1px solid var(--color-line); padding-block: 3rem 2.5rem; font-size: var(--fs-small); }
.footer-grid { display: grid; gap: 2rem; }
.brand--footer { color: var(--color-primary); }
.footer-descriptor { color: var(--color-muted); margin-top: 0.25rem; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; list-style: none; padding: 0; }
.footer-links a, .footer-channels a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--color-text); }
.footer-links a:hover, .footer-channels a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-meta { display: flex; flex-direction: column; gap: 0.5rem; }
.lang--footer { margin-left: -12px; }
.lang--footer .lang-item.is-current { color: var(--color-text); }
.lang--footer a.lang-item, .lang--footer .lang-sep { color: var(--color-muted); }
.lang--footer a.lang-item:hover { color: var(--color-text); }
.footer-channels { display: flex; gap: 1.5rem; list-style: none; padding: 0; }
.footer-legal { color: var(--color-muted); }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); column-gap: 3rem; align-items: start; }
}

/* ---------- Privacidad / 404 ---------- */
.legal { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.legal p { max-width: var(--measure); margin-bottom: 1.1rem; color: var(--color-text); }
.legal-updated { color: var(--color-muted) !important; font-size: var(--fs-small); margin-top: 2rem; }
.brand--static { color: var(--color-primary); margin-bottom: 2rem; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}


/* ==========================================================================
   Ajustes de jerarquía, densidad y sección Cómo trabajamos
   ========================================================================== */
.hero { padding-block: clamp(4.5rem, 3rem + 6vw, 8rem) clamp(4rem, 2.5rem + 5vw, 7rem); }
.hero .h1 { margin-bottom: 1.25rem; }
.hero-body { font-family: var(--font-accent); line-height: 1.6; max-width: 48ch; margin-bottom: 2rem; }
.section-head { margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem); }
.problem { padding-block: 1.5rem; }
@media (min-width: 900px) { .problem { padding-block: 1.75rem; } }
.problem-title { font-size: clamp(1.125rem, 1.08rem + 0.25vw, 1.25rem); }
.about-text .about-closing { font-family: var(--font-accent); font-weight: 600; }
.about-name { font-family: var(--font-display); font-weight: 600; }
.dimensions li { font-family: var(--font-body); font-weight: 600; font-size: 1rem; }

/* Dónde intervenimos: bloques tipográficos (sin imágenes en V1.1) */
.territory { position: relative; padding-top: 1.5rem; }
.territory::before { content: ''; position: absolute; top: 0; left: 0; width: 48px; height: 2px; background: var(--color-accent); }
.territory .h3 { display: block; border-top: 0; padding-top: 0; margin-bottom: 0.75rem; }
.territory p { color: var(--color-muted); }

/* ---------- Cómo trabajamos: una sección, tres momentos ---------- */
.how-moment { padding-block: var(--section-y); }
.how-moment--a { background: var(--color-stone); }
.how-moment--b { background: var(--color-primary); color: var(--color-on-dark); }
.how-moment--c { background: var(--color-bg); }
.layer-title { font-family: var(--font-body); font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-secondary-ink); margin-bottom: 1.25rem; }
.layer-title--on-dark { color: var(--color-accent); }
.layer-intro { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.layer-intro .section-body { margin-top: 0.75rem; }
.how-moment--b .section-body { color: var(--color-on-dark-muted); }
.layer-lead { font-family: var(--font-display); font-weight: var(--weight-heading); font-size: var(--fs-h2); line-height: 1.18; letter-spacing: -0.02em; max-width: 26ch; text-wrap: balance; }

/* Formas de intervención: cards */
.doors { display: grid; gap: 1rem; }
.door { display: flex; flex-direction: column; min-width: 0; background: var(--color-surface); border-top: 3px solid var(--color-accent); padding: clamp(1.25rem, 1rem + 1vw, 2rem); }
.door-name { font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.02em; color: var(--color-accent-ink); margin-bottom: 0.75rem; }
.door-title { font-family: var(--font-display); font-weight: var(--weight-heading); font-size: var(--fs-h3); line-height: 1.28; letter-spacing: -0.015em; margin-bottom: 0.85rem; }
.door-body { color: var(--color-muted); font-size: 1rem; }
.door-note { margin-top: 0.75rem; font-size: 0.8125rem; line-height: 1.5; color: var(--color-muted); }
.door-outcome { margin-top: auto; padding-top: 1.25rem; font-weight: 600; font-size: 0.9375rem; line-height: 1.45; color: var(--color-text); }
.door-outcome .outcome-label { display: block; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--color-line); margin-bottom: 0.3rem; color: var(--color-accent-ink); }
@media (min-width: 1024px) { .doors { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.how-moment--a .section-cta { margin-top: 2rem; }

/* C · Principios: tres afirmaciones */
.statements { display: grid; gap: clamp(1.75rem, 1rem + 2vw, 2.5rem); }
.statement { border-top: 1px solid var(--color-line); padding-top: 1.25rem; }
.statement-num { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.5rem, 2rem + 2vw, 3.75rem); line-height: 1; letter-spacing: -0.03em; color: var(--color-accent); margin-bottom: 1rem; font-variant-numeric: tabular-nums; }
.statement-title { font-family: var(--font-display); font-weight: var(--weight-heading); font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem); line-height: 1.25; letter-spacing: -0.02em; max-width: 18ch; text-wrap: balance; }
@media (min-width: 900px) { .statements { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(2rem, 4vw, 4rem); } }

/* Mobile: ritmo más compacto en la sección */
@media (max-width: 719.98px) {
  .how-moment { padding-block: 3rem; }
  .doors { gap: 0.75rem; }
  .layer-intro { margin-bottom: 1.75rem; }
}

/* ---------- Sobre Cardinal: en mobile, texto primero y foto recortada ---------- */
@media (max-width: 959.98px) {
  .about-grid { gap: 2rem; }
  .about-text { order: 1; }
  .about-photo { order: 2; display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 1rem; align-items: center; }
  .about-photo img { width: 112px; max-width: 112px; aspect-ratio: 1; object-position: 50% 18%; }
  .about-photo figcaption { margin-top: 0; }
}


/* ==========================================================================
   RELEASE CANDIDATE — identidad final (Jost + paleta del manual)
   ========================================================================== */
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-weight: 500; }
.h1, .h2, .h3, .door-title, .layer-lead, .statement-title, .about-name { font-weight: var(--weight-heading); }
.h1 { letter-spacing: -0.015em; line-height: 1.08; max-width: 22ch; }
.h2 { letter-spacing: -0.01em; }
.btn, .nav-cta, .link-arrow, .lang, .door-name, .door-outcome, .field label, .cycle-title, .problem-num, .footer-links a { font-weight: 500; }
.hero-body { color: var(--color-on-dark-muted); }

/* Logo: SVG del manual, sin contenedor ni efectos; alto controlado, proporción intacta */
.brand { gap: 0; }
.brand-logo { height: var(--logo-height); width: auto; }
.site-footer .brand-logo { height: var(--logo-height-footer); }
@media (max-width: 479.98px) { :root { --logo-height: 30px; } }

/* Cómo trabajamos — momento B sobre navy */
.how-moment--b .eyebrow { color: var(--color-accent); }
.how-moment--b .section-head { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.how-moment--c .section-head { margin-bottom: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem); }

/* Sobre Cardinal: cierre operativo + claim institucional */
.about-text .about-closing { font-family: var(--font-body); font-weight: 500; font-size: var(--fs-lead); margin-top: 1.75rem; }
.about-claim { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 2px solid var(--color-accent); max-width: 30ch; font-size: var(--fs-h3-lg); line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; color: var(--color-text); text-wrap: balance; }
@media (min-width: 960px) { .about-photo img { max-width: 340px; } }
.about-text .about-claim { color: var(--color-text); }
.footer-links a, .footer-channels a { min-width: 44px; }
/* Coral sobre ivory no llega a 3:1 en números grandes: se usa el tono coral para texto (AA). */
.statement-num { color: var(--color-accent-ink); }

/* ==========================================================================
   V1.2 — SISTEMA GRÁFICO PROPIO
   Arcos segmentados, círculos que se superponen, líneas finas y nodos coral.
   Deriva del vocabulario geométrico del isotipo sin reproducir el logo.
   Todo es decorativo (aria-hidden). Colores sólo por tokens.
   ========================================================================== */
svg .g-line { stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
svg .g-faint { opacity: 0.45; }
svg .g-dots circle, svg .g-dots { fill: currentColor; stroke: none; }
svg .g-accent { fill: var(--color-accent); stroke: none; }
svg .g-accent-stroke { stroke: var(--color-accent); stroke-width: 1.75; fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* ---------- Hero: campo de arcos, a sangre por la derecha ---------- */
.hero-field { position: absolute; top: 0; right: 0; height: 100%; width: min(52vw, 760px); color: rgba(248, 249, 243, 0.11); pointer-events: none; }
.hero-field .g-accent-stroke { stroke-width: 2; }
@media (max-width: 899.98px) {
  .hero-field { top: -6%; height: 62%; width: 92vw; color: rgba(248, 249, 243, 0.08); }
  .hero-field .g-accent, .hero-field .g-accent-stroke { display: none; }
}

/* ---------- Eyebrow con marca de momento ---------- */
.eyebrow--glyph { display: flex; align-items: center; gap: 0.75rem; }
.moment-glyph { flex: none; width: 44px; height: 16px; color: currentColor; overflow: visible; }
.moment-glyph--b { width: 18px; } .moment-glyph--c { width: 28px; } .moment-glyph--change { width: 30px; }
.section--dark .moment-glyph, .how-moment--b .moment-glyph { color: rgba(248, 249, 243, 0.7); }
.how-moment--a .moment-glyph, .how-moment--c .moment-glyph { color: var(--color-primary); }

/* ---------- Diagnóstico: recorrido de lo disperso a la decisión ---------- */
.route { position: relative; margin-bottom: 2.5rem; border: 1px solid var(--color-line-dark); padding: clamp(1.25rem, 1rem + 1vw, 2rem); }
.route-step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; column-gap: 1.25rem; padding-block: 0.85rem; }
.route-step:not(:last-child)::after { content: ''; position: absolute; left: 28px; top: calc(50% + 34px); height: calc(100% - 68px); border-left: 1px dashed rgba(248, 249, 243, 0.35); }
.route-step + .route-step { margin-top: 0.75rem; }
.diag-mark { width: 56px; height: 56px; color: var(--color-secondary-soft); overflow: visible; }
.route-label { font-size: var(--fs-lead); line-height: 1.35; }
.route-step:last-child .route-label { color: var(--color-on-dark); font-weight: 500; }

/* ---------- Dónde intervenimos: tres territorios con símbolo propio ---------- */
.territories { gap: 1rem; }
.territory { position: relative; overflow: hidden; background: var(--color-surface); border: 1px solid var(--color-line); padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); padding-bottom: 5.25rem; color: var(--color-primary); }
.territory::before { display: none; }
.territory .h3 { position: relative; margin-top: 1.5rem; }
.territory p { position: relative; }
.territory p + p { margin-top: 0.35rem; }
.where-mark { display: block; width: 56px; height: 56px; overflow: visible; }
.territory-bg { position: absolute; right: -28px; bottom: -48px; width: 124px; height: 124px; color: var(--color-line); opacity: 0.9; }
.territory-bg .g-accent { fill: var(--color-stone); }
.territory-bg .g-line { stroke-width: 1.25; }
.territory-bg .g-dots { fill: var(--color-line); }
@media (min-width: 720px) { .territories { column-gap: 1rem; row-gap: 1rem; } }
@media (min-width: 1024px) { .territories { column-gap: 1.25rem; } }
.territory--2 { background: var(--color-stone); border-color: transparent; }
.territory--2 .territory-bg .g-accent { fill: var(--color-bg); }

/* ---------- Formas de intervención: cada puerta con su marca ---------- */
.door { border-top: 0; box-shadow: inset 0 3px 0 var(--color-accent); }
.door-top { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.25rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--color-line); color: var(--color-primary); }
.door-top .door-name { margin-bottom: 0; }
.door-mark { flex: none; width: 44px; height: 44px; overflow: visible; }

/* ---------- Movimientos: diagrama principal ---------- */
.cycle { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3.5rem); align-items: center; }
.cycle-figure { width: min(100%, 520px); margin-inline: auto; }
.cycle-diagram { display: block; width: 100%; height: auto; overflow: visible; }
.cycle-orbit { stroke: rgba(248, 249, 243, 0.35); stroke-width: 1; stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
.cycle-rings circle { fill: rgba(248, 249, 243, 0.035); stroke: rgba(248, 249, 243, 0.55); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.cycle-labels text { fill: var(--color-on-dark); font-family: var(--font-body); font-size: 14px; font-weight: 500; letter-spacing: 0.16em; }
.cycle-runner-halo { stroke: var(--color-accent); stroke-width: 1; opacity: 0.5; vector-effect: non-scaling-stroke; }
.cycle-runner { transform-origin: 0 0; transform-box: view-box; }
@media (prefers-reduced-motion: no-preference) {
  .cycle-runner { animation: cycle-orbit 64s linear infinite; }
}
@keyframes cycle-orbit { to { transform: rotate(360deg); } }

.cycle-list { display: grid; counter-reset: mv; }
.cycle-item { position: relative; padding: 0.95rem 0 0.95rem 2.25rem; border-top: 1px solid var(--color-line-dark); }
.cycle-item:last-child { border-bottom: 1px solid var(--color-line-dark); }
.cycle-item::before { content: ''; position: absolute; left: 0; top: 1.3rem; width: 14px; height: 14px; border-radius: 50%; border: 1.25px solid rgba(248, 249, 243, 0.6); }
.cycle-item::after { content: ''; position: absolute; left: 9px; top: 1.3rem; width: 14px; height: 14px; border-radius: 50%; border: 1.25px solid rgba(248, 249, 243, 0.25); }
.cycle-title { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.16em; color: var(--color-on-dark); margin-bottom: 0.3rem; }
.cycle-text { color: var(--color-on-dark-muted); font-size: 0.9875rem; line-height: 1.5; max-width: 46ch; }
.how-moment--b .how-closing { color: var(--color-on-dark-muted); margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); padding-left: 1.25rem; border-left: 2px solid var(--color-accent); max-width: 62ch; }
@media (min-width: 960px) {
  .cycle { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(3rem, 6vw, 6rem); }
  .cycle-figure { margin-inline: 0; }
}
@media (max-width: 599.98px) {
  .cycle-figure { width: min(100%, 360px); }
  .cycle-labels text { font-size: 19px; letter-spacing: 0.12em; }
}

/* ---------- Principios: arcos de cierre ---------- */
.how-moment--c { position: relative; overflow: hidden; }
.how-moment--c > .container { position: relative; z-index: 1; }
.principles-field { position: absolute; right: 0; bottom: 0; width: min(28vw, 360px); height: auto; color: var(--color-line); pointer-events: none; }
.principles-field .g-line { stroke-width: 1.25; }
.statement { border-top: 0; padding-top: 0; padding-left: 1.25rem; border-left: 1px solid var(--color-line); }
.statement-num { position: relative; }
.statement-num::after { content: ''; display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); margin-top: 1rem; }

/* ---------- Change & Adoption: soporte mínimo ---------- */
.dimensions li { position: relative; padding-left: 1.25rem; }
.dimensions li::before { content: ''; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; border: 1.25px solid rgba(248, 249, 243, 0.6); }
.dimensions li:last-child::before { background: var(--color-accent); border-color: var(--color-accent); }

@media (max-width: 719.98px) {
  .principles-field { width: 56vw; }
}

/* ---------- V1.3 · Franjas fotográficas (aire entre secciones) ---------- */
.photo-band { margin: 0; background: var(--color-primary); }
.photo-band img { display: block; width: 100%; height: auto; aspect-ratio: var(--band-ratio, 3.2); object-fit: cover; max-height: 560px; }
@media (max-width: 719.98px) { .photo-band img { aspect-ratio: 1.7; } }

/* ---------- V1.4 · Principios: título a la izquierda, Panteón apaisado alineado con 02 y 03 ---------- */
.principles-photo { margin: 0 0 clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem); }
.principles-photo img { display: block; width: 100%; height: auto; aspect-ratio: 2.4; object-fit: cover; }
@media (max-width: 899.98px) { .principles-photo img { aspect-ratio: 1.7; } }
@media (min-width: 900px) {
  .principles-head { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(2rem, 4vw, 4rem); align-items: end; margin-bottom: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem); }
  .principles-head .section-head { margin-bottom: 0; }
  .principles-photo { grid-column: 2 / 4; margin: 0; }
}

/* ---------- V1.4 · Cuándo podemos ayudar: dos columnas en desktop ---------- */
@media (min-width: 900px) {
  .problem-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 5rem); border-top: 0; align-items: start; }
  .problem { grid-template-columns: 3rem minmax(0, 1fr); column-gap: 1rem; row-gap: 0.5rem; padding-block: 1.5rem; border-top: 1px solid var(--color-line); border-bottom: 0; align-content: start; }
  .problem-title, .problem-text { grid-column: 2; }
  .problem-text { max-width: none; }
}

/* ---------- V1.4 · Formas de intervención: "Resultado" alineado en las tres tarjetas ----------
   Cada tarjeta comparte las filas de la grilla (subgrid): cabecera, contenido y resultado.
   Así la línea de "Resultado" queda a la misma altura en las tres, sin importar el largo del texto. */
@media (min-width: 1024px) {
  @supports (grid-template-rows: subgrid) {
    .door { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
    .door-outcome { margin-top: 0; }
  }
}

/* ---------- V1.4 · Movimientos más compactos: gráfico y lista entran en una pantalla ---------- */
@media (min-width: 960px) {
  .how-moment--b .section-head { display:grid; grid-template-columns:minmax(0,7fr) minmax(0,5fr); column-gap:clamp(2rem,4vw,5rem); align-items:end; margin-bottom:clamp(1.75rem,1.25rem+1.5vw,2.5rem); }
  .how-moment--b .section-head .eyebrow { grid-column:1/-1; }
  .how-moment--b .section-head .section-body { margin-top:0; }
  .cycle { grid-template-columns:minmax(0,5fr) minmax(0,6fr); }
  .cycle-figure { width:min(100%, 410px); margin-inline:auto; }
  .cycle-item { padding-block:0.7rem; }
  .cycle-item::before, .cycle-item::after { top:1.05rem; }
  .cycle-labels text { font-size:17px; }
  .how-moment--b .how-closing { margin-top:clamp(1.5rem,1rem+1.5vw,2.25rem); }
}

/* ---------- V1.4 · Change & Adoption: dimensiones al servicio de la adopción ---------- */
.dim-lens { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); gap: 1.5rem; align-items: center; margin-bottom: 2rem; padding-block: 1.25rem; border-block: 1px solid var(--color-line-dark); }
.dim-lens-mark { display: block; width: 100%; height: auto; color: rgba(248, 249, 243, 0.55); overflow: visible; }
.dim-lens-mark .g-line { stroke-width: 1.25; }
.dim-lens-title { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h3); color: var(--color-on-dark); margin: 0 0 0.35rem; }
.dim-lens-sub { color: var(--color-on-dark-muted); font-size: 0.9375rem; line-height: 1.55; margin: 0; }
@media (max-width: 479.98px) { .dim-lens { grid-template-columns: 110px minmax(0, 1fr); gap: 1rem; } }

/* ---------- V1.4 · Sobre Cardinal: texto primero, foto más chica a la derecha ---------- */
@media (min-width: 960px) {
  .about-grid { grid-template-columns: minmax(0, 1fr) 240px; column-gap: clamp(3rem, 6vw, 6rem); }
  .about-text { order: 1; }
  .about-photo { order: 2; }
  .about-photo img { max-width: 240px; }
}

/* ---------- V1.4 · "Sobre CARDINAL": la palabra con el tratamiento del logotipo (Jost, versalitas espaciadas) ---------- */
.wordmark { font-weight: 400; text-transform: uppercase; letter-spacing: 0.26em; font-size: 0.86em; }

/* ---------- V1.4 · Contacto: WhatsApp como enlace directo (ícono + número) ---------- */
.wa-link { display: inline-flex; align-items: center; gap: 0.85rem; min-height: 44px; margin-top: 0.75rem; color: var(--color-on-dark); text-decoration: none; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; letter-spacing: 0.01em; }
.wa-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--color-accent); color: var(--color-primary); transition: background-color 0.2s ease; }
.wa-icon svg { width: 22px; height: 22px; }
.wa-num { border-bottom: 1px solid rgba(248, 249, 243, 0.35); padding-bottom: 2px; }
.wa-link:hover .wa-icon { background: var(--color-accent-hover); }
.wa-link:hover .wa-num { border-color: var(--color-accent); }
.wa-link:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; }
