/* Content sections below the hero. */
section { position: relative; }

/* ---------- Journey: antes · durante · siempre (auto-advancing tabs, js/journey.js) ---------- */
.journey { padding: var(--s-9) 0; overflow: hidden; }
.journey-head { text-align: center; max-width: 900px; margin: 0 auto var(--s-7); }
.journey-title { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 4rem); }
.journey-grid { display: grid; grid-template-columns: 0.9fr 1.25fr; gap: var(--s-7); align-items: center; }

.journey-steps { display: grid; gap: var(--s-4); }
.jstep {
  position: relative; display: grid; gap: var(--s-2); text-align: start;
  font: inherit; color: inherit; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s-5) var(--s-5) var(--s-6);
  box-shadow: var(--shadow-card); overflow: hidden;
  transition: border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.jstep:hover { transform: translateY(-2px); }
.jstep.is-active { border-color: var(--primary-soft-border); box-shadow: var(--shadow-float); }
.jstep-when {
  justify-self: start; font-size: var(--fs-xs); font-weight: var(--fw-extra);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--violet); background: var(--violet-soft); padding: 4px 10px; border-radius: var(--r-pill);
}
.jstep.is-active .jstep-when { color: var(--on-dark); background: var(--create); }
.jstep-title { font-size: var(--fs-xl); font-weight: var(--fw-extra); line-height: var(--lh-snug); }
.jstep-text { color: var(--text-2); font-size: var(--fs-md); }
/* Inactive steps fold their text away (GSAP animates the height). */
.jstep:not(.is-active) .jstep-text { height: 0; opacity: 0; overflow: hidden; }
.jstep-bar { position: absolute; inset: auto 0 0; height: 4px; background: var(--surface-muted); }
.jstep-bar i { display: block; height: 100%; width: 100%; background: var(--ring); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .jstep-bar i { transform-origin: right; }

.journey-stage { position: relative; }
.stage-glow {
  position: absolute; inset: -8% -6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.22), rgba(34, 211, 238, 0.12) 55%, transparent);
  filter: blur(20px);
}
.stage-card {
  position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(160deg, var(--violet-soft), var(--primary-soft));
  box-shadow: var(--shadow-phone);
}
.stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.stage-img.is-active { opacity: 1; }
.stage-step {
  position: absolute; inset-inline-end: var(--s-4); bottom: var(--s-4);
  font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text-2);
  background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(8px);
  padding: 6px 12px; border-radius: var(--r-pill);
}
.stage-step b { color: var(--primary); font-weight: var(--fw-extra); }
.spark { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--ai); box-shadow: 0 0 18px rgba(96, 165, 250, 0.9); }
.spark.s1 { top: 6%; inset-inline-start: -2%; }
.spark.s2 { top: 42%; inset-inline-end: -3%; width: 10px; height: 10px; }
.spark.s3 { bottom: 4%; inset-inline-start: 18%; width: 8px; height: 8px; }

@media (max-width: 900px) {
  .journey-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .journey-stage { order: -1; }
}

/* ---------- Feature blocks ---------- */
.feature { padding: var(--s-9) 0; }
.feature-tint { background: linear-gradient(180deg, var(--primary-soft), var(--bg)); }
.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--s-8);
}
.feature-grid-rev .feature-copy { order: 2; }
.feature-copy { max-width: 520px; }
.feature-visual { position: relative; display: grid; place-items: center; min-height: var(--phone-h); }
.feature-illus {
  position: absolute; width: 300px; z-index: -0; pointer-events: none;
  border-radius: var(--r-xl); opacity: 0.95;
  -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent);
  mask-image: radial-gradient(closest-side, #000 70%, transparent);
}
.illus-left { left: -8%; bottom: -4%; }
.illus-right { right: -10%; top: -4%; }
.feature-visual .phone { position: relative; z-index: 1; }
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .feature-grid-rev .feature-copy { order: 0; }
  .feature-copy { max-width: none; }
  .feature-illus { display: none; }
}

