:root {
  --kst-gold: #d8b86a;
  --kst-ivory: #f4edda;
  --kst-ink: #04060b;
  --kst-line: rgba(216, 184, 106, 0.28);
}

html[data-kst-preview="shuttle-trinity-v7"] {
  scroll-behavior: smooth;
}

.kst-preview-shell,
.kst-coradi-context,
.kst-preview-shell * {
  box-sizing: border-box;
}

.kst-preview-shell,
.kst-coradi-context {
  color: var(--kst-ivory);
  font-family: "Montserrat", sans-serif;
}

.kst-preview-shell {
  position: relative;
  z-index: 20;
  width: 100%;
  background:
    radial-gradient(circle at 16% 0%, rgba(63, 34, 100, 0.24), transparent 34rem),
    linear-gradient(180deg, #050811 0%, #071021 58%, #03050a 100%);
  border-block: 1px solid rgba(216, 184, 106, 0.2);
}

.kst-preview-safety {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.45rem 1rem;
  color: rgba(244, 237, 218, 0.7);
  background: rgba(4, 6, 11, 0.94);
  border-bottom: 1px solid rgba(216, 184, 106, 0.12);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.kst-preview-safety.is-alerting {
  color: #100c03;
  background: var(--kst-gold);
}

.kst-trinity-selector {
  position: relative;
  z-index: 25;
  padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 4vw, 4rem) clamp(1.25rem, 3vw, 2rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 52%, rgba(49, 92, 164, 0.12), transparent 28rem),
    linear-gradient(180deg, rgba(5, 8, 17, 0.985), rgba(7, 16, 33, 0.965));
  border-bottom: 1px solid var(--kst-line);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
}

.kst-selector-heading {
  max-width: 1220px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
}

.kst-selector-heading h2,
.kst-panel-hero h2,
.kst-social-action h2,
.kst-coradi-context h2 {
  margin: 0;
  color: var(--kst-ivory);
  font-family: "Cormorant Upright", serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.kst-selector-heading h2 {
  font-size: clamp(1.55rem, 2.7vw, 2.5rem);
  line-height: 1.05;
}

.kst-selector-copy > p:last-child {
  display: none;
  max-width: 55rem;
  margin: 0.4rem 0 0;
  color: rgba(244, 237, 218, 0.58);
  font-size: 0.75rem;
  font-weight: 300;
  line-height: 1.4;
}

.kst-portal-identity > p {
  max-width: 70rem;
  margin-inline: auto !important;
  font-size: clamp(0.66rem, 1.2vw, 0.85rem) !important;
  letter-spacing: 0.18em !important;
  line-height: 1.65 !important;
}

.kst-kicker {
  margin: 0 0 0.4rem;
  color: var(--kst-gold);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kst-coradi-inline,
.kst-panel-actions button,
.kst-orientation-controls button,
.kst-relations a,
.kst-network-toggle,
.kst-social-action button {
  min-height: 44px;
  border: 1px solid var(--kst-line);
  color: var(--kst-ivory);
  background: rgba(255, 255, 255, 0.025);
  font: inherit;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.kst-coradi-inline {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  color: var(--kst-gold);
  font-size: 0.76rem;
}

.kst-coradi-inline:hover,
.kst-coradi-inline:focus-visible,
.kst-panel-actions button:hover,
.kst-panel-actions button:focus-visible,
.kst-orientation-controls button:hover,
.kst-orientation-controls button:focus-visible,
.kst-relations a:hover,
.kst-relations a:focus-visible {
  border-color: rgba(216, 184, 106, 0.78);
  background: rgba(216, 184, 106, 0.09);
  outline: none;
}

.kst-coradi-symbol {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(216, 184, 106, 0.7));
}

.kst-trinity-stage {
  display: grid;
  place-items: center;
  min-height: 480px;
  padding: 0.35rem 0 3.5rem;
}

.kst-trinity-orbit {
  --kst-trinity-rotation: 0deg;
  --kst-node-counter-rotation: 0deg;
  width: min(38vw, 420px);
  min-width: 350px;
  aspect-ratio: 1;
  position: relative;
}

.kst-trinity-circle {
  position: absolute;
  inset: 11%;
  border: 1px solid rgba(216, 184, 106, 0.38);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(42, 89, 157, 0.1), transparent 58%),
    rgba(3, 7, 15, 0.24);
  box-shadow:
    inset 0 0 42px rgba(62, 111, 190, 0.1),
    0 0 48px rgba(216, 184, 106, 0.06);
}

.kst-trinity-emblem {
  width: 34%;
  height: auto;
  max-height: 24%;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  object-fit: contain;
  opacity: 1;
  filter: saturate(1) drop-shadow(0 0 18px rgba(78, 130, 213, 0.5));
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.kst-trinity-rotor {
  position: absolute;
  inset: 0;
  z-index: 2;
  transform: rotate(var(--kst-trinity-rotation));
  transform-origin: 50% 50%;
  transition: transform 850ms cubic-bezier(0.2, 0.75, 0.22, 1);
}

.kst-trinity-lines {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: visible;
  filter: drop-shadow(0 0 7px rgba(216, 184, 106, 0.18));
  pointer-events: none;
}

.kst-trinity-lines polygon {
  fill: rgba(44, 88, 154, 0.05);
  stroke: rgba(216, 184, 106, 0.62);
  stroke-width: 0.58;
  vector-effect: non-scaling-stroke;
}

.kst-trinity-node {
  width: 124px;
  height: 124px;
  min-height: 44px;
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.14rem;
  padding: 0.8rem;
  color: rgba(244, 237, 218, 0.76);
  background:
    radial-gradient(circle at 50% 34%, rgba(56, 105, 180, 0.25), transparent 68%),
    rgba(5, 10, 20, 0.96);
  border: 1px solid rgba(216, 184, 106, 0.42);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42), inset 0 0 24px rgba(58, 103, 176, 0.08);
  font-family: "Montserrat", sans-serif;
  font-size: 0.72rem;
  line-height: 1.18;
  letter-spacing: 0.035em;
  text-align: center;
  cursor: pointer;
  transform: translate(-50%, -50%) rotate(var(--kst-node-counter-rotation));
  transition:
    transform 850ms cubic-bezier(0.2, 0.75, 0.22, 1),
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease !important;
}


.kst-trinity-node[data-kst-position="top"] {
  top: 16%;
  left: 50%;
}

.kst-trinity-node[data-kst-position="bottom-left"] {
  top: 67%;
  left: 20.6%;
}

.kst-trinity-node[data-kst-position="bottom-right"] {
  top: 67%;
  left: 79.4%;
}

.kst-trinity-node span {
  color: var(--kst-gold);
  font-family: "Cormorant Upright", serif;
  font-size: 1.9rem;
  font-variant-numeric: lining-nums;
  line-height: 0.86;
}

.kst-trinity-node small {
  color: rgba(244, 237, 218, 0.48);
  font-size: 0.56rem;
  letter-spacing: 0.025em;
}

.kst-trinity-node:focus-visible,
.kst-trinity-node.is-active {
  color: var(--kst-ivory);
  border-color: rgba(246, 221, 151, 0.94);
  background:
    radial-gradient(circle at 50% 34%, rgba(216, 184, 106, 0.24), transparent 66%),
    rgba(9, 18, 34, 0.98);
  box-shadow:
    0 0 0 2px rgba(216, 184, 106, 0.1),
    0 0 28px rgba(216, 184, 106, 0.22),
    inset 0 0 28px rgba(65, 117, 197, 0.12);
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .kst-trinity-node:hover {
    color: #100c03;
    border-color: var(--kst-gold);
    background: var(--kst-gold);
    box-shadow:
      0 0 0 3px rgba(216, 184, 106, 0.16),
      0 0 34px rgba(216, 184, 106, 0.48);
    outline: none;
  }

  .kst-trinity-node:hover span {
    color: #100c03 !important;
  }

  .kst-trinity-node:hover small {
    color: rgba(16, 12, 3, 0.72);
  }
}

.kst-trinity-node:focus {
  background:
    radial-gradient(circle at 50% 34%, rgba(216, 184, 106, 0.24), transparent 66%),
    rgba(9, 18, 34, 0.98) !important;
  color: var(--kst-ivory) !important;
}

.kst-trinity-node[aria-selected="true"] span {
  color: var(--kst-gold) !important;
}

.kst-itinerary {
  color: rgba(244, 237, 218, 0.72) !important;
}

.kst-dimension-panel,
.kst-network {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.kst-dimension-panel {
  padding: clamp(2.25rem, 5vw, 4.5rem) 0 clamp(3rem, 7vw, 6rem);
}

.kst-dimension-panel[hidden],
.kst-network[hidden],
#kst-network-body[hidden] {
  display: none !important;
}

.kst-panel-hero {
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid rgba(216, 184, 106, 0.22);
  background:
    radial-gradient(circle at 18% 50%, rgba(54, 105, 181, 0.18), transparent 35%),
    linear-gradient(135deg, rgba(10, 24, 48, 0.86), rgba(37, 18, 57, 0.72));
}

.kst-panel-hero-engineering {
  grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1.55fr);
}

.kst-panel-hero-social {
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.15fr);
}

