/* ==========================================================================
   JA Funding Studio — styles.css
   Arquetipo: Editorial Light Cream, adaptado a la paleta de marca.
   ========================================================================== */

/* ---------- Fuentes (alojadas en local) ---------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/montserrat-300.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/montserrat-400.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/montserrat-500.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/montserrat-600.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --grafito: #2B2B2B;
  --gris: #5E5E5E;
  --blanco: #F7F5F0;
  --beige: #D9D4C7;
  --ocre: #C9A227;        /* solo líneas, detalles y cifras grandes sobre grafito */
  --ocre-osc: #8A6B0C;    /* texto ocre sobre blanco roto */
  --line: rgba(43, 43, 43, 0.14);
  --line-dark: rgba(247, 245, 240, 0.16);

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 5vw, 64px);
  --section: clamp(72px, 10vw, 140px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--blanco);
  color: var(--grafito);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.25; }
strong { font-weight: 600; }
::selection { background: var(--beige); color: var(--grafito); }
:focus-visible { outline: 2px solid var(--ocre-osc); outline-offset: 3px; }

.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; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--grafito); color: var(--blanco); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

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

.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.section--beige, .section--dark { padding-block: var(--section); }
.section--beige { background: var(--beige); --gris: var(--grafito); }  /* el gris sobre beige no llega a 4,5:1 */
.section--dark { background: var(--grafito); color: var(--blanco); }
.section--beige + .section, .section--dark + .section { padding-top: var(--section); }

/* ---------- Tipografía editorial ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 22px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ocre-osc);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--ocre); }
.section--beige .eyebrow { color: var(--gris); }
.section--dark .eyebrow { color: var(--ocre); }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 300; line-height: 1.6; color: var(--gris); max-width: 62ch; }
.section--dark .lead { color: rgba(247, 245, 240, 0.78); }
h2 + .lead { margin-top: 22px; }
.muted { color: var(--gris); }
.small { font-size: 0.85rem; line-height: 1.55; }
.note { font-size: 0.82rem; color: var(--gris); margin-top: 28px; }
.section--dark .note { color: rgba(247, 245, 240, 0.62); }
.label { margin: 0 0 14px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gris); }
.section--dark .label { color: rgba(247, 245, 240, 0.62); }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 72px); }

.quote {
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding-left: clamp(20px, 3vw, 36px);
  border-left: 2px solid var(--ocre);
  font-size: clamp(1.35rem, 2.6vw, 2rem); font-weight: 500; line-height: 1.3;
  max-width: 30ch; text-wrap: balance;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px;
  border: 1px solid var(--grafito); border-radius: 2px;
  font: 500 0.95rem/1.2 var(--font); letter-spacing: 0.02em; text-decoration: none;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-dark { background: var(--grafito); color: var(--blanco); }
.btn-dark:hover { background: #000; border-color: #000; }
.btn-ghost { background: transparent; color: var(--grafito); }
.btn-ghost:hover { background: var(--grafito); color: var(--blanco); }
.btn-ocre { background: var(--ocre); border-color: var(--ocre); color: var(--grafito); }
.btn-ocre:hover { background: var(--blanco); border-color: var(--blanco); }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: 0.88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.i-arrow { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { flex: none; display: block; }
.brand img { width: 168px; height: auto; }

.site-nav { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px); }
.nav-list { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px); list-style: none; }
.nav-list a {
  position: relative; display: block; padding: 6px 0;
  font-size: 0.9rem; font-weight: 500; text-decoration: none; color: var(--grafito); white-space: nowrap;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--ocre); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { white-space: nowrap; }

/* Selector de idioma: desplegable en escritorio */
.lang { position: relative; }
.lang summary {
  display: inline-flex; align-items: center; gap: 6px;
  list-style: none; cursor: pointer; padding: 8px 10px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em;
  border: 1px solid var(--line); border-radius: 2px;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 10px; height: 10px; transition: transform .25s var(--ease); }
.lang[open] summary svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px;
  list-style: none; padding: 6px; background: var(--blanco);
  border: 1px solid var(--line); box-shadow: 0 18px 40px -20px rgba(43, 43, 43, 0.35);
}
.lang-menu a { display: block; padding: 9px 12px; font-size: 0.9rem; text-decoration: none; }
.lang-menu a:hover { background: var(--beige); }
.lang-menu a[aria-current="true"] { font-weight: 600; }
.lang-menu a[aria-current="true"]::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: var(--ocre); vertical-align: middle; }

