/* ==========================================================================
   VAFO — Valor A Family Office
   Hoja de estilos única del sitio. Los colores y tipografías de la marca
   están definidos como variables al inicio: cambiar un valor aquí lo cambia
   en todo el sitio.
   ========================================================================== */

/* ---------- Tipografías (alojadas en el propio sitio) ---------- */
@font-face { font-family: "Prata"; src: url("/assets/fonts/prata-latin-400-normal.woff2?v=a91597d6") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("/assets/fonts/be-vietnam-pro-latin-400-normal.woff2?v=312fd8b5") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("/assets/fonts/be-vietnam-pro-latin-400-italic.woff2?v=4787b58f") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("/assets/fonts/be-vietnam-pro-latin-500-normal.woff2?v=4994cf94") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("/assets/fonts/be-vietnam-pro-latin-600-normal.woff2?v=7aec41b3") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Variables de marca ---------- */
:root {
  --navy: #14365b;      /* azul marino: títulos y énfasis */
  --blue: #365b7d;      /* azul VAFO: fondos principales */
  --steel: #53697c;     /* gris azulado: texto */
  --mist: #8199ac;      /* azul claro: títulos de sección y bandas */
  --pale: #cdd7dd;      /* celeste muy claro: fondos suaves */
  --gray: #edeced;      /* gris claro: paneles */
  --mid: #a4a4a5;       /* gris medio: cajas de cita */
  --line: #cdd7dd;      /* bordes */
  --white: #ffffff;
  --paper: #fefefe;

  --serif: "Prata", Georgia, "Times New Roman", serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1280px;
  --gutter: 40px;
  --header-h: 94px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--steel);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.2px; margin: 0; color: var(--navy); }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--mist); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 100px 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--white); padding: 10px 16px; }

/* Título de sección: barra vertical azul + texto azul claro */
.title {
  font-size: 36px; line-height: 1.2; color: var(--mist);
  border-left: 2px solid var(--blue); padding-left: 12px;
}
.title--light { color: var(--white); border-left-color: var(--white); }
.lead { font-size: 18px; line-height: 1.7; }

/* ---------- Botones y enlaces con flecha ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 11px 22px; border: 1px solid var(--blue); border-radius: 0;
  background: transparent; color: var(--navy);
  font: 500 15px/1.4 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { background: var(--blue); color: var(--white); }
.btn svg { width: 12px; height: 12px; flex: none; }
.btn--white { border-color: var(--white); color: var(--white); }
.btn--white:hover { background: var(--white); color: var(--blue); }
.btn--solid { background: var(--navy); border-color: var(--navy); color: var(--white); border-radius: 4px; }
.btn--solid:hover { background: var(--blue); border-color: var(--blue); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 0; border-bottom: 1px solid currentColor; padding: 0 0 4px;
  color: var(--blue); font: 500 16px/1.4 var(--sans); text-decoration: none; cursor: pointer;
}
.arrow-link svg { width: 18px; height: 9px; transition: transform .25s ease; }
.arrow-link:hover svg { transform: translateX(4px); }
.arrow-link--light { color: var(--white); margin-top: 18px; font-size: 15px; }

/* ---------- Cabecera ---------- */
.header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: var(--white); box-shadow: 0 0 24px rgba(20, 54, 91, .06);
}
.header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo { flex: none; }
.header__logo img { width: 200px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: #5f666c; font-size: 14px; text-decoration: none; white-space: nowrap; transition: color .2s ease; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--navy); }
.nav .btn { margin-left: 16px; padding: 9px 21px; border-color: #32373c; color: #32373c; font-weight: 400; font-size: 14px; }
.nav .btn:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: none; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--navy); transition: transform .25s ease, opacity .25s ease; }

/* ---------- Inicio (hero) ---------- */
.hero {
  min-height: 650px; display: flex; align-items: center;
  background: var(--blue) url("/assets/img/hero.jpg?v=2f866211") center / cover no-repeat;
}
.hero__inner { max-width: 950px; padding: 80px 0; }
.hero h1 { font-size: 60px; line-height: 70px; color: #d2d2d3; }
.hero__sub { margin: 26px 0 50px; font-family: var(--serif); font-size: 21px; line-height: 1.45; color: var(--white); }

/* ---------- Manifiesto ---------- */
.manifesto { position: relative; overflow: hidden; padding: 120px 0 140px; }
.manifesto::before {
  content: ""; position: absolute; left: -60px; top: 20px; width: 640px; height: 440px;
  background: url("/assets/img/isotipo.svg?v=5004cce9") left top / contain no-repeat; opacity: .55; pointer-events: none;
}
.manifesto .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 110px; align-items: start; }
.manifesto h2 { font-size: 30px; line-height: 42px; }
.manifesto__text { padding-top: 6px; }
.manifesto__text .arrow-link { margin-top: 18px; }

