/* ==========================================================================
   Recorrido animado de "Acerca de Expande" — storyboard de la diseñadora
   (Figma op3 · sección 169:32014, frames Desktop 21–32 y 1441–1446),
   tomado tal cual de la propuesta 3. Todo va acotado a .journey.
   ========================================================================== */
/* ==========================================================================
   Recorrido (stage fija)
   ========================================================================== */
.journey { position: relative; height: 1100vh; }
.journey .stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: var(--c-bg);
}
.journey .stage-bg {
  position: absolute; inset: -5%;
  background: radial-gradient(closest-side at 50% 52%, rgba(217,217,217,.55), rgba(248,248,248,.6) 55%, rgba(252,252,252,0) 100%);
  opacity: 0;
}
.journey .stage-glow {
  /* Figma "Ellipse 3": círculo de 544 px con desenfoque 538, centrado en (720, 1002).
     Se replica con un degradado radial del mismo alcance (un blur CSS lo diluye demasiado). */
  position: absolute; left: 50%; top: calc(50% + (1002 - 512) * var(--k) * 1px);
  width: calc(1500px * var(--k)); height: calc(1500px * var(--k));
  margin: calc(-750px * var(--k)) 0 0 calc(-750px * var(--k));
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow, #e52e8e) 0%, color-mix(in srgb, var(--glow, #e52e8e) 55%, transparent) 30%, color-mix(in srgb, var(--glow, #e52e8e) 18%, transparent) 62%, transparent 100%);
  opacity: 0;
}
.journey .stage > * { position: absolute; }

/* Pétalos */
.journey .petals { inset: 0; pointer-events: none; }
.journey .petal {
  position: absolute; left: 0; top: 0;
  width: 1040px; height: 1040px;
  margin: -520px 0 0 -520px;
  transform-origin: 50% 50%;
}
.journey .petal svg { width: 100%; height: 100%; overflow: visible; display: block; }
.journey .petal .lay-color, .journey .petal .lay-photo { opacity: 0; }