.kst-panel-hero img {
  width: 100%;
  height: min(300px, 46vw);
  display: block;
  object-fit: contain;
  object-position: center;
}

.kst-panel-hero-engineering img {
  width: min(100%, 244px);
  height: auto;
  max-height: 150px;
  justify-self: center;
}

.kst-panel-hero h2 {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.kst-panel-hero > div > p:last-child {
  max-width: 50rem;
  margin: 1.25rem 0 0;
  color: rgba(244, 237, 218, 0.67);
  font-size: clamp(0.9rem, 1.3vw, 1.06rem);
  font-weight: 300;
  line-height: 1.8;
}

.kst-statement {
  max-width: 940px;
  margin: clamp(3rem, 7vw, 6rem) auto;
  padding: 0 1rem;
  text-align: center;
}

.kst-statement p {
  margin: 0;
  color: var(--kst-ivory);
  font-family: "Cormorant Upright", serif;
  font-size: clamp(1.65rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.25;
}

.kst-explanation,
.kst-operating-cycle,
.kst-social-fields,
.kst-sovereignty-test,
.kst-practice,
.kst-order-bridge,
.kst-social-action {
  margin: clamp(2.5rem, 6vw, 5.5rem) 0;
}

.kst-explanation > header,
.kst-operating-cycle > header,
.kst-social-fields > header,
.kst-sovereignty-test > header,
.kst-practice > header {
  max-width: 840px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.kst-content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 2rem;
}

.kst-content-grid article,
.kst-flow article {
  padding: clamp(1.3rem, 3vw, 2.2rem);
  border: 1px solid rgba(216, 184, 106, 0.17);
  background: rgba(255, 255, 255, 0.025);
}

.kst-content-grid article > span,
.kst-flow article > span {
  color: var(--kst-gold);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kst-content-grid h3,
.kst-explanation > header h3,
.kst-operating-cycle > header h3,
.kst-social-fields > header h3,
.kst-sovereignty-test > header h3,
.kst-practice h3,
.kst-order-bridge h3 {
  color: var(--kst-ivory);
  font-family: "Cormorant Upright", serif;
  font-weight: 500;
}

.kst-content-grid h3 {
  margin: 0.7rem 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.kst-explanation > header h3,
.kst-operating-cycle > header h3,
.kst-social-fields > header h3,
.kst-sovereignty-test > header h3,
.kst-practice h3,
.kst-order-bridge h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3.6vw, 3.3rem);
  line-height: 1.06;
}

.kst-content-grid p,
.kst-flow p,
.kst-architecture-triad p,
.kst-practice p,
.kst-order-bridge p,
.kst-sovereignty-test p,
.kst-social-action p,
#kst-network-body > p {
  color: rgba(244, 237, 218, 0.66);
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 1.75;
}

.kst-architecture-triad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.kst-architecture-triad article {
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid rgba(216, 184, 106, 0.18);
  background: linear-gradient(155deg, rgba(10, 24, 48, 0.78), rgba(35, 17, 52, 0.62));
}

.kst-architecture-triad span {
  color: var(--kst-gold);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kst-architecture-triad h3 {
  margin: 0.75rem 0;
  color: var(--kst-ivory);
  font-family: "Cormorant Upright", serif;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  font-weight: 500;
}

.kst-practice {
  padding: clamp(1.4rem, 4vw, 3.5rem);
  border: 1px solid rgba(216, 184, 106, 0.32);
  background:
    radial-gradient(circle at 50% 0%, rgba(43, 97, 174, 0.16), transparent 32rem),
    rgba(3, 7, 15, 0.72);
}

.kst-practice-steps {
  display: grid;
  gap: 0;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.kst-practice-steps li {
  display: grid;
  grid-template-columns: 3.3rem 1fr;
  gap: 1rem;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(216, 184, 106, 0.17);
}

.kst-practice-steps li > span {
  color: var(--kst-gold);
  font-family: "Cormorant Upright", serif;
  font-size: 2rem;
  font-variant-numeric: lining-nums;
}

.kst-practice h4,
.kst-daily-practice h4 {
  margin: 0 0 0.5rem;
  color: var(--kst-ivory);
  font-family: "Cormorant Upright", serif;
  font-size: 1.45rem;
  font-weight: 500;
}

.kst-practice-steps p {
  margin: 0;
}

.kst-practice-steps .kst-quantum-activation {
  margin: 0.85rem 0 !important;
  padding: 0.8rem 1rem;
  color: var(--kst-ivory) !important;
  border-left: 2px solid var(--kst-gold);
  background: rgba(216, 184, 106, 0.08);
  font-family: "Cormorant Upright", serif;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.45;
}

.kst-practice blockquote {
  margin: 0.75rem 0 0;
  padding: 1rem 1.2rem;
  color: var(--kst-ivory);
  border-left: 2px solid var(--kst-gold);
  background: rgba(216, 184, 106, 0.05);
  font-family: "Cormorant Upright", serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.5;
}

.kst-daily-practice {
  margin-top: 1.5rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: rgba(216, 184, 106, 0.06);
  border: 1px solid rgba(216, 184, 106, 0.18);
}

.kst-practice-logo {
  width: min(100%, 150px);
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.7rem 0 1rem;
  padding: 0.65rem;
  border: 1px solid rgba(216, 184, 106, 0.18);
  background: radial-gradient(circle, rgba(48, 103, 181, 0.16), transparent 72%);
}

.kst-practice-logo img {
  width: min(100%, 112px);
  height: auto;
  max-height: 70px;
  display: block;
  object-fit: contain;
}

.kst-practice-logo-daily {
  margin-inline: auto;
}

.kst-source-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.kst-source-note {
  margin: 0;
  color: rgba(216, 184, 106, 0.72) !important;
  font-size: 0.7rem !important;
}

.kst-source-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  color: #100c03;
  background: var(--kst-gold);
  border: 1px solid var(--kst-gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.kst-order-bridge {
  padding: clamp(1.4rem, 4vw, 3rem);
  border-left: 3px solid var(--kst-gold);
  background: linear-gradient(90deg, rgba(216, 184, 106, 0.08), transparent);
}

.kst-order-bridge a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-top: 0.75rem;
  padding: 0.7rem 1rem;
  color: #100c03;
  background: var(--kst-gold);
  text-decoration: none;
}

.kst-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr) auto) minmax(0, 1fr);
  align-items: stretch;
  gap: 0.55rem;
  margin: 0 0 2rem;
}