/* ---------- Quiénes somos ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; background: var(--gray); }
.about__media { display: flex; flex-direction: column; }
/* La foto no impone su altura: llena lo que mide el texto de la derecha (con un mínimo), así no sobra gris junto al texto. */
.about__media img { width: 100%; flex: 1 1 0; height: 0; min-height: clamp(380px, 21vw, 500px); object-fit: cover; object-position: center 40%; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 52px 7% 54px 10%; background: var(--blue); color: var(--white); }
.stats h3 { font-size: 38px; line-height: 1; color: var(--white); margin-bottom: 14px; white-space: nowrap; }
.stats p { font-size: 15px; line-height: 1.7; }
.about__body {
  position: relative; padding: 110px 80px 100px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  background: url("/assets/img/linea-gris.svg?v=213523dd") right top / 320px auto no-repeat;
}
.about__body > * { max-width: 580px; }
.about__body .title { margin-bottom: 26px; }
.about__body .lead { font-size: 19px; }
.about__body p { font-size: 15px; }
.about__body .arrow-link { margin-top: 14px; }

/* ---------- Bloques de dos columnas (Valores / Enfoque) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: start; }
.split > p, .split > div { font-size: 17px; line-height: 1.8; }

.quote-band { position: relative; min-height: 520px; display: flex; align-items: flex-end; background: var(--navy) center / cover no-repeat; }
/* La altura de las franjas con foto crece con el ancho de la pantalla, para que en monitores grandes no se corten las cabezas. */
.quote-band--valores { background-image: url("/assets/img/equipo-reunion.jpg?v=e185d3e2"); min-height: clamp(620px, 36vw, 1000px); background-position: center 22%; }
.quote-band--socios { background-image: url("/assets/img/equipo-socios.jpg?v=13656abf"); min-height: clamp(680px, 40vw, 1100px); background-position: center 42%; }
.quote-band .wrap { display: flex; }
.quote-band--socios .wrap { justify-content: flex-end; }
.quote-box { margin: 0; max-width: 845px; padding: 44px 40px; background: rgba(164, 164, 165, .93); }
.quote-box p { margin: 0; font-family: var(--serif); font-size: 30px; line-height: 42px; color: var(--white); }
.quote-band--socios .quote-box p { text-align: center; }

.approach { display: grid; grid-template-columns: 37.3% 1fr; background: var(--gray); margin-top: 70px; }
.approach img { width: 100%; height: 100%; min-height: 440px; max-height: 560px; object-fit: cover; }
.approach__body {
  padding: 80px 80px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  background: url("/assets/img/linea-gris.svg?v=213523dd") right top / 320px auto no-repeat;
}
.approach__body p { font-size: 15px; max-width: 640px; }
.approach__body .btn { margin-top: 22px; }

/* ---------- Cómo te apoyamos: tres verticales ---------- */
.pillars-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: start; margin-bottom: 50px; }
.pillars-intro p { font-size: 17px; line-height: 1.8; }

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 34px 30px 38px; background: var(--white); }
.cell--quote { display: flex; align-items: center; padding: 40px; background: var(--blue); border-color: var(--blue); }
.cell--quote p { font-family: var(--serif); font-size: 27px; line-height: 40px; color: var(--white); }

