/*
 * Clúster Marítimo — Figma redesign layer.
 * Loaded AFTER css/styles.min.css on every public page. Do not edit styles.min.css:
 * every new/override rule lives here. Class prefix: cm-.
 * Source of truth: Figma "Maritimo" (Home frame, design width 1920px).
 */

/* ------------------------------------------------------------------ */
/* 1. Design tokens                                                    */
/* ------------------------------------------------------------------ */
:root {
  --cm-blue: #007ebe;
  --cm-slate: #31383f;
  --cm-white: #ffffff;
  --cm-light: #f4f6f5;
  --cm-hero-blue: #2062c2;
  --cm-navy: #003d90;
  --cm-deep-blue: #0a3d86;
  --cm-ink: #161616;
  --cm-outline: #d6d6d6;
  --cm-muted: #868686;
  --cm-footer-muted: #56626c;
  --cm-placeholder: #cccccc;
  --cm-pink: #ff006a;

  --cm-font-ui: "Montserrat", Arial, Helvetica, sans-serif;
  --cm-font-body: Arial, Helvetica, sans-serif;

  --cm-container: 1170px;
  --cm-btn-radius: 0 0 20px 0;
  /* Figma "lh auto" for Montserrat resolves to ~1.322 of the font size. */
  --cm-lh-auto: 1.322;
}

.cm-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Google Translate injects a top banner that pushes the fixed header down; the header has its own language toggle. */
body > .skiptranslate,
.goog-te-banner-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

/* ------------------------------------------------------------------ */
/* 2. Shared primitives: container, buttons, section heading           */
/* ------------------------------------------------------------------ */
.cm-container {
  width: min(var(--cm-container), calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cm-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 60px;
  padding: 0 24px;
  background: var(--cm-blue);
  color: var(--cm-white);
  font-family: var(--cm-font-ui);
  font-weight: 700;
  font-size: 14.825px;
  line-height: 20px;
  text-decoration: none;
  border: 0;
  border-radius: var(--cm-btn-radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}

.cm-btn:hover,
.cm-btn:focus-visible {
  background: #00689c;
  color: var(--cm-white);
  text-decoration: none;
}

.cm-btn::after {
  content: "";
  flex: 0 0 14px;
  width: 14px;
  height: 12px;
  background: currentColor;
  -webkit-mask: url("../images/figma/icons/icon-arrow-right-white-14x12.svg") center / contain no-repeat;
  mask: url("../images/figma/icons/icon-arrow-right-white-14x12.svg") center / contain no-repeat;
}

.cm-btn--down::after {
  flex-basis: 12px;
  width: 12px;
  height: 14px;
  -webkit-mask-image: url("../images/figma/icons/icon-arrow-right-white.svg");
  mask-image: url("../images/figma/icons/icon-arrow-right-white.svg");
}

.cm-btn--white {
  background: var(--cm-white);
  color: var(--cm-blue);
}

.cm-btn--white:hover,
.cm-btn--white:focus-visible {
  background: var(--cm-light);
  color: var(--cm-blue);
}

/* "¿Necesitas ayuda?" is a plain rectangle in the Figma header and has no arrow. */
.cm-btn--help {
  width: 190px;
  padding: 0 0 0 26px;
  justify-content: flex-start;
  border-radius: 0;
}

.cm-btn--help::after {
  display: none;
}

.cm-btn--wide {
  min-width: 190px;
  padding-left: 27px;
}

/* Section heading: big outlined word + small blue eyebrow + H2 pulled up to the word's middle. */
.cm-heading {
  position: relative;
  text-align: center;
  --cm-stroke: var(--cm-outline);
  --cm-eyebrow-top: 43px;
  --cm-title-pull: 76px;
  --cm-word-scale: 1;
}

.cm-heading--left {
  text-align: left;
}

.cm-heading__word {
  display: block;
  font-family: var(--cm-font-ui);
  font-weight: 700;
  font-size: calc(115px * var(--cm-word-scale));
  line-height: var(--cm-lh-auto);
  color: transparent;
  -webkit-text-stroke: 1.01px var(--cm-stroke);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.cm-heading__eyebrow {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--cm-eyebrow-top) * var(--cm-word-scale));
  font-family: var(--cm-font-ui);
  font-weight: 700;
  font-size: 15px;
  line-height: 20px;
  text-transform: uppercase;
  color: var(--cm-blue);
}

.cm-heading__title {
  position: relative;
  margin: calc(var(--cm-title-pull) * -1 * var(--cm-word-scale)) 0 0;
  font-family: var(--cm-font-ui);
  font-weight: 700;
  font-size: 40px;
  line-height: 53px;
  color: var(--cm-slate);
  text-transform: none;
}

@media (max-width: 1499px) {
  .cm-heading { --cm-word-scale: .8; }
}

@media (max-width: 992px) {
  .cm-heading { --cm-word-scale: .65; }
}

@media (max-width: 576px) {
  .cm-heading { --cm-word-scale: .42; }
}

/* ------------------------------------------------------------------ */
/* 3. Header (Figma "Header (navbar)")                                 */
/* ------------------------------------------------------------------ */
.page-header_3.cm-header {
  position: fixed;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  max-width: none;
  min-height: 0;
  transform: none;
  padding: 27px 0 0;
  z-index: 50;
  transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease;
}

.page-header_3.cm-header.page-header--fixed {
  padding: 8px 0;
  background: var(--cm-white);
  box-shadow: 0 3px 10px 2px rgba(0, 0, 0, .06);
}

.cm-header__inner {
  display: flex;
  align-items: center;
  width: min(1299px, calc(100% - 40px));
  margin: 0 auto;
}

@media (min-width: 1500px) {
  /* Figma header column spans x 337 → 1636 (offset +26px from the page centre). */
  .cm-header__inner {
    margin-left: calc(50% - 623px);
  }
}

.cm-header__logo {
  display: block;
  flex: 0 0 auto;
}

.cm-header__logo img {
  display: block;
  width: 124px;
  height: auto;
}

.page-header_3.page-header--fixed .cm-header__logo img {
  width: 84px;
}

.cm-header .logo--dark {
  display: none;
}

.page-header_3.page-header--fixed.cm-header .logo--white {
  display: none;
}

.page-header_3.page-header--fixed.cm-header .logo--dark {
  display: block;
}

.cm-nav {
  display: none;
  margin: 0 0 0 24px;
  padding: 0;
  list-style: none;
  position: relative;
  top: -3px;
}

.cm-nav__link {
  position: relative;
  display: block;
  padding: 0 8px;
  font-family: var(--cm-font-ui);
  font-weight: 700;
  font-size: 14.825px;
  line-height: 20px;
  text-transform: uppercase;
  color: var(--cm-white);
  text-decoration: none;
}

.cm-nav__link::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 22px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0;
  transition: opacity .2s ease;
}

.cm-nav__item--active .cm-nav__link::after,
.cm-nav__link:hover::after,
.cm-nav__link:focus-visible::after {
  opacity: 1;
}

.cm-nav__link:hover,
.cm-nav__link:focus-visible {
  color: var(--cm-white);
  text-decoration: none;
}

.cm-header__right {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.cm-lang {
  display: none;
  align-items: center;
  margin-right: 63px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--cm-white);
  font-family: var(--cm-font-ui);
  font-weight: 700;
  font-size: 14.825px;
  line-height: 20px;
  cursor: pointer;
}

.cm-lang__globe {
  display: block;
  width: 26px;
  height: 26px;
}

.cm-lang__dash {
  width: 22px;
  height: 2px;
  margin: 0 19px 0 20px;
  background: currentColor;
}

.cm-lang__chev {
  position: relative;
  top: -3px;
  width: 10px;
  height: 10px;
  margin: 2px 0 0 7px;
  background: currentColor;
  -webkit-mask: url("../images/figma/icons/icon-chevron-down.svg") center / contain no-repeat;
  mask: url("../images/figma/icons/icon-chevron-down.svg") center / contain no-repeat;
}

.page-header_3.page-header--fixed .cm-nav__link,
.page-header_3.page-header--fixed .cm-lang {
  color: var(--cm-slate);
}

.cm-header .cm-btn--help {
  display: none;
}

.cm-header .hamburger {
  display: block;
  margin-left: 16px;
}