.kst-flow i {
  align-self: center;
  color: var(--kst-gold);
  font-style: normal;
}

.kst-flow article {
  min-width: 0;
  padding: 1.15rem;
}

.kst-flow p {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
}

.kst-sovereignty-test {
  padding: clamp(1.4rem, 4vw, 3rem);
  border: 1px solid rgba(216, 184, 106, 0.24);
  background: rgba(4, 6, 11, 0.46);
}

.kst-sovereignty-test ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.4rem;
  margin: 1.8rem 0;
  padding-left: 1.4rem;
  color: rgba(244, 237, 218, 0.78);
  font-size: 0.82rem;
  line-height: 1.65;
}

.kst-social-action {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid rgba(216, 184, 106, 0.34);
  background: linear-gradient(140deg, rgba(7, 16, 33, 0.94), rgba(45, 21, 67, 0.84));
}

.kst-social-action h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
}

.kst-social-action form {
  display: grid;
  gap: 0.85rem;
}

.kst-social-action label {
  display: grid;
  gap: 0.4rem;
  color: rgba(244, 237, 218, 0.72);
  font-size: 0.72rem;
}

.kst-social-action input,
.kst-social-action select,
.kst-social-action textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.8rem;
  color: var(--kst-ivory);
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(216, 184, 106, 0.26);
  border-radius: 0;
  font: inherit;
}