.nav-toggle { display: none; }

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; margin-right: -10px; background: none; border: 0; cursor: pointer; color: var(--grafito);
  }
  .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
    display: block; width: 24px; height: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .3s;
  }
  .nav-toggle .bars { position: relative; }
  .nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle .bars::before { top: -7px; }
  .nav-toggle .bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

  .js .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 40px; background: var(--blanco); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .site-nav { flex-wrap: wrap; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-list a { padding: 16px 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--ocre-osc); }
  /* Selector de idioma en móvil: dos botones dentro del menú */
  .lang { display: none; }
  .lang-mobile { display: flex; gap: 8px; margin-top: 22px; list-style: none; }
  .lang-mobile a { display: block; padding: 10px 16px; border: 1px solid var(--line); font-size: 0.95rem; text-decoration: none; }
  .lang-mobile a[aria-current="true"] { background: var(--grafito); color: var(--blanco); border-color: var(--grafito); }
  .nav-cta { margin-top: 22px; width: 100%; min-height: 52px; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 1101px) { .lang-mobile { display: none; } }

/* ---------- Migas de pan ---------- */
.breadcrumb { padding-top: 28px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; font-size: 0.82rem; color: var(--gris); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--beige); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Portada ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(72px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero h1 {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.5;
  color: var(--ocre-osc); display: flex; gap: 12px; align-items: baseline; max-width: 40ch;
}
.hero h1::before { content: ""; flex: none; width: 28px; height: 2px; background: var(--ocre); transform: translateY(-4px); }
.hero-title {
  margin: 26px 0 0; font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 600; line-height: 1.04;
  letter-spacing: -0.025em; text-wrap: balance; max-width: 16ch;
}
.hero-sub { margin-top: 28px; }
.hero-scope { display: flex; gap: 12px; align-items: center; margin-top: 18px; font-size: 0.92rem; color: var(--gris); }
.hero-scope::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ocre); flex: none; }
.hero-media { position: relative; }
.hero-media::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--ocre); pointer-events: none;
}
.hero-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--beige); }
.hero-frame img { width: 100%; height: 112%; object-fit: cover; will-change: transform; }

/* Cabecera de páginas interiores */
.page-hero { padding-block: clamp(36px, 5vw, 64px) clamp(48px, 6vw, 80px); }
.page-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1.05; letter-spacing: -0.025em; max-width: 18ch; }
.page-hero .lead { margin-top: 26px; }
.page-figure { overflow: hidden; aspect-ratio: 16 / 7; background: var(--beige); }
.page-figure img { width: 100%; height: 100%; object-fit: cover; }

/* Índice de anclas */
.toc { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 22px; margin-top: clamp(40px, 5vw, 64px); }
.toc p { margin: 0 0 12px; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gris); }
.toc ol { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { font-size: 0.95rem; font-weight: 500; text-decoration: none; }
.toc a::before { content: counter(toc, decimal-leading-zero); margin-right: 8px; color: var(--ocre-osc); font-size: 0.8rem; }
.toc a:hover { text-decoration: underline; }

/* ---------- Bloques ---------- */
.two-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 5vw, 80px); }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--media { align-items: center; }

.dash-list { list-style: none; display: grid; gap: 14px; }
.dash-list li { position: relative; padding-left: 30px; }
.dash-list li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 16px; height: 2px; background: var(--ocre); }

.block-title { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-bottom: 22px; }
.closing { margin-top: clamp(48px, 6vw, 80px); font-size: clamp(1.3rem, 2.4vw, 1.85rem); font-weight: 500; line-height: 1.32; max-width: 34ch; text-wrap: balance; }

/* Cifras */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); }
.stats--4 { grid-template-columns: repeat(4, 1fr); }
.stat { border-top: 1px solid var(--line); padding-top: 26px; }
.section--dark .stat { border-top-color: var(--line-dark); }
.stat-num { display: block; font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 600; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.section--dark .stat-num { color: var(--ocre); }
.stat-num + p { margin-top: 18px; }
.stat p { color: var(--gris); font-size: 0.98rem; }
.section--dark .stat p { color: rgba(247, 245, 240, 0.78); }
.stat--light { border-top: 2px solid var(--ocre); }
.sources { margin-top: clamp(40px, 5vw, 64px); font-size: 0.78rem; line-height: 1.6; color: rgba(247, 245, 240, 0.6); max-width: 90ch; }
.disclaimer { margin-top: 32px; font-size: 0.82rem; color: var(--gris); font-style: normal; display: flex; gap: 10px; align-items: baseline; }
.disclaimer::before { content: ""; width: 14px; height: 1px; background: var(--ocre); flex: none; transform: translateY(-3px); }
.section--dark .disclaimer { color: rgba(247, 245, 240, 0.62); }

/* Tarjetas de servicio */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(43, 43, 43, 0.45); }
.card-media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--beige); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: clamp(24px, 3vw, 36px); }
.card-body h3 { margin-bottom: 20px; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; }
.card-body .dash-list { font-size: 0.97rem; gap: 10px; margin-bottom: 28px; }
.card-body .link-arrow { margin-top: auto; align-self: flex-start; }

