/* =========================================================
   KLEOS INSIGHT™ — KIP-001 · Diagnóstico de Percepción
   Sistema visual alineado a KLEOS Digital Studio

   Obsidiana #050505 · Oro KLEOS #C5A059 · Oro Light #E5C383
   Texto #F5F5F5
   Playfair Display (titulares) · Inter (descriptivo)
   JetBrains Mono (labels, métricas, datos)
   ========================================================= */

:root {
  --obsidian: #050505;
  --obsidian-card: #0B0B0C;
  --gold: #C5A059;
  --gold-light: #E5C383;
  --gold-15: rgba(197, 160, 89, 0.15);
  --gold-07: rgba(197, 160, 89, 0.07);
  --text: #F5F5F5;
  --text-60: rgba(245, 245, 245, 0.6);
  --text-40: rgba(245, 245, 245, 0.4);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  background: var(--obsidian);
  color: var(--text);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grano editorial sutil — generado inline, sin recursos externos */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

::selection { background: rgba(197, 160, 89, 0.3); color: #fff; }

:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

.mono { font-family: var(--mono); }
.sans { font-family: var(--sans); font-weight: 300; }
.gold { color: var(--gold); }
.center { text-align: center; }
em { font-style: italic; }
sup { font-size: 0.45em; color: var(--gold); }

/* ---------- Pantallas ---------- */
.screen { display: none; min-height: 100vh; animation: screenIn 0.7s var(--ease); }
.screen.is-active { display: block; }
@keyframes screenIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Botones ---------- */
.btn-gold {
  position: relative;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--obsidian);
  background: var(--gold);
  border: none;
  border-radius: 999px;
  padding: 1.15rem 2.8rem;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn-gold::after {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(197,160,89,0.22); }
.btn-gold:hover::after { left: 125%; }

.btn-ghost {
  background: none;
  border: none;
  color: var(--text-40);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  padding: 0.6rem 0;
  transition: color 0.3s;
}
.btn-ghost:hover { color: var(--gold); }
.btn-ghost:disabled { opacity: 0.25; cursor: default; }
.btn-ghost:disabled:hover { color: var(--text-40); }

.micro { font-size: 0.6rem; letter-spacing: 0.2em; color: var(--text-40); text-transform: uppercase; }

/* ---------- Topbar / Footer ---------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
}
.brand { font-size: 0.76rem; letter-spacing: 0.35em; color: var(--gold); font-weight: 500; }
.protocol-seal { font-size: 0.58rem; letter-spacing: 0.28em; color: var(--text-40); }

.footer {
  display: flex;
  justify-content: space-between;
  padding: 2.5rem clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--gold-15);
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  color: var(--text-40);
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ---------- Hero (estilo KLEOS: masivo, izquierda, blanco + oro itálica) ---------- */
.hero {
  min-height: calc(100vh - 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1060px;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}
.hero-kicker { font-size: 0.62rem; letter-spacing: 0.45em; color: var(--gold); margin-bottom: 3rem; }
.hero-title {
  font-size: clamp(3rem, 9.5vw, 7.5rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.hero-title .line-white { color: var(--text); }
.hero-title .line-gold,
.statement .line-gold {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}
.hero-sub {
  margin-top: 3rem;
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-60);
  max-width: 640px;
}
.hero-cta { margin-top: 3.2rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem; }

/* ---------- Watermark fantasma (estilo KLEOS) ---------- */
.watermark {
  position: absolute;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(12rem, 32vw, 28rem);
  line-height: 1;
  color: rgba(245, 245, 245, 0.022);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  right: -6%;
  bottom: 4%;
  z-index: 0;
}
.watermark.wm-right { right: -10%; top: 50%; transform: translateY(-50%); bottom: auto; }
.watermark.wm-center { left: 50%; top: 50%; transform: translate(-50%, -50%); right: auto; bottom: auto; }

.scroll-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 70px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollPulse 2.8s ease-in-out infinite;
}
@keyframes scrollPulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

/* ---------- Secciones landing ---------- */
.section {
  max-width: 1060px;
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 5vw, 3rem);
}
.section-label {
  font-size: 0.62rem;
  letter-spacing: 0.45em;
  color: var(--gold);
  margin-bottom: 3.2rem;
}
.section-label.center { text-align: center; }

/* Label con línea extendida (estilo KLEOS: "LA PARADOJA ———") */
.section-label.lined {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.section-label.lined::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--gold-15), transparent);
}