/* Friend chats */
.friend {
  margin-top: var(--s-9);
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: var(--s-7);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--s-6); box-shadow: var(--shadow-card);
}
.friend img { border-radius: var(--r-lg); }
.friend p { color: var(--text-2); }
.chat-demo { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.bubble { max-width: 80%; padding: 10px 14px; border-radius: 18px; display: grid; gap: 2px; font-weight: var(--fw-semibold); }
.bubble small { font-weight: var(--fw-medium); font-size: var(--fs-xs); }
.bubble-them { background: var(--surface-muted); border-bottom-left-radius: 6px; }
.bubble-them small { color: var(--text-muted); }
.bubble-me { justify-self: end; background: var(--primary); color: var(--on-dark); border-bottom-right-radius: 6px; }
.bubble-me small { color: var(--on-dark-2); }
@media (max-width: 800px) { .friend { grid-template-columns: 1fr; } }

/* ---------- Emi ---------- */
.emi {
  padding: var(--s-9) 0;
  background: var(--hero-sky);
  color: var(--on-dark);
  overflow: hidden;
}
.emi-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: center; gap: var(--s-8); }
.emi .h2 { margin-bottom: var(--s-4); }
.emi-orb { position: relative; width: min(320px, 70vw); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
.orb-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, #a855f7, #3b82f6, #22d3ee, #a855f7);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%, #000 66%, transparent 67%);
  mask: radial-gradient(circle, transparent 60%, #000 61%, #000 66%, transparent 67%);
  animation: ringspin 8s linear infinite;
  filter: drop-shadow(0 0 24px rgba(96, 165, 250, 0.7));
}
.orb-core {
  position: absolute; inset: 22%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c084fc, #3b82f6 55%, #0e1a4d 100%);
  box-shadow: 0 0 80px rgba(168, 85, 247, 0.55), inset 0 0 40px rgba(34, 211, 238, 0.4);
  animation: breathe 4s ease-in-out infinite;
}
.orb-wave { position: relative; display: flex; gap: 6px; align-items: center; height: 60px; }
.orb-wave i {
  width: 6px; height: 14px; border-radius: 3px; background: var(--on-dark);
  animation: orbwave 1.2s ease-in-out infinite; animation-play-state: paused;
}
.orb-wave i:nth-child(2) { animation-delay: -0.2s; } .orb-wave i:nth-child(3) { animation-delay: -0.4s; }
.orb-wave i:nth-child(4) { animation-delay: -0.6s; } .orb-wave i:nth-child(5) { animation-delay: -0.8s; }
.orb-wave i:nth-child(6) { animation-delay: -1s; } .orb-wave i:nth-child(7) { animation-delay: -0.3s; }
body[data-speaking="emi"] .orb-wave i { animation-play-state: running; }
@keyframes ringspin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.06); } }
@keyframes orbwave { 50% { height: 52px; } }
@media (max-width: 800px) { .emi-grid { grid-template-columns: 1fr; text-align: center; } }

/* ---------- Destination cards ---------- */
.center-head { text-align: center; max-width: 720px; margin: 0 auto var(--s-7); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-card);
}
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card h3 { font-size: var(--fs-lg); font-weight: var(--fw-extra); padding: var(--s-5) var(--s-5) var(--s-1); }
.card p { padding: 0 var(--s-5) var(--s-5); color: var(--text-2); font-size: var(--fs-sm); }
.help-list {
  aspect-ratio: 4 / 3; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3);
  padding: var(--s-5); background: linear-gradient(160deg, var(--danger-soft), var(--surface));
  align-content: center;
}
.help-list span {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: var(--s-3); font-size: var(--fs-sm); display: flex; gap: var(--s-2); align-items: center;
}
.help-list .sos { grid-column: 1 / -1; justify-content: center; font-weight: var(--fw-extra); color: var(--danger); font-size: var(--fs-lg); letter-spacing: 0.05em; }
@media (max-width: 900px) { .cards3 { grid-template-columns: 1fr; } }

/* ---------- eSIM ---------- */
.esim { padding: var(--s-9) 0; background: linear-gradient(180deg, var(--bg), var(--violet-soft)); }
.esim .feature-visual { min-height: 0; }
.esim-illus {
  width: 100%; max-width: 560px;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent);
  mask-image: radial-gradient(closest-side, #000 72%, transparent);
}
.esim-card {
  position: absolute; right: 0; bottom: -6%; width: 280px;
  background: var(--surface); border-radius: var(--r-lg); padding: var(--s-5);
  box-shadow: var(--shadow-float); border: 1px solid var(--border);
}
.esim-top { display: flex; gap: var(--s-3); align-items: center; margin-bottom: var(--s-4); }
.esim-top > span { font-size: 28px; }
.esim-top strong { display: block; }
.esim-top small { color: var(--success); font-weight: var(--fw-bold); }
.esim-meter { height: 10px; border-radius: var(--r-pill); background: var(--surface-muted); overflow: hidden; }
.esim-meter span { display: block; height: 100%; width: var(--p); background: var(--ring); border-radius: inherit; }
.esim-card p { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--text-2); }
.esim-card b { color: var(--text); }
.steps { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: grid; gap: var(--s-3); }
.steps li { display: flex; gap: var(--s-3); align-items: center; color: var(--text-2); }
.steps b {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--create); color: var(--on-dark); font-size: var(--fs-sm);
}
@media (max-width: 900px) { .esim-card { position: relative; right: auto; bottom: auto; margin: calc(-1 * var(--s-7)) auto 0; } }

