:root {
  color-scheme: dark;
  --bg: #061e1b;
  --panel: #0c2925;
  --raised: #12352f;
  --cream: #f6f0e4;
  --muted: #b6c8be;
  --gold: #d6b57a;
  --line: #315047;
  --good: #addbc3;
  --warn: #f0bf9f;
  --radius: 22px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  min-width: 280px;
  line-height: 1.6;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 6% 5%, #1c493c66, transparent 55%);
  z-index: -1;
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
a {
  color: var(--gold);
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  margin-bottom: 22px;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 20px;
}
h3 {
  font-size: 1.05rem;
  line-height: 1.4;
}
p {
  color: var(--muted);
  margin-bottom: 18px;
}
strong {
  color: var(--cream);
}
.topbar {
  max-width: 1180px;
  margin: auto;
  padding: 25px 36px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: Georgia, serif;
  font-size: 1.65rem;
  letter-spacing: 0.01em;
  color: var(--cream);
}
.wordmark span {
  color: var(--gold);
}
.top-meta {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.app-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 36px 50px;
}
.stepbar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 28px;
}
.stepbar i {
  height: 3px;
  flex: 1;
  border-radius: 3px;
  background: var(--line);
}
.stepbar i.done {
  background: var(--gold);
}
.step-label {
  min-width: 150px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-right: 18px;
}
.screen {
  animation: arrive 0.3s ease-out;
}
.welcome {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  gap: 56px;
  padding-top: 18px;
}
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.intro {
  font-size: 1.08rem;
  max-width: 580px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 25px 0 30px;
}
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--muted);
  font-size: 0.85rem;
}
.primary,
.secondary,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 54px;
  border-radius: 10px;
  padding: 13px 23px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.primary {
  background: var(--gold);
  color: #09221c;
}
.primary:hover {
  background: #e6c791;
}
.secondary {
  border-color: var(--line);
  background: var(--raised);
  color: var(--cream);
}
.secondary:hover {
  border-color: var(--gold);
}
.text-button {
  background: none;
  border-color: transparent;
  color: var(--muted);
  font-size: 0.9rem;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.fine {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}
.disclaimer {
  margin-top: 24px;
  max-width: 560px;
}
.brand-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.brand-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: contain;
}
.brand-body {
  padding: 26px 30px;
  border-top: 1px solid var(--line);
  flex: 1;
}
.brand-body .eyebrow {
  margin-bottom: 12px;
}
.mini-route {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-top: 16px;
}
.mini-route b {
  color: var(--gold);
  font-weight: 400;
  font-family: Georgia, serif;
  font-size: 1.5rem;
}
.mini-route p {
  margin: 0;
  font-size: 0.9rem;
}
.mini-route strong {
  display: block;
  font-weight: 500;
}
.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 36px 28px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.content {
  max-width: 740px;
  margin: 10px auto 0;
}
.wide {
  max-width: 920px;
}
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 22px;
}
.panel p:last-child {
  margin-bottom: 0;
}
.rule {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  align-items: center;
}
.rule .symbol {
  width: 55px;
  height: 55px;
}
.rule strong {
  display: block;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  margin: 26px 0 12px;
}
.check input {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  accent-color: var(--gold);
  margin-top: 4px;
}
.timer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.timer {
  font-variant-numeric: tabular-nums;
  font-size: 1.15rem;
  color: var(--gold);
}
.muted {
  color: var(--muted);
}
.stage {
  min-height: 270px;
  background: radial-gradient(ellipse at center, #143d32, var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
}
.stage:before,
.stage:after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid #31504766;
  border-radius: 50%;
  pointer-events: none;
}
.stage:after {
  width: 320px;
  height: 320px;
}
.stimulus {
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  min-width: 110px;
}
.symbol {
  display: inline-flex;
  width: 84px;
  height: 84px;
  border: 6px solid var(--gold);
  position: relative;
  align-items: center;
  justify-content: center;
  color: var(--cream);
}
.symbol.circle {
  border-radius: 50%;
}
.symbol.diamond {
  transform: rotate(45deg);
  width: 69px;
  height: 69px;
}
.symbol.diamond:after {
  transform: rotate(-45deg);
}
.symbol.pale {
  border-color: var(--cream);
}
.symbol:after {
  content: "";
  width: 13px;
  height: 13px;
  background: currentColor;
  border-radius: 50%;
}
.symbol.double:after {
  box-shadow: 22px 0 0 currentColor;
  left: -11px;
  position: relative;
}
.symbol.empty:after {
  display: none;
}
.symbol.line:after {
  height: 4px;
  width: 28px;
  border-radius: 0;
}
.stage-note {
  position: absolute;
  bottom: 20px;
  z-index: 2;
  font-size: 0.87rem;
  color: var(--muted);
}
.response {
  width: 100%;
  min-height: 66px;
  margin-top: 18px;
  user-select: none;
  -webkit-user-select: none;
}
.feedback {
  min-height: 30px;
  margin-top: 10px;
  color: var(--good);
  font-size: 0.9rem;
  text-align: center;
}
.feedback.warn {
  color: var(--warn);
}
progress {
  appearance: none;
  width: 100%;
  height: 5px;
  border: 0;
  display: block;
  background: var(--line);
  border-radius: 5px;
  margin-bottom: 24px;
}
progress::-webkit-progress-bar {
  background: var(--line);
  border-radius: 5px;
}
progress::-webkit-progress-value {
  background: var(--gold);
  border-radius: 5px;
}
progress::-moz-progress-bar {
  background: var(--gold);
}
.score-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 32px;
  align-items: center;
}
.score-ring {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: conic-gradient(
    var(--gold) calc(var(--value) * 1%),
    var(--line) 0
  );
  display: grid;
  place-items: center;
}
.score-ring > div {
  width: 166px;
  height: 166px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.score-ring b {
  font-family: Georgia, serif;
  font-size: 3.8rem;
  font-weight: 400;
  line-height: 1;
}
.score-ring span {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 8px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.metric {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 15px;
}
.metric b {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--cream);
  display: block;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.metric span {
  display: block;
  font-size: 0.86rem;
  color: var(--gold);
  margin-top: 6px;
}
.metric p {
  font-size: 0.78rem;
  margin: 8px 0 0;
}
.details {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 0.88rem;
  color: var(--muted);
}
summary {
  cursor: pointer;
  color: var(--cream);
  padding: 6px 0;
}
.result-copy {
  font-size: 1.08rem;
}
.callout {
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 22px;
  margin: 26px 0;
}
.callout p {
  margin: 0;
}
.practice-note {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}
.options {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.option {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  padding: 17px 18px;
  min-height: 56px;
  font-weight: 400;
}
.option:hover {
  border-color: #89a392;
}
.option.selected {
  border-color: var(--gold);
  background: #254332;
}
.option .letter {
  font-size: 0.82rem;
  color: var(--gold);
  border: 1px solid var(--line);
  width: 26px;
  min-width: 26px;
  height: 26px;
  text-align: center;
  border-radius: 6px;
  line-height: 24px;
  margin-top: 1px;
}
.option b {
  font-weight: 500;
  display: block;
}
.option small {
  font-size: 0.85rem;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.option.compact {
  padding: 12px 16px;
}
.range-label {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.range {
  width: 100%;
  accent-color: var(--gold);
  height: 44px;
  cursor: pointer;
}
.range-ends {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 22px 0;
}
legend {
  font-weight: 500;
  color: var(--cream);
  padding: 0;
  margin-bottom: 5px;
}
.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.story {
  font-family: Georgia, serif;
  font-size: 1.55rem;
  color: var(--cream);
  line-height: 1.45;
}
.story-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}
.avatar {
  width: 38px;
  height: 38px;
  background: #294b3f;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 0.9rem;
}
.breath-orb {
  width: 135px;
  height: 135px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: #40654a33;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 22px #d6b57a08;
  position: relative;
  z-index: 1;
  transition: transform 3s linear;
}
.breath-orb.inhale {
  transform: scale(1.22);
}
.breath-orb.exhale {
  transform: scale(0.9);
  transition-duration: 5s;
}
.status-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.88rem;
  margin-top: 18px;
}
.strategy-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 20px;
}
.strategy-steps .active {
  color: var(--gold);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.info-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 17px;
  border-radius: 14px;
}
.info-card p {
  font-size: 0.88rem;
  min-height: 62px;
}
.info-card .secondary {
  font-size: 0.86rem;
  padding: 10px;
  min-height: 48px;
  width: 100%;
}
.info-card h3 {
  font-size: 0.96rem;
}
.info-card.revealed {
  border-color: #648b72;
}
.table-wrap {
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}
th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--gold);
  font-weight: 500;
  background: var(--panel);
}
tr:last-child td {
  border-bottom: 0;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 8px;
}
.center {
  text-align: center;
}
.center .actions {
  justify-content: center;
}
.center p {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.small-brand {
  display: block;
  width: 440px;
  max-width: 100%;
  /* Compensa los atributos de tamaño del HTML al reducir el ancho. */
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 12px;
  margin: 0 auto 28px;
}
.hidden {
  display: none !important;
}
.modal-cover {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #031612ed;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-cover > div {
  max-width: 470px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.modal-cover h2 {
  font-size: 2rem;
}
.modal-cover button {
  width: 100%;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.error-note {
  color: var(--warn);
}
.checklist {
  padding-left: 22px;
  color: var(--muted);
}
.checklist li {
  padding: 5px 0;
}
.num {
  font-variant-numeric: tabular-nums;
}
.session-note {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 26px;
  font-size: 0.86rem;
}
.landing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.training-link {
  display: block;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-decoration: none;
}
.training-link h2 {
  font-size: 2rem;
  color: var(--cream);
  margin: 8px 0 18px;
}
.training-link p {
  font-size: 0.95rem;
}
.training-link:hover {
  border-color: var(--gold);
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 760px) {
  .topbar {
    padding: 18px 20px;
  }
  .top-meta {
    font-size: 0.7rem;
    max-width: 145px;
    text-align: right;
  }
  .app-shell {
    padding: 24px 20px 36px;
  }
  .welcome {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 4px;
  }
  .brand-card {
    max-width: 540px;
  }
  .brand-body {
    padding: 22px;
  }
  .footer {
    padding: 20px;
    display: block;
  }
  .footer span {
    display: block;
    margin: 5px 0;
  }
  .step-label {
    font-size: 0.8rem;
    min-width: 128px;
    margin-right: 8px;
  }
  .stepbar {
    gap: 4px;
    margin-bottom: 26px;
  }
  .content {
    margin-top: 2px;
  }
  .panel {
    padding: 22px;
  }
  .score-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .score-ring {
    margin: 0 auto;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .metric:last-child:nth-child(odd) {
    grid-column: 1/-1;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .info-card p {
    min-height: 0;
  }
  .info-card .secondary {
    width: auto;
  }
  .stage {
    min-height: 250px;
  }
  .actions .primary {
    flex: 1;
  }
  .two-cols {
    grid-template-columns: 1fr;
  }
  .story {
    font-size: 1.3rem;
  }
  .table-wrap {
    margin-right: 0;
  }
  th,
  td {
    padding: 10px;
    font-size: 0.83rem;
  }
  .landing-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 360px) {
  .app-shell {
    padding-left: 15px;
    padding-right: 15px;
  }
  .step-label {
    min-width: 112px;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .rule {
    grid-template-columns: 58px 1fr;
    gap: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Los títulos reciben foco para orientar lectores de pantalla, sin marco decorativo. */
h1[tabindex="-1"]:focus,
h2[tabindex="-1"]:focus {
  outline: none;
}
.timer {
  white-space: nowrap;
  flex-shrink: 0;
}
.decision-top {
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 12px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.decision-top h2 {
  font-size: 2rem;
}
@media (max-width: 760px) {
  .decision-top h2 {
    font-size: 1.55rem;
  }
  .info-card {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 12px;
    padding: 16px;
    align-items: center;
  }
  .info-card h3 {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }
  .info-card .secondary {
    grid-column: 2;
    grid-row: 1;
    max-width: 145px;
  }
  .info-card p {
    grid-row: 2;
    grid-column: 1 / -1;
    margin: 12px 0 0;
  }
}
