/* Acabado sobre los recursos y la composición funcional de v6.2. */
html[lang] body .hero .hero-visual { display: block; background: none !important; }
.hero-art { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
html[lang] body main [data-idem-art="pending"][class] { background-image: none !important; }
img[data-idem-src] { visibility: hidden; }

/* Un eje compartido deriva del viewBox 912 × 176 de los SVG aprobados. */
html[lang] body .system .mountain-terrain {
  height: 8.75cqw !important;
  background-position: center top !important;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 91%, transparent),
              linear-gradient(180deg, transparent, #000 14%);
}
html[lang] body .system .journey-cards {
  padding-bottom: max(8.85cqw, 50px);
}
html[lang] body .system .journey-cards button:nth-child(n) {
  left: calc(var(--center-correction) * 1cqw);
}
.journey-cards button:nth-child(1) { --center-correction: .09456; }
.journey-cards button:nth-child(2) { --center-correction: .19772; }
.journey-cards button:nth-child(3) { --center-correction: .62982; }
.journey-cards button:nth-child(4) { --center-correction: .62333; }
.journey-cards button:nth-child(5) { --center-correction: -.26035; }
.journey-cards :is(h3, p) {
  text-shadow: 0 1px 1px #F5F2EB, 0 -1px 1px #F5F2EB, 1px 0 1px #F5F2EB, -1px 0 1px #F5F2EB;
}

/* Centros de los postes medidos en la panorámica nativa de 2172 px. */
.process-track article:nth-of-type(1) { --station: 7.78%; --cell: 0%; }
.process-track article:nth-of-type(2) { --station: 22.66%; --cell: 100%; }
.process-track article:nth-of-type(3) { --station: 40.47%; --cell: 200%; }
.process-track article:nth-of-type(4) { --station: 56.53%; --cell: 300%; }
.process-track article:nth-of-type(5) { --station: 72.65%; --cell: 400%; }
.process-track article:nth-of-type(6) { --station: 89.45%; --cell: 500%; }
html[lang] body .process .process-terrain {
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent),
              linear-gradient(0deg, transparent, #000 17%, #000 91%, transparent);
}
@media (min-width: 621px) {
  html[lang] body .process .process-track b {
    left: calc(var(--station) * 6 - var(--cell)) !important;
    transform: translateX(-50%);
  }
  html[lang] body .process .process-line { inset-inline: 7.78% 10.55%; }
  html[lang] body .process .process-track article { padding-top: 32px !important; }
  html[lang] body .process .process-terrain { margin-top: -6px; }
}

/* La ventana de la órbita se posiciona de forma independiente del retrato. */
.portrait-wrap { --portrait-size: 239px; --portrait-frame: clamp(166px, 16vw, 226px); }
html[lang] body .founder-card .portrait-wrap { height: var(--portrait-frame) !important; }
html[lang] body .founder-card .portrait-orbit {
  inset: max(10px, calc(var(--portrait-frame) - var(--portrait-size) + 29px)) -4% 0 !important;
  background-position: center top !important;
}
html[lang] body .founder-card .portrait-wrap img {
  width: min(90%, var(--portrait-size)) !important;
  inset: auto -10% 0 0 !important;
}
@media (min-width: 621px) and (max-width: 850px) {
  .portrait-wrap { --portrait-frame: min(29vw, 210px); }
}

/* Se reserva una franja superior para el botón de cierre. */
html[lang] body .goal-recommendation:not([hidden]) {
  padding-top: 46px !important;
}
html[lang] body .goal-recommendation #recClose {
  inset: 3px 4px auto auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
}
html[lang] body .goal-recommendation .rec-identification { padding-inline-end: 0; }
html[lang] body .goal-recommendation #recVisualCaption {
  background: #143d34;
  color: #fff2dc;
  font-size: 10px;
}

html[lang="es"] body .case-subtitle { display: none; }
.case-card .case-subtitle {
  display: block;
  line-height: 1.24;
  color: #ffe5c6;
  font-weight: 600;
  font-size: clamp(12px, 1.04vw, 15px);
  margin-bottom: 5px;
}
html[lang] body .case-card > div { max-width: 62%; }
html[lang] body .case-card::before {
  background: linear-gradient(90deg, #041a17ee, #041a17d6 59%, #041a176e 72%, transparent 83%) !important;
}
html[lang] body .case-card.sand::before {
  background: linear-gradient(90deg, #291707eb, #291707d6 48%, #2917076e 65%, transparent 80%) !important;
}

/* El recorte solo sustrae el claim trazado del SVG inverso intacto. */
html[lang] body .footer .idem-brand-image {
  clip-path: polygon(0 0, 100% 0, 100% 72%, 39% 72%, 39% 100%, 0 100%);
}
html[lang] body .footer .footer-brand .brand-tag {
  display: block !important;
  position: static;
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
  border-left: 1px solid #87a79d;
  padding-left: 10px;
  color: #F5F2EB;
  font-size: 12px;
  white-space: normal;
}

:is(button, a, summary, input, textarea):focus-visible {
  outline: 2px solid #137A70;
  outline-offset: 3px;
}
html[lang] body :is(.final-cta, .footer) :is(button, a):focus-visible {
  outline-color: #F5F2EB;
}
@media (max-width: 620px) {
  html[lang] body .hero .hero-visual { height: clamp(120px, calc(100vw / 3), 163px) !important; }
  html[lang] body .hero .hero-lead { font-size: 14px !important; line-height: 1.38; }
  html[lang] body :is(.hero, .final-cta) .cta-row > .btn { min-height: 44px !important; }
  .topbar .lang-switch button { min-width: 44px; min-height: 44px; }
  html[lang] body .goal-recommendation:not([hidden]) { padding-top: 44px !important; }
  html[lang] body .goal-recommendation #recClose { width: 44px; height: 44px; inset: 0 3px auto auto; }
  html[lang] body .founder-card .portrait-wrap { --portrait-frame: 39vw; }
  html[lang] body .founder-card .portrait-orbit { inset: 18px -2% 0 !important; }
  html[lang] body .founder-card .portrait-wrap img { width: 100% !important; inset: auto 0 0 !important; }
  html[lang] body :is(.goal, .experience-main) .section-intro p,
  html[lang] body .founder-card .founder-copy p:not(.eyebrow),
  html[lang] body .founder-faq .faq details p { font-size: 14px; line-height: 1.4; }
  html[lang] body .service-tile small { font-size: 12px; line-height: 1.28; }
  html[lang] body .process-track article p { line-height: 1.38 !important; }
  html[lang] body .founder-faq .faq summary { min-height: 44px; display: flex; align-items: center; padding-inline-end: 28px; }
  html[lang] body .footer .footer-links :is(a, button) { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
