/* ==========================================================================
   Expande — Acerca de Expande (Figma 218:63125 · 1440 × 9873)
   Las piezas decorativas usan coordenadas de diseño (--x, --y, --w en px de
   Figma, relativas a su sección) y escalan con --k = min(1, ancho / 1440).
   ========================================================================== */
:root { --k: 1; }

.page-sobre { background: #fcfcfc; }

/* Header: enlace de la página actual (pastilla con borde, Figma 218:64307) */
.nav-link.is-current { padding: 10px 24px; margin: -10px -24px; border: 1px solid #037afc; border-radius: 200px; }
.site-header[data-theme="dark"] .nav-link.is-current { color: #e6fbff; }
.nav-links:has(.is-current) { gap: 58px; }

/* ---------- Piezas en coordenadas de diseño ---------- */
.stage-sec { position: relative; height: calc(var(--h) * var(--k) * 1px); }
.sx-stage { position: absolute; inset: 0; pointer-events: none; }
.abs {
  position: absolute; max-width: none; height: auto;
  left: calc(50% + (var(--x) - 720) * var(--k) * 1px);
  top: calc(var(--y) * var(--k) * 1px);
  width: calc(var(--w) * var(--k) * 1px);
}
.dot { aspect-ratio: 1; border-radius: 50%; background: #3597fd; }
.s-glow { aspect-ratio: 1; border-radius: 50%; background: #037afc; filter: blur(calc(170px * var(--k))); opacity: .9; }

/* ==========================================================================
   Lectura → ruta propia (fondo que pasa de claro a azul)
   ========================================================================== */
.btn-white { background: #fafdff; color: #212121; }
.btn-white:hover { box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .35); }

.s-route { position: relative; overflow: hidden; color: #e8f3ff; background: linear-gradient(180deg, #0768cd 0%, #0768cd 18%, #054b95 100%); padding-bottom: 30px; padding-top: 40px; }
.route-origin { aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, #fff 0%, rgba(255, 255, 255, .65) 30%, rgba(33, 208, 252, 0) 100%); filter: blur(2px); }
.route-lines { overflow: visible; }
.route-lines path { stroke-width: 2.5; stroke-linecap: round; }
.route-glow { opacity: .35; filter: blur(5px); }
.route-glow path { stroke-width: 12; }
.route-dot { aspect-ratio: 1; border-radius: 50%; background: #fff; border: 3px solid var(--c, #21d0fc); }
.route-nodes { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.route-node {
  position: absolute; top: calc(277px * var(--k));
  left: calc(50% + (var(--x) - 720) * var(--k) * 1px);
  transform-origin: 0 0; scale: var(--k);
}
.route-node a {
  display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 20px 0 10px;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 200px; background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font: 500 14px/18px var(--f-lexend); color: #e8f3ff; white-space: nowrap;
  transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.route-node a:hover { background: rgba(255, 255, 255, .22); transform: translateY(-2px); box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .6); }
.route-swatch { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--d1), var(--d2) 75%); }
.route-node a { width: 213px; height: 74px; justify-content: center; padding: 0; background: #fff; border-color: #fff; }
.route-node img { width: 162px; height: 45px; object-fit: contain; }
.route-node a:hover { background: #fff; }
.route-copy { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 622px); justify-content: space-between; gap: 48px; margin-top: calc(92px * var(--k)); }
.route-copy h2 { font: 500 clamp(40px, 4.44vw, 64px)/1.06 var(--f-lexend); color: #e8f3ff; }
.route-copy h2 span { display: block; color: #21d0fc; }
.route-body { padding-top: 8px; }
.route-body p { font: 400 17px/27px var(--f-lexend); color: rgba(232, 243, 255, .85); }
.route-body p + p { margin-top: 20px; }
.route-body .route-lead { font: 500 clamp(19px, 1.53vw, 22px)/1.45 var(--f-lexend); color: #e8f3ff; }

/* ==========================================================================
   Radar · diagnóstico
   ========================================================================== */
.s-radar { overflow: hidden; color: #fff; background: linear-gradient(180deg, #054b95 0%, #043467 45%, #0e2e4f 100%); }
.s-radar .sx-stage { pointer-events: auto; }
.r-glow { aspect-ratio: 1; border-radius: 50%; }
.r-glow--a { background: #037afc; opacity: .55; filter: blur(calc(200px * var(--k))); }
.r-glow--b { background: #21d0fc; opacity: .45; filter: blur(calc(140px * var(--k))); }
.r-petal { opacity: .9; }
.r-partner { opacity: .2; filter: brightness(0) invert(1); }
.r-sides path { stroke-width: 3.8; opacity: .56; stroke-linecap: round; }
.r-sides-glow { filter: blur(6px); }
.r-sides-glow path { stroke-width: 11; opacity: .5; stroke-linecap: round; }
.r-disc {
  aspect-ratio: 1; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle at 50% 38%, rgba(33, 208, 252, .62) 0%, rgba(14, 160, 250, .48) 45%, rgba(3, 122, 252, .32) 100%);
}
.r-woman { z-index: 2; }
.r-copy {
  position: absolute; z-index: 2; left: 50%; top: calc(506px * var(--k)); transform: translateX(-50%);
  width: calc(568px * var(--k)); display: flex; flex-direction: column; align-items: center; text-align: center;
}
.r-copy h2 { font: 500 calc(38.3px * var(--k))/1.18 var(--f-lexend); color: #e8f3ff; }
.r-copy h2 span { color: #21d0fc; }
.r-copy .btn { position: relative; z-index: 3; margin-top: calc(282px * var(--k)); width: auto; padding: 0 24px; gap: 12px; height: max(44px, calc(53px * var(--k))); }
.r-text {
  position: absolute; left: 50%; top: calc(1072px * var(--k)); transform: translateX(-50%); z-index: 2;
  width: calc(382px * var(--k)); text-align: center; font: 400 calc(17px * var(--k))/1.59 var(--f-lexend); color: #fff;
}
.r-text strong { font-weight: 700; }
.r-points { margin: 0; padding: 0; list-style: none; }
.r-chip, .r-val {
  position: absolute; z-index: 3; transform: translate(-50%, -50%);
}
.r-chip {
  left: calc(50% + (var(--cx) - 720) * var(--k) * 1px); top: calc(var(--cy) * var(--k) * 1px);
  width: calc(157px * var(--k)); height: calc(50px * var(--k));
  display: grid; place-items: center; border-radius: 55px; background: #fff;
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .45);
}
.r-chip img { width: 88%; height: 76%; object-fit: contain; }
.r-val {
  left: calc(50% + (var(--px) - 720) * var(--k) * 1px); top: calc(var(--py) * var(--k) * 1px);
  font: 500 calc(60.4px * var(--k))/1.27 var(--f-lexend); color: var(--c); white-space: nowrap;
  text-shadow: 0 0 24px color-mix(in srgb, var(--c) 45%, transparent);
}

/* ==========================================================================
   Respaldo de Santillana
   ========================================================================== */
.s-respaldo { color: #e8f3ff; background: linear-gradient(180deg, #0e2e4f 0%, #16293c 100%); padding: 0 0 calc(60px * var(--k)); }
.respaldo-grid { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 642px); justify-content: space-between; align-items: start; gap: 40px; }
.respaldo-art { position: relative; width: 100%; aspect-ratio: 560 / 607; }
.rp { position: absolute; max-width: none; height: auto; }
.rp-photo { left: 5%; top: 0; width: 86.25%; }
.rp-p1 { left: 10.5%; top: 55.35%; width: 51.8%; }
.rp-p2 { left: 45%; top: 33.6%; width: 61.25%; }
.rp-line { left: 57.1%; top: 62.9%; width: 50.4%; }
.respaldo-copy { padding-top: calc(69px * var(--k)); }
.respaldo-copy h2 { font: 500 clamp(36px, 3.61vw, 52px)/1.15 var(--f-lexend); color: #e8f3ff; }
.respaldo-copy h2 span { color: #21d0fc; }
.respaldo-copy p { margin-top: 24px; font: 400 17px/27px var(--f-lexend); color: rgba(232, 243, 255, .85); }
.respaldo-copy .respaldo-lead { font: 500 clamp(22px, 1.94vw, 28px)/1.36 var(--f-lexend); color: #e8f3ff; }
.respaldo-copy .btn { margin-top: 24px; height: 55px; padding: 0 24px; gap: 12px; }

/* ==========================================================================
   FAQ oscuro + cierre
   ========================================================================== */
.faq-zone--dark { background: linear-gradient(180deg, #16293c 0%, #202325 88%, #212426 100%); }
.faq-zone--dark .faq-head h2 { color: #e8f3ff; }
.faq-zone--dark .faq-list summary, .faq-zone--dark .faq-list details p { color: #f5f5f5; }
.faq-zone--dark .faq-list summary::after { color: #fafdff; }
.faq-zone--dark .faq-list details[open] summary::after { color: #f5f5f5; }
.faq-zone--dark .faq-list { padding-top: 150px; }
.contact--alt { background: #212426; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-links:has(.is-current) { gap: 40px; }
  .route-copy, .respaldo-grid { grid-template-columns: 1fr; }
  .respaldo-art { max-width: 480px; }
}
@media (max-width: 860px) {
  .nav-link.is-current { margin: 0; padding: 14px 12px; border: 0; color: #037afc; }


  /* Ruta: los nodos pasan a una lista; las líneas se ocultan */
  .route-stage { height: auto; padding: 72px var(--gutter) 0; }
  .route-stage .sx-stage { display: none; }
  .route-nodes { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .route-node { position: static; scale: 1; }
  .route-copy { margin-top: 48px; }

  /* Radar: círculo y resultados apilados */
  .s-radar { height: auto; padding: 72px var(--gutter) 64px; }
  .s-radar .sx-stage { position: static; display: flex; flex-direction: column; align-items: center; }
  .s-radar .sx-stage > svg, .s-radar .r-glow, .s-radar .r-petal { display: none; }
  .r-copy { position: static; transform: none; width: 100%; order: 1; }
  .r-copy h2 { font-size: 28px; }
  .r-copy .btn { margin-top: 20px; height: 48px; }
  .r-woman { position: static; order: 2; width: min(100%, 420px); margin-top: 24px; }
  .r-text { position: static; transform: none; order: 3; width: 100%; max-width: 420px; margin-top: 24px; font-size: 16px; }
  .r-points { order: 4; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 420px; margin-top: 32px; }
  .r-point { display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .r-chip, .r-val { position: static; transform: none; }
  .r-chip { width: 140px; height: 44px; }
  .r-val { font-size: 40px; }

  .respaldo-copy { padding-top: 24px; }
  .s-respaldo { padding: 48px 0 24px; }
  .faq-zone--dark .faq-list { padding-top: 24px; }
}

/* ==========================================================================
   Recorrido: textos y piezas del storyboard final (Figma Desktop 33–42)
   sobre la coreografía de la propuesta 3
   ========================================================================== */
.journey { height: 1250vh; }
.journey .hero-title h1 { font: inherit; color: inherit; letter-spacing: inherit; }
.journey .hero-sub { margin-top: calc(6px * var(--k)); font: 400 max(15px, calc(20.5px * var(--k)))/1.6 var(--f-lexend); color: #e6fbff; }
.journey .hero-text {
  left: 50%; width: min(calc(722px * var(--k)), calc(100% - 2 * var(--gutter)));
  text-align: center; font: 400 max(14px, calc(16.9px * var(--k)))/1.6 var(--f-lexend); color: #e6fbff;
}
.journey .hero-text strong, .journey .msg strong { font-weight: 700; }
.journey .msg-areas { font-weight: 400; }
.journey .pillars li::after { display: none; }   /* Desktop 34: sin conectores entre pasos */

/* Chips de áreas (Desktop 6 / 42): logo Expande del área + foto redonda */
.journey .chip { height: auto; padding: 0; border-radius: 0; background: none; overflow: visible; }
.journey .chip img { display: block; width: calc(225px * var(--k)); min-width: 120px; height: auto; }

/* Aliados de cada área bajo el título (Desktop 37, 38 y 40) */
.journey .area-partners { display: grid; justify-items: center; width: 100%; margin-top: calc(-14px * var(--k)); }
.journey .area-partner { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; gap: 24px; }
.journey .area-partner img { width: auto; max-width: none; height: calc(var(--h, 30px) * var(--k)); }
.journey .area-partner-group { display: flex; align-items: center; gap: calc(24px * var(--k)); }
.journey .area-partner--split { justify-content: space-between; width: calc(860px * var(--k)); margin-top: calc(24px * var(--k)); }

@media (min-width: 861px) {
  .journey .hero-title { --y: 183; width: calc(940px * var(--k)); }
  /* la flor de la propuesta 3 llega hasta y=731: el texto va debajo, sin tocar pétalos */
  .journey .hero-text { top: calc(50% + (752 - 512) * var(--k) * 1px); }
  .journey .hero-ctas { --y: 852; }
  .journey .msg-habilidades { line-height: .97; font-size: max(22px, calc(40px * var(--k))); }
  .journey .msg-v1 { width: calc(709px * var(--k)); }
  .journey .msg-v2 { width: calc(629px * var(--k)); line-height: 1.15; }
  .journey .msg-v3 { width: calc(530px * var(--k)); line-height: 1.15; }
  .journey .msg-habilidades-top { width: calc(823px * var(--k)); }
  .journey .msg-areas { font-size: max(22px, calc(37px * var(--k))); }
  .journey .area-title { font-size: max(24px, calc(45px * var(--k))); line-height: 1.33; }
  /* botón al pie de la foto del pétalo (Figma: y 817–870) */
  .journey .area-ctas { top: calc(50% + (817 - 512) * var(--k) * 1px); }
}
@media (max-width: 860px) {
  .journey .hero-title { top: 13%; }
  .journey .hero-text { top: auto; bottom: calc(7% + 128px); }
  .journey .chip img { width: 128px; min-width: 0; }
  .journey .msg-v2, .journey .msg-v3 { font-size: 22px; line-height: 1.2; }
  .journey .area-partner--split { width: calc(100vw - 2 * var(--gutter)); margin-top: 6px; }
  .journey .area-partner img { height: calc(var(--h, 30px) * .7); }
}

@media (max-width: 860px) {
  .s-radar .r-disc { display: none; }
  .r-woman { border-radius: 0 0 50% 50% / 0 0 70% 70%; background: radial-gradient(circle at 50% 30%, rgba(33, 208, 252, .6), rgba(3, 122, 252, .35)); }
}
