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

/* Portada editorial de entrada */
html.entry-welcome-active,
html.entry-welcome-active body {
  overflow: hidden;
}

.entry-welcome {
  background:
    radial-gradient(circle at 78% 17%, rgba(42, 184, 212, .14), transparent 28%),
    radial-gradient(circle at 44% 38%, rgba(255, 255, 255, .08), transparent 34%),
    linear-gradient(145deg, #06182b 0%, #0a3150 100%);
  color: var(--paper-bright);
  box-sizing: border-box;
  display: none;
  height: 100vh;
  height: 100dvh;
  inset: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(24px, 4vw, 56px);
  place-items: center;
  position: fixed;
  z-index: 1000;
}

html.entry-welcome-active .entry-welcome {
  display: grid;
}

html.entry-welcome-closing .entry-welcome {
  opacity: 0;
  transition: opacity .36s ease;
}

.entry-welcome-inner {
  margin: auto 0;
  max-width: 1120px;
  position: relative;
  width: 100%;
  z-index: 2;
}

.entry-welcome-brand {
  align-items: center;
  display: inline-flex;
  gap: 14px;
  margin-bottom: clamp(24px, 3.5vw, 48px);
}

.entry-welcome-brand > img {
  border-radius: 4px;
  height: 58px;
  object-fit: cover;
  width: 58px;
}

.entry-welcome-brand-copy {
  display: grid;
  gap: 5px;
}

.entry-welcome-brand-copy strong {
  color: var(--paper-bright);
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 720;
  letter-spacing: .18em;
  line-height: 1;
}

.entry-welcome-brand-copy > span {
  color: rgba(248, 251, 253, .68);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.entry-welcome-claim {
  margin: 0;
  max-width: 1080px;
}

.entry-welcome-claim p {
  font-family: var(--display);
  font-size: clamp(38px, 5.2vw, 74px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.entry-welcome-claim span {
  color: rgba(248, 251, 253, .72);
}

.entry-welcome-button {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(248, 251, 253, .72);
  color: var(--paper-bright);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 650;
  justify-content: center;
  letter-spacing: .16em;
  margin-top: clamp(28px, 4vw, 48px);
  min-height: 56px;
  padding: 0 30px;
  text-transform: uppercase;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}

@media (max-height: 900px) and (min-width: 761px) {
  .entry-welcome {
    padding-block: 24px;
  }

  .entry-welcome-brand {
    margin-bottom: 20px;
  }

  .entry-welcome-brand > img {
    height: 52px;
    width: 52px;
  }

  .entry-welcome-claim p {
    font-size: clamp(36px, 4.6vw, 62px);
  }

  .entry-welcome-button {
    margin-top: 24px;
    min-height: 50px;
  }
}

.entry-welcome-button:hover,
.entry-welcome-button:focus-visible {
  background: var(--paper-bright);
  border-color: var(--paper-bright);
  color: var(--ink);
  outline: none;
  transform: translateY(-2px);
}

.entry-welcome-geometry {
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.entry-welcome-geometry span {
  border: 1px solid rgba(248, 251, 253, .14);
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  display: block;
  position: absolute;
}

.entry-welcome-geometry span:nth-child(1) {
  height: min(48vw, 660px);
  right: -8vw;
  top: -18vw;
  transform: rotate(-22deg);
  width: min(48vw, 660px);
}

.entry-welcome-geometry span:nth-child(2) {
  bottom: -22vw;
  height: min(42vw, 570px);
  left: 8vw;
  transform: rotate(31deg);
  width: min(42vw, 570px);
}

.entry-welcome-geometry span:nth-child(3) {
  background: #38bed7;
  border: 0;
  border-radius: 50%;
  height: 7px;
  right: 18vw;
  top: 34vh;
  width: 7px;
}

@media (max-width: 760px) {
  .entry-welcome {
    align-items: center;
    padding: 28px 20px;
  }

  .entry-welcome-brand {
    margin-bottom: 26px;
  }

  .entry-welcome-claim p {
    font-size: clamp(34px, 10.4vw, 52px);
    line-height: 1.12;
  }

  .entry-welcome-button {
    margin-top: 30px;
    width: 100%;
  }
}

.hero h1[tabindex="-1"]:focus {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  html.entry-welcome-closing .entry-welcome,
  .entry-welcome-button {
    transition: none;
  }
}

/* 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;
}

/* Menú dinámico de documentos */
.document-menu-panel {
  background: var(--paper-bright);
  border: 1px solid var(--ink);
  box-shadow: 0 22px 60px #071a2f29;
  color: var(--ink);
  max-height: min(520px, calc(100vh - 40px));
  overscroll-behavior: contain;
  overflow-y: auto;
  position: fixed;
  width: min(420px, calc(100vw - 40px));
  z-index: 100;
}

.document-menu-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 58px;
  padding: 8px 10px 8px 18px;
}

.document-menu-title {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.document-menu-close {
  align-items: center;
  color: var(--stone);
  cursor: pointer;
  display: inline-flex;
  font-size: 26px;
  height: 42px;
  justify-content: center;
  line-height: 1;
  transition: color .18s, background .18s;
  width: 42px;
}

.document-menu-close:hover,
.document-menu-close:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.document-menu-content {
  padding: 4px 18px 12px;
}

.document-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.document-menu-list li + li {
  border-top: 1px solid var(--line);
}

.document-menu-list a {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 16px 0;
  transition: color .18s;
}

.document-menu-list a:hover,
.document-menu-list a:focus-visible {
  color: var(--rust-dark);
}

.document-file-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.document-file-meta {
  color: var(--rust-dark);
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.document-menu-status {
  color: var(--stone);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  padding: 18px 0 10px;
}

.document-menu-error {
  color: var(--ink);
}

.document-menu-fallback {
  color: var(--rust-dark);
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 4px 0 14px;
  text-transform: uppercase;
}

.site-header-v15 [data-global-link="documents"][aria-expanded="true"]::after {
  left: 0;
  right: 0;
}

.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;
  }
}
