/* ============================================================================
   KAIZOU LABS — PACTO area theme
   Scoped to <body class="pacto">. styles.css is NOT modified: the approved
   PACTO landing is a different composition, not the corporate components in
   gold, so this sheet defines its own sections and only re-skins the shared
   nav and footer.

   Palette taken from the approved landing (PACTO_Inicio.html, v4.1), not
   invented: navy #0c2036, gold #e2b04d, ivory #f7f2e8, ink #10233e.
   The documentation lists the PACTO extension (#E0B85A / #F8F3E9) as a
   PROPOSED extension of the brand guide, not an approved one.

   Type: v4.1 loads no web fonts — it uses Georgia for the PACTO wordmark and
   Arial for everything else. The editorial serif seen in the cinematic
   mock-ups was never chosen. Headings here use the site's Space Grotesk so
   /pacto/ reads as part of kaizoulabs.com; only the wordmark keeps the serif.
   ========================================================================= */

.pacto {
  --p-navy:   #0c2036;
  --p-navy-2: #091a2c;
  --p-gold:   #e2b04d;
  --p-gold-2: #f3c76e;
  /* Gold dark enough for text on EVERY PACTO surface. #8a6413 cleared ivory
     (4.81) but failed the darker sand sections at 4.38; this clears both:
     5.65 on sand, 6.21 on ivory, 6.93 on white. */
  --p-gold-ink: #755410;
  --p-ivory:  #f7f2e8;
  --p-ivory-2:#f8f3e9;
  --p-sand:   #e9e2d6;
  --p-ink:    #10233e;
  --p-soft:   #4d535b;
  --p-rule:   #d5bd83;

  background: var(--p-ivory);
  color: var(--p-ink);
}

/* ---------------------------------------------------------------- nav skin */
/* The shared site nav, dressed for PACTO: transparent over the hero, solid on
   scroll, gold brushstroke on hover — the approved header behaviour. */
