/* CENFIC · Nosotros */
.nosotros-page {
  --about-navy: #062449;
  --about-navy-deep: #041b37;
  --about-blue: #0873b9;
  --about-cyan: #05aab8;
  --about-gold: #c7a66f;
  --about-ink: #092c54;
  --about-copy: #5f7184;
  --about-line: #dce8f1;
  --type-h1: clamp(30px, 2.75vw, 49px);
  --type-h2: 20px;
  --type-card-title: 14px;
  --type-feature-title: 18px;
  --type-lead: 15px;
  --type-body: 13px;
  --type-secondary: 11.5px;
  --type-eyebrow: 10px;
  --type-button: 13px;
  background: #fff;
}

.nosotros-page .site-header {
  background: #001E3E;
}

.nosotros-page .site-nav .nav-link.is-active {
  color: #F3C95E;
}

.nosotros-page .site-nav .nav-link.is-active::after {
  width: 100%;
}

/* Nosotros no carga desktop-grande.css: se reproducen únicamente las
   reglas finales del header oficial para el rango intermedio. */
@media (min-width: 1181px) and (max-width: 1350px) {
  .nosotros-page .site-header {
    padding-inline: 20px;
    gap: 12px;
  }

  .nosotros-page .site-header .brand {
    gap: 9px;
  }

  .nosotros-page .site-header .brand-mark {
    height: 52px;
  }

  .nosotros-page .site-header .brand-name {
    font-size: 30px;
  }

  .nosotros-page .site-header .brand-legend {
    display: block;
  }

  .nosotros-page .site-nav {
    gap: 12px;
  }

  .nosotros-page .site-nav .nav-link {
    font-size: 14px;
  }

  .nosotros-page .nav-search {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .nosotros-page .site-nav .nav-aula {
    padding: 8px 10px;
    gap: 6px;
  }

  .nosotros-page .site-nav .nav-cta {
    padding: 8px 12px;
    gap: 7px;
  }
}

.nosotros-page #main-nosotros {
  background: #fff;
}

.about-shell {
  width: min(100%, 1720px);
  margin-inline: auto;
  padding-inline: clamp(24px, 5.5vw, 96px);
}

/* Hero */
.about-hero {
  position: relative;
  isolation: isolate;
  height: 417px;
  min-height: 417px;
  overflow: hidden;
  background: #05254a url("../img/hero-nosotros.png") center 49% / cover no-repeat;
}

.about-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 24, 48, .98) 0%, rgba(3, 34, 67, .94) 28%, rgba(4, 43, 81, .55) 53%, rgba(3, 25, 50, .12) 76%, rgba(2, 20, 42, .28) 100%),
    linear-gradient(0deg, rgba(2, 20, 42, .30), transparent 45%);
}

.about-hero__inner {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 780px) 1fr;
  align-items: center;
  gap: clamp(30px, 5vw, 84px);
}

.about-hero__content {
  padding-block: 34px;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 13px;
  color: #9b7a45;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  flex: 0 0 24px;
  background: var(--about-gold);
}

.section-kicker--light {
  color: #6bd6de;
}

.section-kicker--light::before {
  background: #2ac1c9;
}

.about-hero h1 {
  max-width: 800px;
  margin: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(30px, 2.75vw, 49px);
  line-height: 1.08;
  letter-spacing: -.042em;
  text-transform: uppercase;
  text-wrap: balance;
}

.about-hero__lead {
  max-width: 670px;
  margin: 18px 0 22px;
  color: #d9e7f3;
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.6;
}

.about-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.about-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 21px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 5px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.about-button:hover {
  transform: translateY(-2px);
  border-color: #fff;
}

.about-button--primary {
  border-color: #08aeb8;
  background: #08aeb8;
}

.about-button--primary:hover {
  border-color: #18c0ca;
  background: #069da7;
}

.about-hero__signature {
  align-self: end;
  justify-self: end;
  margin: 0 0 50px;
  padding-left: 21px;
  border-left: 2px solid var(--about-gold);
  display: grid;
  gap: 5px;
  color: rgba(255,255,255,.78);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}