/* Lista numerada (diferencias, formas de trabajo) */
.numbered { list-style: none; display: grid; gap: 0; counter-reset: n; }
.numbered > li { counter-increment: n; display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding-block: 30px; border-top: 1px solid var(--line); }
.numbered > li:last-child { border-bottom: 1px solid var(--line); }
.numbered > li::before { content: counter(n, decimal-leading-zero); font-size: 0.95rem; font-weight: 600; color: var(--ocre-osc); padding-top: 4px; }
.section--beige .numbered > li::before { color: var(--grafito); }
.section--dark .numbered > li { border-color: var(--line-dark); }
.section--dark .numbered > li::before { color: var(--ocre); }
.numbered h3 { margin-bottom: 8px; }
.numbered p { margin: 0; color: var(--gris); }
.section--dark .numbered p { color: rgba(247, 245, 240, 0.78); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.feature-grid--4 { grid-template-columns: repeat(4, 1fr); }
.feature-grid--2 { grid-template-columns: repeat(2, 1fr); }
.feature { border-top: 2px solid var(--ocre); padding-top: 24px; }
.feature h3 { margin-bottom: 12px; }
.feature p { color: var(--gris); margin: 0; }
.section--dark .feature p { color: rgba(247, 245, 240, 0.78); }
.feature-kicker { display: block; margin-bottom: 14px; font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.section--dark .feature-kicker { color: var(--ocre); }

/* Pasos */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; margin-top: clamp(40px, 5vw, 64px); }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.steps li { counter-increment: s; position: relative; padding: 52px 20px 0 0; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0; z-index: 1;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--blanco); border: 1px solid var(--ocre); font-size: 0.85rem; font-weight: 600;
}
.section--beige .steps li::before { background: var(--beige); }
.steps li::after { content: ""; position: absolute; top: 17px; left: 34px; right: 0; height: 1px; background: var(--ocre); }
.steps li:last-child::after { display: none; }
.steps strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.steps span { display: block; font-size: 0.92rem; color: var(--gris); }

/* Recorrido en línea */
.flow { list-style: none; display: flex; align-items: stretch; gap: 0; margin-top: clamp(40px, 5vw, 64px); }
.flow li { flex: 1; display: flex; align-items: center; gap: 0; }
.flow span { flex: 1; padding: 22px 18px; background: #fff; border: 1px solid var(--line); font-weight: 500; text-align: center; font-size: 0.98rem; }
.flow li:last-child span { background: var(--grafito); color: var(--blanco); border-color: var(--grafito); }
.flow li:last-child { padding-right: 46px; }
.flow svg { width: 34px; height: 18px; flex: none; color: var(--ocre-osc); margin-inline: 6px; }

/* Etiquetas / programas */
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.tags li { padding: 7px 14px; border: 1px solid var(--line); font-size: 0.88rem; font-weight: 500; background: rgba(255, 255, 255, 0.5); }
.section--beige .tags li { background: rgba(255, 255, 255, 0.45); }
.section--dark .tags li { border-color: var(--line-dark); background: transparent; }

/* Ejemplos */
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.examples--2 { grid-template-columns: repeat(2, 1fr); }
.examples--1 { grid-template-columns: 1fr; max-width: 820px; }
.example { background: #fff; color: var(--grafito); border: 1px solid var(--line); padding: clamp(26px, 3vw, 40px); }
.example-figure { display: block; font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }
.example-tag { display: block; margin: 14px 0 18px; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ocre-osc); }
.example p { margin: 0; color: var(--gris); }

/* Imagen editorial */
.figure { overflow: hidden; background: var(--beige); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure--tall { aspect-ratio: 4 / 5; }
.figure--wide { aspect-ratio: 3 / 2; }

/* Franja de organismos */
.orgs { display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 4vw, 64px); flex-wrap: nowrap; padding-block: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.org { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; min-height: 64px; text-align: center; }
.org img { height: 56px; width: auto; filter: grayscale(1) contrast(1.1); opacity: 0.6; mix-blend-mode: multiply; }
.org-text { font-size: clamp(0.95rem, 1.4vw, 1.15rem); font-weight: 600; line-height: 1.25; color: #6f6f6f; letter-spacing: 0.01em; }
.org-text small { display: block; margin-top: 6px; font-size: 0.72rem; font-weight: 500; color: var(--gris); letter-spacing: 0.02em; }
.orgs-note { margin-top: 18px; font-size: 0.8rem; color: var(--gris); }

/* Bloque de llamada */
.cta-band { background: var(--grafito); color: var(--blanco); padding-block: clamp(72px, 9vw, 120px); }
.cta-band .cta-inner { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: end; }
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 18ch; }
.cta-band p { margin: 18px 0 0; color: rgba(247, 245, 240, 0.78); font-size: 1.1rem; max-width: 46ch; }
.cta-band .eyebrow { margin-top: 0; color: var(--ocre); }
.cta-band .btn-row { margin-top: 0; justify-content: flex-end; }

/* Diagnóstico */
.diag { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); background: #fff; }
.diag > div { padding: clamp(28px, 4vw, 48px); }
.diag > div + div { border-left: 1px solid var(--line); }
.diag h3 { margin-bottom: 22px; }

/* Contacto */
.contact-hero { padding-block: clamp(40px, 6vw, 80px); }
.contact-hero h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 16ch; }
.mail-btn { font-size: clamp(1rem, 2vw, 1.2rem); min-height: 60px; padding-inline: 30px; }

/* Texto legal */
.legal { max-width: 780px; }
.legal h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin: 48px 0 16px; }
.legal ul { padding-left: 1.2em; margin-bottom: 1em; }
.legal li { margin-bottom: 6px; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0 0 1em; }
.legal dt { font-weight: 600; }
.legal dd { margin: 0; }

