/* Identidad de la demo: negro volcánico, cobre y crema.
   La paleta es una propuesta de diseño a partir del perfil público del local. */

:root {
  --bg: #0b0908;
  --bg-deep: #080605;
  --surface: #19120e;
  --surface-2: #211710;
  --ink: #f6ecdf;
  --muted: #c7b5a2;
  --muted-2: #9d8a78;
  --copper: #d89a68;
  --copper-strong: #efb47f;
  --copper-ink: #1b0d06;
  --line: rgba(246, 236, 223, 0.14);
  --line-strong: rgba(246, 236, 223, 0.28);
  --focus: #ffd8a4;
  --radius: 20px;
  --radius-sm: 13px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Una entrada breve por sesión; solo opacidad y escala, sin audio. */
.brand-intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: #0b0908;
  pointer-events: none;
  animation: intro-exit 1100ms ease both;
}

.brand-intro__glow {
  display: grid;
  place-items: center;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 154, 104, 0.16), transparent 70%);
  animation: intro-arrive 750ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.brand-intro img {
  display: block;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(216, 154, 104, 0.12);
}

@keyframes intro-arrive {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes intro-exit {
  0%, 65% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-intro { display: none; animation: none; }
  .brand-intro__glow { animation: none; }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg-deep);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  overflow-x: clip;
  background:
    radial-gradient(circle at 88% -8%, rgba(157, 70, 41, 0.24), transparent 27rem),
    radial-gradient(circle at -10% 32%, rgba(103, 56, 33, 0.14), transparent 24rem),
    linear-gradient(180deg, #0e0b09 0%, var(--bg) 48%, var(--bg-deep) 100%);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

[hidden] {
  display: none !important;
}

button,
input,
summary {
  font: inherit;
}

button {
  color: inherit;
}

button,
summary,
label {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 700;
}

h2,
h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

p {
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
}

::selection {
  background: var(--copper);
  color: var(--copper-ink);
}

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

.app-frame {
  display: flex;
  flex-direction: column;
  width: min(100% - 1.5rem, 460px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding-top: max(0.55rem, env(safe-area-inset-top));
  padding-bottom: max(1.4rem, env(safe-area-inset-bottom));
}

.skip-link {
  position: fixed;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 100;
  transform: translateY(-200%);
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: var(--copper);
  color: var(--copper-ink);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Encabezado */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 64px;
  padding: 0.25rem 0 0.7rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.brand__logo {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(216, 154, 104, 0.45);
  border-radius: 50%;
  background: #000;
  box-shadow: 0 0 0 4px rgba(216, 154, 104, 0.07);
  object-fit: cover;
}

.brand__copy {
  display: block;
  min-width: 0;
}

.brand__name {
  display: block;
  overflow: hidden;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.demo-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-2);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding-top: 1.05rem;
  outline: none;
}

#app {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

/* Tipografía de apoyo */

.eyebrow {
  margin-bottom: 0.5rem;
  color: var(--copper);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fineprint {
  margin: 0.85rem 0 0;
  color: var(--muted-2);
  font-size: 0.8rem;
  line-height: 1.45;
}

/* Portada */

.home-screen {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding-bottom: 0.5rem;
}

.hero {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(1rem, 6vh, 3rem) 0;
}

.hero::after {
  content: "";
  position: absolute;
  top: -1.5rem;
  right: -3.5rem;
  width: 12rem;
  height: 12rem;
  border: 1px solid rgba(216, 154, 104, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 2.8rem rgba(216, 154, 104, 0.022),
    0 0 0 5.5rem rgba(216, 154, 104, 0.014);
  pointer-events: none;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  color: var(--copper);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 1.55rem;
  height: 1px;
  background: var(--copper);
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 0.8rem;
  font-size: clamp(2.15rem, 9.2vw, 3.25rem);
  letter-spacing: -0.055em;
  line-height: 0.99;
}

.hero-line {
  display: block;
}

.hero__copy {
  position: relative;
  z-index: 1;
  max-width: 32ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.01rem;
  line-height: 1.5;
}

.home-actions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.45rem;
  margin-top: clamp(1.35rem, 5vh, 2.6rem);
}

.home-actions .text-btn {
  justify-self: center;
  margin-top: 0.1rem;
}

.menu-title {
  margin: 0 0 0.7rem;
  color: var(--muted-2);
  font-family: inherit;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.game-menu {
  display: grid;
  gap: 0.8rem;
}

.experience {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.65rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 46%),
    var(--surface);
  box-shadow: var(--shadow);
}

.experience--mystery {
  border-top-color: rgba(216, 154, 104, 0.6);
}

.experience__number {
  padding-top: 0.1rem;
  color: var(--copper);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1;
}

.experience__body {
  min-width: 0;
}

.experience h3 {
  margin: 0 0 0.3rem;
  font-size: 1.36rem;
  line-height: 1.1;
}

.experience p:not(.eyebrow):not(.case-tag):not(.card-status) {
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.case-tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  margin: 0.2rem 0 0.35rem;
  padding: 0.22rem 0.5rem;
  border: 1px solid rgba(216, 154, 104, 0.3);
  border-radius: 999px;
  color: var(--copper);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.card-status {
  margin: 0 0 0.65rem;
  color: var(--muted-2);
  font-size: 0.74rem;
  line-height: 1.35;
}

.card-actions {
  display: grid;
  gap: 0.45rem;
}

/* Controles */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 0.95rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    transform 80ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  border-color: var(--copper);
  background: var(--copper);
  color: var(--copper-ink);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.4rem 0.25rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: underline;
  text-decoration-color: rgba(216, 154, 104, 0.55);
  text-underline-offset: 4px;
  cursor: pointer;
}

.demo-note {
  margin: 1.1rem 0 0;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.74rem;
  line-height: 1.5;
  text-align: center;
}

.demo-note strong {
  color: var(--muted);
  font-weight: 700;
}

.storage-note {
  margin: 0.65rem 0 0;
  color: var(--muted-2);
  font-size: 0.76rem;
  text-align: center;
}

/* Misterio */

.screen {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding-bottom: 1.5rem;
}

.case-heading {
  margin-bottom: 1rem;
}

.case-topline,
.ice-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
  color: var(--muted-2);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.case-label {
  color: var(--copper);
}

.case-heading h1 {
  max-width: 15ch;
  margin: 0 0 0.45rem;
  font-size: clamp(2.05rem, 8.4vw, 2.8rem);
  line-height: 1.02;
}

.case-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.reading {
  margin: 1rem 0;
  padding: 0.95rem 1rem;
  border-left: 2px solid var(--copper);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(216, 154, 104, 0.075);
}

.reading__label {
  margin-bottom: 0.45rem;
  color: var(--copper);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.reading p:last-child {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
}

.question {
  margin: 1rem 0 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.question span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted-2);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.question p {
  margin: 0;
  font-size: 1.09rem;
  font-weight: 750;
  line-height: 1.4;
}

.section-head {
  margin: 1rem 0 0.8rem;
}

.section-head h2,
.decision-block h2 {
  margin: 0 0 0.25rem;
  font-size: 1.58rem;
}

.section-head p,
.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.version-list {
  display: grid;
  gap: 0.6rem;
}

.version-card {
  padding: 0.88rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.028);
}

.version-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.4rem;
}

.version-card__head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.version-card__head span {
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 0.7rem;
  line-height: 1.3;
  text-align: right;
}

.version-card p {
  margin: 0;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.55;
}

.table-prompt {
  margin: 0.9rem 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(216, 154, 104, 0.3);
  border-radius: 10px;
  background: rgba(216, 154, 104, 0.065);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.recap {
  margin: 0.75rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.8rem;
  background: rgba(255, 255, 255, 0.018);
}

.recap summary {
  min-height: 46px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.recap summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--copper);
  font-size: 0.9rem;
  line-height: 1;
}

.recap[open] summary::before {
  content: "−";
}

.recap p,
.recap-versions p {
  margin: 0.15rem 0 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.recap-versions strong {
  color: var(--ink);
}

.clue-list {
  display: grid;
  gap: 0.6rem;
}

.clue {
  padding: 0.78rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
}

.clue:focus {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.clue.is-revealed {
  border-color: rgba(216, 154, 104, 0.38);
  background: rgba(216, 154, 104, 0.05);
}

.clue__head {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
}

.clue__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--copper);
  color: var(--copper-ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.clue__head h3 {
  margin: 0;
  font-family: inherit;
  font-size: 0.94rem;
  letter-spacing: 0;
}

.clue__state {
  color: var(--copper);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.clue__state--locked {
  color: var(--muted-2);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  text-align: right;
}

.clue__button {
  min-height: 44px;
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(216, 154, 104, 0.45);
  border-radius: 999px;
  background: transparent;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.clue__text {
  margin: 0.7rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.55;
}

.clue__locked {
  margin: 0.6rem 0 0;
  color: var(--muted-2);
  font-size: 0.82rem;
}

.progress-note {
  margin: 0.65rem 0 0;
  color: var(--muted-2);
  font-size: 0.77rem;
  text-align: right;
}

.hint-wrap {
  margin-top: 0.55rem;
}

.hint {
  margin-top: 0.55rem;
  padding: 0.8rem;
  border: 1px dashed rgba(216, 154, 104, 0.42);
  border-radius: 11px;
  background: rgba(216, 154, 104, 0.055);
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
}

.hint:focus {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.hint__label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--copper);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hint p {
  margin: 0;
}

.decision-cta {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.decision-cta p {
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.recap-evidence {
  margin-top: 1.1rem;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.022);
}

.clue-recap {
  display: grid;
  gap: 0.5rem;
  margin: 0.3rem 0 0;
  padding: 0;
  list-style: none;
}

.clue-recap li {
  display: grid;
  grid-template-columns: 1.45rem minmax(0, 1fr);
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.45;
}

.clue-recap__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border: 1px solid rgba(216, 154, 104, 0.4);
  border-radius: 50%;
  color: var(--copper);
  font-size: 0.68rem;
  font-weight: 800;
}

.decision-block {
  margin-top: 1.1rem;
}

.answers {
  display: grid;
  gap: 0.55rem;
  margin: 0.8rem 0 0;
}

.option {
  position: relative;
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr) 1rem;
  align-items: center;
  gap: 0.55rem;
  min-height: 64px;
  padding: 0.78rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.option.is-selected {
  border-color: var(--copper);
  background: rgba(216, 154, 104, 0.085);
}

.option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.option:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.option__letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.option.is-selected .option__letter {
  border-color: var(--copper);
  background: var(--copper);
  color: var(--copper-ink);
}

.option__text {
  font-size: 0.94rem;
  line-height: 1.4;
}

.option__check {
  position: relative;
  width: 1.05rem;
  height: 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.option.is-selected .option__check {
  border-color: var(--copper);
  background: var(--copper);
}

.option.is-selected .option__check::after {
  content: "";
  position: absolute;
  inset: 0.27rem;
  border-radius: 50%;
  background: var(--copper-ink);
}

.selected-note {
  min-height: 1.45rem;
  margin: 0.65rem 0 0;
  color: var(--muted-2);
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Desenlace */

.result-head {
  margin-bottom: 0.95rem;
}

.result-head h1 {
  max-width: 13ch;
  margin-bottom: 0.4rem;
  font-size: clamp(2.15rem, 8.8vw, 2.95rem);
}

.result-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.answer-summary {
  display: grid;
  gap: 0.55rem;
  margin: 0.95rem 0;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
}

.answer-summary p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.answer-summary span {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--muted-2);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.solution {
  margin-top: 0.95rem;
  padding: 0.95rem;
  border: 1px solid rgba(216, 154, 104, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(216, 154, 104, 0.045);
}

.solution h2 {
  margin-bottom: 0.5rem;
  font-size: 1.45rem;
}

.solution p {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.55;
}

.solution h3 {
  margin: 1rem 0 0.5rem;
  color: var(--copper);
  font-family: inherit;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.connections {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.connections li {
  display: grid;
  grid-template-columns: 1.45rem minmax(0, 1fr);
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.connections__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: rgba(216, 154, 104, 0.16);
  color: var(--copper);
  font-size: 0.68rem;
  font-weight: 800;
}

.why-not {
  margin-top: 0.9rem;
  border-top: 1px solid var(--line);
  padding-top: 0.35rem;
}

.why-not summary {
  min-height: 44px;
  color: var(--copper);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.why-not summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 0.85rem;
  line-height: 1;
}

.why-not[open] summary::before {
  content: "−";
}

.why-not ul {
  margin: 0.25rem 0 0.65rem;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.why-not li {
  margin-bottom: 0.5rem;
}

.why-not strong {
  color: var(--ink);
}

.result-actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Romper el hielo */

.ice-screen {
  flex: 1 1 auto;
  padding-top: 0.25rem;
}

.ice-topline {
  margin-bottom: 0.85rem;
}

.ice-topline .eyebrow {
  margin: 0;
}

.ice-card {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1.05rem;
  border: 1px solid var(--line);
  border-top-color: rgba(216, 154, 104, 0.55);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.035), transparent 48%),
    var(--surface);
  box-shadow: var(--shadow);
}

.activity-copy {
  min-width: 0;
  margin: auto 0;
}

.ice-label {
  margin: 0 0 0.4rem;
  color: var(--copper);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ice-question {
  max-width: 24ch;
  margin: 0 0 0.9rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(1.55rem, 6.2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.ice-question:focus {
  outline: none;
}

.main h1:focus {
  outline: none;
}

.ice-help {
  margin-top: auto;
  margin-bottom: 0.65rem;
  color: var(--muted-2);
  font-size: 0.79rem;
  line-height: 1.4;
}

.ice-support {
  max-width: 32ch;
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.45;
}

.ice-actions {
  display: grid;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1rem;
}

.ice-actions .text-btn {
  margin-top: 0.1rem;
}

/* Elección de rama, actividades de rama y revelación */

.chooser-title {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(1.9rem, 7.6vw, 2.6rem);
}

.chooser-title:focus {
  outline: none;
}

.branch-choices {
  gap: 0.55rem;
}

.branch-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 92px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.045), transparent 52%),
    var(--surface-2);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.ice-question--plain {
  max-width: 30ch;
}

.branch-reveal {
  max-width: 30ch;
  margin: 0.15rem 0 0;
  padding: 0.75rem 0.85rem 0.8rem;
  border: 1px solid rgba(216, 154, 104, 0.34);
  border-radius: var(--radius-sm);
  background: rgba(216, 154, 104, 0.06);
}

.branch-reveal p {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
}

.ice-screen--end {
  justify-content: center;
  padding-top: 1.5rem;
}

.ice-screen--end h1 {
  max-width: 15ch;
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 9vw, 3rem);
}

.ice-screen--end .ice-actions {
  margin-top: 1.2rem;
  padding-top: 0;
}

.closing-lead {
  max-width: 30ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.5;
}

.ice-end-copy {
  max-width: 24ch;
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: 1.02rem;
}

/* Pie y avisos */

.site-footer {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.7rem;
  text-align: center;
}

.site-footer p {
  margin: 0 0 0.18rem;
}

.noscript {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 80;
  margin: 0;
  padding: 0.95rem;
  border-radius: 12px;
  background: var(--copper);
  color: var(--copper-ink);
  font-weight: 700;
}

/* Diálogo */

.dialog {
  width: min(100% - 1.4rem, 29rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  overflow: auto;
}

.dialog::backdrop {
  background: rgba(7, 5, 4, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.dialog__card {
  padding: 1.2rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.dialog__card h2 {
  margin-bottom: 0.55rem;
  font-size: 1.65rem;
}

.dialog__text {
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.dialog__choice {
  margin-bottom: 0.9rem;
  padding: 0.7rem;
  border-left: 2px solid var(--copper);
  border-radius: 0 9px 9px 0;
  background: rgba(216, 154, 104, 0.075);
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.45;
}

.dialog__actions {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

/* Ajustes para pantallas chicas */

@media (max-width: 350px) {
  .app-frame {
    width: min(100% - 1.05rem, 460px);
  }

  .brand {
    gap: 0.55rem;
  }

  .brand__logo {
    width: 48px;
    height: 48px;
  }

  .brand__name {
    font-size: 1.06rem;
  }

  .demo-pill {
    padding-right: 0.42rem;
    padding-left: 0.42rem;
    font-size: 0.56rem;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .experience {
    grid-template-columns: 1.7rem minmax(0, 1fr);
    gap: 0.45rem;
    padding: 0.9rem 0.8rem;
  }

  .experience__number {
    font-size: 1.15rem;
  }

  .experience h3 {
    font-size: 1.25rem;
  }

  .btn {
    padding-right: 0.7rem;
    padding-left: 0.7rem;
    font-size: 0.91rem;
  }

  .case-heading h1 {
    font-size: 2rem;
  }

  .clue__head {
    grid-template-columns: 1.7rem minmax(0, 1fr);
  }

  .clue__state,
  .clue__button {
    grid-column: 2;
    justify-self: start;
  }

  .clue__button {
    margin-top: 0.15rem;
  }

  .option {
    grid-template-columns: 1.7rem minmax(0, 1fr) 0.95rem;
    gap: 0.45rem;
    padding: 0.7rem;
  }

  .option__text {
    font-size: 0.9rem;
  }

  .ice-card {
    padding: 0.9rem;
  }

  .ice-question {
    font-size: 1.5rem;
  }

  .ice-question--plain {
    font-size: 1.22rem;
  }

  .branch-card {
    min-height: 82px;
    font-size: 1.3rem;
  }
}

@media (hover: hover) {
  .btn--primary:hover {
    background: var(--copper-strong);
    border-color: var(--copper-strong);
  }

  .btn--ghost:hover,
  .header-home:hover {
    border-color: var(--ink);
    background: rgba(255, 255, 255, 0.035);
  }

  .branch-card:hover {
    border-color: var(--copper);
    background:
      linear-gradient(150deg, rgba(216, 154, 104, 0.09), transparent 52%),
      var(--surface-2);
  }

  .text-btn:hover {
    color: var(--ink);
  }

  .clue__button:hover {
    background: rgba(216, 154, 104, 0.1);
  }

  .option:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
  }
}
