@import url("./fonts.css");

/*
 * Estilos de la página: columna centrada, escala de letra, tarjetas y colores de acción.
 */
:root {
  color-scheme: dark;
  --bg: #0C1322;
  --surface: #162035;
  --ink: #EEF2F8;
  --muted: #A9B6CC;
  --line: #2A3752;
  --alert: #FFD25A;
  --on-alert: #14213D;
  --danger: #FF6B6B;
  --danger-soft: #3A1A20;
  --on-danger: #1A0A0C;
  --safe: #4CC38A;
  --safe-soft: #13301F;
  --info: #7DA6FF;
  --info-soft: #18284A;
  --on-info: #0C1322;
  --warn-soft: #3A3014;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", Verdana, system-ui, sans-serif;
  --r: 18px;
  --navy-950: var(--bg);
  --navy-900: var(--bg);
  --navy-850: var(--surface);
  --navy-800: var(--surface);
  --navy-700: var(--line);
  --muted-strong: var(--ink);
  --yellow: var(--alert);
  --yellow-dark: var(--on-alert);
  --coral: var(--danger);
  --coral-dark: var(--on-danger);
  --blue: var(--info);
  --blue-dark: var(--info-soft);
  --green: var(--safe);
  --red: var(--danger);
  --focus: #FFF0A6;
  --radius-lg: var(--r);
  --radius-md: 16px;
  font-family: var(--body);
  font-size: 100%;
  line-height: 1.5;
  background: var(--bg);
  color: var(--ink);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #EEF1F6;
  --surface: #FFFFFF;
  --ink: #14213D;
  --muted: #4B5A72;
  --line: #D5DBE5;
  --alert: #FFC93C;
  --on-alert: #14213D;
  --danger: #C62828;
  --danger-soft: #FDECEC;
  --on-danger: #FFFFFF;
  --safe: #1E7D4F;
  --safe-soft: #E6F4EC;
  --info: #2457C5;
  --info-soft: #E8EEFB;
  --on-info: #FFFFFF;
  --warn-soft: #FFF5D6;
}

:root.large-type,
:root.grande {
  font-size: 118%;
}

html {
  min-width: 0;
  scroll-padding-top: env(safe-area-inset-top, 0px);
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.25rem;
  line-height: 1.5;
}

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

body,
button,
input,
textarea,
select {
  font-family: var(--body);
}

