/* Vision page (/vision/, /es/vision/): interactive 2030 concept on top of the site's palette. */
.vision-page { background: var(--midnight); }
.v-hero { background: var(--midnight); color: var(--ice); padding-block: 3.2rem 1.4rem; }
.v-k { font-size: .78rem; letter-spacing: .18em; color: var(--cyan); margin: 0 0 .6rem; font-weight: 600; }
.v-hero h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.04; font-stretch: 112%; text-wrap: balance; }
.v-hero .hero-lede { color: #b8c6d6; }
.v-stage { user-select: none; -webkit-user-select: none; position: relative; height: min(78vh, 760px); min-height: 520px; background: radial-gradient(ellipse at 50% 55%, #081422 0%, #03060c 68%); border-top: 1px solid rgba(34,211,238,.18); border-bottom: 1px solid rgba(34,211,238,.18); overflow: hidden; }
.v-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.v-stage canvas:active { cursor: grabbing; }
.v-hud { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; pointer-events: none; }
.v-brand { font-weight: 700; letter-spacing: .1em; font-size: 1.05rem; color: var(--ice); }
.v-brand b { color: var(--cyan); }
.v-sub { font-size: .7rem; letter-spacing: .16em; color: #86a3c0; text-transform: uppercase; }
.v-clock { text-align: right; font-variant-numeric: tabular-nums; font-size: .78rem; color: var(--cyan); letter-spacing: .06em; }
.v-clock strong { display: block; font-size: 1.35rem; color: var(--ice); font-weight: 600; }
.v-status { color: #34d399; font-size: .7rem; letter-spacing: .1em; }
.v-status.storm { color: #fbbf24; }
.v-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding: 1rem 1.2rem; pointer-events: none; }
.v-xin { pointer-events: auto; background: rgba(6,16,30,.82); border: 1px solid rgba(34,211,238,.28); border-radius: 14px; padding: .8rem 1rem; max-width: 520px; flex: 1; min-width: 0; color: var(--ice); }
.v-xin .who { font-size: .7rem; letter-spacing: .14em; color: var(--cyan); }
.v-xin p { margin: .3rem 0 0; font-size: .95rem; line-height: 1.45; min-height: 2.9em; }
.v-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.v-btn { font: inherit; font-weight: 600; font-size: .9rem; border-radius: 10px; padding: .55rem .9rem; cursor: pointer; border: 1px solid var(--cyan); background: rgba(34,211,238,.12); color: var(--ice); }
.v-btn.primary { background: var(--cyan); color: #022029; }
.v-btn.warn { border-color: #fbbf24; background: rgba(251,191,36,.14); }
.v-btn:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
.v-side { pointer-events: auto; display: grid; gap: .45rem; justify-items: end; }
.v-hint, .v-tag { font-size: .7rem; color: #86a3c0; letter-spacing: .08em; text-align: right; }
.v-sheet { position: absolute; right: 1.2rem; bottom: 7.4rem; width: 290px; max-width: calc(100% - 2.4rem); background: rgba(6,16,30,.88); border: 1px solid rgba(34,211,238,.28); border-radius: 16px; padding: 1rem; display: grid; gap: .7rem; color: var(--ice); }
.v-sheet h3 { margin: 0; font-size: 1.3rem; line-height: 1.1; }
.v-kind { font-size: .7rem; letter-spacing: .14em; color: #86a3c0; text-transform: uppercase; }
.v-ringrow { display: flex; align-items: center; gap: .9rem; }
.v-ringrow svg { width: 70px; height: 70px; flex: none; }
.v-metrics { display: grid; gap: .35rem; font-size: .82rem; flex: 1; min-width: 0; }
.v-metrics div { display: flex; justify-content: space-between; gap: .5rem; border-bottom: 1px solid rgba(34,211,238,.12); padding-bottom: .2rem; }
.v-metrics span:last-child { color: var(--cyan); font-variant-numeric: tabular-nums; text-align: right; }
.v-close { position: absolute; z-index: 2; right: .5rem; top: .3rem; background: none; border: 0; color: #86a3c0; font-size: 1.3rem; cursor: pointer; }
.v-sec { padding-block: 4rem; }
.v-sec.light { background: var(--paper); color: var(--ink); }
.v-sec.dark { background: var(--midnight); color: var(--ice); }
.v-sec h2 { margin: 0 0 .5rem; font-size: clamp(1.6rem, 3vw, 2.2rem); font-stretch: 108%; text-wrap: balance; }
.v-sec .lead { margin: 0 0 2rem; max-width: var(--measure); color: var(--steel); }
.v-sec.dark .lead { color: #b8c6d6; }
.v-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.v-grid.v-goals { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.v-goals .v-card h3 { color: #0E7490; }
@media (max-width: 900px) { .v-grid.v-goals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .v-grid.v-goals { grid-template-columns: minmax(0, 1fr); } }
.v-card { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 1.1rem; }
.v-card h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.v-card p { margin: 0; color: var(--steel); font-size: .95rem; }
.v-road { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; position: relative; }
.v-road li { border: 1px solid rgba(34,211,238,.25); border-radius: 12px; padding: 1.1rem; background: var(--steel-panel); }
.v-road .yr { font-size: .8rem; letter-spacing: .14em; color: var(--cyan); font-weight: 600; }
.v-road h3 { margin: .3rem 0 .4rem; font-size: 1.15rem; }
.v-road p { margin: 0; color: #b8c6d6; font-size: .93rem; }
.v-road .st { display: inline-block; margin-top: .6rem; font-size: .7rem; letter-spacing: .12em; color: #86a3c0; text-transform: uppercase; }
.v-road li.now .st { color: var(--cyan); }
.v-keep { border: 1px solid #fbbf24; border-radius: 14px; padding: 1.3rem 1.4rem; background: rgba(251,191,36,.06); }
.v-keep h2 { color: #fbbf24; font-size: 1.4rem; }
.v-keep ul { margin: .5rem 0 0; padding-left: 1.2rem; color: var(--ice); }
.v-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; align-items: center; }
.v-note { margin-top: 1.5rem; font-size: .85rem; color: #86a3c0; }
@media (max-width: 900px) { .v-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .v-road { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .v-grid, .v-road { grid-template-columns: minmax(0, 1fr); }
  .v-stage { height: 92vh; min-height: 680px; }
  .v-sheet { top: 5.4rem; bottom: auto; left: 1rem; right: 1rem; width: auto; max-width: none; }
  .v-metrics { display: none; }
  .v-sheet .v-ringrow { position: absolute; right: 2.2rem; top: .5rem; }
  .v-bottom { flex-direction: column; align-items: stretch; }
  .v-side { justify-items: stretch; }
  .v-hint, .v-tag { text-align: left; }
}
.v-sheet[hidden] { display: none; }
.v-check { list-style: none; margin: .2rem 0 0; padding: 0; display: grid; gap: .25rem; width: 100%; font-size: .85rem; }
.v-check li { position: relative; padding-left: 1.3rem; color: var(--ice); }
.v-check li::before { content: "✓"; position: absolute; left: 0; color: #34d399; font-weight: 700; }
.v-check li.q { color: var(--cyan); font-weight: 600; padding-left: 0; margin-top: .2rem; }
.v-check li.q::before { content: none; }
.v-actions { align-items: center; }
@media (max-width: 640px) { .v-xin { max-height: 48vh; overflow-y: auto; } .v-check { font-size: .8rem; } }

/* "The path": interactive holographic timeline */
.v-track { position: relative; height: 54px; margin: .4rem 0 .9rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; }
.v-track::before, .v-track-fill { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 50%; height: 2px; background: rgba(34,211,238,.18); }
.v-track-fill { right: auto; width: calc(var(--p, 0%) * .75); background: linear-gradient(90deg, rgba(34,211,238,.35), var(--cyan)); box-shadow: 0 0 12px rgba(34,211,238,.8); transition: width .7s cubic-bezier(.2,.8,.2,1); }
.v-track-pulse { position: absolute; top: calc(50% - 3px); left: 12.5%; width: 40px; height: 6px; border-radius: 6px; background: radial-gradient(closest-side, #e0faff, rgba(34,211,238,0)); animation: v-run 3.2s linear infinite; pointer-events: none; }
@keyframes v-run { from { transform: translateX(-20px); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { transform: translateX(calc(75vw * .7)); opacity: 0; } }
.v-node { position: relative; justify-self: center; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(34,211,238,.45); background: #06101e; cursor: pointer; padding: 0; transition: transform .25s, box-shadow .25s, background .25s; }
.v-node b { position: absolute; top: -1.45rem; left: 50%; transform: translateX(-50%); font-size: .72rem; letter-spacing: .14em; color: #86a3c0; font-weight: 600; }
.v-node.on { border-color: var(--cyan); background: rgba(34,211,238,.25); box-shadow: 0 0 10px rgba(34,211,238,.6); }
.v-node.sel { transform: scale(1.25); background: var(--cyan); box-shadow: 0 0 0 6px rgba(34,211,238,.15), 0 0 22px rgba(34,211,238,.9); }
.v-node.sel b { color: var(--ice); }
.v-node:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
.v-road li { position: relative; cursor: pointer; overflow: hidden; clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); border-radius: 0; transition: transform .25s, border-color .25s, box-shadow .25s, background .25s; }
.v-road li::before { content: ""; position: absolute; inset: 0; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(34,211,238,.16), transparent 60%); opacity: 0; transition: opacity .25s; pointer-events: none; }
.v-road li::after { content: ""; position: absolute; left: 0; right: 0; height: 40%; top: -40%; background: linear-gradient(180deg, transparent, rgba(34,211,238,.12), transparent); pointer-events: none; opacity: 0; }
.v-road li:hover { transform: translateY(-4px); border-color: rgba(34,211,238,.6); }
.v-road li:hover::before { opacity: 1; }
.v-road li.sel { border-color: var(--cyan); background: linear-gradient(160deg, rgba(34,211,238,.16), rgba(6,16,30,.9) 60%); box-shadow: inset 0 0 0 1px rgba(34,211,238,.35), 0 0 28px rgba(34,211,238,.25); }
.v-road li.sel::after { opacity: 1; animation: v-scan 2.6s linear infinite; }
.v-road li.sel .yr { text-shadow: 0 0 12px rgba(34,211,238,.9); }
.v-road li:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
@keyframes v-scan { to { top: 100%; } }
.v-era { margin-top: 1.2rem; position: relative; border: 1px solid rgba(34,211,238,.35); background: linear-gradient(180deg, rgba(8,22,40,.92), rgba(4,10,20,.92)); clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); padding: 1rem 1.2rem 1.2rem; color: var(--ice); }
.v-era-head { position: relative; display: flex; justify-content: space-between; font-size: .7rem; letter-spacing: .18em; color: var(--cyan); border-bottom: 1px solid rgba(34,211,238,.2); padding-bottom: .6rem; }
.v-era-badge { color: #c084fc; } .v-era-badge.real { color: #34d399; }
.v-era-body { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.4rem; margin-top: .9rem; }
.v-era-yr { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--ice); text-shadow: 0 0 24px rgba(34,211,238,.55); }
.v-era-t { margin: .3rem 0 .7rem; font-size: 1.25rem; color: var(--cyan); }
.v-era-pts { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .45rem; }
.v-era-pts li { position: relative; padding-left: 1.3rem; color: #d6e2ee; font-size: .95rem; }
.v-era-pts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border: 1px solid var(--cyan); transform: rotate(45deg); box-shadow: 0 0 8px rgba(34,211,238,.7); }
.v-era.swap .v-era-pts li { animation: v-in .45s both; animation-delay: var(--d, 0ms); }
.v-era.swap .v-era-t, .v-era.swap .v-era-badge { animation: v-in .35s both; }
@keyframes v-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.v-era-meters { display: grid; gap: .6rem; }
.v-meter { display: grid; grid-template-columns: auto 1fr; gap: .15rem .8rem; font-size: .78rem; }
.v-meter .n { letter-spacing: .12em; text-transform: uppercase; color: #86a3c0; }
.v-meter .v { text-align: right; color: var(--ice); font-weight: 600; }
.v-meter i { grid-column: 1 / -1; height: 6px; background: rgba(34,211,238,.12); position: relative; overflow: hidden; }
.v-meter i b { position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: repeating-linear-gradient(90deg, var(--cyan) 0 6px, rgba(34,211,238,.4) 6px 8px); box-shadow: 0 0 10px rgba(34,211,238,.8); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.v-era-go { display: inline-block; margin-top: 1rem; color: var(--cyan); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(34,211,238,.4); }
.v-era-go[hidden] { display: none; }
.v-era-viz { position: relative; min-height: 280px; border: 1px solid rgba(34,211,238,.15); background: radial-gradient(ellipse at 50% 50%, rgba(13,32,54,.9), rgba(5,10,20,.6) 70%); }
.v-era-viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 900px) {
  .v-road { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: .5rem; }
  .v-road li { padding: .7rem .6rem; text-align: center; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
  .v-road li p { display: none; }
  .v-road h3 { font-size: .85rem; margin: .25rem 0 0; }
  .v-road .st { font-size: .62rem; margin-top: .3rem; }
}
@media (max-width: 640px) { .v-road h3 { display: none; } .v-road .yr { font-size: .95rem; } }
@media (max-width: 900px) { .v-track { display: none; } .v-era-body { grid-template-columns: minmax(0, 1fr); } .v-era-viz { min-height: 220px; } }
@media (prefers-reduced-motion: reduce) { .v-road li.sel::after, .v-track-pulse { animation: none; } .v-track-fill, .v-meter i b { transition: none; } }

/* Live chart and "ask Xin" chips */
.v-live { display: grid; gap: .25rem; }
.v-live-h span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.v-live-h b { white-space: nowrap; }
.v-live-h { align-items: baseline; display: flex; justify-content: space-between; gap: .5rem; font-size: .66rem; letter-spacing: .1em; color: #86a3c0; text-transform: uppercase; }
.v-live-h b { font-size: .8rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; text-transform: none; }
.v-live canvas { position: static; inset: auto; width: 100%; height: 64px; display: block; border-top: 1px solid rgba(34,211,238,.12); border-bottom: 1px solid rgba(34,211,238,.12); }
.v-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; width: 100%; margin-top: .15rem; }
.v-chips span { font-size: .66rem; letter-spacing: .12em; color: #86a3c0; text-transform: uppercase; margin-right: .2rem; }
.v-chip { font: inherit; font-size: .78rem; border-radius: 999px; padding: .3rem .7rem; cursor: pointer; border: 1px solid rgba(34,211,238,.35); background: rgba(34,211,238,.06); color: #cfe9f5; }
.v-chip:hover { border-color: var(--cyan); background: rgba(34,211,238,.16); }
.v-chip:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
@media (max-width: 640px) { .v-ringrow svg { width: 54px; height: 54px; } .v-live canvas { height: 48px; } .v-sheet { gap: .45rem; padding: .8rem; } }
@media (max-width: 640px) { .v-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: .1rem; } .v-chips span { display: none; } .v-chip { white-space: nowrap; } .v-hint { display: none; } }

/* World map (vision) */
.v-world { position: relative; border: 1px solid rgba(34,211,238,.28); background: radial-gradient(ellipse at 50% 40%, #0b1c30, #040912 75%); clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); padding: 1rem; }
.v-w-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .8rem; }
.v-w-years { display: flex; gap: .5rem; }
.v-w-y { font: inherit; cursor: pointer; display: grid; gap: .05rem; text-align: left; padding: .45rem .8rem; border: 1px solid rgba(34,211,238,.3); background: rgba(34,211,238,.05); color: #b8c6d6; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); transition: background .2s, border-color .2s; }
.v-w-y b { font-size: 1.05rem; color: var(--ice); letter-spacing: .06em; }
.v-w-y span { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.v-w-y:hover { border-color: var(--cyan); }
.v-w-y.on { background: rgba(34,211,238,.18); border-color: var(--cyan); box-shadow: 0 0 18px rgba(34,211,238,.3); }
.v-w-y.on b { color: var(--cyan); text-shadow: 0 0 10px rgba(34,211,238,.8); }
.v-w-y:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
.v-w-stats { display: flex; gap: 1.4rem; }
.v-w-stat { display: grid; text-align: right; }
.v-w-stat b { font-size: 1.6rem; line-height: 1; color: var(--ice); font-variant-numeric: tabular-nums; text-shadow: 0 0 14px rgba(34,211,238,.5); }
.v-w-stat span { font-size: .62rem; letter-spacing: .14em; color: #86a3c0; text-transform: uppercase; }
.v-w-scroll { overflow-x: auto; scrollbar-width: thin; }
.v-w-map { position: relative; }
.v-w-map canvas { display: block; width: 100%; height: 100%; }
.v-w-hint { position: absolute; left: .4rem; bottom: .3rem; font-size: .66rem; letter-spacing: .14em; color: #86a3c0; text-transform: uppercase; pointer-events: none; }
.v-w-hint[hidden] { display: none; }
.v-w-drag { display: none; font-size: .66rem; letter-spacing: .12em; color: #86a3c0; text-transform: uppercase; margin-top: .4rem; }
.v-w-card { position: absolute; width: 220px; padding: .75rem .85rem; background: rgba(6,16,30,.94); border: 1px solid rgba(34,211,238,.45); color: var(--ice); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); box-shadow: 0 0 24px rgba(34,211,238,.2); display: grid; gap: .3rem; }
.v-w-card[hidden] { display: none; }
.v-w-card h4 { margin: 0; font-size: 1.05rem; }
.v-w-meta, .v-w-via { margin: 0; font-size: .78rem; color: #b8c6d6; }
.v-w-via:empty { display: none; }
.v-w-badge { font-size: .62rem; letter-spacing: .16em; color: #c084fc; } .v-w-badge.real { color: #34d399; } .v-w-badge.goal { color: #fbbf24; }
.v-w-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .2rem; }
.v-w-tags span { font-size: .7rem; padding: .15rem .5rem; border: 1px solid rgba(34,211,238,.3); border-radius: 999px; color: #cfe9f5; }
.v-w-x { position: absolute; right: .35rem; top: .15rem; background: none; border: 0; color: #86a3c0; font-size: 1.2rem; cursor: pointer; }
@media (max-width: 700px) { .v-w-card { position: relative; width: auto; margin-top: .6rem; } .v-w-drag { display: block; } .v-w-stats { width: 100%; justify-content: space-between; gap: .6rem; } .v-w-stat { text-align: left; } .v-w-stat b { font-size: 1.3rem; } .v-world { padding: .7rem; } .v-w-y { padding: .4rem .6rem; } }