.kst-social-action textarea {
  min-height: 120px;
  resize: vertical;
}

.kst-social-action button {
  min-height: 50px;
  padding: 0.8rem 1rem;
  color: #100c03;
  background: var(--kst-gold);
  font-size: 0.74rem;
  font-weight: 600;
}

.kst-form-boundary,
.kst-form-status {
  margin: 0 !important;
  font-size: 0.66rem !important;
}

.kst-form-status:not(:empty) {
  padding: 0.75rem;
  color: var(--kst-gold) !important;
  border: 1px solid rgba(216, 184, 106, 0.24);
  background: rgba(216, 184, 106, 0.06);
}

.kst-panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 2rem;
}

.kst-panel-actions button {
  padding: 0.7rem 1rem;
  border-radius: 2px;
  font-size: 0.7rem;
}

.kst-network {
  margin-bottom: clamp(3rem, 8vw, 7rem);
  border: 1px solid rgba(216, 184, 106, 0.2);
  background: linear-gradient(135deg, rgba(7, 16, 33, 0.92), rgba(29, 14, 44, 0.86));
}

.kst-network-toggle {
  width: 100%;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  border: 0;
  text-align: left;
}

.kst-network-toggle small {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--kst-gold);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
}

.kst-network-toggle strong {
  font-family: "Cormorant Upright", serif;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 500;
}