/* Resumen "Quiénes somos" en portada */
.about-teaser { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-teaser p:not(.eyebrow) { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 400; line-height: 1.5; max-width: 40ch; }

/* ---------- Pie ---------- */
.site-footer { background: var(--grafito); color: rgba(247, 245, 240, 0.82); padding-block: clamp(64px, 8vw, 96px) 32px; font-size: 0.95rem; border-top: 1px solid var(--line-dark); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--blanco); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; }
.footer-logo { width: 130px; height: auto; }
.footer-mail { display: inline-block; margin-top: 26px; font-size: 1.05rem; font-weight: 500; color: var(--blanco); border-bottom: 1px solid var(--ocre); padding-bottom: 3px; }
.footer-title { margin: 0 0 16px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ocre); }
.footer-list { list-style: none; display: grid; gap: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 0.82rem; color: rgba(247, 245, 240, 0.6); }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; }

/* ---------- Aparición al hacer scroll (solo si hay JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }  /* defensa: nunca ocultar texto partido */
.js .reveal-d1 { transition-delay: .08s; }
.js .reveal-d2 { transition-delay: .16s; }
.js .reveal-d3 { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --header-h: 68px; }
  .brand img { width: 150px; }
  .stats--4, .feature-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .steps li:nth-child(3)::after { display: none; }
}
@media (max-width: 860px) {
  .hero-grid, .split, .about-teaser, .cta-band .cta-inner { grid-template-columns: 1fr; }
  .hero-media { order: 2; margin-right: 22px; }
  .hero-frame { aspect-ratio: 4 / 3; }
  .two-col, .three-col, .cards, .cards--2, .stats, .examples, .examples--2, .feature-grid, .feature-grid--2, .diag, .footer-grid { grid-template-columns: 1fr; }
  .diag > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .cta-band .btn-row { justify-content: flex-start; }
  .page-figure { aspect-ratio: 3 / 2; }
  .figure--tall { aspect-ratio: 4 / 3; }
  .flow { flex-direction: column; }
  .flow li { flex-direction: column; }
  .flow svg { transform: rotate(90deg); margin-block: 6px; }
  .orgs { flex-direction: column; align-items: stretch; gap: 28px; }
  .about-teaser .figure { max-width: 420px; }
}
@media (max-width: 600px) {
  .stats--4, .feature-grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps li { padding: 0 0 28px 54px; }
  .steps li::after { display: block !important; top: 34px; left: 17px; right: auto; bottom: 0; width: 1px; height: auto; }
  .steps li:last-child::after { display: none !important; }
  .numbered > li { grid-template-columns: 44px 1fr; gap: 12px; }
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 10px; }
  .btn-row .btn { width: 100%; }
}
@media (max-width: 860px) { .flow li:last-child { padding-right: 0; } }