/* ---------- Languages ---------- */
.langs { padding: var(--s-8) 0; overflow: hidden; }
.langs .h2 { font-size: var(--fs-xl); max-width: 30ch; margin-inline: auto; }
.langs .ring-text { font-size: var(--fs-2xl); }
.marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: var(--s-3); width: max-content; animation: marquee 50s linear infinite; }
.marquee-track span {
  padding: 10px 18px; border-radius: var(--r-pill); background: var(--surface);
  border: 1px solid var(--border); font-weight: var(--fw-bold); white-space: nowrap;
}
.marquee-track span:nth-child(3n + 1) { color: var(--primary); }
.marquee-track span:nth-child(3n + 2) { color: var(--violet); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Privacy ---------- */
.privacy { padding: var(--s-8) 0 var(--s-9); }
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.mini { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--shadow-card); }
.mini-ic { font-size: 26px; display: block; margin-bottom: var(--s-3); }
.mini h3 { font-size: var(--fs-md); font-weight: var(--fw-extra); margin-bottom: var(--s-2); }
.mini p { font-size: var(--fs-sm); color: var(--text-2); }
@media (max-width: 900px) { .cards4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cards4 { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { padding: var(--s-8) 0 var(--s-9); background: var(--surface); }
.faq .h2 { margin-bottom: var(--s-6); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding-block: var(--s-5); padding-inline: 0 var(--s-7);
  font-weight: var(--fw-bold); font-size: var(--fs-lg); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; inset-inline-end: 0; top: 50%; translate: 0 -50%;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); font-size: var(--fs-lg);
  transition: transform var(--t-fast) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-block: 0 var(--s-5); padding-inline: 0 var(--s-7); color: var(--text-2); }

/* ---------- Final CTA ---------- */
.final { padding: var(--s-9) 0; background: var(--hero-sky); text-align: center; overflow: hidden; isolation: isolate; }
.final-inner { display: grid; justify-items: center; gap: var(--s-4); }
.final-inner img { width: 120px; filter: drop-shadow(0 0 40px rgba(168, 85, 247, 0.5)); border-radius: 50%; }
.final .store { margin-top: var(--s-4); }

/* Tighter rhythm on phones */
@media (max-width: 700px) {
  .feature, .emi, .esim, .journey { padding: var(--s-8) 0; }
  .feature-visual { min-height: 0; }
  .friend { margin-top: var(--s-7); padding: var(--s-5); }
}

/* Pinned (scroll walks the steps): the whole section fits one screen. */
.journey.is-pinned {
  min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + var(--s-4)) 0 var(--s-5);
}
.journey.is-pinned .journey-head { margin-bottom: clamp(16px, 3.5vh, 48px); }
.journey.is-pinned .journey-title { font-size: min(clamp(2.2rem, 1.4rem + 3.2vw, 4rem), 6.4vh); }
.journey.is-pinned .stage-card { width: min(100%, calc(58svh * 4 / 3)); margin-inline: auto; }
.journey.is-pinned .jstep { padding: clamp(14px, 2.2vh, 24px) var(--s-5) clamp(18px, 2.6vh, 32px); }
@media (max-width: 900px) {
  .journey.is-pinned { padding-top: calc(var(--nav-h) + var(--s-2)); padding-bottom: var(--s-3); }
  .journey.is-pinned .journey-head { margin-bottom: var(--s-3); }
  .journey.is-pinned .journey-head .eyebrow { margin-bottom: var(--s-1); }
  .journey.is-pinned .journey-title { font-size: min(1.75rem, 4.2svh); }
  .journey.is-pinned .journey-grid { gap: var(--s-3); }
  .journey.is-pinned .stage-card { width: min(100%, calc(27svh * 4 / 3)); border-radius: var(--r-lg); }
  .journey.is-pinned .journey-steps { gap: var(--s-2); }
  .journey.is-pinned .jstep { padding: var(--s-3) var(--s-4) var(--s-4); gap: var(--s-1); }
  .journey.is-pinned .jstep-when { font-size: 0.68rem; padding: 2px 8px; }
  .journey.is-pinned .jstep-title { font-size: var(--fs-md); }
  .journey.is-pinned .jstep-text { font-size: var(--fs-sm); line-height: 1.45; }
}