/* Statements masivos (estilo KLEOS) */
.statement-section { position: relative; overflow: hidden; }
.statement-section > *:not(.watermark) { position: relative; z-index: 1; }

.statement {
  font-size: clamp(2.4rem, 6.5vw, 5.2rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.statement .line-white { color: var(--text); }
.statement-sub {
  margin-top: 2.6rem;
  font-size: 0.98rem;
  line-height: 1.9;
  color: var(--text-60);
  max-width: 620px;
}

/* Modelo: dimensiones */
.dim-list { border-top: 1px solid var(--gold-15); }
.dim-row {
  display: grid;
  grid-template-columns: 70px 240px 1fr;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--gold-07);
  transition: border-color 0.5s var(--ease);
}
.dim-row:hover { border-bottom-color: var(--gold-15); }
.dim-code { font-size: 0.68rem; letter-spacing: 0.25em; color: var(--gold); }
.dim-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.dim-desc { font-size: 0.9rem; line-height: 1.7; color: var(--text-60); }

/* Fases */
.steps { display: flex; align-items: stretch; gap: 1.5rem; }
.step { flex: 1; }
.step-num { display: block; font-size: 0.62rem; color: var(--gold); letter-spacing: 0.3em; margin-bottom: 1.3rem; }
.step h3 { font-size: 1.35rem; font-weight: 500; margin-bottom: 0.9rem; }
.step p { font-size: 0.9rem; line-height: 1.8; color: var(--text-60); }
.step-line { width: 1px; background: linear-gradient(to bottom, transparent, var(--gold-15), transparent); }

/* CTA final */
.final-cta { text-align: left; }
.final-cta .statement { margin-bottom: 3rem; font-size: clamp(2rem, 5.5vw, 4.4rem); }

/* ---------- Reveal por scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Fade + Blur Reveal (hero · secuencia de 1.5s) ---------- */
.blur-reveal {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(14px);
  animation: blurReveal 0.9s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes blurReveal {
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

/* ---------- Cielo estrellado dorado (canvas global, estilo KLEOS) ---------- */
.bg-stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* El contenido siempre por encima del cielo */
.screen { position: relative; z-index: 1; }

/* =========================================================
   PANTALLA 2 · PROTOCOLO
   ========================================================= */
#screen-protocol.is-active { display: flex; flex-direction: column; min-height: 100vh; }

.quiz-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem clamp(1.5rem, 5vw, 4rem) 1.4rem;
}
.quiz-meta { display: flex; align-items: center; gap: 1.6rem; }
.dim-tag { font-size: 0.58rem; letter-spacing: 0.28em; color: var(--text-40); }
.quiz-counter { font-size: 0.74rem; letter-spacing: 0.3em; color: var(--gold); }

/* Indicador del protocolo: opacity pulse muy suave, sin spinner */
.protocol-live {
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  color: var(--gold);
  animation: livePulse 3.2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}

.progress-track { height: 1px; background: var(--gold-15); margin: 0 clamp(1.5rem, 5vw, 4rem); }
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(197,160,89,0.5);
  transition: width 0.6s var(--ease);
}

.quiz-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem clamp(1.5rem, 5vw, 4rem);
}

/* Cambio de pregunta: Fade + Blur — "el protocolo avanza" */
.quiz-card {
  width: 100%;
  max-width: 720px;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), filter 0.5s var(--ease);
}
.quiz-card.leaving { opacity: 0; transform: translateY(-16px); filter: blur(8px); }
.quiz-card.entering { opacity: 0; transform: translateY(16px); filter: blur(8px); transition: none; }