@media (min-width: 768px) {
  .cm-header .cm-btn--help { display: inline-flex; }
  .cm-lang { display: inline-flex; margin-right: 24px; }
}

@media (min-width: 1280px) {
  .cm-nav { display: flex; }
  .cm-header .hamburger { display: none; }
}

@media (min-width: 1500px) {
  .cm-nav { margin-left: 82px; }
  .cm-lang { margin-right: 63px; }
}

@media (max-width: 991px) {
  .page-header_3.cm-header { padding-top: 14px; }
  .cm-header__logo img { width: 92px; }
}

/* Mobile sidemenu: reuse the template markup, only the contact block is restyled. */
.menu-dropdown .cm-side-help {
  margin-top: 30px;
}

/* ------------------------------------------------------------------ */
/* 4. Footer (Figma "Footer")                                          */
/* ------------------------------------------------------------------ */
.cm-footer {
  background: var(--cm-slate);
  color: var(--cm-white);
  padding: 85px 0 70px;
  font-family: var(--cm-font-ui);
  font-size: 15px;
  line-height: 20px;
}

.cm-footer a {
  color: var(--cm-white);
  text-decoration: none;
}

.cm-footer a:hover,
.cm-footer a:focus-visible {
  color: var(--cm-white);
  text-decoration: underline;
}

.cm-footer__grid {
  display: grid;
  grid-template-columns: 452px 347px 371px;
  align-items: start;
}

.cm-footer__brand-row {
  margin-left: -4px;
  display: flex;
  align-items: flex-start;
  gap: 29px;
}

.cm-footer__logo {
  display: block;
  width: 95px;
  height: 68px;
}

.cm-footer__banner {
  display: block;
  width: 251px;
  height: 67px;
  object-fit: contain;
  margin-top: 1px;
}

.cm-footer__tagline {
  width: 308px;
  max-width: 100%;
  margin: 32px 0 0;
  font-family: var(--cm-font-body);
  font-size: 15px;
  line-height: 16px;
  color: var(--cm-white);
}

.cm-footer__title {
  margin: 0 0 22px;
  font-weight: 700;
  font-size: 15px;
  line-height: 20px;
  text-transform: uppercase;
  color: var(--cm-white);
}

.cm-footer__links {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 0 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cm-footer__links li {
  margin: 0 0 24px;
  font-weight: 400;
}

.cm-footer__links li:nth-child(3n) {
  margin-bottom: 0;
}

/* Fill the two columns top-to-bottom: Inicio/Proyectos/Noticias, then Nosotros/Directorio/Contacto. */
.cm-footer__links {
  grid-auto-flow: column;
  grid-template-rows: repeat(3, auto);
}

.cm-footer__newsletter .cm-footer__title {
  margin-bottom: 27px;
}

.cm-footer__form {
  display: flex;
  margin: 0;
}

.cm-footer__input {
  flex: 0 0 291px;
  width: 291px;
  max-width: calc(100% - 79px);
  height: 60px;
  padding: 0 22px;
  background: var(--cm-white);
  border: 0;
  border-radius: 0;
  font-family: var(--cm-font-ui);
  font-size: 15px;
  color: var(--cm-slate);
  outline-offset: 2px;
}

.cm-footer__input::placeholder {
  color: var(--cm-placeholder);
  opacity: 1;
}

.cm-footer__submit {
  flex: 0 0 70px;
  width: 70px;
  height: 60px;
  margin-left: 11px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 3px solid var(--cm-blue);
  border-radius: 0 0 18px 0;
  cursor: pointer;
}

.cm-footer__submit img {
  display: block;
  width: 23px;
  height: 17px;
}

.cm-footer__helper {
  margin: 25px 0 0 0;
  font-weight: 400;
  color: var(--cm-footer-muted);
}

.cm-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px 40px;
  margin-top: 62px;
  font-weight: 400;
}

.cm-footer__credit {
  color: var(--cm-pink);
}

.cm-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
}

.cm-footer__legal a:not(:last-child)::after {
  content: " ·";
  color: var(--cm-white);
}

@media (max-width: 992px) {
  .cm-footer { padding: 56px 0 40px; }
  .cm-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .cm-footer__brand, .cm-footer__discover, .cm-footer__newsletter { min-width: 0; max-width: 100%; }
  .cm-footer__tagline { width: auto; }
  .cm-footer__form { max-width: 100%; }
  .cm-footer__bottom { margin-top: 40px; flex-direction: column; }
}

@media (max-width: 576px) {
  .cm-footer__brand-row { flex-wrap: wrap; gap: 20px; }
  .cm-footer__links { grid-template-columns: 1fr 1fr; }
  .cm-footer__input { flex: 1 1 auto; width: auto; max-width: none; min-width: 0; }
  .cm-footer__submit { flex: 0 0 70px; }
}

/* ------------------------------------------------------------------ */
/* 5. HOME — hero (Figma Home / Hero, y 0–850)                         */
/* ------------------------------------------------------------------ */
.cm-hero {
  position: relative;
  height: 850px;
  overflow: hidden;
  background: var(--cm-hero-blue) url("../images/figma/home-hero-bg.webp") center / cover no-repeat;
  color: var(--cm-white);
  --cm-left: max(20px, calc(50% - 595px));
}

.cm-hero__outline {
  position: absolute;
  top: 155px;
  left: calc(var(--cm-left) - 5px);
  font-family: var(--cm-font-ui);
  font-weight: 700;
  font-size: clamp(88px, 11.2vw, 215px);
  line-height: 284px;
  color: transparent;
  -webkit-text-stroke: 1px #002662;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.cm-hero__boat {
  position: absolute;
  top: -75px;
  left: calc(50% + 116px);
  width: 867px;
  max-width: none;
  height: auto;
  pointer-events: none;
}

.cm-hero__content {
  position: absolute;
  top: 248px;
  left: var(--cm-left);
  width: 668px;
  max-width: calc(100% - 40px);
}

.cm-hero__pre {
  margin: 0 0 20px;
  font-family: var(--cm-font-body);
  font-size: 20px;
  line-height: 23px;
  color: var(--cm-white);
}

.cm-hero__title {
  margin: 0 0 26px;
  font-family: var(--cm-font-ui);
  font-weight: 700;
  font-size: clamp(30px, 3.39vw, 65px);
  line-height: 1.077;
  color: var(--cm-white);
  text-transform: none;
}

.cm-hero__panel {
  position: absolute;
  bottom: 0;
  left: var(--cm-left);
  display: flex;
}

.cm-hero__video {
  position: relative;
  display: block;
  flex: 0 0 185px;
  width: 185px;
  height: 115px;
  overflow: hidden;
  background: var(--cm-blue);
}

.cm-hero__video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: soft-light;
}

.cm-hero__video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  transition: transform .2s ease;
}

.cm-hero__video:hover .cm-hero__video-play {
  transform: translate(-50%, -50%) scale(1.1);
}

.cm-hero__contact {
  width: 416px;
  height: 115px;
  padding: 26px 0 0 34px;
  background: var(--cm-light);
  color: var(--cm-ink);
}

.cm-hero__contact-label {
  display: block;
  font-family: var(--cm-font-ui);
  font-weight: 400;
  font-size: 14.825px;
  line-height: 20px;
  text-transform: uppercase;
  color: var(--cm-muted);
}

.cm-hero__contact-body {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 3px;
}

.cm-hero__contact-body img {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-right: 0;
}

.cm-hero__contact-list {
  display: flex;
  flex-direction: column;
  padding-left: 0;
}

.cm-hero__contact-list a {
  font-family: var(--cm-font-ui);
  font-weight: 400;
  font-size: 15px;
  line-height: 20px;
  color: var(--cm-ink);
  text-decoration: none;
  white-space: nowrap;
}

.cm-hero__contact-list a:hover {
  color: var(--cm-blue);
}

/* Video thumbnail sits left of the info card, outside the content column, only on wide screens. */
@media (min-width: 1500px) {
  .cm-hero__panel { left: calc(var(--cm-left) - 185px); }
}

@media (max-width: 1499px) {
  .cm-hero__contact { width: min(416px, calc(100vw - 40px - 185px)); }
  .cm-hero__contact-list a { white-space: normal; word-break: break-all; }
}

@media (max-width: 1199px) {
  .cm-hero__boat { width: 640px; left: auto; right: -80px; }
}

