/* =====================================================
   ALTIMEA.COM · /nosotros/  — Hub editorial (DS V2 §14)
   Se carga con main.css. Main.css provee tokens base + nav + footer + .highlight*.
   Este stylesheet sólo contiene patrones editoriales específicos del hub.

   Convenciones:
     - Tokens editoriales --ed-* (prefix para no pisar los del DS base).
     - Typography scale amplificada (clamps mayores que el DS landing).
     - Zero hex fuera de :root (los que hay están ahí).
   ===================================================== */


/* =====================================================
   TOKENS EDITORIALES
   ===================================================== */
:root {
  --ed-prose-width: 720px;   /* ancho de lectura ideal */
  --ed-wide-width:  960px;   /* bloques estructurales */
  --ed-full-width:  1140px;  /* alineación general */

  /* Ritmo vertical editorial (fluido) */
  --ed-chapter-padding:       clamp(80px, 10vw, 144px);
  --ed-chapter-tight-padding: clamp(72px, 8vw, 112px);

  /* El mockup usa #3DD8A4 explícito; ya existe en el DS como --mint-strong
     (equivalente #4CE5AA). Reusamos el canon. */
}


/* =====================================================
   SKIP LINK — visible solo al focus (a11y)
   ===================================================== */
body.nosotros .skip-link {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--blue);
  color: var(--white);
  padding: 8px 16px;
  z-index: 200;
  border-radius: 0 0 4px 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  transform: translateY(-100%);
  transition: transform 0.15s ease;
}
body.nosotros .skip-link:focus { transform: translateY(0); }


/* =====================================================
   RESET / BASE OVERRIDES (solo para /nosotros/)
   Scoped al wrapper body.nosotros para no filtrar a otras páginas.
   ===================================================== */
body.nosotros { line-height: 1.75; }

body.nosotros main p {
  font-size: 17.5px;
  line-height: 1.78;
  color: var(--gray-900);
}
body.nosotros main p + p { margin-top: 1.35em; }


/* =====================================================
   TIPOGRAFÍA EDITORIAL — scoped a <main> para no filtrar
   al header/footer canónicos (que tienen su propio sizing).
   Specificity `body.nosotros main h1` (0,1,2) permite que
   las overrides locales `.nosotros .cover h1` (0,2,1) ganen.
   ===================================================== */
body.nosotros main h1,
body.nosotros main h2,
body.nosotros main h3,
body.nosotros main h4 {
  font-family: 'Montserrat', sans-serif;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.5px;
}
body.nosotros main .display {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
}
body.nosotros main h2 {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.12;
}
body.nosotros main h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.4px;
}
body.nosotros main h4 { font-size: 18px; font-weight: 700; }

body.nosotros .lead {
  font-size: clamp(19px, 1.9vw, 22px);
  line-height: 1.65;
  color: var(--gray-700);
}

body.nosotros em { font-style: italic; }


/* =====================================================
   EYEBROW EDITORIAL
   ===================================================== */
.nosotros .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 28px;
}
.nosotros .eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--mint-strong);
}
.nosotros .eyebrow.is-on-dark        { color: var(--text-on-dark-3); }
.nosotros .eyebrow.is-on-dark::before { background: var(--mint); }
.nosotros .eyebrow.is-centered       { justify-content: center; }


/* =====================================================
   CONTENEDORES
   ===================================================== */
.nosotros .ed-wrap       { max-width: var(--ed-full-width);  margin: 0 auto; padding: 0 32px; }
.nosotros .ed-wrap-wide  { max-width: var(--ed-wide-width);  margin: 0 auto; padding: 0 32px; }
.nosotros .ed-prose      { max-width: var(--ed-prose-width); margin: 0 auto; padding: 0 32px; }

.nosotros .chapter        { padding: var(--ed-chapter-padding) 0; }
.nosotros .chapter-tight  { padding: var(--ed-chapter-tight-padding) 0; }


/* =====================================================
   §1 · COVER EDITORIAL
   ===================================================== */