.q-category { font-size: 0.6rem; letter-spacing: 0.42em; color: var(--gold); margin-bottom: 1.6rem; }
.q-text { font-size: clamp(1.45rem, 3.2vw, 2.2rem); font-weight: 500; line-height: 1.35; margin-bottom: 1rem; }
.q-hint { font-size: 0.85rem; line-height: 1.7; color: var(--text-40); margin-bottom: 2.2rem; min-height: 0; }
.q-hint:empty { margin-bottom: 1.6rem; }

.q-body { display: flex; flex-direction: column; gap: 0.8rem; }

/* Opciones cerradas */
.q-option {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.98rem;
  text-align: left;
  color: var(--text);
  background: none;
  border: 1px solid var(--gold-15);
  padding: 1.15rem 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.q-option .marker { font-family: var(--mono); font-size: 0.65rem; color: var(--gold); opacity: 0; transition: opacity 0.3s; }
.q-option:hover { border-color: var(--gold); background: rgba(197, 160, 89, 0.05); transform: translateX(5px); }
.q-option:hover .marker { opacity: 0.5; }
.q-option.selected { border-color: var(--gold); background: var(--gold-07); }
.q-option.selected .marker { opacity: 1; }

/* Entradas abiertas */
.q-input, .q-textarea {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--text);
  background: var(--obsidian-card);
  border: 1px solid var(--gold-15);
  padding: 1.2rem 1.4rem;
  width: 100%;
  outline: none;
  transition: border-color 0.3s var(--ease);
  caret-color: var(--gold);
}
.q-textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.q-input:focus, .q-textarea:focus { border-color: var(--gold); }
.q-input::placeholder, .q-textarea::placeholder { color: var(--text-40); }

.q-submit-row { display: flex; align-items: center; gap: 1.4rem; margin-top: 0.6rem; }
.q-charcount { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.15em; color: var(--text-40); }

.quiz-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem) 2.2rem;
  flex-wrap: wrap;
}

/* =========================================================
   PANTALLA 3 · ANÁLISIS
   ========================================================= */
#screen-analysis.is-active { display: flex; align-items: center; justify-content: center; }

.processing-center { text-align: center; padding: 0 1.5rem; }
.ring-wrap { position: relative; width: 140px; height: 140px; margin: 0 auto 2.8rem; }
.ring { width: 100%; height: 100%; animation: ringSpin 3.4s linear infinite; }
@keyframes ringSpin { to { transform: rotate(360deg); } }
.ring-bg { fill: none; stroke: var(--gold-15); stroke-width: 1; }
.ring-arc {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 90 250;
  animation: arcPulse 2.4s ease-in-out infinite;
}
@keyframes arcPulse {
  0%, 100% { stroke-dasharray: 60 280; opacity: 0.7; }
  50% { stroke-dasharray: 150 190; opacity: 1; }
}
.ring-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--gold);
}

.processing-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--text);
  margin-bottom: 0.9rem;
  animation: livePulse 3.2s ease-in-out infinite;
}
.processing-protocol { font-size: 0.58rem; letter-spacing: 0.4em; color: var(--text-40); margin-bottom: 1.1rem; }
.processing-msg {
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  color: var(--text-60);
  text-transform: uppercase;
  min-height: 1.4em;
  transition: opacity 0.35s ease;
}
.processing-msg.fading { opacity: 0; }

.processing-bar { width: 220px; height: 1px; background: var(--gold-15); margin: 2.6rem auto 0; }
.processing-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 0.8s var(--ease);
  box-shadow: 0 0 10px rgba(197,160,89,0.5);
}

/* =========================================================
   PANTALLA 4 · LECTURA
   ========================================================= */
.result-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem clamp(1.5rem, 5vw, 3rem) 6rem;
}
.result-block { margin-bottom: 4.5rem; }