/* Shared sections */
.about-section {
  color: var(--about-copy);
  background: #fff;
}

.about-section h2,
.about-section h3 {
  color: var(--about-ink);
}

.about-section p {
  color: var(--about-copy);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(27px, 2.1vw, 38px);
  line-height: 1.17;
  letter-spacing: -.04em;
}

.who {
  padding: clamp(62px, 5.5vw, 90px) 0 clamp(56px, 5vw, 82px);
}

.who__top {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 1fr) minmax(520px, 1.75fr);
  gap: clamp(18px, 1.45vw, 26px);
  align-items: start;
}

.who .section-heading h2 {
  font-size: clamp(27px, 1.9vw, 31px);
}

.who__intro {
  margin: 26px 0 0;
  max-width: 650px;
  font-size: 15px;
  line-height: 1.78;
}

.service-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.service-card,
.value-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--about-line);
  border-radius: 9px;
  background: #fff;
}

.service-card {
  min-height: 104px;
  padding: 16px 13px;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 5px 18px rgba(20, 58, 91, .035);
}

/* `portada.css` agrega un chevrón a tarjetas de Inicio. En esta página
   son bloques informativos, no enlaces, así que se elimina esa señal. */
.nosotros-page .service-card::before,
.nosotros-page .service-card::after {
  content: none !important;
  display: none !important;
}

.line-icon {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  display: grid;
  place-items: center;
  color: #078eab;
}

.line-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3,
.value-card h3 {
  margin: 0 0 5px;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: -.015em;
}

.service-card h3 {
  font-size: 12px;
}

.service-card p {
  font-size: 10px;
  line-height: 1.4;
}

.service-card .line-icon {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
}

.service-card .line-icon svg {
  width: 27px;
  height: 27px;
}

.service-card p,
.value-card p {
  margin: 0;
  font-size: 11px;
  line-height: 1.48;
}

