@import url("/assets/site-v12.css");

/* JXG v15 · navegación global */
.site-header-v15 {
  --header-nav-gap: clamp(30px, 2.35vw, 42px);
  grid-template-columns: max-content minmax(0, 1fr);
  gap: clamp(40px, 4vw, 72px);
  height: 144px;
}

.desktop-nav-stack {
  display: grid;
  gap: 14px;
  min-width: 0;
  width: 100%;
}

.desktop-nav-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.desktop-nav-primary {
  gap: var(--header-nav-gap);
  justify-content: flex-start;
}

.desktop-nav-secondary {
  gap: 0;
  justify-content: flex-start;
}

.secondary-links {
  flex: 0 0 auto;
  gap: var(--header-nav-gap);
  justify-content: flex-start;
}

.site-header-v15 .desktop-nav a,
.site-header-v15 .header-cta,
.site-header-v15 .language-switcher {
  font-size: 12px;
}

.site-header-v15 .desktop-nav a {
  padding: 6px 0;
  white-space: nowrap;
}

.site-header-v15 .desktop-nav a::after {
  bottom: 0;
}

.site-header-v15 .desktop-nav a.active::after,
.site-header-v15 .desktop-nav a[aria-current="page"]::after {
  left: 0;
  right: 0;
}

.site-header-v15 .header-cta {
  margin-left: auto;
  width: auto;
  min-width: 124px;
  height: 40px;
  padding: 0 18px;
  white-space: nowrap;
}

.site-header-v15 .desktop-nav-secondary > .language-switcher {
  margin-left: 22px;
}

.mobile-menu .mobile-talk {
  border-top: 1px solid var(--line);
  color: var(--rust-dark);
  font-weight: 800;
}

.home-v15 .hero {
  padding-top: 188px;
}

.legacy-anchor {
  display: block;
  height: 0;
  position: relative;
  top: -130px;
  visibility: hidden;
}

/* Página principal · sección puente */
.how-bridge {
  background: var(--paper);
  padding: 148px max(36px, 50vw - 680px);
  position: relative;
}

.how-bridge-heading > div > p {
  color: var(--stone);
  max-width: 850px;
  margin-top: 28px;
  font-size: 18px;
  line-height: 1.72;
}

.how-bridge-heading .button {
  margin-top: 34px;
}

.systemic-map-bridge {
  margin-top: 88px;
}

.systemic-map-bridge .concept-figure-copy .text-link {
  margin-top: 30px;
}

/* Página Cómo trabajamos */
.how-page-v15 {
  background: var(--paper);
}

.how-page-v15 main {
  overflow: clip;
}