.r-in { opacity: 0; transform: translateY(26px); }
.is-active .r-in { animation: blockIn 0.9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes blockIn { to { opacity: 1; transform: translateY(0); } }

/* Índice */
.index-wrap { position: relative; width: 230px; height: 230px; margin: 0 auto; }
.index-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.idx-bg { fill: none; stroke: var(--gold-15); stroke-width: 1; }
.idx-arc {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 565.48;
  stroke-dashoffset: 565.48;
  transition: stroke-dashoffset 1.5s var(--ease);
}
.index-number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.6rem;
  font-weight: 600;
  color: var(--text);
}
.index-level {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-transform: uppercase;
  border: 1px solid var(--gold-15);
  display: table;
  margin-left: auto;
  margin-right: auto;
  padding: 0.85rem 1.7rem;
}

.block-label { font-size: 0.6rem; letter-spacing: 0.38em; color: var(--gold); margin-bottom: 1.6rem; }

/* Tablero de dimensiones */
.dims-board { border-top: 1px solid var(--gold-15); }
.dim-result {
  display: grid;
  grid-template-columns: 44px 1fr 150px 64px;
  align-items: center;
  gap: 1.2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--gold-07);
}
.dim-result .code { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em; color: var(--gold); }
.dim-result .name { font-family: var(--serif); font-size: 1.08rem; font-weight: 500; }
.dim-result .bar { height: 1px; background: var(--gold-15); position: relative; }
.dim-result .bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(197,160,89,0.45);
  transition: width 1s var(--ease);
}
.dim-result .score { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-align: right; color: var(--text); }

.dim-result.locked { transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease); cursor: default; }
.dim-result.locked .name { color: var(--text-40); transition: color 0.3s var(--ease); }
.dim-result.locked .bar-fill { background: var(--text-40); box-shadow: none; opacity: 0.5; }
.dim-result.locked .score { color: var(--text-40); font-size: 0.62rem; letter-spacing: 0.22em; }
.dim-result.locked .lock-mark { font-size: 0.7rem; color: var(--gold); opacity: 0.45; margin-left: 0.5rem; transition: opacity 0.3s var(--ease); }

/* Hover: glow dorado muy sutil — curiosidad, no frustración */
.dim-result.locked:hover {
  background: var(--gold-07);
  box-shadow: inset 0 0 30px rgba(197, 160, 89, 0.05);
}
.dim-result.locked:hover .name { color: var(--text-60); }
.dim-result.locked:hover .lock-mark { opacity: 1; }

.dims-note { margin-top: 1.4rem; font-size: 0.56rem; letter-spacing: 0.25em; color: var(--text-40); }

/* Percepción detectada */
.perception {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
}

/* Observación crítica */
.truth-box { border: 1px solid var(--gold-15); background: var(--obsidian-card); padding: 2.2rem 2rem 1.4rem; }
.truth-visible { font-size: 1.15rem; line-height: 1.75; margin-bottom: 1.2rem; }

.locked-text { position: relative; overflow: hidden; }
.locked-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-60);
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
}
.lock-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,5,5,0.1), rgba(5,5,5,0.92));
}
.lock-veil.deep { background: linear-gradient(to bottom, rgba(5,5,5,0.35), rgba(5,5,5,0.97)); }

/* Lectura bloqueada */
.locked-block { position: relative; border: 1px solid var(--gold-15); background: var(--obsidian-card); padding: 2.2rem 2rem; }
.locked-text.full p { filter: blur(8px); }
.lock-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.64rem;
  letter-spacing: 0.42em;
  color: var(--gold);
}

/* CTA desbloqueo — fade in tardío: primero el valor, luego la acción */
.unlock-cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.2rem; margin-top: 5.5rem; }
.is-active .unlock-cta.r-in { animation-delay: 2.4s; }