#kst-network-body {
  padding: 0 clamp(1rem, 3vw, 2rem) 2rem;
}

.kst-relations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.2rem 0;
}

.kst-relations a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  font-size: 0.68rem;
  text-decoration: none;
}

.kst-relations a img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 24px;
}

.kst-relation-detail {
  min-height: 92px;
  padding: 1.1rem 1.25rem;
  border-left: 2px solid var(--kst-gold);
  background: rgba(0, 0, 0, 0.22);
}

.kst-relation-detail span {
  color: var(--kst-gold);
  font-family: "Cormorant Upright", serif;
  font-size: 1.35rem;
}

.kst-relation-detail p {
  margin: 0.45rem 0 0;
  color: rgba(244, 237, 218, 0.67);
  font-size: 0.78rem;
  line-height: 1.65;
}

/* Al abrir una escala, la identidad original no desaparece: se compacta. */
html[data-kst-dimension="ingenieria"] .kst-portal-identity,
html[data-kst-dimension="social"] .kst-portal-identity {
  display: grid !important;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 0.15rem 1rem;
  max-width: 1180px;
  margin: 0 auto 1rem !important;
  text-align: left !important;
  scroll-margin-top: 88px;
}

html[data-kst-dimension="ingenieria"] .kst-portal-identity > div:first-child,
html[data-kst-dimension="social"] .kst-portal-identity > div:first-child {
  grid-row: 1 / 3;
  width: 92px;
  min-height: 70px;
  margin: 0 !important;
  padding: 0.5rem !important;
}

html[data-kst-dimension="ingenieria"] .kst-portal-identity > div:first-child img,
html[data-kst-dimension="social"] .kst-portal-identity > div:first-child img {
  width: 72px !important;
  height: auto !important;
  max-height: 48px !important;
  object-fit: contain !important;
}

html[data-kst-dimension="ingenieria"] .kst-portal-identity h1,
html[data-kst-dimension="social"] .kst-portal-identity h1 {
  margin: 0 !important;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem) !important;
  text-align: left !important;
}

html[data-kst-dimension="ingenieria"] .kst-portal-identity > p,
html[data-kst-dimension="social"] .kst-portal-identity > p {
  margin: 0 !important;
  font-size: clamp(0.52rem, 0.9vw, 0.72rem) !important;
  letter-spacing: 0.16em !important;
  line-height: 1.45 !important;
  text-align: left !important;
}