.nosotros .cover {
  background: var(--navy-deep);
  color: var(--text-on-dark-1, var(--white));
  padding: clamp(96px, 14vw, 180px) 0 clamp(72px, 10vw, 120px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nosotros .cover::before {
  content: '';
  position: absolute;
  top: -240px;
  right: -180px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(114, 245, 196, 0.18) 0%, rgba(114, 245, 196, 0) 60%);
  pointer-events: none;
}
.nosotros .cover::after {
  content: '';
  position: absolute;
  bottom: -280px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 103, 255, 0.12) 0%, rgba(0, 103, 255, 0) 60%);
  pointer-events: none;
}
.nosotros .cover .ed-wrap-wide { position: relative; z-index: 1; }

.nosotros .cover-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 32px;
}
.nosotros .cover-eyebrow::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--mint);
}

.nosotros .cover h1 {
  color: var(--white);
  max-width: 16ch;
  margin-bottom: 36px;
}
.nosotros .cover-lead {
  max-width: 52ch;
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.7;
  color: var(--text-on-dark-2);
  margin-bottom: 64px;
}

.nosotros .byline {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: var(--text-on-dark-3);
}
.nosotros .byline-item {
  padding-right: 32px;
  margin-right: 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.5;
}
.nosotros .byline-item:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}
.nosotros .byline-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 6px;
}
.nosotros .byline-value {
  color: var(--white);
  font-weight: 600;
}
.nosotros .byline-value .accent { color: var(--mint); }


/* =====================================================
   §2 · HISTORIA (ensayo + era-grid asimétrico)
   ===================================================== */
.nosotros .historia            { background: var(--white); }
.nosotros .historia h2         { max-width: 18ch; margin-bottom: 36px; }
.nosotros .historia-lead {
  font-size: clamp(19px, 1.85vw, 22px);
  line-height: 1.65;
  color: var(--gray-700);
  margin-bottom: 72px;
}
.nosotros .historia-lead::first-letter {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 4.4em;
  float: left;
  line-height: 0.82;
  margin: 6px 14px 0 0;
  color: var(--navy);
}

.nosotros .era-grid {
  max-width: var(--ed-wide-width);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px 48px;
  row-gap: 56px;
}
.nosotros .era-year {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--mint-strong); /* editorial accept Gate 5 — identity over WCAG AA */
  line-height: 1;
  letter-spacing: -0.5px;
  text-align: right;
  padding-top: 4px;
  border-top: 3px solid var(--mint-strong);
  width: 100%;
}
.nosotros .era-year.is-current {
  color: var(--navy);
  border-top-color: var(--navy);
}
.nosotros .era-body p {
  font-size: 17px;
  line-height: 1.75;
  max-width: 58ch;
}
.nosotros .era-body h4 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--navy);
}


/* =====================================================
   §3 · PRINCIPIOS (<ol> editorial numerado)
   ===================================================== */
.nosotros .principios             { background: var(--gray-50); }
.nosotros .principios .intro      { margin-bottom: 80px; }
.nosotros .principios h2          { max-width: 22ch; margin-bottom: 28px; }

.nosotros .principios-list {
  max-width: var(--ed-wide-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  list-style: none;
}
.nosotros .principio-entry {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--gray-200);
  align-items: start;
}
.nosotros .principio-entry:first-child { padding-top: 0; }
.nosotros .principio-entry:last-child  { border-bottom: none; }
.nosotros .principio-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 44px;
  color: var(--mint-strong); /* editorial accept Gate 5 — identity over WCAG AA */
  line-height: 1;
  letter-spacing: -1px;
}
.nosotros .principio-body h3 {
  margin-bottom: 14px;
}
.nosotros .principio-body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--gray-700);
  max-width: 62ch;
}


/* =====================================================
   §4 · FRAMEWORKS — quiet grid 2×2
   ===================================================== */
.nosotros .frameworks        { background: var(--white); }
.nosotros .frameworks .intro { margin-bottom: 80px; }
.nosotros .frameworks h2     { max-width: 24ch; margin-bottom: 28px; }

.nosotros .fw-grid {
  max-width: var(--ed-wide-width);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 64px;
}
.nosotros .fw-entry .fw-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--mint-strong); /* editorial accept Gate 5 — identity over WCAG AA */
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.nosotros .fw-entry h3 {
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 14px;
}
.nosotros .fw-entry p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--gray-700);
  max-width: 48ch;
}