/* =========================================================
   PIEZA · ACCESO RESERVADO (modal)
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal.is-open { display: flex; }
.modal-veil {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(6px);
  animation: veilIn 0.4s var(--ease);
}
@keyframes veilIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  position: relative;
  max-width: 520px;
  width: 100%;
  background: var(--obsidian-card);
  border: 1px solid var(--gold-15);
  padding: 3rem 2.6rem 2.6rem;
  animation: cardIn 0.55s var(--ease);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-card::before {
  content: "";
  position: absolute;
  top: 0; left: 2.6rem; right: 2.6rem;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.modal-seal { font-size: 0.58rem; letter-spacing: 0.4em; color: var(--gold); margin-bottom: 1.8rem; }
.modal-title { font-size: 1.9rem; font-weight: 500; margin-bottom: 1.4rem; }
.modal-body { font-size: 0.92rem; line-height: 1.85; color: var(--text-60); margin-bottom: 1.1rem; }
.modal-actions { margin-top: 2rem; display: flex; justify-content: flex-end; }

/* Micro-fade del contador de entradas */
.quiz-counter span { display: inline-block; transition: opacity 0.25s ease; }
.quiz-counter span.tick { opacity: 0; }
/* =========================================================
   CHECKOUT · KIP-001/C
   ========================================================= */
.modal-price-row {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  margin: 1.8rem 0 0.4rem;
  flex-wrap: wrap;
}
.modal-price {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--gold);
}
.modal-actions.stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 0.9rem;
  text-align: center;
}
.modal-actions.stacked .btn-gold {
  display: block;
  text-align: center;
  text-decoration: none;
}

.modal-divider {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 2.2rem 0 1.4rem;
  font-size: 0.56rem;
  letter-spacing: 0.35em;
  color: var(--text-40);
}
.modal-divider::before,
.modal-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gold-15);
}

.unlock-form { display: flex; gap: 0.8rem; }
.unlock-form .q-input {
  flex: 1;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 1rem 1.2rem;
}
.unlock-form .btn-gold { padding: 1rem 1.8rem; white-space: nowrap; }

.unlock-status {
  margin-top: 1rem;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  min-height: 1.2em;
  color: var(--text-40);
}
.unlock-status.error { color: #B0604D; }
.unlock-status.ok { color: var(--gold); }
.unlock-status.loading { color: var(--text-60); animation: livePulse 1.6s ease-in-out infinite; }

/* ---------- Lectura completa (post-desbloqueo) ---------- */
.full-reading { animation: blockIn 0.9s var(--ease); }

.full-divider {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin: 4rem 0 4.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-align: center;
}
.full-divider::before,
.full-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.full-dims { border-top: 1px solid var(--gold-15); }
.full-dim { padding: 1.6rem 0; border-bottom: 1px solid var(--gold-07); }
.full-dim-name { font-size: 0.62rem; letter-spacing: 0.3em; color: var(--gold); margin-bottom: 0.8rem; }
.full-dim p.sans { font-size: 0.98rem; line-height: 1.85; color: var(--text-60); }

.sequence-list { border-top: 1px solid var(--gold-15); }
.sequence-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.4rem;
  align-items: baseline;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--gold-07);
}
.sequence-item .num {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--gold);
}
.sequence-item p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.8;
}

.error-box {
  border: 1px solid rgba(176, 96, 77, 0.35);
  background: var(--obsidian-card);
  padding: 2rem;
}
.error-box p { font-size: 0.98rem; line-height: 1.85; color: var(--text-60); }
/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 820px) {
  .topbar .protocol-seal { display: none; }
  .steps { flex-direction: column; gap: 2.5rem; }
  .step-line { width: 40%; height: 1px; background: linear-gradient(to right, var(--gold-15), transparent); }
  .dim-row { grid-template-columns: 44px 1fr; }
  .dim-row .dim-desc { grid-column: 2; }
  .dim-result { grid-template-columns: 36px 1fr 64px; }
  .dim-result .bar { grid-column: 1 / -1; order: 4; }
  .index-wrap { width: 190px; height: 190px; }
  .index-number { font-size: 3.6rem; }
  .footer { flex-direction: column; }
  .quiz-bottom { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}