html[data-kst-dimension="ingenieria"] .kst-preview-safety,
html[data-kst-dimension="social"] .kst-preview-safety,
html[data-kst-dimension="ingenieria"] .kst-selector-copy,
html[data-kst-dimension="social"] .kst-selector-copy {
  display: none;
}

html[data-kst-dimension="ingenieria"] .kst-trinity-selector,
html[data-kst-dimension="social"] .kst-trinity-selector {
  padding-block: 0.4rem;
}

html[data-kst-dimension="ingenieria"] .kst-selector-heading,
html[data-kst-dimension="social"] .kst-selector-heading {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  z-index: 4;
  margin: 0;
}

html[data-kst-dimension="ingenieria"] .kst-coradi-inline,
html[data-kst-dimension="social"] .kst-coradi-inline {
  width: 44px;
  min-height: 44px;
  justify-content: center;
  padding: 0;
}

html[data-kst-dimension="ingenieria"] .kst-coradi-inline > span:last-child,
html[data-kst-dimension="social"] .kst-coradi-inline > span:last-child {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

[data-kst-native-coradi-preview="simulated"] .kst-coradi-simulation {
  margin: 0.55rem 0.75rem 0;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(216, 184, 106, 0.28);
  border-radius: 999px;
  color: var(--kst-gold);
  background: rgba(216, 184, 106, 0.06);
  font-family: "Montserrat", sans-serif;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-align: center;
}

.kst-coradi-context {
  position: fixed;
  right: 1rem;
  bottom: 7rem;
  z-index: 80;
  width: min(370px, calc(100vw - 2rem));
  padding: 1.5rem;
  border: 1px solid rgba(216, 184, 106, 0.58);
  background: linear-gradient(150deg, rgba(7, 16, 33, 0.98), rgba(35, 17, 52, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.58);
}

.kst-coradi-context[hidden] {
  display: none !important;
}

.kst-coradi-context h2 {
  font-size: 1.7rem;
  line-height: 1.1;
}

.kst-coradi-context > p:not(.kst-kicker) {
  color: rgba(244, 237, 218, 0.69);
  font-size: 0.78rem;
  line-height: 1.65;
}

.kst-coradi-limit {
  padding-top: 0.8rem;
  border-top: 1px solid rgba(216, 184, 106, 0.18);
}

.kst-coradi-close {
  min-width: 44px;
  min-height: 44px;
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  color: var(--kst-gold);
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 920px) {
  .kst-selector-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .kst-orientation {
    grid-template-columns: 1fr;
  }

  .kst-panel-hero,
  .kst-panel-hero-engineering,
  .kst-panel-hero-social,
  .kst-social-action {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .kst-panel-hero img {
    max-width: 480px;
    margin: 0 auto;
  }

  .kst-flow {
    grid-template-columns: 1fr;
  }

  .kst-flow i {
    justify-self: center;
    transform: rotate(90deg);
  }
}

@media (max-width: 720px) {
  .kst-preview-safety {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
  }

  .kst-trinity-selector {
    padding: 0.7rem 0.5rem 0.9rem;
  }

  .kst-selector-heading {
    display: none;
  }

  .kst-selector-heading > div {
    display: none;
  }

  .kst-coradi-inline {
    width: 100%;
    justify-content: center;
    padding-block: 0.45rem;
  }

  .kst-trinity-stage {
    min-height: 372px;
    padding: 0 0 4.5rem;
  }

  .kst-trinity-orbit {
    width: min(76vw, 300px);
    min-width: 0;
  }

  .kst-trinity-node {
    width: clamp(86px, 24vw, 96px);
    height: clamp(86px, 24vw, 96px);
    padding: 0.35rem;
    font-size: clamp(0.54rem, 2.15vw, 0.64rem);
    letter-spacing: 0;
  }

  .kst-trinity-node span {
    font-size: clamp(1.25rem, 5vw, 1.55rem);
  }

  .kst-trinity-node small {
    display: none;
  }

  .kst-content-grid,
  .kst-architecture-triad,
  .kst-sovereignty-test ol {
    grid-template-columns: 1fr;
  }

  .kst-dimension-panel,
  .kst-network {
    width: min(100% - 1.25rem, 1180px);
  }

  .kst-dimension-panel {
    padding-top: 1.5rem;
  }

  .kst-panel-hero {
    min-height: 0;
    padding: 1.15rem;
    gap: 1.2rem;
  }

  .kst-panel-hero img {
    height: auto;
    max-height: 200px;
  }

  .kst-panel-hero-engineering img {
    width: min(72%, 180px);
    max-height: 112px;
  }

  .kst-panel-hero h2 {
    font-size: clamp(1.8rem, 8.5vw, 2.7rem);
  }

  .kst-panel-hero > div > p:last-child {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    line-height: 1.55;
  }

  .kst-statement {
    margin: 2.4rem auto;
  }

  .kst-practice {
    padding: 1.15rem;
  }

  .kst-practice-steps li {
    grid-template-columns: 2.3rem 1fr;
    gap: 0.7rem;
  }

  .kst-practice-steps li > span {
    font-size: 1.5rem;
  }

  .kst-practice-logo {
    width: 116px;
    min-height: 72px;
  }

  .kst-practice-logo img {
    width: 88px;
    max-height: 56px;
  }

  .kst-source-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .kst-source-actions a {
    width: 100%;
  }

  button[aria-label="Abrir Coradí, acompañante KADISTU"],
  button[aria-label="Abrir Cuaderno de Bitácora en Totem"],
  button[aria-label="Un nuevo Paradigma para la Humanidad"] {
    min-width: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  button[aria-label="Abrir Coradí, acompañante KADISTU"] img,
  button[aria-label="Abrir Cuaderno de Bitácora en Totem"] img,
  button[aria-label="Un nuevo Paradigma para la Humanidad"] img {
    inline-size: 30px !important;
    block-size: 30px !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    flex: 0 0 30px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
  }

  button[aria-label="Abrir Coradí, acompañante KADISTU"] img {
    inline-size: auto !important;
    block-size: 22px !important;
    width: auto !important;
    height: 22px !important;
    min-width: 0 !important;
    min-height: 22px !important;
    max-width: 30px !important;
    max-height: 22px !important;
    flex: 0 1 auto !important;
    aspect-ratio: auto !important;
  }

  .kst-panel-actions {
    display: grid;
  }

  .kst-panel-actions button {
    width: 100%;
  }

  .kst-network-toggle {
    min-height: 72px;
  }

  html[data-kst-dimension="ingenieria"] .kst-portal-identity,
  html[data-kst-dimension="social"] .kst-portal-identity {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0.1rem 0.7rem;
  }

  html[data-kst-dimension="ingenieria"] .kst-portal-identity > div:first-child,
  html[data-kst-dimension="social"] .kst-portal-identity > div:first-child {
    width: 64px;
    min-height: 54px;
  }

  html[data-kst-dimension="ingenieria"] .kst-portal-identity > div:first-child img,
  html[data-kst-dimension="social"] .kst-portal-identity > div:first-child img {
    width: 48px !important;
    max-height: 34px !important;
  }

  html[data-kst-dimension="ingenieria"] .kst-portal-identity h1,
  html[data-kst-dimension="social"] .kst-portal-identity h1 {
    font-size: 1rem !important;
  }

  html[data-kst-dimension="ingenieria"] .kst-portal-identity > p,
  html[data-kst-dimension="social"] .kst-portal-identity > p {
    font-size: 0.48rem !important;
    letter-spacing: 0.08em !important;
  }

  html[data-kst-dimension="ingenieria"] .kst-coradi-inline,
  html[data-kst-dimension="social"] .kst-coradi-inline {
    display: none;
  }

  html[data-kst-dimension="ingenieria"] .kst-selector-heading,
  html[data-kst-dimension="social"] .kst-selector-heading {
    margin: 0;
  }

  .kst-coradi-context {
    right: 0.625rem;
    bottom: 6.5rem;
    width: calc(100vw - 1.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-kst-preview="shuttle-trinity-v7"] {
    scroll-behavior: auto;
  }

  .kst-preview-shell *,
  .kst-coradi-context * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