.purpose-grid {
  margin-top: clamp(22px, 1.8vw, 30px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.purpose-card {
  min-height: 176px;
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: start;
  gap: 20px;
  padding: clamp(25px, 2.1vw, 34px);
  border: 1px solid #d8e9f5;
  border-radius: 10px;
  background: #eef6fc;
}

.purpose-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 14px rgba(28, 91, 132, .07);
}

.purpose-card__icon svg {
  width: 34px;
  height: 34px;
}

.purpose-card__label {
  margin: 0 0 7px !important;
  color: #13789d !important;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.purpose-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.purpose-card div > p:last-child {
  margin: 0;
  font-size: 13px;
  line-height: 1.68;
}

/* Values */
.values {
  padding: clamp(58px, 5vw, 82px) 0 clamp(68px, 6vw, 96px);
  border-top: 1px solid #eef2f6;
  background: #fbfcfd;
}

.values__heading {
  display: grid;
  grid-template-columns: minmax(330px, .9fr) minmax(420px, 1.1fr);
  align-items: end;
  gap: clamp(40px, 7vw, 130px);
}

.values__intro {
  margin: 0 0 3px;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.72;
}

.values-grid {
  margin-top: 35px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.value-card {
  min-height: 128px;
  align-items: flex-start;
  padding: 22px 18px;
}

.value-card .line-icon {
  margin-top: 1px;
}

.value-card h3 {
  font-size: 15px;
}

.value-card p {
  font-size: 11.5px;
  line-height: 1.55;
}

/* Benefits */
.benefits {
  padding: clamp(54px, 4.8vw, 78px) 0 clamp(58px, 5vw, 82px);
  border-top: 1px solid #e8f0f6;
  background: #f2f8fc;
}

.section-intro-row {
  display: grid;
  grid-template-columns: minmax(330px, .9fr) minmax(420px, 1.1fr);
  align-items: end;
  gap: clamp(40px, 7vw, 130px);
}

.section-lead {
  max-width: 720px;
  margin: 0 0 3px;
}

.benefits-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.benefit-card {
  min-width: 0;
  min-height: 106px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 19px 17px;
  border: 1px solid var(--about-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 5px 18px rgba(20, 58, 91, .035);
}

.benefit-card > div {
  min-width: 0;
}

.benefit-card h3,
.benefit-card p {
  margin: 0;
}

.benefit-card h3 {
  margin-bottom: 5px;
  color: var(--about-ink);
}

.benefit-card p {
  color: var(--about-copy);
}

/* Final CTA */
.final-cta-section {
  padding: clamp(34px, 3.4vw, 52px) 0;
  background: #fff;
}

.final-cta {
  position: relative;
  isolation: isolate;
  min-height: 132px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(200px, 270px);
  align-items: center;
  gap: clamp(28px, 4vw, 70px);
  padding: 25px clamp(26px, 3.6vw, 62px);
  border-radius: 8px;
  background: linear-gradient(100deg, #041b37 0%, #052c55 67%, #073d73 100%);
  box-shadow: 0 12px 28px rgba(4, 27, 55, .12);
}

.final-cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 43%;
  opacity: .34;
  background: linear-gradient(90deg, transparent, rgba(4, 45, 88, .18)), url("../../../shared/img/fondo-red.svg") center / cover no-repeat;
  pointer-events: none;
}

.final-cta__copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.final-cta__line {
  width: 34px;
  height: 2px;
  flex: 0 0 34px;
  background: var(--about-gold);
}

.final-cta h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(21px, 1.55vw, 27px);
  line-height: 1.18;
  letter-spacing: -.035em;
}

.final-cta__copy p {
  margin: 0;
  color: #c9d7e6;
}

.final-cta__button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 24px;
  border-radius: 6px;
  background: #e8c57f;
  color: #092744;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .14);
  transition: transform .2s ease, background .2s ease;
}

.final-cta__button:hover {
  transform: translateY(-2px);
  background: #f0d294;
}

.final-cta__message {
  position: relative;
  margin: 0;
  padding-left: 21px;
  border-left: 2px solid var(--about-gold);
  color: #e2eaf3;
  font-size: var(--type-eyebrow);
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.final-cta__message span {
  color: #67d0d7;
}

/* Unified typographic hierarchy */
.section-kicker,
.purpose-card__label {
  font-family: "Inter", system-ui, sans-serif;
  font-size: var(--type-eyebrow);
  line-height: 1;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.about-hero h1 {
  font-size: var(--type-h1);
  line-height: 1.08;
  font-weight: 800;
}

.section-heading h2 {
  font-family: "Sora", "Inter", system-ui, sans-serif;
  font-size: var(--type-h2);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
}

.about-hero__lead,
.who__intro,
.values__intro,
.section-lead {
  font-family: "Inter", system-ui, sans-serif;
  font-size: var(--type-lead);
  line-height: 1.68;
  font-weight: 400;
}

.service-card h3,
.value-card h3,
.benefit-card h3 {
  font-family: "Sora", "Inter", system-ui, sans-serif;
  font-size: var(--type-card-title);
  line-height: 1.1;
  font-weight: 800;
}

.purpose-card h3 {
  font-family: "Sora", "Inter", system-ui, sans-serif;
  font-size: var(--type-feature-title);
  line-height: 1.15;
  font-weight: 800;
}

.purpose-card div > p:last-child,
.final-cta__copy p {
  font-family: "Inter", system-ui, sans-serif;
  font-size: var(--type-body);
  line-height: 1.62;
  font-weight: 400;
}

.service-card p,
.value-card p,
.benefit-card p {
  font-family: "Inter", system-ui, sans-serif;
  font-size: var(--type-secondary);
  line-height: 1.4;
  font-weight: 400;
}

.about-button,
.final-cta__button {
  font-family: "Inter", system-ui, sans-serif;
  font-size: var(--type-button);
  line-height: 1;
  font-weight: 700;
}

.final-cta h2 {
  font-family: "Sora", "Inter", system-ui, sans-serif;
  font-size: var(--type-h2);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
}

.final-cta__message {
  font-family: "Inter", system-ui, sans-serif;
  font-size: var(--type-eyebrow);
  line-height: 1;
  font-weight: 800;
  letter-spacing: .24em;
}

/* Header search kept compatible with the existing portal */
.nosotros-page mark.cenfic-search-hit {
  padding: 0 2px;
  border-radius: 2px;
  background: #ffe792;
  color: #12243a;
}

/* Laptop: conserva las tres tarjetas en una fila, pero elimina los
   mínimos rígidos que podían empujar la última fuera de la pantalla. */
@media (min-width: 1181px) and (max-width: 1400px) {
  .who .about-shell {
    padding-inline: clamp(38px, 4vw, 56px);
  }

  .who__top {
    grid-template-columns: minmax(0, 25%) minmax(0, 29%) minmax(0, 1fr);
    gap: 16px;
  }

  .who__intro {
    margin-top: 24px;
  }

  .service-card {
    min-width: 0;
    min-height: 134px;
    padding: 15px 10px;
    gap: 8px;
  }

  .service-card > div {
    min-width: 0;
  }

  .service-card h3,
  .service-card p {
    overflow-wrap: anywhere;
  }

  .service-card .line-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .service-card .line-icon svg {
    width: 24px;
    height: 24px;
  }

  .purpose-grid {
    margin-top: 18px;
  }
}

@media (max-width: 1180px) {
  .about-hero {
    height: auto;
    min-height: 417px;
  }

  .about-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(120px, .35fr);
  }

  .who__top {
    grid-template-columns: 1fr 1.4fr;
  }

  .service-stack {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-card {
    align-items: flex-start;
  }

  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .final-cta {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .final-cta__message {
    grid-column: 1 / -1;
    justify-self: end;
    max-width: 270px;
  }
}

@media (max-width: 760px) {
  .about-hero {
    min-height: 500px;
    background-position: 64% center;
  }

  .about-hero__shade {
    background: linear-gradient(90deg, rgba(2, 23, 47, .98) 0%, rgba(3, 31, 61, .91) 72%, rgba(3, 25, 50, .7) 100%);
  }

  .about-hero__inner {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .about-hero__signature {
    display: none;
  }

  .about-hero h1 {
    font-size: clamp(29px, 8vw, 39px);
  }

  .who__top,
  .values__heading,
  .section-intro-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .who__intro {
    margin-top: 0;
  }

  .service-stack,
  .purpose-grid,
  .values-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .section-lead {
    margin: 0;
  }

  .final-cta {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 26px 22px;
  }

  .final-cta__copy {
    align-items: flex-start;
    gap: 14px;
  }

  .final-cta__line {
    width: 24px;
    flex-basis: 24px;
    margin-top: 13px;
  }

  .final-cta__button {
    justify-self: start;
  }

  .final-cta__message {
    grid-column: auto;
    justify-self: start;
  }

  .purpose-card {
    grid-template-columns: 50px 1fr;
  }

  .purpose-card__icon {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .about-shell {
    padding-inline: 19px;
  }

  .about-hero {
    min-height: 520px;
  }

  .about-hero__actions {
    display: grid;
  }

  .about-button {
    width: 100%;
  }

  .purpose-card {
    grid-template-columns: 1fr;
  }
}

/* CENFIC · ESTANDARIZACIÓN TIPOGRÁFICA DEL HERO */
.about-hero .section-kicker--light {
  margin: 0 0 8px;
  color: #f2c94c;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.about-hero__content h1 {
  width: min(100%, 650px);
  max-width: none;
  margin: 0;
  color: #ffffff;
  font-family: "Sora", "Inter", system-ui, sans-serif;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.about-hero__lead {
  width: min(100%, 520px);
  max-width: none;
  margin: 12px 0 22px;
  color: rgba(255, 255, 255, 0.93);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 400;
}

@media (max-width: 1000px) {
  .about-hero__content h1 {
    font-size: 32px;
  }
}

@media (max-width: 520px) {
  .about-hero__content h1 {
    font-size: 29px;
  }
}
/* FIN CENFIC · ESTANDARIZACIÓN TIPOGRÁFICA DEL HERO */
