:root {
  --v26-cyan: #53e5ff;
  --v26-mint: #55f2bd;
  --v26-ink: #020b16;
  --v26-panel: #071b2b;
  --v26-line: rgba(94, 224, 255, .24);
}

.v26-lang-en { display: none; }
html[lang="en"] .v26-lang-es { display: none; }
html[lang="en"] .v26-lang-en { display: inline; }

#wellScene { display: none !important; }
#platformScene[hidden] { display: none !important; }
#platformScene {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  overflow: hidden;
  background: #03111e;
}
#platformScene img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center;
}
#platformScene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(1, 10, 18, .04), rgba(1, 10, 18, .55));
}

.v25-scene > .v26-petro-model {
  width: 100%;
  height: 100%;
  min-height: 560px;
  background:
    radial-gradient(circle at 50% 44%, rgba(22, 91, 122, .35), transparent 45%),
    linear-gradient(180deg, #061725, #020b15 72%);
  --poster-color: transparent;
}

.v25-scene > .v26-petro-model[hidden] { display: none !important; }

.v26-model-loader {
  position: absolute;
  z-index: 7;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  pointer-events: none;
  color: var(--v26-cyan);
  letter-spacing: .16em;
  font: 700 .72rem/1.3 var(--font-mono, monospace);
  background: radial-gradient(circle at center, rgba(6, 35, 53, .88), rgba(2, 11, 22, .96));
}

.v26-model-loader[hidden] { display: none; }
.v26-model-loader span {
  width: 48px;
  aspect-ratio: 1;
  border: 2px solid rgba(83, 229, 255, .18);
  border-top-color: var(--v26-cyan);
  border-radius: 50%;
  animation: v26-spin .9s linear infinite;
}
@keyframes v26-spin { to { transform: rotate(360deg); } }

.v26-industrial-access { margin-block: clamp(72px, 9vw, 144px); }
.v26-industrial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.v26-real-model-card {
  display: flex !important;
  flex-direction: column;
  min-height: 610px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(9, 32, 49, .92), rgba(2, 12, 22, .98));
  border-color: var(--v26-line) !important;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .24);
}
.v26-real-model-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(130deg, rgba(83, 229, 255, .09), transparent 34%);
}
.v26-model-stage {
  position: relative;
  min-height: 350px;
  background:
    linear-gradient(rgba(46, 170, 211, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 170, 211, .06) 1px, transparent 1px),
    radial-gradient(circle at 50% 45%, rgba(25, 100, 135, .25), transparent 48%),
    #03111e;
  background-size: 38px 38px, 38px 38px, auto, auto;
  border-bottom: 1px solid var(--v26-line);
}
.v26-model-stage model-viewer {
  width: 100%;
  height: 350px;
  --poster-color: transparent;
}
.v26-evidence-card .v26-model-stage img {
  display: block;
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: center;
}
.v26-evidence-card .v26-model-source { color: var(--v26-mint); }
.v26-model-source {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 8px 11px;
  border: 1px solid rgba(83, 229, 255, .36);
  border-radius: 999px;
  color: var(--v26-cyan);
  background: rgba(1, 10, 18, .8);
  font: 700 .62rem/1 var(--font-mono, monospace);
  letter-spacing: .12em;
}
.v26-real-model-card .v25-industrial-copy { flex: 1; }
.v26-real-model-card .v25-industrial-copy h4 { font-size: clamp(1.45rem, 2vw, 2rem); }
.v26-real-model-card:hover { transform: translateY(-6px); border-color: rgba(83, 229, 255, .6) !important; }

.v26-gateway-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  overflow: visible !important;
  gap: 18px !important;
}
.v26-gateway-grid .v26-real-model-card { min-height: 530px; }
.v26-gateway-grid .v26-model-stage,
.v26-gateway-grid .v26-model-stage model-viewer { min-height: 280px; height: 280px; }
.v26-passport-gateway { min-height: 530px; }