.how-hero {
  background:
    radial-gradient(circle at 74% 17%, #2ab8d922, transparent 29%),
    radial-gradient(circle at 45% 42%, #ffffffd1, transparent 38%),
    var(--paper);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, .75fr);
  gap: clamp(54px, 8vw, 120px);
  min-height: 880px;
  padding: 204px max(36px, 50vw - 680px) 100px;
  position: relative;
}

.how-hero-heading,
.how-hero-copy {
  position: relative;
  z-index: 2;
}

.how-hero-heading {
  align-self: center;
}

.how-hero h1 {
  font-family: var(--sans);
  font-size: clamp(70px, 7vw, 104px);
  font-weight: 520;
  letter-spacing: -.06em;
  line-height: .92;
  margin-top: 24px;
}

.how-hero-lead {
  max-width: 760px;
  margin-top: 34px;
  font-size: clamp(23px, 2vw, 31px);
  line-height: 1.42;
}

.how-hero-copy {
  align-self: end;
  padding-bottom: 12px;
}

.how-hero-copy > p {
  color: var(--stone);
  font-size: 16px;
  line-height: 1.72;
}

.how-hero-copy > p + p {
  margin-top: 20px;
}

.how-subnav {
  background: var(--paper-bright);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  gap: clamp(32px, 7vw, 100px);
  min-height: 86px;
  padding: 18px max(36px, 50vw - 680px);
}

.how-subnav a {
  align-items: center;
  color: var(--rust-dark);
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .16em;
  position: relative;
  text-transform: uppercase;
}

.how-subnav a::after {
  background: var(--rust);
  bottom: 11px;
  content: "";
  height: 1px;
  left: 50%;
  position: absolute;
  right: 50%;
  transition: left .18s, right .18s;
}

.how-subnav a:hover::after,
.how-subnav a:focus-visible::after {
  left: 0;
  right: 0;
}

.how-signals,
.how-method,
.entry-section,
.offers-section {
  padding-left: max(36px, 50vw - 680px);
  padding-right: max(36px, 50vw - 680px);
}

.how-signals,
.how-method,
.entry-section,
.offers-section,
.systemic-map-full,
.offer-panel {
  scroll-margin-top: 150px;
}

.how-signals,
.how-method,
.entry-section,
.offers-section {
  padding-top: 148px;
  padding-bottom: 148px;
}

.how-signals {
  background: linear-gradient(145deg, #06182b 0%, #0a3150 100%);
  color: var(--paper-bright);
}

.how-signals .section-heading > div > p,
.how-method .section-heading > div > p,
.entry-section .section-heading > div > p,
.offers-section .section-heading > div > p {
  color: inherit;
  margin-top: 26px;
  max-width: 820px;
  font-size: 17px;
  line-height: 1.7;
  opacity: .76;
}

.signal-card-grid {
  border-left: 1px solid #f3f9fc33;
  border-top: 1px solid #f3f9fc4d;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 86px;
}

.signal-card {
  border-bottom: 1px solid #f3f9fc38;
  border-right: 1px solid #f3f9fc33;
  min-height: 215px;
  padding: 32px 28px;
}

.signal-card h3 {
  color: #38bed7;
  font-size: 20px;
  font-weight: 620;
  line-height: 1.3;
}

.signal-card p {
  color: #f3f9fcad;
  font-size: 14px;
  line-height: 1.68;
  margin-top: 18px;
}

.section-closing-note {
  border-top: 1px solid currentColor;
  margin: 48px 0 0 auto;
  max-width: 850px;
  opacity: .72;
  padding-top: 26px;
  font-size: 16px;
  line-height: 1.7;
}

.how-method {
  background: var(--paper);
}

.systemic-map-full {
  background: var(--paper-bright);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(360px, .72fr) minmax(600px, 1.28fr);
  margin-top: 88px;
  overflow: hidden;
}

.systemic-map-copy {
  align-self: center;
  padding: 52px 46px;
}

.systemic-map-copy h3 {
  font-size: clamp(34px, 3.4vw, 52px);
  font-weight: 520;
  letter-spacing: -.04em;
  line-height: 1.08;
  margin-top: 24px;
}

.systemic-map-copy > p:not(.eyebrow) {
  color: var(--stone);
  font-size: 15px;
  line-height: 1.7;
  margin-top: 22px;
}

.systemic-map-copy .map-distinction {
  border-top: 1px solid var(--line);
  color: var(--rust-dark);
  padding-top: 22px;
}

.systemic-map-full > a {
  align-self: center;
  background: #dfe8f1;
  display: block;
}

.systemic-map-full img {
  display: block;
  height: auto;
  width: 100%;
}

.systemic-map-full .figure-caption {
  grid-column: 2;
}

.entry-section {
  background: var(--paper-bright);
}

.entry-grid {
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 82px;
}

.entry-card {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 310px;
  padding: 34px 30px;
  transition: background .18s, color .18s;
}

.entry-card:hover,
.entry-card:focus-visible {
  background: var(--ink);
  color: var(--paper-bright);
}

.entry-card h3 {
  font-size: 27px;
  font-weight: 560;
  line-height: 1.22;
}

.entry-card p {
  color: var(--stone);
  font-size: 15px;
  line-height: 1.68;
  margin-top: 22px;
}

.entry-card:hover p,
.entry-card:focus-visible p {
  color: #f3f9fcad;
}

.entry-card > span {
  color: var(--rust);
  font-size: 30px;
  margin-top: 28px;
}

.solutions-section-v15 {
  background: var(--paper);
}

.modalities-section-v15 {
  background: var(--paper-bright);
  padding-bottom: 0;
}

.accordion-group {
  border-top: 1px solid var(--ink);
  margin-top: 86px;
}

.offer-panel {
  border-bottom: 1px solid var(--line);
}

.offer-panel h3 {
  margin: 0;
}

.accordion-trigger {
  align-items: center;
  cursor: pointer;
  display: grid;
  grid-template-columns: 74px 1fr 34px;
  gap: 24px;
  padding: 34px 0;
  text-align: left;
  width: 100%;
}

.offer-number {
  color: var(--rust);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .14em;
}

.offer-heading {
  display: grid;
  gap: 9px;
}

.offer-heading strong {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 540;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.offer-heading > span {
  color: var(--stone);
  font-size: 15px;
  font-weight: 450;
  line-height: 1.55;
}

.accordion-icon {
  border: 1px solid var(--line);
  border-radius: 50%;
  height: 32px;
  position: relative;
  width: 32px;
}

.accordion-icon::before,
.accordion-icon::after {
  background: var(--rust-dark);
  content: "";
  height: 1px;
  left: 8px;
  position: absolute;
  top: 15px;
  transition: transform .18s;
  width: 14px;
}

.accordion-icon::after {
  transform: rotate(90deg);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon::after {
  transform: rotate(0deg);
}

.accordion-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(40px, 7vw, 100px);
  padding: 0 0 50px 98px;
}

.accordion-panel[hidden] {
  display: none;
}

.offer-field {
  border-top: 1px solid var(--line);
  padding: 26px 0 30px;
}

.offer-field h4,
.offer-next > span {
  color: var(--rust-dark);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.offer-field p {
  color: var(--stone);
  font-size: 15px;
  line-height: 1.72;
  margin-top: 13px;
}

.offer-duration p {
  color: var(--ink);
  font-weight: 560;
}

.offer-scope {
  background: #dfeaf0;
  grid-column: 1 / -1;
  padding: 24px 26px 28px;
}

.offer-next {
  align-items: center;
  border-top: 1px solid var(--ink);
  display: flex;
  gap: 34px;
  grid-column: 1 / -1;
  justify-content: space-between;
  padding-top: 28px;
}

.modalities-section-v15 .closing-cta {
  margin-top: 128px;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #28b8d4;
  outline-offset: 4px;
}

@media (width <= 1180px) {
  .site-header-v15 {
    grid-template-columns: 1fr auto;
    height: 112px;
  }

  .site-header-v15 .desktop-nav-stack {
    display: none;
  }

  .site-header-v15 .mobile-menu {
    display: block;
  }

  .home-v15 .hero {
    padding-top: 165px;
  }

  .how-hero {
    grid-template-columns: 1fr .78fr;
    min-height: 820px;
    padding-top: 176px;
  }

  .signal-card-grid,
  .entry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .systemic-map-full {
    grid-template-columns: minmax(310px, .65fr) minmax(480px, 1.35fr);
  }
}

@media (width <= 760px) {
  .site-header-v15 {
    height: 84px;
  }

  .home-v15 .hero {
    padding-top: 132px;
  }

  .how-bridge,
  .how-signals,
  .how-method,
  .entry-section,
  .offers-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .how-bridge,
  .how-signals,
  .how-method,
  .entry-section,
  .offers-section {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .how-hero {
    display: block;
    min-height: auto;
    padding: 136px 20px 82px;
  }

  .how-hero h1 {
    font-size: clamp(54px, 17vw, 76px);
    margin-top: 20px;
  }

  .how-hero-lead {
    font-size: 22px;
    margin-top: 28px;
  }

  .how-hero-copy {
    margin-top: 46px;
  }

  .how-hero-copy > p {
    font-size: 15px;
  }

  .how-subnav {
    flex-wrap: wrap;
    gap: 8px 22px;
    justify-content: flex-start;
    min-height: auto;
    padding: 24px 20px;
  }

  .how-subnav a {
    min-height: 36px;
  }

  .how-subnav a::after {
    bottom: 3px;
  }

  .signal-card-grid,
  .entry-grid,
  .systemic-map-full,
  .accordion-panel {
    grid-template-columns: 1fr;
  }

  .signal-card {
    min-height: auto;
    padding: 28px 22px;
  }

  .systemic-map-full {
    margin-top: 60px;
  }

  .systemic-map-copy {
    padding: 36px 24px;
  }

  .systemic-map-full .figure-caption {
    grid-column: 1;
    text-align: left;
  }

  .entry-card {
    min-height: auto;
  }

  .accordion-group {
    margin-top: 62px;
  }

  .accordion-trigger {
    grid-template-columns: 42px 1fr 32px;
    gap: 12px;
    padding: 28px 0;
  }

  .offer-heading strong {
    font-size: 26px;
  }

  .offer-heading > span {
    font-size: 14px;
  }

  .accordion-panel {
    padding: 0 0 38px 54px;
  }

  .offer-scope,
  .offer-next {
    grid-column: 1;
  }

  .offer-next {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .offer-next .text-link {
    line-height: 1.5;
  }

  .modalities-section-v15 {
    padding-bottom: 0;
  }

  .modalities-section-v15 .closing-cta {
    margin-top: 92px;
  }
}

@media (width <= 360px) {
  .accordion-trigger {
    grid-template-columns: 34px 1fr 28px;
    gap: 9px;
  }

  .accordion-icon {
    height: 28px;
    width: 28px;
  }

  .accordion-icon::before,
  .accordion-icon::after {
    left: 7px;
    top: 13px;
    width: 12px;
  }

  .offer-heading strong {
    font-size: 23px;
  }

  .accordion-panel {
    padding-left: 43px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