.pillar-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: background-color .25s ease; }
.pillar-card:hover { background: #f6f8f9; }
.pillar-card__num { font-family: var(--serif); font-size: 15px; letter-spacing: 2px; color: var(--mist); }
.pillar-card h3 { font-size: 30px; line-height: 1.2; margin: 10px 0 14px; color: var(--blue); }
.pillar-card p { font-size: 14.5px; line-height: 1.7; }
.pillar-card ul { list-style: none; margin: 18px 0 26px; padding: 16px 0 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.pillar-card li { padding: 4px 0 4px 16px; position: relative; }
.pillar-card li::before { content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 1px; background: var(--blue); }
.pillar-card .arrow-link { margin-top: auto; align-self: flex-start; font-size: 15px; }

.pillar { margin-top: 90px; }
.pillar__head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 0; padding-bottom: 34px; }
.pillar__num { display: block; font-family: var(--serif); font-size: 15px; letter-spacing: 2px; color: var(--mist); margin-bottom: 8px; }
.pillar__head h3 { font-size: 40px; line-height: 1.15; color: var(--navy); }
.pillar__head p { font-size: 17px; line-height: 1.8; }
.service img { width: 62px; height: 62px; margin-bottom: 26px; }
.service h4 { font-size: 22px; line-height: 30px; color: var(--blue); margin-bottom: 16px; }
.service p { font-size: 14px; line-height: 1.75; }
.section--gray { background: var(--gray); }
.step h4 { font-size: 22px; line-height: 30px; color: var(--blue); margin: 12px 0 14px; }
.step p { font-size: 14px; line-height: 1.75; }
.pillar__note { margin-top: 18px; max-width: 900px; font-size: 13px; line-height: 1.7; color: var(--steel); }

/* ---------- VAR · Valor A Research ---------- */
.var { position: relative; overflow: hidden; background: var(--navy); color: var(--pale); }
.var::before { content: ""; position: absolute; right: 0; top: 0; width: 250px; height: 120px; background: url("/assets/img/linea-azul.svg?v=2c8f8889") right top / contain no-repeat; opacity: .28; pointer-events: none; }
.var .wrap { position: relative; }
.var .pillars-intro { margin-bottom: 56px; }
.var .pillars-intro p { color: var(--pale); }
.var__eyebrow { display: block; margin-bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--mist); }
.var .pillars-intro .var__lead { margin-bottom: 14px; font-family: var(--serif); font-size: 26px; line-height: 1.4; color: var(--white); }
.var__steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, .18); border-left: 1px solid rgba(255, 255, 255, .18); }
.var__step { padding: 34px 30px 38px; border-right: 1px solid rgba(255, 255, 255, .18); border-bottom: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .03); }
.var__num { font-family: var(--serif); font-size: 15px; letter-spacing: 2px; color: var(--mist); }
.var__step h3 { margin: 12px 0 14px; font-size: 24px; line-height: 1.3; color: var(--white); }
.var__step p { font-size: 14px; line-height: 1.75; }