body[data-v26-portal="true"] .v25-app-shell { max-width: 1500px; }
.v26-command-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
  gap: 22px;
  margin-bottom: 22px;
  padding: clamp(24px, 3.2vw, 48px);
  border: 1px solid var(--v26-line);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 10%, rgba(97, 94, 255, .24), transparent 35%),
    radial-gradient(circle at 15% 110%, rgba(65, 229, 185, .16), transparent 36%),
    linear-gradient(135deg, #08243a, #061321 70%);
}
.v26-command-copy h2 { max-width: 780px; margin: 12px 0 16px; font-size: clamp(2rem, 4.5vw, 4.8rem); line-height: .96; }
.v26-command-copy > p:not(.v25-demo-tag) { max-width: 760px; color: #b7ccdb; font-size: 1.02rem; }
.v26-command-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.v26-command-actions button,
.v26-command-actions a {
  padding: 14px 19px;
  border: 1px solid rgba(83, 229, 255, .4);
  border-radius: 999px;
  color: #eafaff;
  background: rgba(2, 13, 23, .58);
  font-weight: 800;
  cursor: pointer;
}
.v26-command-actions button { color: #00131e; border: 0; background: linear-gradient(90deg, var(--v26-cyan), #9590ff); }
.v26-mission-card {
  align-self: stretch;
  display: grid;
  align-content: space-between;
  gap: 24px;
  padding: 26px;
  border: 1px solid rgba(83, 229, 255, .28);
  border-radius: 22px;
  background: rgba(2, 14, 24, .68);
  backdrop-filter: blur(16px);
}
.v26-mission-card > div:first-child { display: flex; justify-content: space-between; color: var(--v26-cyan); font: 700 .68rem/1.2 var(--font-mono, monospace); letter-spacing: .12em; }
.v26-live-state { color: var(--v26-mint); }
.v26-mission-card strong { font-size: clamp(1.4rem, 2.1vw, 2.2rem); line-height: 1.08; }
.v26-mission-card p { margin: 0; color: #9bb9ca; }
.v26-mission-progress { height: 7px; border-radius: 999px; overflow: hidden; background: #0e3348; }
.v26-mission-progress i { display: block; width: 12%; height: 100%; background: linear-gradient(90deg, var(--v26-cyan), var(--v26-mint)); transition: width .5s ease; }

.v26-learning-route {
  margin: 22px 0;
  padding: 26px;
  border: 1px solid var(--v26-line);
  border-radius: 22px;
  background: rgba(5, 24, 39, .72);
}
.v26-route-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.v26-route-head small { color: var(--v26-cyan); font: 700 .68rem var(--font-mono, monospace); letter-spacing: .14em; }
.v26-route-head h2 { margin: 8px 0 0; font-size: clamp(1.6rem, 3vw, 3rem); }
.v26-route-head > span { color: var(--v26-mint); font: 800 1rem var(--font-mono, monospace); }
.v26-route-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 24px; border: 1px solid var(--v26-line); border-radius: 18px; overflow: hidden; }
.v26-route-steps article { min-height: 170px; padding: 22px; border-right: 1px solid var(--v26-line); background: rgba(1, 12, 22, .5); transition: .25s ease; }
.v26-route-steps article:last-child { border-right: 0; }
.v26-route-steps article[data-state="active"] { background: linear-gradient(150deg, rgba(15, 93, 119, .32), rgba(3, 19, 32, .78)); box-shadow: inset 0 3px var(--v26-mint); }
.v26-route-steps span { color: var(--v26-cyan); font: 700 .7rem var(--font-mono, monospace); }
.v26-route-steps strong { display: block; margin-top: 22px; font-size: 1.2rem; }
.v26-route-steps p { color: #8eacbd; font-size: .88rem; }

.v26-station-status { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.v26-station-status article { display: flex; gap: 14px; padding: 20px; border: 1px solid var(--v26-line); border-radius: 18px; background: linear-gradient(145deg, rgba(9, 36, 54, .8), rgba(3, 17, 28, .8)); }
.v26-station-dot { flex: 0 0 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: var(--v26-mint); box-shadow: 0 0 14px var(--v26-mint); }
.v26-station-status small { color: var(--v26-cyan); font: 700 .62rem var(--font-mono, monospace); letter-spacing: .11em; }
.v26-station-status strong { display: block; margin: 5px 0; }
.v26-station-status p { margin: 0; color: #86a9bc; font-size: .78rem; }

.v25-lab-grid.v26-lab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.v26-lab-card { display: flex; flex-direction: column; min-height: 530px; padding: 0 !important; overflow: hidden; border-color: var(--v26-line) !important; background: linear-gradient(150deg, #082438, #041421); }
.v26-lab-card > div:last-child { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.v26-lab-card h3 { margin: 10px 0; font-size: clamp(1.55rem, 2.4vw, 2.5rem); }
.v26-lab-card p { color: #a8c0cf; }
.v26-lab-card b { margin-top: auto; padding-top: 20px; color: var(--v26-cyan); }
.v26-lab-model { position: relative; height: 330px; border-bottom: 1px solid var(--v26-line); background: radial-gradient(circle at center, #103a52, #03111d 62%); }
.v26-lab-model model-viewer { width: 100%; height: 100%; --poster-color: transparent; }
.v26-lab-model > span { position: absolute; left: 18px; bottom: 16px; padding: 8px 10px; border-radius: 999px; color: var(--v26-cyan); background: rgba(1, 10, 18, .82); border: 1px solid rgba(83, 229, 255, .32); font: 700 .6rem var(--font-mono, monospace); letter-spacing: .1em; }
.v26-lab-card--chemical { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr .8fr; min-height: 420px; }
.v26-lab-card--chemical .v26-lab-model { height: 100%; min-height: 420px; border-right: 1px solid var(--v26-line); border-bottom: 0; }

.v26-security-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.v26-security-grid > div { padding: 17px; border: 1px solid var(--v26-line); border-radius: 15px; background: rgba(4, 24, 38, .72); }
.v26-security-grid span { color: var(--v26-cyan); font: 700 .65rem var(--font-mono, monospace); }
.v26-security-grid strong { display: block; margin: 7px 0; }
.v26-security-grid p { margin: 0; color: #86a9bc; font-size: .82rem; }

/* Premium command deck: replaces the duplicated four-card gateway. */
.v26-command-deck {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr);
  gap: 18px;
  margin-top: 26px;
}
.v26-command-rail,
.v26-command-passport {
  border: 1px solid var(--v26-line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(7, 31, 48, .96), rgba(2, 14, 25, .94));
  overflow: hidden;
}
.v26-command-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v26-command-link {
  position: relative;
  display: flex;
  min-height: 230px;
  padding: 28px;
  flex-direction: column;
  justify-content: flex-end;
  color: #eef9ff;
  text-decoration: none;
  border-right: 1px solid var(--v26-line);
  transition: transform .25s ease, background .25s ease;
}
.v26-command-link:last-child { border-right: 0; }
.v26-command-link:hover,
.v26-command-link:focus-visible { background: rgba(19, 94, 122, .24); transform: translateY(-4px); }
.v26-command-link small,
.v26-command-passport small { color: var(--v26-cyan); font: 700 .64rem var(--font-mono, monospace); letter-spacing: .12em; }
.v26-command-link strong { display: block; margin: 12px 0 8px; font-size: clamp(1.25rem, 2vw, 1.85rem); line-height: 1.05; }
.v26-command-link span { color: #8eafc1; font-size: .86rem; line-height: 1.55; }
.v26-command-link i { position: absolute; top: 24px; right: 24px; color: var(--v26-mint); font-style: normal; font-size: 1.3rem; }
.v26-command-passport { display: flex; padding: 30px; flex-direction: column; justify-content: space-between; }
.v26-command-passport h3 { margin: 12px 0; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1; }
.v26-command-passport p { color: #9ab7c8; line-height: 1.65; }
.v26-command-passport a { display: inline-flex; width: fit-content; margin-top: 22px; padding: 13px 18px; border-radius: 999px; color: #04131e; background: linear-gradient(90deg, var(--v26-cyan), var(--v26-mint)); font-weight: 900; text-decoration: none; }

/* Student intelligence layer: progress, competencies and next best action. */
.v26-intelligence-grid {
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(330px, 1.15fr) minmax(280px, .9fr);
  gap: 16px;
  margin: 22px 0;
}
.v26-intelligence-grid > article {
  min-height: 300px;
  padding: 25px;
  border: 1px solid var(--v26-line);
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(8, 40, 59, .9), rgba(2, 17, 29, .96));
}
.v26-intelligence-grid small { color: var(--v26-cyan); font: 700 .64rem var(--font-mono, monospace); letter-spacing: .12em; }
.v26-intelligence-grid h3 { margin: 10px 0 20px; font-size: clamp(1.35rem, 2vw, 2rem); }
.v26-score-ring {
  display: grid;
  width: 164px;
  aspect-ratio: 1;
  margin: 18px auto;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, #071c2c 77%, transparent 79% 100%), conic-gradient(var(--v26-mint) calc(var(--v26-score, 12) * 1%), #12364a 0);
  box-shadow: 0 0 35px rgba(79, 244, 196, .1);
}
.v26-score-ring strong { font-size: 2.65rem; line-height: .9; }
.v26-score-ring span { display: block; color: #89aabd; font: 700 .65rem var(--font-mono, monospace); text-align: center; }
.v26-score-note { margin: 0; color: #8eafc0; font-size: .82rem; text-align: center; }
.v26-competency-list { display: grid; gap: 16px; }
.v26-competency-row { display: grid; grid-template-columns: minmax(120px, .85fr) 2fr 42px; gap: 12px; align-items: center; }
.v26-competency-row span { color: #c4d8e3; font-size: .82rem; }
.v26-competency-row i { height: 7px; overflow: hidden; border-radius: 999px; background: #12364a; }
.v26-competency-row i::after { content: ""; display: block; width: var(--level, 12%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--v26-cyan), var(--v26-mint)); }
.v26-competency-row b { color: var(--v26-mint); font: 800 .72rem var(--font-mono, monospace); text-align: right; }
.v26-next-brief { display: flex; flex-direction: column; }
.v26-next-brief .v26-brief-number { margin-top: auto; color: rgba(83, 229, 255, .14); font: 900 clamp(5rem, 8vw, 8rem)/.8 var(--font-display, sans-serif); }
.v26-next-brief p { color: #96b2c2; line-height: 1.55; }
.v26-next-brief a { display: flex; margin-top: 16px; padding-top: 16px; justify-content: space-between; color: var(--v26-cyan); border-top: 1px solid var(--v26-line); font-weight: 800; text-decoration: none; }
.v26-lab-evidence { height: 330px; overflow: hidden; border-bottom: 1px solid var(--v26-line); background: #04131f; }
.v26-lab-evidence img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

@media (max-width: 1180px) {
  .v26-gateway-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .v26-station-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v26-command-deck { grid-template-columns: 1fr; }
  .v26-intelligence-grid { grid-template-columns: 1fr 1fr; }
  .v26-next-brief { grid-column: 1 / -1; min-height: 220px !important; }
}

@media (max-width: 900px) {
  .v26-industrial-grid { grid-template-columns: 1fr !important; }
  .v26-command-hero { grid-template-columns: 1fr; }
  .v26-route-steps { grid-template-columns: 1fr 1fr; }
  .v26-route-steps article:nth-child(2) { border-right: 0; }
  .v25-lab-grid.v26-lab-grid { grid-template-columns: 1fr; }
  .v26-lab-card--chemical { grid-column: auto; display: flex; }
  .v26-lab-card--chemical .v26-lab-model { min-height: 330px; height: 330px; border-right: 0; border-bottom: 1px solid var(--v26-line); }
  .v26-command-rail { grid-template-columns: 1fr; }
  .v26-command-link { min-height: 180px; border-right: 0; border-bottom: 1px solid var(--v26-line); }
  .v26-command-link:last-child { border-bottom: 0; }
  .v26-intelligence-grid { grid-template-columns: 1fr; }
  .v26-next-brief { grid-column: auto; }
}

@media (max-width: 620px) {
  .v25-scene > .v26-petro-model { min-height: 430px; }
  #platformScene,
  #platformScene img { min-height: 430px; }
  .v26-gateway-grid { grid-template-columns: 1fr !important; }
  .v26-route-steps,
  .v26-station-status,
  .v26-security-grid { grid-template-columns: 1fr; }
  .v26-route-steps article { border-right: 0; border-bottom: 1px solid var(--v26-line); }
  .v26-route-steps article:last-child { border-bottom: 0; }
  .v26-command-hero { padding: 22px; border-radius: 20px; }
  .v26-command-copy h2 { font-size: 2.5rem; }
  .v26-model-stage,
  .v26-model-stage model-viewer { min-height: 310px; height: 310px; }
  .v26-command-deck { grid-template-columns: minmax(0, 1fr); }
  .v26-command-rail { min-width: 0; }
  .v26-command-link,
  .v26-command-passport { padding: 22px; }
  .v26-intelligence-grid > article { min-width: 0; padding: 21px; }
  .v26-competency-row { grid-template-columns: 1fr 42px; }
  .v26-competency-row i { grid-column: 1 / -1; grid-row: 2; }
}