/* =====================================================
   §5 · LIDERAZGO — flexbox centered (3+2 auto-centra)
   ===================================================== */
.nosotros .liderazgo        { background: var(--gray-50); }
.nosotros .liderazgo .intro { margin-bottom: 80px; }
.nosotros .liderazgo h2     { max-width: 18ch; margin-bottom: 28px; }

.nosotros .personas {
  max-width: var(--ed-wide-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 56px 40px;
}
.nosotros .persona {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 0 calc((100% - 80px) / 3);
  max-width: calc((100% - 80px) / 3);
}
.nosotros .persona-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 24px;
  display: block;
}
.nosotros .persona-role {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--mint-strong); /* editorial accept Gate 5 — identity over WCAG AA */
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.nosotros .persona h3 {
  font-size: 22px;
}


/* =====================================================
   §6 · CLIENTES — inline-stat + logo-strip + belcorp-note
   ===================================================== */
.nosotros .clientes        { background: var(--white); }
.nosotros .clientes .intro { margin-bottom: 56px; text-align: center; }
.nosotros .clientes .intro .eyebrow { justify-content: center; }
.nosotros .clientes h2     { max-width: 22ch; margin: 0 auto 28px; }

.nosotros .clientes-narrative {
  max-width: var(--ed-prose-width);
  margin: 0 auto;
  padding: 0 32px 72px;
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
}
.nosotros .inline-stat {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(72px, 9vw, 112px);
  color: var(--navy);
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: 18px;
}
.nosotros .inline-stat .unit {
  color: var(--mint-strong);
  font-size: 0.55em;
  margin-left: 2px;
}
.nosotros .clientes-narrative h3 {
  line-height: 1.4;
  margin: 0 auto 20px;
  max-width: 28ch;
  font-size: clamp(20px, 2.1vw, 24px);
}
.nosotros .clientes-narrative p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--gray-700);
  max-width: 58ch;
  margin: 0 auto;
}

.nosotros .logo-row {
  max-width: var(--ed-wide-width);
  margin: 64px auto 0;
  padding: 0 32px;
  text-align: center;
}
.nosotros .logo-row-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 36px;
}
.nosotros .logo-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);  /* 5 cols × 4 rows = 20 logos */
  gap: 16px 24px;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.25s ease;
  padding: 0;
  margin: 0;
}
.nosotros .logo-strip:hover { opacity: 1; }
.nosotros .logo-slot {
  aspect-ratio: 3 / 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.nosotros .logo-slot img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.nosotros .belcorp-note {
  max-width: 680px;
  margin: 96px auto 0;
  padding: 0 32px 0 32px;
  border-left: 3px solid var(--mint-strong);
  padding-left: 32px;
}
.nosotros .belcorp-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mint-strong); /* editorial accept Gate 5 — identity over WCAG AA */
  margin-bottom: 10px;
}
.nosotros .belcorp-note h3 {
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 14px;
}
.nosotros .belcorp-note p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--gray-700);
  margin-bottom: 18px;
  max-width: 58ch;
}
.nosotros .belcorp-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--mint-strong);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.nosotros .belcorp-link:hover { color: var(--mint-strong); }
.nosotros .belcorp-link .arrow { transition: transform 0.2s; }
.nosotros .belcorp-link:hover .arrow { transform: translateX(4px); }

.nosotros .cases-outro {
  text-align: center;
  margin-top: 64px;
  font-family: 'Montserrat', sans-serif;
}
.nosotros .cases-outro a {
  color: var(--blue-a11y);
  font-weight: 700;
  font-size: 15px;
}
.nosotros .cases-outro a:hover { color: var(--navy); }


/* =====================================================
   §6.5 · FURTHER READING — hub → sub-páginas
   ===================================================== */
.nosotros .further-reading        { background: var(--gray-50); }
.nosotros .further-reading .intro { margin-bottom: 64px; text-align: center; }
.nosotros .further-reading .intro h2 {
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}
.nosotros .further-reading .intro .eyebrow { justify-content: center; }

.nosotros #faq .intro { margin-bottom: 56px; }