@media (max-width: 992px) {
  .cm-hero {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    padding: 150px 20px 0;
  }
  .cm-hero__outline { top: 90px; left: 12px; font-size: clamp(64px, 17vw, 140px); line-height: 1.3; }
  .cm-hero__boat { display: none; }
  .cm-hero__content,
  .cm-hero__panel { position: relative; top: auto; left: auto; bottom: auto; width: auto; max-width: none; }
  .cm-hero__content { padding-bottom: 48px; }
  .cm-hero__panel { margin: 0 -20px; }
  .cm-hero__contact { flex: 1 1 auto; width: auto; height: auto; min-height: 115px; padding: 22px 20px 20px; }
}

@media (max-width: 576px) {
  .cm-hero { padding-top: 130px; }
  .cm-hero__pre { font-size: 16px; line-height: 20px; }
  .cm-hero__panel { flex-direction: column; }
  .cm-hero__video { flex-basis: auto; width: auto; height: 115px; }
  .cm-hero__contact-list a { font-size: 13px; }
}

/* ------------------------------------------------------------------ */
/* 6. HOME — Nosotros teaser (y 850–1566) and Alianzas block           */
/* ------------------------------------------------------------------ */
.cm-teaser {
  position: relative;
  overflow: hidden;
  background: var(--cm-white);
  padding: 58px 0 93px;
}

.cm-teaser::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Figma places the texture inside a group rotated 180deg: grey at the top, white at the bottom. */
  background: url("../images/figma/home-nosotros-bg.jpg") center / cover no-repeat;
  transform: rotate(180deg);
}

.cm-teaser > .cm-container {
  z-index: 1;
}