button:disabled,
a[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.5;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible,
input:focus-visible,
select:focus-visible,
label:focus-within {
  outline: 3px solid var(--info);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  color: currentColor;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: 2.1rem;
  line-height: 1.08;
}

p { margin: 0; }

.lesson-link { color: inherit; text-decoration: none; }
.big > svg, .brand > svg { flex: none; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip-path: inset(50%); white-space: nowrap; border: 0 !important; }
progress.quiz-progress { display: block; width: 100%; height: 10px; border: 0; appearance: none; }
progress.quiz-progress::-webkit-progress-bar { background: var(--line); border-radius: 99px; }
progress.quiz-progress::-webkit-progress-value { background: var(--info); border-radius: 99px; }
progress.quiz-progress::-moz-progress-bar { background: var(--info); border-radius: 99px; }
.c-ai { background: var(--info) !important; color: var(--on-info) !important; }
.icon { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.text-panel .field-label { font-size: 1rem; font-weight: 400; color: var(--muted); }

h2 {
  font-size: 1.7rem;
  line-height: 1.12;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 700;
}

/* The app owns the only centered column. */
#app.app,
.app {
  width: min(100%, 520px);
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 0 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.shell {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.site-header {
  width: 100%;
  position: static;
  z-index: auto;
  padding: 0;
}

.site-header.top,
header.top,
.site-header.header-inner,
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-header > .header-inner {
  width: 100%;
}

.site-header:has(> .prototype-banner) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
}

.brand .icon {
  flex: none;
  color: var(--alert);
}

.brand-wordmark {
  font: inherit;
}

.tools,
.header-actions,
.button-row,
.footer-links,
.directory-actions,
.result-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.tools,
.header-actions {
  justify-content: flex-end;
  gap: 8px;
}

.chip,
.button-type {
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 700 1rem var(--body);
  cursor: pointer;
}

.chip[aria-pressed="true"],
.button-type[aria-pressed="true"] {
  border-color: var(--ink);
}

.button-type {
  background: var(--surface);
}

.proto,
.prototype-banner {
  width: 100%;
  margin: 0;
  padding: 8px 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.banner-inner {
  display: block;
  width: auto;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.prototype-banner strong,
.proto strong {
  color: var(--ink);
}

.page-shell {
  width: 100%;
  padding: 0;
}

.page-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: none;
}

.route-title {
  max-width: 100%;
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.12;
  outline: none;
}

.home-page .route-title {
  font-size: 2.1rem;
  line-height: 1.08;
}

.page-lede,
.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.2rem;
}

.eyebrow,
.round-count,
.feedback-label,
.course-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.25;
}

.eyebrow {
  font-weight: 700;
}

.back {
  border: 0;
  align-self: flex-start;
  min-height: 44px;
  padding: 8px 0;
  background: none;
  color: var(--info);
  font: 700 1.1rem var(--body);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Original large action buttons and the current intent-card alias. */
.intent-stack {
  display: contents;
}

.intent-card,
.big,
.bigcard {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 110px;
  padding: 22px 20px;
  border: 0;
  border-radius: var(--r);
  box-shadow: none;
  color: var(--on-alert);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: none;
}

.intent-card:hover,
.big:hover,
.bigcard:hover,
.intent-card:active,
.big:active,
.bigcard:active {
  transform: none;
  box-shadow: none;
}

.intent-card:active,
.big:active,
.bigcard:active {
  transform: scale(0.98);
}

.intent-yellow,
.b-antes {
  background: var(--alert);
  color: var(--on-alert);
}

.intent-coral,
.b-despues {
  background: var(--danger);
  color: var(--on-danger);
}

.intent-blue,
.b-aprende {
  background: var(--info);
  color: var(--on-info);
}

.intent-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: none;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.intent-icon .icon {
  width: 48px;
  height: 48px;
}

.intent-card > .icon:last-child {
  display: none;
}

.intent-copy {
  display: grid;
  gap: 4px;
}

.intent-copy strong,
.big .t,
.bigcard .t {
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.05;
}

.intent-copy span,
.big .s,
.bigcard .s {
  display: block;
  max-width: 33ch;
  margin-top: 4px;
  font-size: 1.05rem;
  line-height: 1.25;
  opacity: 0.9;
}

.home-support {
  margin-top: 0;
}

.support-grid {
  display: grid;
  gap: 8px;
  margin-top: 0;
}

.support-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.support-copy {
  display: grid;
  gap: 2px;
}

.support-copy span {
  color: var(--muted);
  font-size: 1rem;
}

.support-link > .icon:last-child {
  color: var(--info);
}

.eldy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: var(--r);
  background: var(--ink);
  color: var(--bg);
}

.eldy .button,
.eldy .btn {
  background: var(--alert);
  color: var(--on-alert);
}

.eldy p {
  opacity: 0.88;
}

.button,
.btn,
.contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 60px;
  width: auto;
  padding: 16px 20px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  font: 700 1.2rem/1.2 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: none;
}

.button-wide {
  width: 100%;
}

.button-primary,
.btn-main {
  background: var(--ink);
  color: var(--bg);
}

.button-outline,
.button-quiet,
.btn-sec,
.contact-action {
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button-row .button,
.button-row a.button,
.btn-row .btn {
  flex: 1 1 180px;
}

.button .icon,
.contact-action .icon,
.text-link .icon {
  flex: none;
}

footer.foot,
.site-footer {
  padding: 8px 0 0;
  border: 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

footer.foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-footer .footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.site-footer .footer-links {
  justify-content: center;
}

.privacy-footnote {
  color: var(--muted);
  text-decoration: none;
}

/* Surface cards and supporting copy. */
.card,
.workflow-panel,
.manual-path,
.directory-meta,
.lesson-article,
.game-round,
.game-results,
.privacy-article {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

.workflow-panel,
.game-round,
.game-results,
.privacy-article,
.directory-meta,
.lesson-article {
  margin-top: 0;
}

.workflow-panel h2 {
  font-size: 1.7rem;
}

.panel-copy,
.field-meta,
.model-note,
.source-line,
.verified-note,
.unverified-note,
.directory-notes {
  color: var(--muted);
  font-size: 1rem;
}

.note,
.note-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.note {
  padding-left: 12px;
  border: 0;
  border-left: 4px solid var(--line);
}

.note-box {
  padding-left: 12px;
  border: 0;
  border-left: 4px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.note-box .icon {
  flex: none;
  color: var(--info);
}

.note-warning {
  border-left-color: var(--danger);
}

.note-warning .icon {
  color: var(--danger);
}

.small,
.muted {
  font-size: 1rem;
}

.muted {
  color: var(--muted);
}

/* Recording and transcription panels. */
.button-record {
  width: 100%;
  min-height: 60px;
  margin-top: 7px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.2rem;
}

.button-record .icon {
  width: 29px;
  height: 29px;
}

.button-record.is-recording {
  background: var(--danger);
  color: var(--on-danger);
}

.recorder-status {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.recorder-status.is-recording {
  color: var(--danger);
}

.recording-timer {
  color: var(--ink);
  font-size: 1.85rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.silence-meter {
  min-height: 29px;
  padding-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.audio-preview {
  display: block;
  width: 100%;
  margin-top: 8px;
  border-radius: 999px;
}

.text-panel {
  margin-top: 0;
}

.field-label {
  display: block;
  color: var(--ink);
  font-weight: 700;
}

.message-input,
.search-input,
input[type="search"],
input[type="text"],
input[type="tel"],
textarea {
  width: 100%;
  min-height: 56px;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font: 1.15rem/1.45 var(--body);
}

.message-input {
  min-height: 170px;
  resize: vertical;
}

.message-input:focus,
.search-input:focus,
textarea:focus,
input:focus {
  border-color: var(--info);
  box-shadow: none;
}

.message-input::placeholder,
.search-input::placeholder,
textarea::placeholder,
input::placeholder {
  color: var(--muted);
}

.field-meta {
  margin-top: -4px;
}

.consent-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  margin-top: 4px;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--warn-soft);
  cursor: pointer;
}

.consent-row input {
  width: 23px;
  height: 23px;
  margin: 2px 0 0;
  accent-color: var(--alert);
}

.consent-copy {
  display: grid;
  gap: 4px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.42;
}

.consent-copy strong {
  color: var(--ink);
}

.manual-path {
  margin-top: 0;
  padding: 20px 0 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
}

.manual-path p {
  color: var(--muted);
}

.manual-path .button-row {
  margin-top: 3px;
}

/* Original victim/help primitives. */
.urgente {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: var(--r);
  background: var(--danger);
  color: var(--on-danger);
}

.urgente .button,
.urgente .btn {
  background: var(--surface);
  color: var(--ink);
}

.calm {
  padding: 16px 18px;
  border-radius: var(--r);
  background: var(--info-soft);
  color: var(--ink);
  font-size: 1.1rem;
}

.grid-b,
.incident-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.opt {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  font: 700 1.2rem/1.25 var(--body);
  text-align: left;
  cursor: pointer;
}

.opt:hover,
.opt:focus-visible {
  border-color: var(--ink);
}

.opt .arr {
  flex: none;
  color: var(--muted);
}

.incident-section,
.result-section {
  margin-top: 0;
}

.incident-item,
.lesson-item,
.course-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

.incident-item p,
.lesson-item p,
.course-item p {
  margin-top: 7px;
  color: var(--muted);
}

.incident-item .button,
.lesson-item .button {
  margin-top: 15px;
}

.steps,
.steps-list {
  counter-reset: s;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.steps li,
.steps-list li {
  position: relative;
  padding: 16px 16px 16px 64px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.steps li::before,
.steps-list li::before {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  content: counter(s) / "";
  counter-increment: s;
  font: 700 1.1rem var(--body);
}

.steps li.first,
.steps-list li:first-child {
  border: 3px solid var(--danger);
}

.steps li.first::before,
.steps-list li:first-child::before {
  background: var(--danger);
  color: var(--on-danger);
}

.steps b {
  display: block;
  margin-bottom: 4px;
  font-size: 1.2rem;
}

.steps span {
  color: var(--muted);
  font-size: 1.1rem;
}

.stamp {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font: 700 0.9rem var(--body);
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.contact:last-child {
  border-bottom: 0;
}

.contact .n,
.directory-heading h2 {
  font-weight: 700;
}

.contact .tipo,
.directory-kind {
  color: var(--muted);
  font-size: 0.95rem;
}

.tag-v {
  flex: none;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--warn-soft);
  color: var(--ink);
  font: 700 0.85rem var(--body);
  white-space: nowrap;
}

/* Directory and source metadata. */
.directory-meta {
  gap: 5px;
  margin-top: 0;
  padding: 16px 18px;
}

.directory-meta strong {
  color: var(--ink);
}

.directory-meta span {
  color: var(--muted);
  font-size: 1rem;
}

.directory-meta .text-link {
  width: fit-content;
  margin-top: 3px;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-wrap > .icon {
  position: absolute;
  left: 15px;
  z-index: 1;
  color: var(--muted);
  pointer-events: none;
}

.search-wrap .search-input {
  margin-top: 0;
  padding-left: 50px;
}

.directory-list,
.lesson-list,
.course-list {
  display: grid;
  gap: 11px;
  margin-top: 0;
}

.directory-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.directory-item:first-child {
  padding-top: 0;
}

.directory-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.directory-heading h2 {
  font-size: 1.25rem;
}

.directory-actions {
  margin-top: 10px;
}

.contact-action {
  min-height: 44px;
  padding: 9px 13px;
  font-size: 1rem;
}

.verified-note {
  margin-top: 8px;
  color: var(--safe);
}

.unverified-note {
  margin-top: 8px;
  color: var(--danger);
}

/* Training, courses, and the source video placeholder. */
.training-lead {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

.training-lead p:not(.eyebrow) {
  color: var(--muted);
}

.training-lead .button {
  margin-top: 0;
}

.lesson-article {
  color: var(--ink);
  line-height: 1.5;
}

.lesson-article .source-line,
.lesson-article .text-link {
  display: inline-flex;
  width: fit-content;
}

.lesson-item .eyebrow {
  margin-bottom: 8px;
}

.vid {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 14px;
}

.thumb {
  display: grid;
  width: 96px;
  max-width: 100%;
  aspect-ratio: 9 / 12;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--ink), var(--info));
  color: var(--bg);
}

.course-item {
  min-height: 145px;
}

.course-item::after {
  display: none;
  content: none;
}

/* Daily challenge follows the reference layout with the site's daylight palette. */
.training-full { text-align: left; justify-content: space-between; }
.training-full svg { order: 2; }
.training-videos { display: grid; gap: 14px; }
.training-videos .card { margin: 0; }
.training-videos .thumb { background: var(--info-soft); color: var(--info); }
.training-game { position: relative; }
.game-status { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: -50px; margin-left: 120px; min-height: 38px; }
.game-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 5px 12px; font-size: 1rem; font-weight: 700; }
.trap-prompt { display: grid; gap: 12px; border-radius: 18px; padding: 20px; background: var(--info-soft); }
.trap-prompt .text-link { text-align: left; width: fit-content; font-size: 1rem; }
.message-mock { gap: 16px; overflow-wrap: anywhere; }
.message-mock .from { padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1.15rem; }
.sender-copy { min-width: 0; display: grid; gap: 4px; }
.message-mock.channel-sms .from { flex-direction: column; text-align: center; }
.message-mock .av { width: 42px; height: 42px; }
.message-address { font-weight: 400; color: var(--muted); }
.mock-subject { font-weight: 700; }
.mock-body { font-size: 1.15rem; }
.message-time { display: block; margin-top: 8px; text-align: right; color: var(--muted); font-size: .8rem; }
.finding-trap { outline: 3px dashed var(--info); outline-offset: 4px; }
.message-part { display: inline; border: 0; border-radius: 3px; padding: 0; margin: 0; background: transparent; color: inherit; font: inherit; text-align: inherit; line-height: inherit; cursor: pointer; }
.message-part:hover { background: var(--info-soft); }
.message-part:focus-visible { outline: 3px solid var(--info); outline-offset: 2px; }
.trap-highlight { color: var(--ink); background: var(--alert); border-radius: 3px; padding: 1px 2px; }
.trap-highlight sup { margin-left: 4px; font-weight: 800; }
.mock-fields { display: grid; gap: 10px; font-size: 1rem; }
.mock-input { display: block; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); margin-top: 4px; }
.mock-action { align-self: flex-start; background: var(--info); color: var(--on-info); border-radius: 10px; padding: 10px 16px; font-weight: 700; }
.trap-explanations { padding-left: 24px; display: grid; gap: 10px; margin: 12px 0; }
.practice-note { text-align: center; font-size: .85rem; }
.game-results.daily-results { display: grid; gap: 20px; background: transparent; border: 0; padding: 0; }
.game-results.daily-results h2 { font-size: 2.1rem; }
.result-badge { color: var(--info); display: grid; place-items: center; min-height: 80px; }
.result-score { display: grid; gap: 16px; margin: 0; padding: 22px; }
.score-row { display: flex; justify-content: space-between; gap: 12px; }
.answer-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.answer-cell { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 5px; color: white; }
.answer-correct { background: var(--safe); }
.answer-wrong { background: var(--danger); }
.result-game-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-preview { margin: 0; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; font: inherit; font-size: 1rem; }
@media (max-width: 420px) {
  .game-status { margin-top: 0; margin-left: 0; }
  .result-game-actions { grid-template-columns: 1fr; }
  .training-videos .vid { grid-template-columns: 72px 1fr; }
  .training-videos .thumb { width: 72px; }
}

/* Quiz primitives copied from the reference. */
.game-round {
  margin-top: 0;
}

.round-count {
  letter-spacing: 0.04em;
}

.progress,
.quiz-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line);
}

.progress i,
.quiz-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--info);
}

.phone {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.from {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font: 700 1rem var(--body);
}

.av {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink);
  font-size: 0.9rem;
}

.bubble,
.quiz-message {
  padding: 14px 16px;
  border-radius: 4px 18px 18px 18px;
  background: var(--bg);
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.45;
}

.quiz-message {
  margin: 0;
  border-left: 0;
}

.message-sender,
.quiz-helper {
  color: var(--muted);
  font-size: 1rem;
}

.choice,
.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice .button,
.choice .btn,
.quiz-options .button,
.quiz-options .btn {
  min-height: 60px;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
}

.c-estafa,
.button-option:first-child {
  background: var(--danger);
  color: var(--on-danger);
}

.c-real,
.button-option:last-child {
  background: var(--safe);
  color: var(--surface);
}

.button-option {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
}

.quiz-feedback,
.fb {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
}

.quiz-feedback.feedback-correct,
.fb.ok {
  background: var(--safe-soft);
}

.quiz-feedback.feedback-review,
.fb.no {
  background: var(--danger-soft);
}

.feedback-correct .feedback-label {
  color: var(--safe);
}

.feedback-review .feedback-label {
  color: var(--danger);
}

.quiz-feedback .button {
  margin-top: 12px;
}

.game-results {
  text-align: center;
}

.game-results h2 {
  font-size: 1.7rem;
}

.game-results p:not(.eyebrow) {
  color: var(--muted);
}

.game-results .button {
  margin-top: 10px;
}

.score {
  color: var(--ink);
  font-family: var(--display);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

/* Results and privacy. */
.verdict {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 0;
  padding: 22px 20px;
  border-radius: var(--r);
}

.verdict-high,
.v-rojo {
  border: 3px solid var(--danger);
  background: var(--danger-soft);
}

.verdict-uncertain,
.v-amarillo {
  border: 3px solid var(--alert);
  background: var(--warn-soft);
}

.verdict-low {
  border: 3px solid var(--info);
  background: var(--info-soft);
}

.v-verde {
  border: 3px solid var(--safe);
  background: var(--safe-soft);
}

.verdict-neutral {
  border: 1px solid var(--line);
  background: var(--surface);
}

.verdict .eyebrow,
.v-label {
  color: var(--danger);
  font: 700 0.9rem var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verdict-low .eyebrow,
.v-verde .v-label {
  color: var(--safe);
}

.verdict-low .estafometro-category {
  color: var(--info);
}

.verdict-uncertain .estafometro-category {
  color: var(--on-alert);
}

.verdict-high .estafometro-category {
  color: var(--danger);
}

.verdict-neutral .estafometro-category {
  color: var(--muted);
}

.verdict h2,
.verdict h3 {
  margin-top: 0;
}

.estafometro-heading {
  font-size: 1.7rem;
}

.estafometro-meter {
  display: grid;
  gap: 2px;
  margin: 2px -4px 0;
}

.estafometro-svg {
  display: block;
  width: min(100%, 300px);
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.estafometro-empty {
  padding: 28px 0;
  font: 700 1.35rem var(--body);
  text-align: center;
  color: var(--muted);
}

.verdict-low { background: #2C659A; }
.verdict-uncertain { background: #856315; }
.verdict-high { background: #A74750; }
.verdict { --verdict-text: #FFF9F0; color: var(--verdict-text); }
.verdict-neutral { --verdict-text: #14213D; }
.verdict h2, .verdict h3 { color: var(--verdict-text); }

.verdict-title {
  font-size: 1.55rem;
  line-height: 1.12;
}

.estafometro-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: min(100%, 320px);
  margin: -4px auto 2px;
  text-align: center;
}

.estafometro-legend span {
  min-width: 0;
  color: var(--verdict-text);
  font-size: 0.9rem;
  line-height: 1.2;
}

.estafometro-legend span[aria-current="true"] {
  color: var(--verdict-text);
  font-weight: 700;
}

.verdict-neutral .estafometro-zone {
  stroke: var(--line);
  opacity: 0.7;
}

.estafometro-legend.is-neutral span {
  color: var(--muted);
}

.verdict p:last-child {
  color: var(--verdict-text);
}

.signal-list {
  display: grid;
  gap: 13px;
  margin-top: 0;
}

.signal-item {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.signal-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.signal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
}

.signal-head span {
  color: var(--alert);
  font-variant-numeric: tabular-nums;
}

.probability-bar {
  display: block;
  width: 100%;
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
  appearance: none;
}

.probability-bar::-webkit-progress-bar {
  border-radius: inherit;
  background: var(--line);
}

.probability-bar::-webkit-progress-value {
  border-radius: inherit;
  background: var(--alert);
}

.probability-bar::-moz-progress-bar {
  border-radius: inherit;
  background: var(--alert);
}

.steps-list {
  margin-top: 0;
}

.privacy-article {
  gap: 22px;
}

.privacy-item {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.privacy-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.privacy-item h2 {
  font-size: 1.25rem;
}

.privacy-item p {
  margin-top: 6px;
  color: var(--muted);
}

.result-actions {
  margin-top: 0;
}

.model-note {
  margin-top: 0;
}

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

  .estafometro-needle {
    transition: none;
  }

  .intent-card:active,
  .big:active,
  .bigcard:active {
    transform: none;
  }
}