.nosotros .fr-grid {
  max-width: var(--ed-wide-width);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.nosotros .fr-entry {
  display: flex;
  flex-direction: column;
  padding: 32px 0 0;
  border-top: 2px solid var(--mint-strong);
  transition: transform 0.25s ease;
  height: 100%;
}
@media (hover: hover) {
  .nosotros .fr-entry:hover { transform: translateY(-4px); }
}
.nosotros .fr-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 14px;
}
.nosotros .fr-entry h3 {
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 14px;
}
.nosotros .fr-entry p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--gray-700);
  flex: 1;
  margin-bottom: 24px;
}
.nosotros .fr-arrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color 0.2s, border-color 0.2s;
}
.nosotros .fr-entry:hover .fr-arrow {
  color: var(--mint-strong);
  border-bottom-color: var(--mint-strong);
}


/* =====================================================
   §7 · EPÍLOGO / CTA
   ===================================================== */
.nosotros .epilogo {
  background: var(--navy-deep);
  padding: clamp(96px, 12vw, 160px) 0;
  color: var(--text-on-dark-1, var(--white));
  text-align: center;
  position: relative;
  overflow: hidden;
}
.nosotros .epilogo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(114, 245, 196, 0.10) 0%, rgba(114, 245, 196, 0) 60%);
  pointer-events: none;
}
.nosotros .epilogo .ed-wrap { position: relative; z-index: 1; }
.nosotros .epilogo .eyebrow {
  justify-content: center;
  color: var(--mint);
  margin-bottom: 32px;
}
.nosotros .epilogo .eyebrow::before { background: var(--mint); }

.nosotros .epilogo h2 {
  color: var(--white);
  max-width: 18ch;
  margin: 0 auto 28px;
  font-size: clamp(34px, 4.4vw, 54px);
}
.nosotros .epilogo p {
  color: var(--text-on-dark-2);
  font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.65;
  max-width: 58ch;
  margin: 0 auto 48px;
}
.nosotros .epilogo-actions {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.nosotros .btn-mint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  background: var(--mint);
  color: var(--navy-deep);
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
@media (hover: hover) {
  .nosotros .btn-mint:hover {
    background: var(--white);
    box-shadow: 0 8px 24px rgba(114, 245, 196, 0.35);
    transform: translateY(-2px);
  }
}
.nosotros .epilogo .secondary-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--mint);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s, border-bottom-color 0.2s;
}
.nosotros .epilogo .secondary-link:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}


/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .nosotros .persona {
    flex: 0 0 calc((100% - 40px) / 2);
    max-width: calc((100% - 40px) / 2);
  }
  .nosotros .logo-strip { grid-template-columns: repeat(4, 1fr); }
  .nosotros .fr-grid    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nosotros .cover { padding: 96px 0 72px; }

  .nosotros .byline {
    flex-direction: column;
    gap: 16px;
    border-top: none;
    padding-top: 0;
  }
  .nosotros .byline-item {
    border-right: none;
    margin-right: 0;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nosotros .byline-item:last-child { border-bottom: none; }

  .nosotros .era-grid {
    grid-template-columns: 1fr;
    padding: 0 24px;
    row-gap: 40px;
  }
  .nosotros .era-year {
    text-align: left;
    width: auto;
    display: inline-block;
    padding-right: 28px;
  }

  .nosotros .principios-list { padding: 0 24px; }
  .nosotros .principio-entry {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 40px 0;
  }
  .nosotros .principio-num { font-size: 36px; }

  .nosotros .fw-grid {
    grid-template-columns: 1fr;
    padding: 0 24px;
    gap: 48px;
  }

  .nosotros .personas { gap: 56px; padding: 0 24px; }
  .nosotros .persona  { flex: 0 0 100%; max-width: 100%; }

  .nosotros .logo-strip { grid-template-columns: repeat(3, 1fr); }

  .nosotros .belcorp-note {
    padding-left: 20px;
    margin-left: 24px;
    margin-right: 24px;
  }

  .nosotros .fr-grid {
    grid-template-columns: 1fr;
    padding: 0 24px;
    gap: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nosotros * {
    transition-duration: 0.01ms !important;
  }
}