.cm-teaser__features {
  display: grid;
  grid-template-columns: repeat(3, 227px);
  justify-content: center;
  column-gap: 173px;
  margin: 73px 0 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.cm-teaser__icon {
  display: block;
  width: 65px;
  height: 65px;
  object-fit: contain;
  margin: 0 auto 26px;
}

.cm-teaser__text {
  margin: 0;
  font-family: var(--cm-font-body);
  font-size: 15px;
  line-height: 17px;
  color: var(--cm-slate);
}

.cm-teaser__cta {
  margin-top: 108px;
  text-align: center;
}

/* ------------------------------------------------------------------ */
/* 7. HOME — Noticias (y 1566–2328)                                    */
/* ------------------------------------------------------------------ */
.cm-news {
  position: relative;
  overflow: hidden;
  background: var(--cm-light);
  padding: 119px 0 160px;
}

.cm-news__grid {
  display: grid;
  grid-template-columns: 604px minmax(0, 1fr);
  align-items: start;
}

.cm-news__intro {
  padding-top: 70px;
}

.cm-news__intro .cm-heading {
  --cm-eyebrow-top: 57px;
  --cm-title-pull: 66px;
}

.cm-news__intro .cm-heading__word {
  margin-left: -8px;
}

.cm-news__intro .cm-heading__eyebrow {
  left: 0;
  right: auto;
}

.cm-news__intro .cm-heading__title {
  font-size: 41.779px;
  line-height: 45px;
}

.cm-news__button {
  margin-top: 33px;
}

.cm-news__cards {
  display: flex;
  gap: 75px;
  min-height: 483px;
}

/* Cards are produced by js/noticias.js (drawItemForIndex): .articles-item > .article. */
.cm-news .articles {
  display: flex;
  gap: 75px;
  margin: 0;
}

.cm-news .articles-item {
  flex: 0 0 453px;
  width: 453px;
  margin: 0;
  padding: 0;
}

.cm-news .article {
  background: var(--cm-white);
  height: 100%;
}

.cm-news .article__img {
  position: relative;
  height: 275px;
  background: #d9d9d9;
  overflow: hidden;
  /* chamfered top-right corner (~36.5px), as in the Figma card placeholder */
  clip-path: polygon(0 0, calc(100% - 36.5px) 0, 100% 36.5px, 100% 100%, 0 100%);
}

.cm-news .article__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cm-news .article__lower {
  min-height: 208px;
  padding: 25px 41px 27px;
  text-align: left !important;
}

.cm-news .article__title {
  margin: 0 0 10px;
  font-family: var(--cm-font-ui);
  font-weight: 700;
  font-size: 15px;
  line-height: 16px;
  text-transform: uppercase;
  color: var(--cm-slate);
}

.cm-news .article__title a {
  color: inherit;
  text-decoration: none;
}

.cm-news .article__text {
  margin: 0 0 30px;
  font-family: var(--cm-font-body);
  font-size: 15px;
  line-height: 16px;
  color: var(--cm-slate);
  text-align: left !important;
}

.cm-news .article__text a {
  color: var(--cm-blue);
}

.cm-news .article__details {
  font-family: var(--cm-font-ui);
  font-weight: 700;
  font-size: 15px;
  line-height: 20px;
  color: var(--cm-slate);
}

@media (max-width: 1199px) {
  .cm-news { padding: 80px 0; }
  .cm-news__grid { grid-template-columns: 1fr; gap: 48px; }
  .cm-news__intro { padding-top: 0; }
  .cm-news .articles { flex-wrap: wrap; gap: 24px; }
  .cm-news .articles-item { flex: 1 1 280px; width: auto; max-width: 453px; }
}

/* ------------------------------------------------------------------ */
/* 8. HOME — Testimonios (y 2328–3007)                                 */
/* ------------------------------------------------------------------ */
.cm-testimonials {
  position: relative;
  overflow: hidden;
  background: var(--cm-slate);
  padding: 109px 0 111px;
  color: var(--cm-white);
}

.cm-testimonials__bg {
  position: absolute;
  top: -68px;
  right: 0;
  width: 1332px;
  max-width: none;
  height: 750px;
  object-fit: cover;
  pointer-events: none;
}

.cm-testimonials .cm-heading {
  --cm-stroke: #5b5b5b;
  --cm-eyebrow-top: 42px;
  --cm-title-pull: 77px;
}

.cm-testimonials .cm-heading__title {
  color: var(--cm-white);
}

.cm-testi {
  position: relative;
  width: 818px;
  max-width: 100%;
  min-height: 285px;
  margin: 46px auto 0;
  left: -6px;
}

.cm-testi__slide {
  display: none;
}

.cm-testi__slide.is-active {
  display: block;
}

.cm-testi__quote {
  min-height: 215px;
  margin: 0;
  padding: 0 27px 0 39px;
  font-family: var(--cm-font-body);
  font-size: 15px;
  line-height: 22px;
  color: var(--cm-white);
}

.cm-testi__author {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-height: 65px;
  padding-left: 0;
}

.cm-testi__avatar {
  flex: 0 0 80px;
  width: 80px;
  height: 65px;
  object-fit: cover;
}

.cm-testi__name {
  margin: 0;
  font-family: var(--cm-font-ui);
  font-weight: 700;
  font-size: 20px;
  line-height: 26px;
  color: var(--cm-white);
}

.cm-testi__role {
  margin: 4px 0 0;
  max-width: 300px;
  font-family: var(--cm-font-ui);
  font-weight: 400;
  font-size: 15px;
  line-height: 20px;
  color: var(--cm-white);
}

.cm-testi__bars {
  position: absolute;
  right: 0;
  top: 254px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cm-testi__bar {
  display: block;
  width: 57px;
  height: 14px;
  padding: 0;
  background: transparent;
  border: 0;
  position: relative;
  cursor: pointer;
}

.cm-testi__bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: #dddddd;
  transition: height .2s ease, background-color .2s ease;
}

.cm-testi__bar.is-active::after {
  height: 6px;
  bottom: 4px;
  background: var(--cm-blue);
}

@media (max-width: 992px) {
  .cm-testimonials { padding: 72px 0 80px; }
  .cm-testimonials__bg { width: 100%; left: 0; }
  .cm-testi { left: 0; margin-top: 32px; }
  .cm-testi { min-height: 0; }
  .cm-testi__quote { padding: 0; min-height: 0; margin-bottom: 24px; }
  .cm-testi__bars { position: static; justify-content: center; margin-top: 28px; }
}

@media (max-width: 576px) {
  .cm-testi__author { flex-wrap: nowrap; gap: 14px; }
  .cm-testi__avatar { flex-basis: 64px; width: 64px; height: 52px; }
  .cm-testi__name { font-size: 17px; line-height: 22px; }
}

/* ------------------------------------------------------------------ */
/* 9. HOME — CTA "Contacto" (y 3007–3717)                              */
/* ------------------------------------------------------------------ */
.cm-cta {
  position: relative;
  z-index: 1;
  min-height: 710px;
  padding: 189px 0 0;
  /* clip only the bottom: the woman photo overlaps the section above by design */
  clip-path: inset(-120px 0 0 0);
  background: radial-gradient(ellipse at center, #2263c2 0%, #25417c 100%);
  color: var(--cm-white);
}

.cm-cta__swoosh {
  position: absolute;
  top: 3px;
  left: calc(50% - 237px);
  width: 1154px;
  max-width: none;
  height: 971px;
  pointer-events: none;
}

.cm-cta__man {
  position: absolute;
  top: 3px;
  left: calc(50% + 33px);
  width: 480px;
  height: 710px;
  pointer-events: none;
}

.cm-cta__woman {
  position: absolute;
  top: -73px;
  left: calc(50% + 141px);
  width: 556px;
  height: 799px;
  pointer-events: none;
}

.cm-cta .cm-heading {
  --cm-stroke: #162d58;
  --cm-title-pull: 77px;
}

.cm-cta .cm-heading__word {
  margin-left: 0;
}

.cm-cta .cm-heading__title {
  color: var(--cm-white);
}

.cm-cta__button {
  margin-top: 58px;
}

@media (max-width: 1199px) {
  .cm-cta__man { left: auto; right: 220px; }
  .cm-cta__woman { left: auto; right: 0; width: 440px; height: auto; }
}

@media (max-width: 992px) {
  .cm-cta { min-height: 0; padding: 80px 0 440px; clip-path: none; overflow: hidden; }
  .cm-cta__swoosh { display: none; }
  .cm-cta__man { right: auto; left: 8%; top: auto; bottom: 0; width: 280px; height: auto; }
  .cm-cta__woman { right: 4%; top: auto; bottom: 0; width: 320px; height: auto; }
}

@media (max-width: 576px) {
  .cm-cta { padding-bottom: 360px; }
  .cm-cta__man { width: 220px; left: 2%; }
  .cm-cta__woman { width: 250px; }
}

/* ------------------------------------------------------------------ */
/* 10. Small screens: scale headings, no horizontal scroll             */
/* ------------------------------------------------------------------ */
@media (max-width: 992px) {
  .cm-heading__title { font-size: clamp(26px, 5.4vw, 40px); line-height: 1.3; }
  .cm-news__intro .cm-heading__title { font-size: clamp(28px, 6vw, 41.779px); line-height: 1.1; }
  .cm-heading__title br { display: none; }
  .cm-teaser { padding: 40px 0 64px; }
  .cm-teaser__features { grid-template-columns: minmax(0, 320px); row-gap: 40px; margin-top: 40px; }
  .cm-teaser__cta { margin-top: 48px; }
}


/* ------------------------------------------------------------------ */
/* 11. Shared sub-page hero (components/banner.js variant="figma")     */
/*     Figma Nosotros/Proyectos hero, y 0–642                          */
/* ------------------------------------------------------------------ */
.cm-subhero {
  position: relative;
  height: 642px;
  overflow: hidden;
  background: var(--cm-hero-blue);
  color: var(--cm-white);
  --cm-left: max(20px, calc(50% - 595px));
}

.cm-subhero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Nosotros: photo blended over the solid blue (Figma OVERLAY). */
.cm-subhero--overlay .cm-subhero__bg {
  mix-blend-mode: overlay;
}

.cm-subhero__outline {
  position: absolute;
  top: 192px;
  left: calc(var(--cm-left) - 4px);
  font-family: var(--cm-font-ui);
  font-weight: 700;
  font-size: clamp(80px, 10.818vw, 207.71px);
  line-height: 1.322;
  letter-spacing: -0.011em;
  color: transparent;
  -webkit-text-stroke: 1px #001824;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.cm-subhero__title {
  position: absolute;
  top: 281px;
  left: var(--cm-left);
  width: 860px;
  max-width: calc(100% - 40px);
  margin: 0;
  letter-spacing: -0.016em;
  font-family: var(--cm-font-ui);
  font-weight: 700;
  font-size: clamp(30px, 3.345vw, 64.218px);
  line-height: 1.012;
  color: var(--cm-white);
  text-transform: none;
}

/* Forced title line breaks (banner `---`) only apply at the large Figma layout. */
.cm-br-lg { display: none; }
@media (min-width: 993px) {
  .cm-br-lg { display: inline; }
}

@media (max-width: 992px) {
  .cm-subhero {
    height: auto;
    min-height: 420px;
    padding: 190px 20px 64px;
  }
  .cm-subhero__outline { top: 96px; left: 12px; font-size: clamp(56px, 15vw, 140px); }
  .cm-subhero__title { position: relative; top: auto; left: auto; width: auto; max-width: none; font-size: clamp(30px, 6.4vw, 48px); line-height: 1.1; }
}

/* ------------------------------------------------------------------ */
/* 12. NOSOTROS (page `.cm-nos`, Figma frame 8802:1319)                */
/*     All coordinates are design px at 1920 (container x 375–1545).   */
/* ------------------------------------------------------------------ */
.cm-nos {
  background: var(--cm-white);
  color: var(--cm-slate);
  font-family: var(--cm-font-ui);
  overflow-x: clip;
  /* Figma multi-line copy is set on a 20px pitch (line-height 1) for body text and 15px for pillar captions. */
  --cm-nos-lh: 20px;
  /* styles.min.css sets negative tracking on h1–h6; Figma uses 0%. Chrome's Montserrat Bold is ~1.5% wider than Figma's. */
  --cm-nos-ls-bold: -0.015em;
  --cm-nos-ls-body: -0.085px;
}

.cm-nos :is(h1, h2, h3, h4, .cm-heading__word, .cm-heading__eyebrow, .cm-nos-eyebrow, .cm-nos-org__label, .cm-nos-que__label-text) {
  letter-spacing: var(--cm-nos-ls-bold);
}

.cm-nos .cm-heading {
  --cm-word-scale: 1;
  --cm-title-pull: 88px;
}

.cm-nos .cm-heading__word {
  font-size: calc(115.31px * var(--cm-word-scale));
  line-height: 152px;
  line-height: calc(152px * var(--cm-word-scale));
}

.cm-nos .cm-heading__title {
  font-size: 41.779px;
  line-height: 55px;
}

:where(.cm-nos) p {
  margin: 0;
}

.cm-nos-body {
  font-family: var(--cm-font-ui);
  font-weight: 400;
  font-size: 20px;
  line-height: var(--cm-nos-lh);
  letter-spacing: var(--cm-nos-ls-body);
  color: var(--cm-slate);
}

.cm-nos-body + .cm-nos-body {
  margin-top: 12px;
}

.cm-nos-eyebrow {
  display: block;
  margin: 0;
  font-family: var(--cm-font-ui);
  font-weight: 700;
  font-size: 15px;
  line-height: 20px;
  text-transform: uppercase;
  color: var(--cm-blue);
}

.cm-nos-h2 {
  margin: 0;
  font-family: var(--cm-font-ui);
  font-weight: 700;
  font-size: 41.779px;
  line-height: 55px;
  color: var(--cm-slate);
  text-transform: none;
}

/* -- Qué es un clúster? + Quiénes somos (y 642–1520) ----------------- */
.cm-nos-que {
  height: 878px;
  background: var(--cm-white);
}

.cm-nos-que__grid {
  display: grid;
  grid-template-columns: 520px minmax(0, 650px);
  height: 100%;
}

.cm-nos-que__art {
  position: relative;
}

.cm-nos-que__blob {
  position: absolute;
  left: 3px;
  top: 147px;
  width: 470px;
  height: 658px;
}

.cm-nos-que__photo {
  position: absolute;
  left: 0;
  top: 175px;
  width: 473px;
  height: 630px;
  object-fit: cover;
}

.cm-nos-que__label {
  position: absolute;
  left: 207px;
  top: 674px;
  width: 371px;
  height: 166px;
  z-index: 1;
}

.cm-nos-que__label-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cm-nos-que__label-text {
  position: absolute;
  left: 72px;
  top: 19px;
  margin: 0;
  font-family: var(--cm-font-ui);
  font-weight: 700;
  font-size: 41.779px;
  line-height: 42px;
  text-transform: uppercase;
  color: var(--cm-white);
}

.cm-nos-que__text {
  padding-top: 109px;
}

.cm-nos-que__text .cm-heading:first-child {
  --cm-title-pull: 87px;
}

.cm-nos-que__text .cm-heading__title {
  padding-left: 83px;
  line-height: 47px;
}

.cm-nos-que__text .cm-heading__title--single {
  line-height: 55px;
}

.cm-nos-que__text .cm-nos-body {
  width: 543px;
  max-width: 100%;
  margin-left: 82px;
}

.cm-nos-que__text .cm-heading + .cm-nos-body {
  margin-top: 25px;
}

.cm-nos-que__text .cm-nos-body + .cm-heading {
  margin-top: 29px;
}

.cm-nos-que__text .cm-heading + .cm-nos-body--first {
  margin-top: 18px;
}

/* -- Nuestra propuesta de valor (y 1520–2420) ---------------------- */
.cm-nos-prop {
  height: 900px;
  background: var(--cm-white);
}

.cm-nos-prop__grid {
  display: grid;
  grid-template-columns: 701px minmax(0, 471px);
  height: 100%;
}

.cm-nos-prop__text {
  padding-top: 52px;
}

.cm-nos-prop__text .cm-heading {
  margin-left: -83px;
}

.cm-nos-prop__text .cm-heading__title {
  padding-left: 83px;
  line-height: 39px;
}

.cm-nos-prop__text .cm-nos-body {
  width: 551px;
  max-width: 100%;
  margin-left: 2px;
}

.cm-nos-prop__text .cm-heading + .cm-nos-body {
  margin-top: 51px;
}

.cm-nos-prop__text .cm-nos-body + .cm-nos-body {
  margin-top: 12px;
}

.cm-nos-prop__art {
  padding-top: 77px;
}

.cm-nos-prop__art img {
  display: block;
  width: 471px;
  max-width: none;
  height: auto;
  aspect-ratio: 471 / 707;
  object-fit: cover;
}

/* -- Pilares estratégicos (y 2420–3136) ---------------------------- */
.cm-nos-pil {
  height: 716px;
  padding-top: 119px;
  background: var(--cm-white);
  text-align: center;
}

.cm-nos-pil .cm-nos-h2 {
  margin-top: 11px;
  color: var(--cm-ink);
}

.cm-nos-pil__list {
  position: relative;
  height: 400px;
  margin: 65px 0 0;
  padding: 0;
  list-style: none;
}

.cm-nos-pil__item {
  position: absolute;
  top: 0;
  left: calc(var(--x) * 1px);
  width: 300px;
  transform: translateX(-50%);
}

.cm-nos-pil__item--low {
  top: 193px;
}

.cm-nos-pil__icon {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 32.5px;
  object-fit: contain;
}

.cm-nos-pil__caption {
  margin: 0;
  font-family: var(--cm-font-ui);
  font-weight: 700;
  font-size: 15px;
  line-height: 15px;
  color: var(--cm-ink);
  text-transform: uppercase;
}

/* -- Mapa de actores (y 3136–4180) --------------------------------- */
.cm-nos-actors {
  height: 1044px;
  padding-top: 52px;
  background: var(--cm-white);
  text-align: center;
}

.cm-nos-actors__intro {
  margin-top: 24px;
  font-size: 20px;
  line-height: 26px;
}

.cm-nos-actors__row {
  display: flex;
  justify-content: center;
  gap: 0 33px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cm-nos-actors__row:first-of-type {
  margin-top: 41px;
}

.cm-nos-actors__row + .cm-nos-actors__row {
  margin-top: 26px;
}

.cm-nos-actors__row .cm-nos-actors__item {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 20px;
  line-height: 26px;
}

.cm-nos-actors__item img {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
}

.cm-nos-actors__maps {
  display: grid;
  grid-template-columns: 646px 478px;
  column-gap: 46px;
  justify-content: start;
  align-items: start;
  margin: 50px 0 0 2px;
  padding-top: 0;
  text-align: left;
}

.cm-nos-actors__maps img {
  display: block;
  max-width: 100%;
  height: auto;
}

.cm-nos-actors__maps img:first-child {
  margin-top: 25px;
}

/* -- Ubicación (y 4180–5470) --------------------------------------- */
.cm-nos-ubi {
  position: relative;
  height: calc(min(1185px, 61.719vw) + 105px);
  background: var(--cm-light);
  text-align: center;
  --cm-stroke: var(--cm-outline);
}

.cm-nos-ubi .cm-heading {
  --cm-word-scale: 1;
}

.cm-nos-ubi__head {
  position: relative;
  z-index: 2;
  padding-top: 87px;
}

.cm-nos-ubi__lead {
  width: 761px;
  max-width: 100%;
  margin: 24px auto 0;
  text-align: center;
  font-size: 20px;
  line-height: 26px;
}

.cm-nos-ubi__art {
  position: absolute;
  top: 0;
  left: calc(50% - min(673px, 35.052vw));
  width: min(1500px, 78.125vw);
  aspect-ratio: 1500 / 1185;
}

.cm-nos-ubi__art img {
  position: absolute;
  display: block;
  max-width: none;
}

.cm-nos-ubi__collage {
  position: absolute;
  left: 0;
  top: 34.599%;
  width: 48.8%;
  aspect-ratio: 1 / 1;
}

.cm-nos-ubi__map {
  position: absolute;
  left: 44.933%;
  top: 0;
  width: 55.067%;
  aspect-ratio: 826 / 1185;
}

/* percentages below are x/732 (collage) and x/826 × y/1185 (map) of the Figma boxes */
.cm-nos-ubi__collage img,
.cm-nos-ubi__map img {
  position: absolute;
}

.cm-nos-ubi__legend {
  position: absolute;
  left: calc(50% - 503px + 2px);
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0 49px;
  width: 1006px;
  height: 110px;
  margin: 0;
  padding: 0 67px;
  list-style: none;
  background: #e1e5e3;
  clip-path: polygon(0 0, calc(100% - 37px) 0, 100% 27.5px, 100% 100%, 0 100%);
  text-align: left;
  z-index: 2;
}

.cm-nos-ubi__legend li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  line-height: 26px;
  white-space: nowrap;
}

.cm-nos-ubi__legend img {
  display: block;
  flex: none;
  width: 31px;
  height: 29px;
}

/* -- Historia (y 5470–6265) ---------------------------------------- */
.cm-nos-hist {
  height: 795px;
  padding-top: 207px;
  background: var(--cm-light);
  --cm-tl-pitch: 516px;
}

.cm-nos-hist__title {
  margin-left: -1px;
}

.cm-nos-pager {
  position: relative;
  display: block;
  width: 246px;
  height: 14px;
  margin: 41px 0 0 auto;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.cm-nos-pager--short {
  width: 183px;
  margin: 0 auto;
}

.cm-nos-pager::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: repeating-linear-gradient(to right, #dddddd 0 57px, transparent 57px 63px);
}

.cm-nos-pager__thumb {
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 57px;
  height: 6px;
  background: var(--cm-blue);
  transition: transform .2s ease;
}

.cm-nos-tl {
  margin: -2px 0 0 calc(50% - 589px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cm-nos-tl::-webkit-scrollbar {
  display: none;
}

.cm-nos-tl:focus-visible {
  outline: 2px solid var(--cm-blue);
  outline-offset: 4px;
}

.cm-nos-tl__track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cm-nos-tl__item {
  position: relative;
  flex: 0 0 var(--cm-tl-pitch);
  width: var(--cm-tl-pitch);
  padding: 0 40px 0 6px;
  scroll-snap-align: start;
}

.cm-nos-tl__year {
  display: block;
  height: 85px;
  margin: 0 0 0 -6px;
  font-family: var(--cm-font-ui);
  font-weight: 700;
  font-size: 64.1px;
  line-height: 85px;
  color: var(--cm-blue);
}

.cm-nos-tl__item::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 116px;
  height: 3px;
  border-radius: 2px;
  background: #b9b9b9;
}

.cm-nos-tl__item:first-child::before {
  left: 27px;
}

.cm-nos-tl__mark {
  position: relative;
  display: block;
  width: 31px;
  height: 31px;
  margin: 16px 0 32px;
  background: url("../images/figma/icons/timeline-dot-yellow-ring.svg") center / 31px 31px no-repeat;
}

.cm-nos-tl__mark::after {
  content: "";
  position: absolute;
  left: 7.5px;
  top: 7.5px;
  width: 16px;
  height: 16px;
  background: url("../images/figma/icons/timeline-dot-yellow.svg") center / 16px 16px no-repeat;
}

.cm-nos-tl__item--done .cm-nos-tl__mark {
  background-image: url("../images/figma/icons/timeline-dot-green-ring.svg");
}

.cm-nos-tl__item--done .cm-nos-tl__mark::after {
  background-image: url("../images/figma/icons/timeline-dot-green.svg");
}

.cm-nos-tl__caption {
  display: block;
  min-height: 40px;
  margin: 0;
  font-family: var(--cm-font-ui);
  font-weight: 700;
  font-size: 15px;
  line-height: 20px;
  text-transform: uppercase;
  color: var(--cm-slate);
}

.cm-nos-tl__text {
  width: 338px;
  max-width: 100%;
  margin: 0;
  font-family: var(--cm-font-body);
  font-size: 15px;
  line-height: 17px;
  color: var(--cm-slate);
}

/* -- Gobernanza (y 6265–7092) -------------------------------------- */
.cm-nos-gov {
  position: relative;
  height: 827px;
  overflow: hidden;
  background: #31383f url("../images/figma/nosotros-gobernanza-bg.jpg") center / cover no-repeat;
  color: var(--cm-white);
}

.cm-nos-gov__grid {
  display: grid;
  grid-template-columns: 467px minmax(0, 760px);
  column-gap: 116px;
  width: 1343px;
  max-width: calc(100% - 40px);
  margin-left: calc(50% - 668px);
  padding-top: 65px;
}

.cm-nos-gov__text {
  padding-top: 212px;
}

.cm-nos-gov__title {
  margin: 11px 0 0;
  font-family: var(--cm-font-ui);
  font-weight: 700;
  font-size: 41.779px;
  line-height: 47px;
  color: var(--cm-white);
  text-transform: none;
}

.cm-nos-gov__lead {
  margin: 14px 0 0;
  font-family: var(--cm-font-body);
  font-size: 20px;
  line-height: 23px;
  color: var(--cm-white);
}

.cm-nos-org {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cm-nos-org__row {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 127px;
  margin-bottom: 14px;
}

.cm-nos-org__row:nth-child(n+3) {
  margin-bottom: 17px;
}

.cm-nos-org__row:last-child {
  margin-bottom: 0;
}

.cm-nos-org__badge {
  position: relative;
  flex: 0 0 127px;
  width: 127px;
  height: 127px;
  margin-right: 22px;
}

.cm-nos-org__badge img {
  position: absolute;
  inset: 0;
  display: block;
  width: 127px;
  height: 127px;
}

.cm-nos-org__badge .cm-nos-org__glyph {
  inset: auto;
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
}

.cm-nos-org__arrow {
  position: absolute;
  left: 37.5px;
  top: 113.5px;
  display: block;
  width: 51px;
  height: 58px;
  z-index: 1;
  pointer-events: none;
}

.cm-nos-org__label {
  margin: 0;
  font-family: var(--cm-font-ui);
  font-weight: 700;
  font-size: 35.395px;
  line-height: 47px;
  text-transform: uppercase;
  color: var(--cm-white);
  white-space: nowrap;
}

.cm-nos-org__label--two {
  line-height: 35px;
  transform: translateY(5.5px);
}

/* -- Mesas de trabajo (y 7092–8338) -------------------------------- */
.cm-nos-mesas {
  height: 1246px;
  padding-top: 138px;
  background: var(--cm-white);
  text-align: center;
}

.cm-nos-mesas__intro {
  width: 993px;
  max-width: 100%;
  margin: 37px auto 0;
  text-align: center;
}

.cm-nos-mesas__grid {
  display: grid;
  grid-template-columns: repeat(3, 293px);
  column-gap: 125px;
  margin: 95px 0 0 10px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.cm-nos-mesas__icon {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.cm-nos-mesas__title {
  margin: 24px 0 0;
  font-family: var(--cm-font-ui);
  font-weight: 700;
  font-size: 25px;
  line-height: 29px;
  text-transform: uppercase;
  color: var(--cm-slate);
}

.cm-nos-mesas__text {
  margin: 15px 0 0;
  font-size: 20px;
  line-height: 26px;
}

/* -- Comité ejecutivo (y 8338–9054) -------------------------------- */
.cm-nos-comite {
  height: 716px;
  padding-top: 192px;
  background: var(--cm-white);
  text-align: center;
}

.cm-nos-comite .cm-heading {
  --cm-eyebrow-top: 34px;
  --cm-title-pull: 87px;
}

.cm-nos-comite .cm-heading__title {
  white-space: nowrap;
}

.cm-nos-comite .cm-heading {
  left: 19px;
}

.cm-nos-logos {
  position: relative;
  width: 1680px;
  max-width: 100%;
  margin: 71px auto 0;
  --cm-logos-view: 6;
}

.cm-nos-logos__viewport {
  container-type: inline-size;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.cm-nos-logos__viewport::-webkit-scrollbar {
  display: none;
}

.cm-nos-logos__track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cm-nos-logos__item {
  flex: 0 0 calc(100cqw / var(--cm-logos-view));
  display: flex;
  align-items: center;
  justify-content: center;
  height: 138px;
  padding: 0 12px;
  scroll-snap-align: start;
}

.cm-nos-logos__item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.cm-nos-logos__item img {
  display: block;
  max-width: 100%;
  max-height: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.cm-nos-logos__nav {
  position: absolute;
  top: 50%;
  width: 36px;
  height: 56px;
  margin-top: -28px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 2;
}

.cm-nos-logos__nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 20px;
  margin: -10px 0 0 -5px;
  background: center / contain no-repeat;
}

.cm-nos-logos__nav--prev {
  left: -60px;
}

.cm-nos-logos__nav--next {
  right: -35px;
}

.cm-nos-logos__nav--prev::before {
  background-image: url("../images/figma/icons/icon-carousel-prev.svg");
}

.cm-nos-logos__nav--next::before {
  background-image: url("../images/figma/icons/icon-carousel-next.svg");
}

.cm-nos-logos__nav:disabled {
  opacity: .3;
  cursor: default;
}

.cm-nos-logos .cm-nos-pager--short {
  margin-top: 77px;
}

/* -- Responsive ---------------------------------------------------- */
@media (min-width: 1500px) {
  .cm-nos-gov__grid { margin-left: calc(50% - 668px); }
}

@media (max-width: 1799px) {
  /* not enough room outside the 1680px viewport for the chevrons: pad the carousel instead */
  .cm-nos-logos { width: auto; margin-left: 20px; margin-right: 20px; padding: 0 44px; }
  .cm-nos-logos__nav--prev { left: 0; }
  .cm-nos-logos__nav--next { right: 0; }
}

@media (max-width: 1499px) {
  .cm-nos-gov__grid { margin-left: auto; margin-right: auto; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); column-gap: 48px; }
  .cm-nos-org__label { font-size: clamp(22px, 1.844vw + 0px, 35.395px); }
  .cm-nos-org__label--two { line-height: 1.1; }
  .cm-nos-logos { --cm-logos-view: 5; }
}

@media (max-width: 1199px) {
  .cm-nos .cm-heading { --cm-word-scale: .75; }
  .cm-nos { --cm-nos-lh: 1.45; }
  .cm-nos-pil__caption { line-height: 1.3; }
  .cm-nos-logos { --cm-logos-view: 4; }

  .cm-nos-que,
  .cm-nos-prop,
  .cm-nos-pil,
  .cm-nos-actors,
  .cm-nos-mesas,
  .cm-nos-comite,
  .cm-nos-gov,
  .cm-nos-hist { height: auto; }

  .cm-nos-que { padding: 72px 0 80px; }
  .cm-nos-que__grid { grid-template-columns: 1fr; row-gap: 40px; height: auto; }
  .cm-nos-que__art { width: min(473px, 100%); height: 840px; margin: 0 auto; }
  .cm-nos-que__text { padding-top: 0; }
  .cm-nos-que__text .cm-nos-body { width: auto; }

  .cm-nos-prop { padding: 0 0 80px; }
  .cm-nos-prop__grid { grid-template-columns: 1fr; row-gap: 40px; height: auto; }
  .cm-nos-prop__text { padding-top: 0; }
  .cm-nos-prop__text .cm-heading { margin-left: 0; }
  .cm-nos-prop__text .cm-nos-body { width: auto; margin-left: 0; }
  .cm-nos-prop__art { padding-top: 0; }
  .cm-nos-prop__art img { margin: 0 auto; max-width: 100%; }

  .cm-nos-pil { padding: 80px 0; }
  .cm-nos-pil__list { height: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 44px 24px; margin-top: 48px; }
  .cm-nos-pil__item,
  .cm-nos-pil__item--low { position: static; top: auto; left: auto; transform: none; width: 240px; }

  .cm-nos-actors { padding: 40px 0 80px; }
  .cm-nos-actors__maps { grid-template-columns: minmax(0, 1fr); row-gap: 32px; margin: 56px 0 0; }
  .cm-nos-actors__maps img:first-child { margin-top: 0; }

  .cm-nos-hist { padding: 80px 0 90px; }
  .cm-nos-tl { margin-left: 20px; }

  .cm-nos-gov { padding: 72px 0 80px; }
  .cm-nos-gov__grid { grid-template-columns: 1fr; row-gap: 56px; width: auto; margin: 0 auto; padding: 0 20px; max-width: 760px; }
  .cm-nos-gov__text { padding-top: 0; }

  .cm-nos-mesas { padding: 80px 0; }
  .cm-nos-mesas__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; margin-left: 0; margin-top: 56px; }

  .cm-nos-comite { padding: 80px 0; }
  .cm-nos-comite .cm-heading__title { white-space: normal; }
  .cm-nos-comite .cm-heading { left: 0; }
  .cm-nos-logos { margin-top: 56px; }
  .cm-nos-logos .cm-nos-pager--short { margin-top: 40px; }
}

/* Ubicación: Figma composition (collage + map) stacks below 1200px. */
@media (max-width: 1199px) {
  .cm-nos-ubi { height: auto; padding-bottom: 72px; }
  .cm-nos-ubi__head { padding-top: 64px; }
  .cm-nos-ubi__art { position: static; width: auto; aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; gap: 24px; margin-top: 40px; }
  .cm-nos-ubi__collage,
  .cm-nos-ubi__map { position: relative; left: auto; top: auto; width: min(560px, calc(100vw - 40px)); }
  .cm-nos-ubi__legend { position: static; width: auto; max-width: calc(100% - 40px); height: auto; margin: 40px auto 0; padding: 24px 28px; flex-wrap: wrap; gap: 16px 32px; justify-content: center; }
}

@media (max-width: 992px) {
  .cm-nos .cm-heading { --cm-word-scale: .6; }
  .cm-nos-h2,
  .cm-nos .cm-heading__title { font-size: clamp(26px, 5.4vw, 40px); line-height: 1.25; }
  .cm-nos .cm-heading__title br { display: none; }
  .cm-nos-que__text .cm-heading__title { padding-left: 0; line-height: 1.25; }
  .cm-nos-que__text .cm-heading--left { text-align: center; }
  .cm-nos-que__text .cm-nos-body { margin-left: 0; }
  .cm-nos-prop__text .cm-heading__title { padding-left: 0; line-height: 1.25; }
  .cm-nos-prop__text .cm-heading { text-align: center; }
  .cm-nos-actors__row { flex-wrap: wrap; gap: 8px 28px; padding: 0 20px; }
  .cm-nos-actors__row:first-of-type { margin-top: 28px; }
  .cm-nos-actors__row + .cm-nos-actors__row { margin-top: 8px; }
  .cm-nos-hist__title { margin-left: 0; }
  .cm-nos-pager { width: 100%; max-width: 246px; }
  .cm-nos-logos { --cm-logos-view: 3; }
  .cm-nos-mesas__grid { grid-template-columns: minmax(0, 420px); row-gap: 40px; justify-content: center; }
  .cm-nos-comite .cm-heading { --cm-eyebrow-top: 14px; --cm-title-pull: 40px; }
  .cm-nos-gov__title { font-size: clamp(28px, 7.4vw, 41.779px); line-height: 1.15; }
  .cm-nos-org__row { min-height: 96px; margin-bottom: 14px; }
  .cm-nos-org__row:nth-child(n+3) { margin-bottom: 14px; }
  .cm-nos-org__badge { flex-basis: 96px; width: 96px; height: 96px; margin-right: 18px; }
  .cm-nos-org__badge img { width: 96px; height: 96px; }
  .cm-nos-org__badge .cm-nos-org__glyph { width: 52px; height: auto; }
  .cm-nos-org__arrow { left: 21px; top: 83px; width: 38px; height: 44px; }
  .cm-nos-org__label { font-size: clamp(18px, 4.4vw, 28px); line-height: 1.2; white-space: normal; }
  .cm-nos-org__label--two { line-height: 1.2; }
  .cm-nos-org__label br { display: none; }
}

@media (max-width: 576px) {
  .cm-nos .cm-heading { --cm-word-scale: .42; }
  .cm-nos-que__art { height: 720px; }
  .cm-nos-que__blob { width: 78%; height: 560px; top: 100px; }
  .cm-nos-que__photo { width: 100%; height: 540px; top: 120px; }
  .cm-nos-que__label { left: 22%; top: 560px; width: 78%; height: 124px; }
  .cm-nos-que__label-shape { object-fit: fill; }
  .cm-nos-que__label-text { left: 12%; top: 14px; font-size: 28px; line-height: 31px; }
  .cm-nos-actors__row { flex-direction: column; align-items: flex-start; width: fit-content; max-width: calc(100% - 40px); margin-left: auto; margin-right: auto; }
  .cm-nos-actors__row .cm-nos-actors__item { align-items: flex-start; text-align: left; font-size: 17px; line-height: 24px; }
  .cm-nos-actors__item img { margin-top: 5px; }
  .cm-nos-body,
  .cm-nos-mesas__text { font-size: 17px; line-height: 1.5; }
  .cm-nos-prop__text .cm-nos-body,
  .cm-nos-que__text .cm-nos-body,
  .cm-nos-mesas__intro { font-size: 17px; line-height: 1.5; }
  .cm-nos-tl { --cm-tl-pitch: min(300px, 80vw); }
  .cm-nos-tl__year { font-size: 48px; }
  .cm-nos-logos { --cm-logos-view: 2; }
  .cm-nos-logos { padding: 0 30px; margin-left: 10px; margin-right: 10px; }
  .cm-nos-logos__nav { width: 30px; }
  .cm-nos-mesas__title { font-size: 22px; }
  .cm-nos-ubi__legend { flex-direction: column; align-items: flex-start; }
  .cm-nos-ubi__legend li { white-space: normal; }
}

/* ------------------------------------------------------------------ */
/* 13. PROYECTOS (Figma frame 8861:22, design width 1920)              */
/*     Blocks are rendered by js/proyectos-page.js from Strapi.         */
/* ------------------------------------------------------------------ */
.cm-subhero--proyectos .cm-subhero__outline {
  -webkit-text-stroke-color: var(--cm-blue);
}

.cm-proy-intro,
.cm-proy-item {
  --cm-proy-ls-bold: -0.015em;
  position: relative;
  overflow-x: clip;
  font-family: var(--cm-font-ui);
  color: var(--cm-slate);
}

.cm-proy-wrap {
  width: min(1229px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

/* Intro / países (y 642–1341) */
.cm-proy-intro {
  min-height: 699px;
  padding: 176px 0 80px;
  background: var(--cm-white);
}

.cm-proy-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 533px) minmax(0, 655px);
  column-gap: 73px;
  align-items: start;
}

.cm-proy-intro__body {
  margin: 0;
  font-weight: 400;
  font-size: 20px;
  line-height: 20px;
  letter-spacing: -0.085px;
}

.cm-proy-legend {
  display: grid;
  grid-template-columns: 250px max-content;
  row-gap: 37px;
  margin: 52px 0 0;
  padding: 0;
  list-style: none;
}

.cm-proy-legend li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  font-size: 15px;
  line-height: 20px;
}

.cm-proy-legend img {
  flex: 0 0 15px;
  margin-top: 2px;
}

.cm-proy-legend span {
  white-space: nowrap;
}

.cm-proy-map {
  position: relative;
  margin-top: 66px;
  width: 100%;
  max-width: 655px;
  aspect-ratio: 655 / 230;
}

.cm-proy-map__img {
  display: block;
  width: 100%;
  height: 100%;
}

.cm-proy-map__pin {
  position: absolute;
  width: 2.9%;
  height: auto;
  pointer-events: none;
}

/* Project blocks (699px each, alternating #f4f6f5 / white) */
.cm-proy-item {
  display: flex;
  align-items: center;
  min-height: 699px;
  padding: 40px 0;
  background: var(--cm-white);
}

.cm-proy-item--tinted {
  background: var(--cm-light);
}

.cm-proy-item__grid {
  display: grid;
  grid-template-columns: minmax(0, 630px) minmax(0, 573px);
  column-gap: 26px;
  align-items: center;
  width: min(1229px, calc(100% - 40px));
}

.cm-proy-item__text {
  min-width: 0;
}

.cm-proy-item__title {
  margin: 0;
  font-family: var(--cm-font-ui);
  font-weight: 700;
  font-size: 30px;
  line-height: 40px;
  letter-spacing: var(--cm-proy-ls-bold);
  text-transform: none;
  color: var(--cm-slate);
}

.cm-proy-item__eyebrow,
.cm-proy-item__features-title {
  margin: 0;
  font-family: var(--cm-font-ui);
  font-weight: 700;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: var(--cm-proy-ls-bold);
  text-transform: uppercase;
}

.cm-proy-item__eyebrow {
  color: var(--cm-blue);
}

.cm-proy-item__features-title {
  color: var(--cm-slate);
}

.cm-proy-item__title + .cm-proy-item__eyebrow {
  margin-top: 20px;
}

.cm-proy-item__objective {
  max-width: 600px;
  margin: 9px 0 0;
  font-family: var(--cm-font-body);
  font-size: 20px;
  line-height: 20.5px;
  color: var(--cm-slate);
}

.cm-proy-item__features-title {
  margin-top: 18px;
}

.cm-proy-item__title + .cm-proy-item__features-title {
  margin-top: 20px;
}

.cm-proy-item__facts {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.cm-proy-item__fact {
  position: relative;
  margin: 0 0 19px;
  padding-left: 23px;
  font-size: 15px;
  line-height: 20px;
  color: var(--cm-slate);
}

.cm-proy-item__fact::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 15px;
  height: 15px;
  background: url("../images/figma/icons/icon-bullet-check-blue-proyectos.svg") center / contain no-repeat;
}

.cm-proy-item__label {
  font-weight: 700;
}

.cm-proy-item__parties {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 24px;
  margin-top: 4px;
}

.cm-proy-item__parties:empty {
  display: none;
}

.cm-proy-item__party p {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 20px;
  color: var(--cm-slate);
}

.cm-proy-item__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.cm-proy-item__logos li {
  margin: 0;
}

.cm-proy-item__logos img {
  display: block;
  max-width: 180px;
  height: auto;
}

/* Photo card: frame art 573x451 + inset photo 519x397 + "¿TE INTERESA?" chamfered card. */
.cm-proy-item__media {
  position: relative;
  margin-top: 8px;
  min-width: 0;
}

.cm-proy-item__card {
  position: relative;
  width: 100%;
  max-width: 573px;
  aspect-ratio: 573 / 451;
}

.cm-proy-item__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cm-proy-item__photo {
  position: absolute;
  left: 4.712%;
  top: 2.661%;
  width: 90.576%;
  height: 88.027%;
  object-fit: cover;
}

.cm-proy-item__interest {
  position: absolute;
  left: 58.639%;
  top: 47%;
  width: 269px;
  height: 218px;
  padding: 27px 37px 0 37px;
  background: url("../images/figma/icons/te-interesa-shape.svg") 0 0 / 100% 100% no-repeat;
  color: var(--cm-white);
}

.cm-proy-item__interest-title {
  margin: 0 0 16px;
  font-family: var(--cm-font-ui);
  font-weight: 700;
  font-size: 34.332px;
  line-height: 38.5px;
  letter-spacing: var(--cm-proy-ls-bold);
  color: var(--cm-white);
}

.cm-proy-item__interest .cm-btn {
  width: 181px;
  padding: 0 20px 0 19px;
  justify-content: space-between;
}

.cm-proy-empty {
  padding: 120px 20px;
  text-align: center;
  font-family: var(--cm-font-ui);
  font-size: 18px;
  color: var(--cm-slate);
}

.cm-proy-empty p {
  margin: 0;
}

@media (min-width: 1500px) {
  .cm-proy-wrap,
  .cm-proy-item__grid { margin-left: calc(50% - 602px); margin-right: 0; }
  .cm-proy-intro .cm-proy-wrap { width: 1261px; }

  /* even blocks are mirrored: photo card left (x 328), text right (x 1043) */
  .cm-proy-item--alt .cm-proy-item__grid {
    grid-template-columns: minmax(0, 573px) minmax(0, 550px);
    column-gap: 142px;
    width: 1265px;
    margin-left: calc(50% - 632px);
  }
  .cm-proy-item--alt .cm-proy-item__media { order: -1; }
}

@media (max-width: 1499px) {
  .cm-proy-item__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 573px); column-gap: 48px; }
  .cm-proy-item--alt .cm-proy-item__grid { grid-template-columns: minmax(0, 573px) minmax(0, 1fr); }
  .cm-proy-item--alt .cm-proy-item__media { order: -1; }
  .cm-proy-intro__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 655px); column-gap: 48px; }
}

@media (max-width: 1099px) {
  .cm-proy-intro { min-height: 0; padding: 72px 0; }
  .cm-proy-intro__grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .cm-proy-map { margin-top: 24px; margin-left: auto; margin-right: auto; }
  .cm-proy-item { min-height: 0; padding: 64px 0; }
  .cm-proy-item__grid,
  .cm-proy-item--alt .cm-proy-item__grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .cm-proy-item--alt .cm-proy-item__media { order: 0; }
  .cm-proy-item__media { margin: 0 auto; width: 100%; max-width: 573px; }
  .cm-proy-item__title { font-size: clamp(22px, 4.6vw, 30px); line-height: 1.3; }
}

@media (max-width: 700px) {
  .cm-proy-intro__body { line-height: 1.5; }
  .cm-proy-legend { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .cm-proy-legend span { white-space: normal; }
  .cm-proy-legend br { display: none; }
  .cm-proy-item__objective { font-size: 17px; line-height: 1.5; }
  .cm-proy-item__interest { position: relative; left: auto; top: auto; margin: -28px 0 0 auto; }
}

/* ------------------------------------------------------------------ */
/* 14. ALIANZAS (original template sections, rendered by               */
/*     js/alianzas-page.js: only the extras the template lacks)        */
/* ------------------------------------------------------------------ */
.position .cm-ali-sub {
  margin: 18px 0 8px;
  font-size: 15px;
  line-height: 20px;
  text-transform: none;
}

.position .cm-ali-sub:first-child {
  margin-top: 0;
}

.position .cm-ali-note {
  margin: 4px 0 8px;
  font-size: 14px;
  line-height: 20px;
  font-style: italic;
}

.position .cm-ali-logo-text {
  margin: 0;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------ */
/* 15. Original-template pages (Noticias, Detalle, Contacto)           */
/*     These pages use styles.min.css; only small fixes live here.      */
/* ------------------------------------------------------------------ */

/* Contact people: the template stacks its columns without spacing on phones. */
@media (max-width: 767px) {
  .contacts .col-md-6 + .col-md-6 { margin-top: 28px; }
}

/* Contact form: stack the consent text and the submit button so the button is not clipped on narrow phones. */
@media (max-width: 576px) {
  #terms-block, #submit-button { flex: 0 0 100%; max-width: 100%; }
  #submit-button { margin-top: 16px; text-align: left; }
  #submit-button .button { max-width: 100%; }
}

/* ------------------------------------------------------------------ */
/* 16. Figma headings: tracking correction                             */
/*     styles.min.css applies -0.03em to h1–h6; Figma uses 0% and       */
/*     Chrome's Montserrat Bold renders ~1.5% wider (same as Nosotros). */
/* ------------------------------------------------------------------ */
.cm-heading__title,
.cm-heading__word,
.cm-heading__eyebrow {
  letter-spacing: -0.015em;
}
