/* ============================================================================
   /pacto/conecta/ — ported from Conecta v2.5.

   v2.5 is the LAST DELIVERED iteration, not an approved design. It is also the
   only PACTO page built as real markup, so its composition is ported rather
   than rebuilt.

   Type: v2.5 uses serif headings while the PACTO landing uses sans. That split
   is preserved on purpose — harmonising it is a design decision nobody has
   taken. v2.5 loads no web font, so Georgia is the real typeface, not a
   placeholder for one.

   Loaded after pacto.css; relies on its tokens (--p-gold, --p-ink, …).
   ========================================================================= */
.conecta { --c-serif: Georgia, 'Times New Roman', serif; }

/* ---------------------------------------------------------------- hero */
.c-hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: 84svh; padding: 150px clamp(24px, 7vw, 110px) 56px;
  /* La primera capa es la franja de arriba, y existe por el nav: el header
     es fixed y no tiene fondo propio, así que sus enlaces caen sobre la foto.
     Medido sobre los píxeles reales a 1425px, "Servicios" —el enlace que
     queda más a la derecha, donde el velo lateral ya bajó a .16— daba
     4.24:1, por debajo de AA. Es la misma franja que lleva .c-hero.plain.
     Si se cambia la fotografía, hay que volver a medirlo. */
  background:
    linear-gradient(180deg, rgba(2,12,24,.58) 0%, rgba(2,12,24,0) 15%),
    linear-gradient(90deg, rgba(2,12,24,.94), rgba(3,15,27,.70) 30%, rgba(3,14,24,.16) 76%),
    linear-gradient(0deg, rgba(2,12,24,.44), transparent 35%),
    url('/assets/pacto/hero-equipo.webp') center center / cover no-repeat;
  color: #fff;
}
.c-hero-copy { max-width: 620px; }
.c-hero h1 {
  font-family: var(--c-serif); font-weight: 400;
  font-size: clamp(54px, 7vw, 104px); line-height: .98; letter-spacing: -.02em;
  margin: 14px 0 0;
}
.c-hero h1 .brush { position: relative; display: inline-block; }
.c-hero h1 .brush::after {
  content: ''; position: absolute; left: -3%; right: -5%; bottom: -.12em; height: .2em;
  background: url('/assets/pacto/pincelada.svg') center/100% 100% no-repeat;
}
.c-sub {
  display: block; margin-top: 20px; font-size: 18px; font-weight: 500; color: #f1e4c9;
}
.c-hero p { font-size: 17px; line-height: 1.6; margin: 24px 0 0; color: rgba(255,255,255,.93); max-width: 460px; }
.c-hero .cta-row { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.c-back { color: #e9c67c; font-size: 13.5px; display: inline-block; margin-top: 22px; padding-block: 4px; }
.c-back:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- ficha */
.c-facts { background: #0b1a2b; color: #fff; display: grid; grid-template-columns: repeat(4, 1fr); }
.c-fact { display: flex; gap: 14px; align-items: flex-start; padding: 26px clamp(18px, 3vw, 40px); border-left: 1px solid rgba(255,255,255,.1); }
.c-fact:first-child { border-left: 0; }
.c-fact svg { width: 26px; height: 26px; flex: none; stroke: var(--p-gold); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.c-fact strong { display: block; font-size: 13px; font-weight: 600; color: var(--p-gold-2); }
.c-fact span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.35; }
@media (max-width: 900px) { .c-facts { grid-template-columns: 1fr 1fr; } .c-fact:nth-child(3) { border-left: 0; } }
@media (max-width: 560px) { .c-facts { grid-template-columns: 1fr; } .c-fact { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); } .c-fact:first-child { border-top: 0; } }

/* ---------------------------------------------------------------- sections */
.c-section { padding: clamp(56px, 7vw, 96px) clamp(24px, 7vw, 110px); background: var(--p-ivory); }
.c-section.dark { background: #0b1a2b; color: #fff; }
.c-section.sand { background: #efe7db; }
.c-kicker { font-size: 14px; font-weight: 600; color: var(--p-gold-ink); }
.c-section.dark .c-kicker { color: var(--p-gold-2); }
.c-section h2 {
  font-family: var(--c-serif); font-weight: 400;
  font-size: clamp(30px, 3.6vw, 52px); line-height: 1.1; letter-spacing: -.02em;
  margin: 16px 0 0; max-width: 17ch; text-wrap: balance;
}
.c-section p { line-height: 1.72; font-size: 16.5px; color: var(--p-soft); max-width: 62ch; }
.c-section.dark p { color: #c6d0dc; }

/* ---------------------------------------------------------------- split */
.c-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.c-split.reverse .c-figure { order: -1; }
.c-figure {
  position: relative; min-height: 400px; margin: 0; border-radius: 2px;
  box-shadow: 22px 22px 0 rgba(188,138,47,.17);
  background-size: cover; background-position: center;
}
.c-figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px;
  background: linear-gradient(0deg, rgba(2,12,24,.88), transparent);
  color: #fff; font-family: var(--c-serif); font-size: 19px; line-height: 1.35; font-style: italic;
}
@media (max-width: 900px) {
  .c-split { grid-template-columns: 1fr; }
  .c-split.reverse .c-figure { order: 0; }
  .c-figure { min-height: 280px; }
}

/* ---------------------------------------------------------------- objetivos */
.c-aims { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-card); margin-top: 46px; }
.c-aim svg { display: block; width: 40px; height: 40px; stroke: var(--p-gold-ink); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.c-aim h3 { font-family: var(--c-serif); font-weight: 400; font-size: 23px; margin: 16px 0 8px; }
.c-aim p { font-size: 14.5px; line-height: 1.6; }
@media (max-width: 820px) { .c-aims { grid-template-columns: 1fr; gap: 26px; } }

/* ------------------------------------------- ruta cinematográfica con estaciones */
/* Acceptance item: "Método como ruta cinematográfica con estaciones y meta,
   no texto sobre círculo". The curved line is the SVG ported from v2.5. */
.c-route { position: relative; margin-top: 54px; }
.c-route .route-line { display: block; width: 100%; height: 86px; }
.c-route-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: -26px; }
.c-station { text-align: center; }
.c-station .mark {
  width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%;
  border: 1px solid var(--p-gold); display: grid; place-items: center;
  background: rgba(10,25,41,.9);
}
.c-station .mark svg { width: 24px; height: 24px; stroke: var(--p-gold); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.c-station h3 { font-family: var(--c-serif); font-weight: 400; font-size: 21px; margin: 0 0 8px; color: #fff; }
.c-station p { font-size: 14px; line-height: 1.55; margin: 0 auto; max-width: 24ch; }
@media (max-width: 900px) {
  .c-route .route-line { display: none; }
  .c-route-items { grid-template-columns: 1fr; margin-top: 0; gap: 30px; }
  .c-station { text-align: left; display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: start; }
  .c-station .mark { margin: 0; }
  .c-station h3 { grid-column: 2; }
  .c-station p { margin: 0; max-width: none; grid-column: 2; }
}

/* ---------------------------------------------------------------- entregables */
.c-deliver { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-card); margin-top: 44px; }
.c-deliver > div { border-top: 2px solid var(--p-gold); padding-top: 20px; }
.c-deliver svg { width: 30px; height: 30px; stroke: var(--p-gold-ink); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.c-deliver strong { display: block; font-family: var(--c-serif); font-weight: 400; font-size: 20px; margin: 14px 0 8px; }
.c-deliver span { font-size: 14.5px; line-height: 1.6; color: var(--p-soft); }
@media (max-width: 820px) { .c-deliver { grid-template-columns: 1fr; gap: 24px; } }

/* ---------------------------------------------------------------- FAQ */
.c-faq { max-width: 860px; margin-top: 40px; }
.c-faq details { border-bottom: 1px solid #d9cbb2; }
.c-faq summary {
  cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative;
  font-size: 17px; line-height: 1.4; color: var(--p-ink); font-weight: 500;
}
.c-faq summary::-webkit-details-marker { display: none; }
.c-faq summary::after {
  content: '+'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 26px; color: var(--p-gold-ink); line-height: 1;
}
.c-faq details[open] summary::after { content: '\2212'; }
.c-faq summary:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.c-faq details p { margin: 0 0 22px; font-size: 15.5px; max-width: 70ch; }

/* ---------------------------------------------------------------- cierre */
.c-bottom {
  padding: clamp(66px, 8vw, 110px) clamp(24px, 7vw, 110px);
  background:
    linear-gradient(0deg, rgba(2,12,24,.9), rgba(2,12,24,.74)),
    url('/assets/pacto/hero-equipo.webp') center center / cover no-repeat;
  color: #fff; text-align: center;
}
.c-bottom h2 { font-family: var(--c-serif); font-weight: 400; font-size: clamp(32px, 4.4vw, 58px); line-height: 1.08; margin: 16px auto 0; max-width: 20ch; }
.c-bottom p { color: #cdd6e1; margin: 20px auto 0; max-width: 56ch; }
.c-bottom .cta-row { justify-content: center; margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================================
   Experience pages without photography — /pacto/lidera/ and /pacto/equilibra/

   These two reuse the layout above, but only about 50 words of copy exist for
   each and there is no photograph: their imagery lives only inside the
   rasterised PACTO landing at 1536x185, too small to crop. The hero therefore
   uses the same gradient as the card each page is reached from, so the page
   and its card match.

   Additive only — the rules above are not modified. `.c-hero` and `.c-bottom`
   hard-code the Conecta photograph, and `--c-serif` is declared on `.conecta`,
   so both need re-declaring here.
   ========================================================================= */
.experiencia { --c-serif: Georgia, 'Times New Roman', serif; }

.c-hero.plain,
.c-bottom.plain {
  /* Solid first so the computed background-color is real, then the image.
     Each page sets --c-hero-img on its own hero, as `var(--c-scrim), url(…)`
     — same mechanism as --p-cons-img on /pacto/consulting/, but with the
     scrim defined below, since text sits on this one. The gradient is the
     fallback for a hero with no photograph. */
  background-color: #16293C;
  background-image: var(--c-hero-img, linear-gradient(120deg, #273C50 0%, #112639 100%));
  background-size: cover;
  background-position: center;
}
.c-hero.plain { min-height: 62svh; }

/* Velo bajo la fotografía del hero.
   Va en una variable propia, y no dentro de `.plain`, porque tiene que
   cambiar con el ancho de pantalla. El hero pasa de 1.95:1 en escritorio a
   0.51:1 en teléfono (medido), y como usa `cover` centrado eso significa
   que en teléfono sólo se ve la columna central de la imagen: de una foto
   16:9 sobrevive un 29% del ancho. Así que el texto cae sobre partes
   distintas de la foto según el dispositivo:
     - en escritorio, abajo a la izquierda -> alcanza un degradado que se
       abre hacia la derecha y deja respirar la mitad derecha de la foto;
     - en teléfono, sobre esa columna central -> hay que oscurecer parejo.

   Los números no son a ojo. Se midieron en el navegador componiendo el velo
   sobre los píxeles reales de cada fotografía (la imagen es del mismo
   origen, así que se puede leer con canvas) y calculando el contraste sobre
   los rectángulos reales de los glifos, no sobre la caja del elemento: los
   bloques sin max-width llegan hasta el borde y falsean la medición. El
   color más exigente es el dorado #e9c67c, bastante más que el blanco.
   Peor caso de las dos fotos, medido a 375, 1024, 1200, 1440 y 1920:
     5.9:1  Lidera a 1200   — el ancho más angosto que usa el velo liviano
     5.8:1  Equilibra a 375 — el hero es 0.51:1 y el texto va al centro
   El objetivo es 4.5:1, o sea que hay margen, pero no de sobra: bajar el
   velo de teléfono a .72/.58 ya reprueba el kicker de Equilibra.

   La primera capa de las dos es para el <header>, no para el hero: el
   header es `fixed` y sin fondo propio, así que el logotipo y los enlaces
   blancos caen sobre la franja de arriba de la fotografía. Sin ella,
   "Servicios" daba 4.24:1 a 1440 y el logotipo 4.22:1 a 375, los dos sobre
   el cielo claro de Equilibra.

   Si se cambian las fotos hay que volver a medir. _tools/flow/convertir.py
   da una primera estimación sobre el archivo, antes de montarlo. */
.c-hero.plain {
  --c-scrim:
    linear-gradient(180deg, rgba(2, 12, 24, .50) 0%, rgba(2, 12, 24, 0) 13%),
    linear-gradient(0deg, rgba(2, 12, 24, .84) 0%, rgba(2, 12, 24, .72) 100%);
}
@media (min-width: 1200px) {
  .c-hero.plain {
    --c-scrim:
      linear-gradient(180deg, rgba(2, 12, 24, .58) 0%, rgba(2, 12, 24, 0) 15%),
      linear-gradient(90deg, rgba(2, 12, 24, .88) 0%, rgba(2, 12, 24, .62) 45%, rgba(2, 12, 24, .30) 100%);
  }
}
.c-bottom.plain { background-image: linear-gradient(120deg, #1D3244 0%, #0C1F30 100%); }

/* A single fact where Conecta has a four-column ficha: the catalogue gives a
   proposed duration and nothing else. */
.c-fact-single {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 30px; padding: 12px 20px;
  border: 1px solid rgba(226,176,77,.45); border-radius: var(--radius-pill);
  font-size: 14px;
  color: #f1e4c9;
}
.c-fact-single svg { width: 18px; height: 18px; stroke: var(--p-gold); fill: none; stroke-width: 1.7; }

/* Route without the photograph behind it. */
.c-section.route-plain { background: #0B1A2B; }

/* On these two pages the section heading IS the existing sentence from the
   approved landing's modal — there is no short headline written for them, and
   inventing one would be inventing copy. Set at lead size so a full sentence
   reads as a statement instead of a five-line display heading. */
.experiencia .c-section h2 { font-size: clamp(23px, 2.3vw, 33px); line-height: 1.25; max-width: 26ch; }
.experiencia .c-section.route-plain h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.1; max-width: 17ch; }

/* Two facts side by side where only a duration existed before. */
.c-facts-inline { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.c-facts-inline .c-fact-single { margin-top: 0; }

/* Incluye / no incluye, taken verbatim from a catalogue ficha. */
.c-scope { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-card); margin-top: 38px; max-width: 900px; }
.c-scope > div { border-top: 2px solid var(--p-gold); padding-top: 18px; }
.c-scope > div.limit { border-top-color: var(--p-rule); }
.c-scope strong {
  display: block; font-size: 14px; font-weight: 600; color: var(--p-gold-ink);
}
.c-scope > div.limit strong { color: var(--p-soft); }
.c-scope span { display: block; margin-top: 10px; font-size: 15.5px; line-height: 1.6; color: var(--p-soft); }
@media (max-width: 760px) { .c-scope { grid-template-columns: 1fr; gap: 22px; } }


/* ======================================================================
   DENSIDAD EN PANTALLA GRANDE
   Mismo problema que en pacto.css: secciones a sangre con tipografía fija.
   El hero queda intacto a propósito — su contraste se midió sobre la foto
   con el texto en el tamaño y la columna que tiene ahora, así que mover
   cualquiera de los dos obliga a volver a medirlo. */
@media (min-width:1280px){
  .c-section{padding:clamp(78px,6.4vw,118px) clamp(60px,7vw,120px);}
  .c-section h2{font-size:clamp(38px,3vw,52px);}
  .experiencia .c-section h2{font-size:clamp(30px,2.6vw,40px);max-width:28ch;}
  .experiencia .c-section.route-plain h2{font-size:clamp(44px,3.8vw,58px);}
  .c-section p{font-size:18px;line-height:1.75;}
  .c-scope{max-width:1020px;gap:36px;}
  .c-scope span{font-size:17px;}
  .c-station h3{font-size:24px;}
  .c-station p{font-size:15.5px;line-height:1.6;max-width:26ch;}
  .c-station .mark svg{width:30px;height:30px;}
  .c-fact span{font-size:16px;}
}

/* Tinte del lavado del fondo ilustrado. Ver colors_and_type.css. */
.pacto .c-section{ --kz-fondo-tinte: 247,242,232; }
.pacto .c-section.sand{ --kz-fondo-tinte: 239,231,219; }

/* Mismo caso que en pacto.css: .c-section declara `background` en forma
   corta y esta hoja carga al final. */
@media (min-width:900px){
  .c-section.fondo-japon{
    background-image:var(--kz-fondo-lavado),var(--kz-fondo);
    background-size:auto,cover;
    background-position:center,center;
    background-repeat:no-repeat,no-repeat;
  }
}

/* ------------------------------------------------------------------ sellos */
/* Las estaciones del método van sobre la banda navy, así que acá el sello se
   invierte: la tinta negra de /pacto/ desaparecería sobre ese fondo. El halo
   —los huecos en negativo, la nieve de la montaña— tiene que ser el color
   real de la banda, no un gris genérico, o se ve el parche. */
.pacto .c-section.route-plain,
.pacto .c-section.dark{
  --p-sello-ink:  #f0e6d2;
  --p-sello-oro:  #e2b04d;
  --p-sello-halo: #0B1A2B;
}
.pacto .c-section:not(.dark):not(.route-plain){ --p-sello-halo: var(--p-ivory); }
.pacto .c-section.sand{ --p-sello-halo: #efe7db; }

.c-station .mark .sello{ width:100%; height:100%; padding:7px; }