.var__panel { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 0; margin-top: 40px; background: var(--white); color: var(--steel); }
.var__panel > div { padding: 34px 30px 36px; border-left: 1px solid var(--line); }
.var__panel > div:first-child { border-left: 0; background: var(--gray); }
.var__panel-head h3 { font-size: 24px; line-height: 1.3; color: var(--navy); margin-bottom: 12px; }
.var__panel p { font-size: 14px; line-height: 1.7; }
.var__dim h4 { font-size: 20px; color: var(--blue); }
.var__dots, .var__bar, .var__chips { display: flex; align-items: center; gap: 8px; height: 30px; margin: 16px 0 14px; }
.var__dots i { width: 18px; height: 18px; border-radius: 50%; background: var(--pale); }
.var__dots .is-up { background: #4f8f6f; }
.var__dots .is-flat { background: #c9a84c; }
.var__dots .is-down { background: #b0584f; }
.var__bar { gap: 4px; }
.var__bar i { flex: 1; max-width: 18px; height: 18px; background: var(--pale); }
.var__bar i:nth-child(-n+7) { background: var(--blue); }
.var__chips i { padding: 4px 12px; border: 1px solid var(--line); font-style: normal; font-size: 13px; color: var(--steel); }
.var__chips i:nth-child(3) { background: var(--blue); border-color: var(--blue); color: var(--white); }

.var__caps { margin-top: 64px; }
.var__caps h3 { margin-bottom: 26px; font-size: 24px; color: var(--white); }
.var__caps ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 40px; }
.var__caps li { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .25); font-size: 14px; line-height: 1.65; }
.var__caps strong { display: block; margin-bottom: 6px; font-weight: 500; font-size: 15.5px; color: var(--white); }
.var__cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-top: 64px; padding-top: 34px; border-top: 1px solid rgba(255, 255, 255, .18); }
.var__cta p { font-family: var(--serif); font-size: 20px; line-height: 1.5; color: var(--white); }
.var__cta-btns { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.var__cta .arrow-link { margin-top: 0; }

/* ---------- Atrio: variante clara del panel de plataforma ---------- */
.var--light { background: var(--pale); color: var(--steel); }
.var--light::before { opacity: .7; }
.var--light .pillars-intro p { color: var(--steel); }
.var--light .var__eyebrow { color: var(--blue); }
.var--light .title { color: var(--navy); }
.var__sub { margin-top: 12px; padding-left: 14px; font-size: 17px; }
.var--light .pillars-intro .var__lead { color: var(--navy); }
.var--light .var__steps, .var--light .var__step { border-color: rgba(20, 54, 91, .16); }
.var--light .var__step { background: var(--white); }
.var--light .var__step h3 { color: var(--blue); }
.var__steps--5 { grid-template-columns: repeat(5, 1fr); }
.var__steps--5 .var__step { padding: 30px 24px 34px; }
.var__steps--5 .var__step h3 { font-size: 21px; }
.var__tag { display: block; margin-top: 16px; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mist); }
.var__steps--5 .var__tag + h3 { margin-top: 6px; }
.var__panel--plan { grid-template-columns: 1.1fr 1.9fr 1fr; }
.var__chart svg { display: block; width: 100%; height: auto; font-family: var(--sans); }
.var__panel .var__chart-note { margin-top: 10px; font-size: 12px; color: var(--mist); }
.var__points { display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.var__points p { margin: 0; padding-left: 14px; border-left: 2px solid var(--blue); font-size: 14.5px; line-height: 1.55; color: var(--navy); }
.var--light .var__caps h3, .var--light .var__caps strong, .var--light .var__cta p { color: var(--navy); }
.var--light .var__caps li { border-top-color: rgba(20, 54, 91, .25); }
.var--light .var__cta { border-top-color: rgba(20, 54, 91, .18); }

/* ---------- Socios ---------- */
/* La separación vertical entre filas va como relleno inferior de cada tarjeta (--team-gap), no como gap de la grilla. */
.team { --team-gap: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; margin-bottom: calc(-1 * var(--team-gap)); }
/* Cada tarjeta comparte las filas de la grilla (subgrid): foto, nombre, cargo, LinkedIn y perfil
   quedan a la misma altura en toda la fila, aunque un nombre o un cargo ocupe más líneas. */
.member { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; min-width: 0; padding-bottom: var(--team-gap); }
.member > * { min-width: 0; }
.member__in, .member .arrow-link { justify-self: start; align-self: start; }
.member picture, .member img { display: block; width: 100%; }
.member img { aspect-ratio: 800 / 862; object-fit: cover; background: var(--gray); }
/* El tamaño del nombre se ajusta al ancho de la tarjeta para que el nombre más largo quepa en una línea. */
.member h4 { font-size: min(21px, calc((100vw - 192px) / 57)); line-height: 1.3; margin-top: 20px; }
.member__role { font-size: 15px; line-height: 1.5; color: var(--mist); margin: 4px 0 14px; }
.member__in { display: inline-block; color: var(--blue); margin-bottom: 14px; }
.member h4 + .member__in { margin-top: 14px; }
.member__in svg { width: 24px; height: 24px; display: block; }
.member .arrow-link { display: flex; width: max-content; max-width: 100%; color: var(--navy); font-size: 15px; }

/* ---------- Recursos y comunidad ---------- */
.resources { display: grid; grid-template-columns: 33.33% 1fr; background: var(--mist); }
/* La foto no impone su altura: toma la del texto de la derecha, así no sobra fondo bajo el texto. */
.resources > img { width: 100%; height: 0; min-height: 100%; object-fit: cover; }
.resources__body { padding: 100px 9% 100px 10%; color: var(--white); display: flex; flex-direction: column; justify-content: center; }
.resources__body > * { width: 100%; max-width: 860px; }
.resources__body .title { margin-bottom: 54px; }
.resource { display: grid; grid-template-columns: 88px 1fr; gap: 56px; margin-bottom: 44px; }
.resource:last-child { margin-bottom: 0; }
.resource img { width: 88px; height: 88px; }
.resource h4 { font-size: 24px; line-height: 1.3; color: var(--white); margin: 4px 0 16px; }
.resource p { font-size: 15px; }

.fee { padding: 76px 0; background: var(--pale) url("/assets/img/linea-azul.svg?v=2c8f8889") right top / 320px auto no-repeat; text-align: center; }
.fee h3 { font-size: 30px; line-height: 1.4; color: var(--blue); margin-bottom: 12px; }
.fee p { max-width: 880px; margin: 0 auto; font-size: 17px; color: var(--steel); }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; grid-template-columns: 34% 1fr; gap: 70px; align-items: start; }
.faq__intro .title { margin-bottom: 22px; }
.faq details { margin-bottom: 26px; }
.faq summary {
  display: flex; align-items: center; gap: 14px; list-style: none; cursor: pointer;
  padding: 14px 20px; background: var(--gray); border: 1px solid #d2d2d3; border-radius: 3px;
  font-family: var(--serif); font-size: 20px; line-height: 1.4; color: var(--blue);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: ""; flex: none; width: 7px; height: 7px; margin-top: -3px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
  transform: rotate(-135deg) translate(-3px, -3px); transition: transform .2s ease;
}
.faq details[open] summary { color: var(--navy); }
.faq details[open] summary::before { transform: rotate(45deg); }
.faq__answer { padding: 26px 30px 6px; font-size: 15px; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; background: var(--pale); }
.contact__side { display: flex; flex-direction: column; background: var(--blue); }
.contact__side img { width: 100%; flex: 1; min-height: 320px; max-height: 620px; object-fit: cover; object-position: right center; }
.contact__intro { padding: 80px 80px 100px; color: var(--white); }
.contact__intro > * { max-width: 560px; }
.contact__intro .title { margin-bottom: 26px; }
.contact__form { padding: 150px 80px 100px; }
.contact__form > * { max-width: 560px; }
.contact__form h3 { font-size: 28px; color: var(--blue); margin-bottom: 26px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.field { display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 500; color: var(--blue); line-height: 1.6; }
.field label .req { margin-left: 4px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 14px; border: 1px solid #dadfe3; border-radius: 4px; background: var(--white);
  font: 500 15px/1.4 var(--sans); color: var(--navy);
}
.field select { color: var(--steel); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(54, 91, 125, .15); }
.consent { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 1.7; }
.consent input { margin-top: 7px; width: 15px; height: 15px; flex: none; accent-color: var(--navy); }
.consent a { color: var(--navy); font-weight: 500; text-decoration: none; }
.consent a:hover { text-decoration: underline; }
.form__actions { grid-column: 1 / -1; }
.form__status { grid-column: 1 / -1; margin: 0; padding: 12px 16px; border-radius: 4px; font-size: 15px; background: var(--white); color: var(--navy); }
.form__status[hidden] { display: none; }
.form__status--error { color: #8a1f1f; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Banda de cierre y pie ---------- */
.closing { padding: 52px 0; text-align: center; background: var(--mist) url("/assets/img/linea-azul.svg?v=2c8f8889") right top / 320px auto no-repeat; }
.closing p { font-family: var(--serif); font-size: 30px; line-height: 1.5; color: var(--white); }

.footer { margin-top: 20px; padding: 80px 0 44px; background: var(--gray); text-align: center; color: var(--navy); }
.footer__logo { width: 268px; margin: 0 auto 42px; }
.footer p { margin: 0; font-size: 16px; line-height: 1.7; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .sep { margin: 0 14px; }
.footer .btn { margin: 32px 6px 0; font-size: 14px; gap: 12px; }
.footer .btn:hover { text-decoration: none; }
.footer .btn svg { width: 15px; height: 15px; }
.footer__legal { max-width: 820px; margin: 30px auto 0 !important; font-size: 13px !important; color: var(--steel); }
.copyright { padding: 14px 0; text-align: center; font-size: 14px; color: var(--steel); }
.copyright a { color: var(--navy); text-decoration: none; }

.to-top {
  position: fixed; right: 30px; bottom: 30px; z-index: 90; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); border: 1px solid var(--pale); color: var(--navy);
  box-shadow: 0 4px 14px rgba(20, 54, 91, .12); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top svg { width: 16px; height: 16px; }

/* ---------- Ventanas emergentes (historia y perfiles) ---------- */
dialog.modal {
  width: min(800px, calc(100vw - 32px)); max-height: 80vh; padding: 0; border: 0; border-radius: 12px;
  box-shadow: 0 0 40px rgba(0, 0, 0, .4); color: var(--steel); overflow: hidden;
}
dialog.modal::backdrop { background: rgba(0, 0, 0, .6); }
dialog.modal[open] { display: flex; flex-direction: column; animation: modal-in .3s ease; }
@keyframes modal-in { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: none; } }
.modal__body { overflow-y: auto; padding: 50px 56px 46px; }
.modal__body h3 { font-size: 26px; line-height: 1.3; margin-bottom: 4px; }
.modal__role { font-size: 16px; color: var(--mist); margin-bottom: 26px; }
.modal__body h3 + p:not(.modal__role) { margin-top: 24px; }
.modal__body p { font-size: 15px; line-height: 1.75; }
.modal__close {
  position: absolute; top: 8px; right: 12px; width: 40px; height: 40px; border: 0; background: none;
  font-size: 28px; line-height: 1; color: #333; cursor: pointer;
}

/* ---------- Páginas interiores (política de privacidad, 404) ---------- */
.page { padding: 90px 0 110px; }
.page .wrap { max-width: 900px; }
.page h1 { font-size: 40px; line-height: 1.2; margin-bottom: 30px; }
.page h2 { font-size: 22px; line-height: 1.4; margin: 38px 0 12px; }
.page ul { padding-left: 20px; margin: 0 0 1.2em; }
.page li { margin-bottom: 6px; }
.page .btn { margin-top: 34px; }

/* ---------- Aparición suave al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  dialog.modal[open] { animation: none; }
}

/* ==========================================================================
   Adaptación a tablet y celular
   ========================================================================== */
@media (max-width: 1240px) {
  .nav { gap: 20px; }
  .header__logo img { width: 170px; }
  .about__body, .contact__intro, .contact__form, .approach__body { padding-left: 56px; padding-right: 56px; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .resource { gap: 32px; }
  /* Columna angosta: cada cifra en una línea, con su texto al lado. */
  .stats { grid-template-columns: 1fr; gap: 22px; padding: 44px 56px; }
  .stats > div { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: baseline; }
  .stats h3 { margin-bottom: 0; }
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .member h4 { font-size: min(21px, calc((100vw - 160px) / 43)); }
  .var__steps { grid-template-columns: repeat(2, 1fr); }
  .var__panel { grid-template-columns: 1fr 1fr; }
  .var__panel > div:nth-child(3) { border-left: 0; }
  .var__panel > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .var__caps ul { grid-template-columns: repeat(2, 1fr); }
  .var__steps--5 { grid-template-columns: repeat(2, 1fr); }
  .var__steps--5 .var__step:last-child { grid-column: 1 / -1; }
  .var__panel--plan { grid-template-columns: 1fr 1fr; }
  .var__panel--plan > .var__chart { grid-column: 1 / -1; grid-row: 2; border-left: 0; border-top: 1px solid var(--line); }
  .var__panel--plan > .var__points { border-left: 1px solid var(--line); border-top: 0; }
}

@media (max-width: 1180px) {
  :root { --header-h: 76px; }
  .header__logo img { width: 150px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 28px;
    background: var(--white); box-shadow: 0 20px 30px rgba(20, 54, 91, .12);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav a { padding: 15px 0; font-size: 16px; border-bottom: 1px solid var(--gray); }
  .nav .btn { margin: 22px 0 0; justify-content: center; border-bottom: 1px solid #32373c; padding: 13px 21px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .section { padding: 70px 0; }
  .title { font-size: 30px; }

  .hero { min-height: 640px; align-items: flex-end; background-image: url("/assets/img/hero-movil.jpg?v=25bcf3db"); background-position: center top; }
  .hero__inner { padding: 300px 0 56px; }
  .hero h1 { font-size: 36px; line-height: 46px; }
  .hero__sub { font-size: 18px; margin: 20px 0 34px; }

  .manifesto { padding: 70px 0 80px; }
  .manifesto::before { width: 380px; height: 260px; left: -40px; }
  .manifesto .wrap { grid-template-columns: 1fr; gap: 30px; }
  .manifesto h2 { font-size: 24px; line-height: 36px; }

  .about, .contact, .resources, .approach, .split, .pillars-intro, .pillar__head, .faq { grid-template-columns: 1fr; }
  .split, .pillars-intro, .pillar__head { gap: 22px; }
  .faq { gap: 36px; }
  .stats { grid-template-columns: repeat(3, 1fr); padding: 40px var(--gutter); gap: 24px; }
  .stats > div { display: block; }
  .stats h3 { font-size: 34px; margin-bottom: 14px; }
  .about__body, .approach__body { padding: 60px var(--gutter); background-size: 200px auto; }
  .about__media img { flex: none; height: clamp(260px, 60vw, 360px); min-height: 0; }

  .quote-band { min-height: 420px; }
  /* En pantallas angostas la foto del equipo se muestra completa y la cita va debajo, sin tapar a nadie. */
  .quote-band--socios, .quote-band--valores { min-height: 0; padding-top: 66.6vw; background-size: 100% auto; background-position: center top; background-color: var(--mid); }
  /* La foto del equipo se recorta un poco por abajo (bajo las manos), para no cortar las piernas a media altura. */
  .quote-band--socios { padding-top: 59.5vw; }
  .quote-band--socios .quote-box, .quote-band--valores .quote-box { max-width: none; width: 100%; background: var(--mid); }
  .quote-band .wrap { padding: 0; }
  .quote-box { padding: 28px var(--gutter); }
  .quote-box p { font-size: 21px; line-height: 32px; }
  .approach { margin-top: 44px; }
  .approach img { min-height: 0; max-height: 320px; }

  .cell--quote p { font-size: 23px; line-height: 34px; }
  .var::before { width: 150px; height: 72px; }
  .var .pillars-intro { margin-bottom: 40px; }
  .var .pillars-intro .var__lead { font-size: 22px; }
  .var__caps, .var__cta { margin-top: 48px; }
  .pillar { margin-top: 64px; }
  .pillar__head h3 { font-size: 32px; }

  .team { --team-gap: 44px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .member h4 { font-size: min(21px, calc((100vw - 90px) / 28.5)); }

  .resources > img { height: clamp(220px, 60vw, 320px); min-height: 0; }
  .resources__body { padding: 60px var(--gutter); }
  .resource { grid-template-columns: 64px 1fr; gap: 22px; }
  .resource img { width: 64px; height: 64px; }
  .resource h4 { font-size: 21px; margin-top: 0; }
  .fee { padding: 56px 0; background-size: 200px auto; }
  .fee h3 { font-size: 23px; }

  .contact__side { order: 2; }
  .contact__side img { display: none; }
  .contact__intro, .contact__form { padding: 60px var(--gutter); }
  .closing p { font-size: 22px; }
  .closing { background-size: 200px auto; }
  .footer { padding: 56px 0 36px; }
  .footer__logo { width: 210px; }
  .footer .sep { display: block; height: 0; overflow: hidden; margin: 0; }
  .modal__body { padding: 46px 26px 30px; }
  .to-top { right: 16px; bottom: 16px; }
}

@media (max-width: 600px) {
  .grid4 { grid-template-columns: 1fr; }
  .cell { padding: 26px 22px 28px; }
  .var__steps, .var__panel { grid-template-columns: 1fr; }
  .var__step, .var__panel > div { padding: 26px 22px 28px; }
  .var__steps--5, .var__panel--plan { grid-template-columns: 1fr; }
  .var__steps--5 .var__step { padding: 26px 22px 28px; }
  .var__panel--plan > .var__chart { grid-row: auto; }
  .var__panel--plan > .var__points { border-left: 0; border-top: 1px solid var(--line); }
  .var__panel > div { border-left: 0; }
  .var__panel > div:nth-child(n+2) { border-top: 1px solid var(--line); }
  .var__caps ul { grid-template-columns: 1fr; gap: 18px; }
  .var__cta p { font-size: 18px; }
  .cell--quote { padding: 34px 26px; }
  .service { display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; align-items: center; }
  .service img { width: 46px; height: 46px; margin-bottom: 0; }
  .service h4 { font-size: 20px; line-height: 27px; margin-bottom: 0; }
  .service p { grid-column: 1 / -1; margin-top: 16px; }
  .split > p, .split > div, .pillars-intro p, .pillar__head p { font-size: 16px; line-height: 1.7; }
  .team { --team-gap: 36px; gap: 0 16px; }
  .member h4 { font-size: 18px; margin-top: 14px; }
  .member__role { font-size: 13.5px; margin-bottom: 10px; }
  .member__in svg { width: 22px; height: 22px; }
  .member .arrow-link { font-size: 13.5px; gap: 6px; width: auto; max-width: 100%; white-space: nowrap; }
  .member .arrow-link svg { width: 14px; }
  .form { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .page h1 { font-size: 30px; }
}

@media (max-width: 350px) {
  .member .arrow-link svg { display: none; }
}