.pacto .nav {
  position: fixed; left: 0; right: 0; top: 0;
  background: transparent;
  border-bottom: 0;
  transition: background .32s ease, box-shadow .32s ease;
}
.pacto .nav.scrolled {
  background: linear-gradient(105deg, rgba(7,25,42,.97), rgba(13,39,57,.97) 55%, rgba(22,47,59,.97));
  box-shadow: 0 6px 22px rgba(5,17,26,.22);
}
.pacto .nav-word { color: var(--p-gold); font-family: Georgia, 'Times New Roman', serif; letter-spacing: .1em; font-weight: 400; }
.pacto .nav-links a { color: #fff; position: relative; z-index: 0; isolation: isolate; padding: 10px 12px; }
.pacto .nav-links a::before {
  content: ''; position: absolute; z-index: -1; inset: -1px -8px -4px;
  background: url('/assets/pacto/pincelada.svg') center/100% 100% no-repeat;
  filter: drop-shadow(0 2px 2px rgba(2,10,20,.19));
  opacity: 0; transform: scale(.82) rotate(-2deg);
  transition: transform .22s ease, opacity .22s;
}
.pacto .nav-links a:is(:hover, :focus-visible) { color: var(--p-ink); }
.pacto .nav-links a:is(:hover, :focus-visible)::before { opacity: 1; transform: scale(1) rotate(-1deg); }
.pacto .nav .btn-primary { background: var(--p-gold); color: var(--p-ink); font-weight: 700; border-radius: var(--radius-pill); }
.pacto .nav .btn-primary:hover { background: var(--p-gold-2); }
/* El burger es un icono sobre el nav oscuro: va blanco. El selector NO,
   porque styles.css le da fondo blanco — heredar el blanco lo dejaba
   invisible (1:1). Se escribio cuando PACTO no ofrecia idiomas y el
   selector estaba siempre oculto; ahora se ve. */
.pacto .nav-burger { color: #fff; }
.pacto .mobile-menu { background: #fffaf2; }
.pacto .mobile-menu a { color: var(--p-ink); }
@media (prefers-reduced-motion: reduce) {
  .pacto .nav-links a::before { transition: none; }
}

/* ---------------------------------------------------------------- hero */
.p-hero {
  position: relative; min-height: 86svh; display: flex; align-items: center;
  padding: 140px clamp(24px, 7vw, 110px) 90px;
  background:
    linear-gradient(95deg, rgba(5,17,32,.93) 0%, rgba(5,17,32,.72) 42%, rgba(5,17,32,.22) 100%),
    url('/assets/pacto/hero-equipo.webp') center center / cover no-repeat;
  color: #fff;
}
.p-hero-copy { max-width: 760px; position: relative; }
.p-hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(42px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -.035em;
  margin: 26px 0 0; text-wrap: balance;
}
/* The brushstroke sits under the word PACTO, as in the approved composition */
.p-hero h1 .brush {
  position: relative; display: inline-block; color: var(--p-gold); font-weight: 700;
}
.p-hero h1 .brush::after {
  /* Alto y posición medidos contra la maqueta: ahí la pincelada ocupa algo
     menos de la mitad del cuerpo de la palabra y cruza la línea de base.
     Con .34em se leía como un subrayado, no como un trazo pintado. */
  content: ''; position: absolute; left: -5%; right: -7%; bottom: -.24em; height: .48em;
  background: url('/assets/pacto/pincelada.svg') center/100% 100% no-repeat;
  pointer-events: none;
}
.p-hero p.p-lead { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; margin: 30px 0 0; color: rgba(255,255,255,.92); max-width: 560px; }
.p-hero .cta-row { margin-top: 36px; }
.p-motto {
  margin-top: 54px; color: #fff2d4; font-size: 15px;
}
.p-motto i { display: inline-block; width: 27px; height: 1px; background: var(--p-gold); margin: 0 10px; vertical-align: middle; }
/* Approved composition puts the side motto at the right edge of the hero,
   stacked over the lake — not under the buttons (that is the mobile layout). */
/* Sits high on the right, over sky rather than over people, with its own scrim:
   small type needs it to stay legible on a bright photograph. */
@media (min-width: 1100px) {
  .p-hero { position: relative; }
  /* the motto anchors to the hero, not to the copy column */
  .p-hero-copy { position: static; }
  .p-motto {
    position: absolute; right: 0; top: 16%;
    margin: 0; text-align: right; line-height: 1.4; font-size: 16px; font-weight: 500;
    /* each phrase stays on one line; the block sizes to the longer one */
    white-space: nowrap; padding: 26px 40px 26px 72px;
    background: linear-gradient(270deg, rgba(4,14,26,.72) 0%, rgba(4,14,26,.46) 55%, rgba(4,14,26,0) 100%);
    text-shadow: 0 1px 3px rgba(2,10,20,.75);
  }
  .p-motto i { display: block; width: 46px; margin: 14px 0 14px auto; }
}
.btn-gold { background: var(--p-gold); color: var(--p-ink); font-weight: 700; border-radius: var(--radius-pill); }
.btn-gold:hover { background: var(--p-gold-2); }
.btn-ivory-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); border-radius: var(--radius-pill); }
.btn-ivory-outline:hover { background: rgba(255,255,255,.1); }

/* ---------------------------------------------------------------- sections */
/* The nav is fixed on this page, so anchored sections need the offset. */
.pacto [id] { scroll-margin-top: 84px; }
.p-section { padding: clamp(60px, 7vw, 100px) clamp(24px, 7vw, 110px); }
.p-section.ivory { background: var(--p-ivory-2); }
.p-section.sand  { background: linear-gradient(130deg, var(--p-ivory-2), #eee5d5); }
.p-section.navy  { background: var(--p-navy); color: #fff; }
.p-label { font-size: 14px; color: var(--p-gold-ink); font-weight: 600; }
.p-section.navy .p-label { color: var(--p-gold-2); }
.p-section h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px, 3vw, 46px); line-height: 1.13; letter-spacing: -.035em;
  margin: 17px 0 0; max-width: 18ch; text-wrap: balance;
}
.p-section > .p-intro { line-height: 1.7; font-size: 17px; color: var(--p-soft); max-width: 650px; margin: 18px 0 0; }
.p-section.navy > .p-intro { color: #cad2dc; }

/* ---------------------------------------------------------------- method */
/* Deliberately not the numbered .steps component: the approved UI notes say
   "evitar timelines numerados genéricos".

   The four marks are the ones the approved artwork names — montaña, piedras,
   brote, círculo — redrawn as line SVG, since the originals exist only inside
   the raster at a size too small to crop. They read as the four moments:

     Sentir        la montaña: subir y ver algo distinto
     Comprender    el mojón de piedras que se apila para marcar el camino
     Comprometerse el brote: el acuerdo que el equipo planta
     Mantener      el enso, el círculo de tinta que vuelve sin cerrarse

   The same four are inlined in conecta / lidera / equilibra, where .c-station
   styles them instead. If one changes, change it in all four files. */
.p-method { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 46px; }
.p-phase svg {
  display: block; width: 36px; height: 36px; margin-bottom: 18px;
  stroke: var(--p-gold-ink); fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.p-section.navy .p-phase svg { stroke: var(--p-gold-2); }
.p-phase { padding: 0 26px; border-left: 1px solid var(--p-rule); }
.p-phase:first-child { padding-left: 0; border-left: 0; }
.p-phase strong {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 16px; color: var(--p-gold-ink);
}
.p-phase b { display: block; font-size: 19px; font-weight: 500; margin: 12px 0 8px; color: var(--p-ink); }
.p-phase span { font-size: 14.5px; line-height: 1.55; color: var(--p-soft); }
@media (max-width: 900px) {
  .p-method { grid-template-columns: 1fr; gap: 24px; }
  .p-phase { padding: 0 0 22px; border-left: 0; border-bottom: 1px solid var(--p-rule); }
  .p-phase:last-child { border-bottom: 0; padding-bottom: 0; }
}

/* ---------------------------------------------------------------- experiences */
.p-exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.p-exp {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 330px; padding: 28px 26px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #273c50, #112639);
  border: 1px solid #45576b; color: #fff; overflow: hidden; text-align: left;
}
/* El velo de la tarjeta. El texto se apoya abajo, así que el degradado va de
   abajo (denso) hacia arriba. El tramo del medio lo decide el kicker dorado
   (--p-gold-2), que es el texto más alto de la tarjeta y el color más
   exigente: cae alrededor del 60% de la altura.
   Medido sobre los píxeles de las tres fotos: con el degradado anterior
   (.55 al 52%) el kicker daba 2.29:1 en Equilibra, 2.93 en Lidera y 3.67 en
   Conecta, o sea que ya reprobaba antes de sumar fotos nuevas. Con estos
   valores el peor de los tres queda en 5.7:1. */
.p-exp.has-photo {
  background:
    linear-gradient(0deg, rgba(4,14,26,.94) 8%, rgba(4,14,26,.76) 60%, rgba(4,14,26,.38) 100%),
    var(--p-exp-img) center center / cover no-repeat;
  border-color: rgba(226,176,77,.4);
}
.p-exp small { color: var(--p-gold-2); font-size: 14px; font-weight: 600; }
.p-exp h3 { font-family: var(--font-display); font-weight: 500; font-size: 29px; margin: 11px 0 8px; letter-spacing: -.02em; }
.p-exp p { line-height: 1.5; color: #d7dde5; font-size: 14.5px; margin: 0; }
.p-exp .p-exp-note { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.62); }
@media (max-width: 900px) { .p-exp-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- beyond */
.p-beyond { display: grid; grid-template-columns: 1.2fr 1fr; gap: 7vw; align-items: center; }
.p-principles { border-left: 1px solid var(--p-rule); padding-left: 30px; display: grid; gap: 24px; }
.p-principles strong { display: block; font-size: 18px; margin-bottom: 6px; font-family: var(--font-display); font-weight: 500; }
.p-principles span { font-size: 14.5px; line-height: 1.55; color: var(--p-soft); }
@media (max-width: 900px) {
  .p-beyond { grid-template-columns: 1fr; gap: 34px; }
  .p-principles { border-left: 0; border-top: 1px solid var(--p-rule); padding-left: 0; padding-top: 26px; }
}

/* ---------------------------------------------------------------- footer skin */
.pacto .footer { background: var(--p-navy-2); }
.pacto .footer h5, .pacto .footer h2 { color: var(--p-gold-2); }

/* Placeholder marker for artwork that only exists inside the approved raster */
.p-pending { font-size: 14px; color: var(--p-soft); margin-top: 26px; }
.p-section.navy .p-pending { color: rgba(255,255,255,.55); }

/* ============================================================================
   /pacto/consulting/

   Built from the approved landing's Consulting band, not from Conecta: that
   band is sans (no serif), with the photograph on the left under a diagonal
   cut and four icon lines behind a gold rule. So this uses the .p-* vocabulary
   above, never the .c-* / Georgia one.
   ========================================================================= */

/* Photo slot — the diagonal cut plus the photograph, which the page sets as
   --p-cons-img on the element. The gradient below is the fallback for when no
   photograph is set; the solid colour under it keeps contrast measurable.
   No text sits on this slot, so it carries no scrim. */
.p-cons-hero { display: grid; grid-template-columns: 44% 1fr; align-items: stretch; background: var(--p-ivory-2); }
.p-cons-photo {
  position: relative; min-height: 430px;
  background-color: #1D3244;
  background-image: var(--p-cons-img, linear-gradient(120deg, #273C50 0%, #112639 100%));
  background-size: cover; background-position: center;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
}
.p-cons-copy { padding: clamp(48px, 6vw, 86px) clamp(24px, 5vw, 80px) clamp(48px, 6vw, 86px) clamp(16px, 2vw, 40px); align-self: center; }
.p-cons-copy .crumbs { color: var(--p-soft); }
.p-cons-copy .crumbs a { color: var(--p-gold-ink); text-decoration-color: var(--p-rule); }
.p-cons-copy .crumbs > * + *::before { color: var(--p-rule); }
.p-cons-copy h1 { font-size: 1.5em; margin-block: .83em; } /* mismo tamaño que tenía como h2 */
@media (max-width: 900px) {
  .p-cons-hero { grid-template-columns: 1fr; }
  .p-cons-photo { min-height: 240px; clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); }
  .p-cons-copy { padding: 40px clamp(24px, 7vw, 60px) 48px; }
}

/* Four areas behind a gold rule, as in the approved band. */
.p-areas { border-left: 2px solid var(--p-gold); padding-left: 28px; display: grid; gap: 20px; margin-top: 36px; }
.p-areas div { display: flex; align-items: center; gap: 14px; font-size: 16px; color: var(--p-ink); }
.p-areas svg { width: 26px; height: 26px; flex: none; stroke: var(--p-gold-ink); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Modalities. */
.p-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.p-mode { background: #fff; border: 1px solid var(--p-rule); border-radius: var(--radius-lg); padding: 28px 26px; }
.p-mode h3 { font-family: var(--font-display); font-weight: 500; font-size: 25px; margin: 0; color: var(--p-ink); }
.p-mode .when { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--p-gold-ink); }
.p-mode p { font-size: 15px; line-height: 1.6; color: var(--p-soft); margin: 18px 0 0; }
.p-mode .limit { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--p-rule); font-size: 13.5px; }
@media (max-width: 900px) { .p-modes { grid-template-columns: 1fr; } }

/* Pages whose hero is NOT full-width dark need the nav solid from the top, or
   the white links sit on ivory. /pacto/consulting/ is the case: its hero is
   dark only across the left 44%. */
.pacto.nav-solid .nav {
  background: linear-gradient(105deg, rgba(7,25,42,.97), rgba(13,39,57,.97) 55%, rgba(22,47,59,.97));
  box-shadow: 0 6px 22px rgba(5,17,26,.22);
}


/* ======================================================================
   DENSIDAD EN PANTALLA GRANDE
   Las secciones de PACTO van a sangre, sin contenedor de 1200px, así que
   de 1440 para arriba el texto se estiraba sobre toda la pantalla en 14,5px
   y el h2 se cortaba a los 18ch, dejando media pantalla vacía al lado.
   En teléfono no cambia nada: todo esto está detrás de min-width. */
@media (min-width:1280px){
  .p-section{padding:clamp(84px,6.4vw,124px) clamp(60px,7vw,120px);}
  .p-section h2{max-width:21ch;font-size:clamp(46px,3.5vw,60px);}
  .p-section>.p-intro{font-size:19px;line-height:1.72;max-width:790px;}
  .p-method{margin-top:62px;}
  .p-phase{padding:0 36px;}
  .p-phase svg{width:46px;height:46px;margin-bottom:22px;}
  .p-phase strong{font-size:13.5px;}
  .p-phase span{font-size:16.5px;line-height:1.62;}
  .p-principles{padding-left:40px;gap:30px;}
  .p-principles strong{font-size:20px;}
  .p-principles span{font-size:16.5px;line-height:1.62;}
  .p-areas div{font-size:18px;gap:18px;}
  .p-areas svg{width:30px;height:30px;}
  .p-exp h3{font-size:32px;}
  .p-exp p{font-size:16px;line-height:1.55;}
}

/* El tinte del lavado del fondo ilustrado, por superficie: cada una lava con
   su propio color para que la imagen se integre en vez de quedar como un
   parche frío sobre el marfil. Ver colors_and_type.css. */
.pacto .p-section.ivory{ --kz-fondo-tinte: 248,243,233; }
.pacto .p-section.sand { --kz-fondo-tinte: 243,236,223; }

/* La regla de .fondo-japon vive en styles.css, pero .p-section declara
   `background` en forma corta y esta hoja carga después: hay que repetirla
   acá con la especificidad de .p-section o la imagen nunca aparece. */
@media (min-width:900px){
  .p-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 */
/* Los cuatro sellos del método — montaña, piedras, brote y enso — redibujados
   en SVG desde la maqueta aprobada (PACTO_Inicio.html, la tira de 1536x187).
   Allí son silueta RELLENA en tinta con acentos en oro, no dibujo de línea:
   esa es la diferencia que hacía que no se vieran orientales.

   Van en SVG y no recortados del raster porque en el original cada sello mide
   unos 70px: alcanza justo para 46px en pantalla, y se vería blando en
   pantallas retina. En vector son nítidos a cualquier tamaño.

   Los tres colores son variables porque el mismo sello va sobre marfil en
   /pacto/ y sobre navy en las subpáginas, donde la tinta negra desaparecería.
   --p-sello-halo tiñe los huecos en negativo (la nieve de la montaña), así
   que SIEMPRE tiene que ser el color real de la superficie que hay detrás. */
.pacto{
  --p-sello-ink:  #15171a;
  --p-sello-oro:  #c9a24a;
  --p-sello-halo: var(--p-ivory);
}
.pacto .p-section.ivory{ --p-sello-halo: var(--p-ivory-2); }
.pacto .p-section.sand { --p-sello-halo: #f1e9dc; }

.sello{ display:block; width:100%; height:100%; }

/* ------------------------------------------------------------ método */
.p-phase .sello{
  width:72px; height:72px; margin:0 auto 18px;
  background:rgba(226,208,170,.34); border-radius:50%; padding:9px;
}

/* La onda que une los cuatro sellos. En la maqueta es una línea de agua
   continua, no un camino punteado: los sellos caen justo en los cruces de la
   onda con su eje. Va detrás, a la altura del centro de los sellos. */
.p-method{
  position:relative; grid-template-columns:repeat(4,1fr); gap:0; margin-top:52px;
}
.p-method::before{
  content:""; position:absolute; left:0; right:0; top:36px; height:48px;
  transform:translateY(-50%);
  background:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201200%2048'%20preserveAspectRatio='none'%3E%3Cpath%20d='M0%2024Q75%203%20150%2024T300%2024T450%2024T600%2024T750%2024T900%2024T1050%2024T1200%2024'%20fill='none'%20stroke='%23c9a24a'%20stroke-width='1.6'%20opacity='.55'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  pointer-events:none;
}
.p-phase{
  position:relative; text-align:center; padding:0 18px; border-left:0;
}
.p-phase strong{ font-size:15px; }
.p-phase b{
  display:block; font-family:var(--font-display); font-weight:500;
  font-size:19px; line-height:1.3; margin:11px 0 9px; color:var(--p-ink);
}
.p-phase span{ display:block; max-width:28ch; margin:0 auto; }
@media (max-width:900px){
  /* El apilado está declarado más arriba, pero la regla de .p-method de este
     bloque es posterior y lo pisaba: hay que repetirlo acá o en teléfono
     quedan las cuatro columnas y la última se sale de la pantalla. */
  .p-method{ grid-template-columns:1fr; gap:26px; }
  .p-method::before{ display:none; }
  .p-phase{ padding:0 0 24px; border-bottom:1px solid var(--p-rule); }
  .p-phase:last-child{ border-bottom:0; padding-bottom:0; }
}

/* La banda de Consulting de /pacto/: el mismo .p-cons-hero del hero de
   /pacto/consulting/, con una tercera columna para las cuatro áreas detrás
   de su regla dorada, como en la maqueta aprobada (la tira de 1536x234).
   Abajo de 1100 las áreas pasan debajo del texto, y abajo de 900 el
   componente base ya apila la foto arriba. */
.p-cons-hero.con-areas{ grid-template-columns:42% 1fr minmax(260px,auto); }
.p-cons-hero.con-areas .p-areas{
  align-self:center; margin:0;
  padding:4px 0 4px 34px; margin-right:clamp(24px,5vw,80px);
}
.p-cons-hero.con-areas .p-areas div{ font-size:15px; }
@media (max-width:1100px){
  .p-cons-hero.con-areas{ grid-template-columns:42% 1fr; }
  .p-cons-hero.con-areas .p-areas{
    grid-column:2; margin:0 clamp(24px,5vw,80px) 46px 0;
    padding:26px 0 0 0; border-left:0; border-top:2px solid var(--p-gold);
  }
}
@media (max-width:900px){
  .p-cons-hero.con-areas{ grid-template-columns:1fr; }
  .p-cons-hero.con-areas .p-areas{
    grid-column:1; margin:0 clamp(24px,7vw,60px) 42px;
  }
}