/* Hero */
.journey .hero-title {
  left: 50%; top: calc(196 / 1024 * 100%);
  width: min(1101px, calc(100% - 2 * var(--gutter)));
  transform: translateX(-50%);
  text-align: center;
  font: 500 clamp(32px, 3.62vw, 52px)/1.15 var(--f-inter);
  letter-spacing: -0.02em;
  color: #000;
}
.journey .hero-media {
  left: 50%; top: calc(383 / 1024 * 100%);
  width: min(740px, 51.4vw, 66vh);
  aspect-ratio: 740 / 382;
  transform: translateX(-50%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(3, 40, 90, .5);
}
.journey .hero-media img, .journey .hero-video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.journey .hero-ctas {
  left: 50%; top: calc(874 / 1024 * 100%);
  transform: translateX(-50%);
  display: flex; gap: 16px;
}

/* Chips */
.journey .chips { inset: 0; pointer-events: none; }
.journey .chip {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center;
  height: 44px;
  border-radius: 999px;
  background: var(--c);
  color: var(--ink);
  font: 400 15px/1 var(--f-inter);
  white-space: nowrap;
  overflow: hidden;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.journey .chip-thumb { width: 0; height: 100%; overflow: hidden; flex: none; }
.journey .chip-thumb img { width: 100%; height: 100%; object-fit: cover; }
.journey .chip-label { padding: 0 18px; }

/* Mensajes */
.journey .msg {
  font: 500 clamp(26px, 2.85vw, 41px)/1.15 var(--f-inter);
  letter-spacing: -0.02em;
  color: #000;
  opacity: 0;
}
.journey .msg-habilidades {
  left: 50%; top: 50%;
  width: min(680px, calc(100% - 2 * var(--gutter)));
  transform: translate(-50%, -50%);
  text-align: center;
}
.journey .msg-habilidades-top {
  left: 50%; top: calc(250 / 1024 * 100%);
  width: min(960px, calc(100% - 2 * var(--gutter)));
  transform: translate(-50%, -50%);
  text-align: center;
  font: 400 clamp(20px, 2.35vw, 33.8px)/1.148 var(--f-lexend);
  letter-spacing: 0;
}
.journey .msg-areas { left: var(--gutter); top: 44%; }
.journey .msg-quote { right: var(--gutter); top: 66%; width: min(378px, 40vw); }

.journey .pillars {
  left: 0; right: 0; top: 79%;
  margin: 0 auto;
  width: min(1234px, calc(100% - 2 * var(--gutter)));
  --gap: clamp(48px, 11vw, 160px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 286px));
  justify-content: center;
  gap: 32px var(--gap);
}
.journey .pillars li { position: relative; opacity: 0; }
.journey .pillars li:not(:last-child)::after {
  content: ""; position: absolute; top: 61px;
  left: calc(100% + (var(--gap) - min(70px, var(--gap) - 24px)) / 2);
  width: min(70px, calc(var(--gap) - 24px)); height: 5px;
  background:
    radial-gradient(circle, #212121 2px, transparent 2.5px) left center / 5px 5px no-repeat,
    radial-gradient(circle, #212121 2px, transparent 2.5px) right center / 5px 5px no-repeat,
    linear-gradient(#212121, #212121) center / 100% 1px no-repeat;
}
.journey .pillars h3 { font: 500 clamp(24px, 2.34vw, 33.7px)/1.2 var(--f-inter); letter-spacing: -0.02em; margin-bottom: 14px; }
.journey .pillars p { font: 400 16px/24px var(--f-inter); color: var(--c-ink); }

/* Showcase */
.journey .showcase {
  left: 50%; top: calc(192 / 1024 * 100%);
  width: min(1322px, calc(100% - 2 * var(--gutter)));
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  text-align: center;
}
.journey .showcase-logo, .journey .showcase-titles .area-title, .journey .petal-btn { opacity: 0; }
.journey .showcase-logo { width: 149px; height: auto; color: #e05efc; } /* acento del logo = color del área */
.journey .showcase-titles { display: grid; width: 100%; }
.journey .area-title {
  grid-area: 1 / 1;
  font: 500 clamp(26px, 3.3vw, 48px)/1.15 var(--f-lexend);
  letter-spacing: -0.02em;
  color: var(--c-ink);
  visibility: hidden;
}
.journey .area-title em { font-style: normal; color: var(--c); }
.journey .area-ctas {
  left: 50%; top: calc(468 / 1024 * 100%);
  transform: translateX(-50%);
  display: grid; justify-items: center;
}

/* Botón sobre el pétalo: misma métrica para todas las áreas */
.journey .petal-btn {
  grid-area: 1 / 1;
  visibility: hidden;
  display: inline-flex; align-items: center; gap: 14px;
  height: 52px;
  padding: 0 7px 0 24px;
  border-radius: 999px;
  background: rgba(250, 253, 255, .9);
  border: 1px solid rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 12px 28px -14px rgba(4, 52, 103, .45);
  color: var(--c-ink);
  font: 500 16px/1 var(--f-inter);
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, background-color .3s;
}
.journey .petal-btn-icon {
  position: relative; overflow: hidden;
  width: 38px; height: 38px; flex: none;
  border-radius: 50%;
  background: var(--c);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.journey .petal-btn-icon::before, .journey .petal-btn-icon::after {
  content: ""; position: absolute; inset: 0;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M10.84 7.81l3.52 3.13-3.52 3.14' stroke-linecap='square'/%3E%3Cpath d='M14 11H7'/%3E%3C/svg%3E");
  background: var(--icon, #fff);
  -webkit-mask: var(--arrow) no-repeat center / 20px;
  mask: var(--arrow) no-repeat center / 20px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.journey .petal-btn-icon::after { transform: translateX(-100%); }
.journey .petal-btn:hover { background: #fff; box-shadow: 0 1px 0 #fff inset, 0 18px 36px -16px rgba(4, 52, 103, .55); transform: translateY(-2px); }
.journey .petal-btn:hover .petal-btn-icon { transform: scale(1.06); }
.journey .petal-btn:hover .petal-btn-icon::before { transform: translateX(100%); }
.journey .petal-btn:hover .petal-btn-icon::after { transform: none; }
.journey .petal-btn:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }

.journey .stage-fog {
  left: -15%; right: -15%;
  top: calc(100% + 160px); height: 260vh;
  background: linear-gradient(180deg, #0768cd 0%, #043467 22%, #043467 100%);
  filter: blur(85px);
  border-radius: 50% 50% 0 0 / 18vh 18vh 0 0;
}

/* ---------- Escena en coordenadas de diseño (desktop) ----------
   --k = escala de la escena (la misma que usan los pétalos en JS), así
   textos y pétalos mantienen las distancias del Figma en cualquier pantalla. */
.journey .stage { --k: 1; }
.journey .u-y { top: calc(50% + (var(--y) - 512) * var(--k) * 1px); }
@media (min-width: 861px) {
  .journey .hero-title { --y: 198; top: calc(50% + (var(--y) - 512) * var(--k) * 1px); width: calc(1101px * var(--k)); font-size: max(26px, calc(52px * var(--k))); line-height: 1.154; }
  .journey .hero-media { --y: 385; top: calc(50% + (var(--y) - 512) * var(--k) * 1px); width: calc(740px * var(--k)); border-radius: calc(20px * var(--k)); }
  .journey .hero-ctas { --y: 874; top: calc(50% + (var(--y) - 512) * var(--k) * 1px); }
  .journey .msg-habilidades { top: calc(50% - 20px * var(--k)); width: calc(680px * var(--k)); font-size: max(22px, calc(41px * var(--k))); }
  .journey .msg-habilidades-top {
    top: calc(50% + (239 - 512) * var(--k) * 1px);
    width: calc(900px * var(--k));
    font: 400 max(20px, calc(33.8px * var(--k)))/1.148 var(--f-lexend);
    letter-spacing: 0;
  }
  .journey .msg-areas { left: calc(50% + (81 - 720) * var(--k) * 1px); top: calc(50% + (501 - 512) * var(--k) * 1px); font-size: max(22px, calc(41px * var(--k))); }
  .journey .msg-quote { left: calc(50% + (971 - 720) * var(--k) * 1px); right: auto; top: calc(50% + (948 - 512) * var(--k) * 1px); width: calc(378px * var(--k)); font-size: max(22px, calc(41px * var(--k))); }
  .journey .pillars {
    top: calc(50% + (746 - 512) * var(--k) * 1px);
    width: calc(1178px * var(--k));
    --gap: calc(160px * var(--k));
    grid-template-columns: repeat(3, calc(286px * var(--k)));
  }
  .journey .pillars li:not(:last-child)::after { top: calc(61px * var(--k)); }
  .journey .pillars h3 { font-size: max(20px, calc(33.7px * var(--k))); line-height: 1.21; margin-bottom: calc(14px * var(--k)); }
  .journey .pillars p { font-size: max(13px, calc(16px * var(--k))); line-height: 1.5; }
  .journey .showcase { top: calc(50% + (192 - 512) * var(--k) * 1px); width: calc(1322px * var(--k)); gap: calc(28px * var(--k)); }
  .journey .showcase-logo { width: calc(149px * var(--k)); }
  .journey .area-title { font-size: max(24px, calc(52px * var(--k))); line-height: 1.15; white-space: nowrap; }
  .journey .area-ctas { top: calc(50% + (468 - 512) * var(--k) * 1px); }
}

.journey .hero-title, .journey .msg, .journey .pillars li, .journey .showcase-titles { z-index: 2; }
.journey .showcase-titles { position: relative; }


@media (max-width: 860px) {
  .journey .hero-title { top: 15%; }
  .journey .hero-media { top: 34%; width: calc(100% - 2 * var(--gutter)); border-radius: 16px; }
  .journey .hero-ctas { top: auto; bottom: 7%; flex-direction: column; width: calc(100% - 2 * var(--gutter)); }
  .journey .chip { height: 34px; font-size: 12.5px; }
  .journey .chip-label { padding: 0 12px; }
  .journey .pillars { grid-template-columns: 1fr; gap: 18px; top: auto; bottom: 6%; }
  .journey .pillars li::after { display: none; }
  .journey .pillars h3 { margin-bottom: 4px; font-size: 21px; }
  .journey .pillars p { font-size: 14px; line-height: 20px; }
  .journey .msg-habilidades { width: min(360px, calc(100% - 2 * var(--gutter))); }
  .journey .msg-habilidades-top { top: 19%; }
  .journey .msg-areas { top: 16%; }
  .journey .msg-quote { top: auto; bottom: 12%; width: auto; left: var(--gutter); }
  .journey .showcase { top: 14%; gap: 18px; }
  .journey .area-title br { display: none; }
  .journey .area-ctas { top: 44%; }
  .journey .petal-btn { height: 46px; padding-left: 18px; gap: 10px; font-size: 14.5px; }
  .journey .petal-btn-icon { width: 34px; height: 34px; }
}

/* ==========================================================================
   Propuesta 3 (Figma op3 · sección 169:32014)
   Hero y abanico sobre fondo oscuro → recorrido claro → cierre oscuro.
   ========================================================================== */
.journey .stage { background: #212121; }
.journey .stage-light {
  position: absolute; left: 0; right: 0; top: 100%; height: 260vh; pointer-events: none;
  background: linear-gradient(180deg, rgba(252, 252, 252, 0) 0%, #fcfcfc 22%, #fcfcfc 100%);
}
.journey .stage-bg { background: radial-gradient(closest-side at 50% 52%, rgba(3, 122, 252, .55), rgba(3, 122, 252, .18) 55%, rgba(33, 33, 33, 0) 100%); }

/* Título del hero: Lexend 400 · 40.7px · #e6fbff (Figma) */
.journey .hero-title { color: #e6fbff; font-weight: 400; }
@media (min-width: 861px) {
  .journey .hero-title { --y: 204; width: calc(862px * var(--k)); font-size: max(26px, calc(40.7px * var(--k))); line-height: 1.15; }
  .journey .hero-ctas { --y: 800; }
  .journey .msg-habilidades { width: calc(600px * var(--k)); font-size: max(22px, calc(40px * var(--k))); }
}
.journey .msg-habilidades { color: #e6fbff; font-weight: 400; }
.journey .hero-ctas .btn-outline { border-color: rgba(232, 243, 255, .7); }
.journey .hero-ctas .btn-outline .text-gradient { background: none; -webkit-text-fill-color: #e8f3ff; color: #e8f3ff; }

/* Caja de la flor (376 × 377 en el diseño, centro 720 / 542.5).
   Todo el arte se ubica en px del diseño relativos a esta caja y escala con --k. */
.journey .hero-media.hero-art3 {
  --y: 354;
  top: calc(50% + (var(--y) - 512) * var(--k) * 1px);
  width: calc(376px * var(--k)); aspect-ratio: 376 / 377;
  border-radius: 0; box-shadow: none; overflow: visible;
}
.journey .hero-art3 > * { position: absolute; transform-origin: 0 0; }
.journey .hero-art3 .h3-outline, .journey .hero-art3 .h3-glow, .journey .hero-art3 .h3-inner, .journey .hero-art3 .h3-petals, .journey .hero-art3 .h3-win, .journey .hero-art3 .h3-chip { max-width: none; }
/* Capas del hero en px del diseño relativos a la caja de la flor (532, 354); JS fija left/top/width/height */
.journey .hero-art3 .h3-l { position: absolute; max-width: none; transform-origin: 50% 50%; will-change: transform, opacity; }
.journey .h3-outline { mix-blend-mode: normal; }
.journey .h3-glow { border-radius: 50%; background: var(--glow, #037afc); filter: blur(calc(200px * var(--k))); } /* Figma 400 */
.journey .h3-inner { border-radius: 50%; background: var(--inner, #ba4bd2); filter: blur(calc(36px * var(--k))); opacity: 0; } /* desenfoque Figma 72 ≈ CSS 36 */
.journey .h3-star { position: absolute; border-radius: 50%; background: var(--c, #3597fd); will-change: transform, opacity; }
.journey .hero-art3 img.h3-win { width: calc(381px * var(--k)); height: calc(229px * var(--k)); top: calc(107.4px * var(--k)); opacity: 0; will-change: opacity, transform; }
.journey .h3-win[data-i="0"], .journey .h3-win[data-i="2"], .journey .h3-win[data-i="4"] { left: calc(-184px * var(--k)); }   /* izquierda */
.journey .h3-win[data-i="1"], .journey .h3-win[data-i="3"] { left: calc(235px * var(--k)); }                        /* derecha */
.journey .h3-chip {
  display: inline-flex; align-items: center; height: max(30px, calc(44px * var(--k)));
  padding: 0 calc(19px * var(--k)); border-radius: 999px; white-space: nowrap;
  background: var(--c); color: var(--ink); font: 400 max(11px, calc(14.8px * var(--k)))/1 var(--f-lexend);
  opacity: 0;
}
.journey .h3-chip[data-i="0"] { left: calc(-285.5px * var(--k)); top: calc(76px * var(--k)); }
.journey .h3-chip[data-i="1"] { left: calc(472px * var(--k)); top: calc(334px * var(--k)); }
.journey .h3-chip[data-i="2"] { left: calc(-279px * var(--k)); top: calc(76px * var(--k)); }
.journey .h3-chip[data-i="3"] { left: calc(490px * var(--k)); top: calc(334px * var(--k)); }
.journey .h3-chip[data-i="4"] { left: calc(-225px * var(--k)); top: calc(76px * var(--k)); }



@media (max-width: 860px) {
  .journey .hero-media.hero-art3 { top: 38%; width: calc(376px * var(--k)); }
  /* chips de la derecha: anclados al borde derecho de la foto para no salirse */
  .journey .h3-chip[data-i="1"], .journey .h3-chip[data-i="3"] { left: calc(616px * var(--k)); translate: -100% 0; }
  .journey .h3-chip[data-i="0"], .journey .h3-chip[data-i="2"], .journey .h3-chip[data-i="4"] { left: calc(-184px * var(--k)); }
}


/* Logo del showcase: uno por área, con el nombre del área (Figma 178:*) */
.journey .showcase-logo { position: relative; display: grid; width: calc(187px * var(--k, 1)); }
.journey .showcase-logo .area-logo { grid-area: 1 / 1; width: 100%; height: auto; opacity: 0; }
.journey .showcase-logo .area-logo[data-area="0"] { opacity: 1; }
@media (max-width: 860px) { .journey .showcase-logo { width: 150px; } }


/* Logos de área normalizados: misma altura (recortados sin márgenes) */
.journey .showcase-logo { width: auto !important; justify-items: center; }
.journey .showcase-logo .area-logo { width: auto !important; max-width: none; height: max(40px, calc(54px * var(--k, 1))); }