:root {
  color-scheme: light;
  --bg: #FFF6D7;
  --card: #FFFCF3;
  --ink: #1C1A1B;
  --muted: #6B675F;
  --fill: #FECE2E;
  --rule: #E8E2D6;
}

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

html {
  background: var(--bg);
  color: var(--muted);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  font-synthesis: none;
}

h1,
h2,
p {
  margin: 0;
  font-style: normal;
}

a:any-link {
  color: var(--ink);
}

a,
button,
label {
  -webkit-tap-highlight-color: transparent;
}

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

button,
input {
  font: inherit;
  color: inherit;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

button {
  cursor: pointer;
}

:focus {
  outline: none;
}

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

[hidden] {
  display: none !important;
}

.wrap {
  box-sizing: border-box;
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 88px;
  display: flex;
  align-items: center;
  background: var(--bg);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.mark {
  display: block;
  width: 28px;
  height: 28px;
  flex: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wordmark {
  font-family: Poppins, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}

.tagline {
  font-family: Poppins, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--muted);
}

.screen {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 88px;
}

.hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding-top: 16px;
}

.hero-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.hero-sub {
  margin-top: 16px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

.hero {
  flex: 1 1 auto;
  margin: 0;
  color: var(--ink);
  font-family: Poppins, sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-art {
  flex: 0 0 auto;
}

.hero-art img,
.door-art img {
  display: block;
  object-fit: contain;
  border: 0;
  box-shadow: none;
  background: none;
}

.hero-art img {
  width: 220px;
  height: auto;
}

@media (max-width: 959px) {
  .hero-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .hero-art {
    align-self: flex-end;
  }
}

.doors {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 48px;
}

.door {
  display: block;
  padding: 28px;
  border: 0;
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(28, 26, 27, 0.06);
  color: var(--ink);
  text-decoration: none;
}

.door h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: Poppins, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.door p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.door--check {
  border: 2px solid var(--ink);
  box-shadow: none;
}

.below {
  padding: 32px 0 48px;
}

.below p + p {
  margin-top: 4px;
}

.doc {
  padding: 104px 0 64px;
}

.column {
  width: 100%;
  margin: 0;
}

.door-work {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.door-main {
  width: min(420px, 100%);
}

.back {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.back a {
  color: var(--ink);
  text-decoration: none;
}

.door-hero {
  display: block;
  margin: 0 0 28px;
}

.door-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.door-art {
  margin: 0 0 20px;
}

.door-art img {
  width: min(280px, 100%);
  height: auto;
}


.page-title {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: Poppins, sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
}

.explain {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.explain a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.amount {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: inherit;
}

.money {
  margin: 0 0 16px;
  padding: 24px;
  border-radius: 28px;
  background: var(--fill);
  color: var(--ink);
}

.money-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.money-big {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.money-big .amount {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.money-input {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.money-input > span:first-child {
  display: block;
}

.money-field {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  font-size: 16px;
  font-weight: 600;
}

.money-field input {
  width: 8ch;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.money-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.money-big .amount + span,
.calc .money-big {
  font-size: 22px;
}

.field select {
  display: block;
  width: 100%;
  padding: 2px 0 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: Poppins, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.money-note {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.gate,
.admin {
  margin: 0 0 16px;
  padding: 24px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(28, 26, 27, 0.06);
}

.gate-q,
.admin-title {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.gate-hint,
.admin-text {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.gate-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.choice {
  height: 44px;
  padding: 0 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

.choice[aria-pressed="true"] {
  background: var(--fill);
}

.trail {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.trail li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.trail li + li::before {
  content: "";
  width: 20px;
  height: 1px;
  margin-right: 2px;
  background: var(--rule);
}

.trail-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--rule);
}

.trail li.is-on,
.trail li.is-done {
  color: var(--ink);
}

.trail li.is-on .trail-dot,
.trail li.is-done .trail-dot {
  background: var(--fill);
}

.field input::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.panel {
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(28, 26, 27, 0.06);
  overflow: hidden;
}

.photo,
.field {
  display: block;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
}

.panel .field:last-child {
  border-bottom: 0;
}

.photo {
  min-height: 0;
  cursor: pointer;
}

.photo-title {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.photo-hint,
.file-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

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

.photo {
  position: relative;
}

.field-pair {
  display: flex;
  border-bottom: 1px solid var(--rule);
}

.field-pair .field {
  flex: 1 1 0;
  min-width: 0;
  border-bottom: 0;
}

.field-pair .field + .field {
  border-left: 1px solid var(--rule);
}

.field span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.field input {
  display: block;
  width: 100%;
  padding: 2px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  caret-color: var(--ink);
}

.field input:focus-visible {
  outline: none;
}

.revisar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  margin-top: 16px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--card);
  font-family: Poppins, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

a.revisar {
  color: var(--card);
  text-decoration: none;
}

.bot-line {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.chequeo {
  width: min(640px, 100%);
}

.check-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.check-card {
  padding: 28px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(28, 26, 27, 0.06);
}

.check-card h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: Poppins, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.check-list {
  margin: 0;
  padding: 0 0 0 1.15em;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.check-list li + li {
  margin-top: 8px;
}

.sheet {
  width: 100%;
  max-width: 62ch;
  margin-top: 16px;
  padding: 28px;
  border-radius: 28px;
  background: var(--card);
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.sheet p + p {
  margin-top: 16px;
}

.copy {
  display: inline-block;
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: Poppins, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.quiet {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.steps {
  width: min(640px, 100%);
  margin: 0;
  padding: 28px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(28, 26, 27, 0.06);
}

.steps h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: Poppins, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.steps-lead {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.steps-lead + .steps-lead {
  margin-top: -4px;
}

.map-toggle {
  display: inline-block;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: Poppins, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.step-map {
  margin-top: 4px;
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.steps-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.step-num {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--card);
  font-family: Poppins, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 28px;
  text-align: center;
}

.step-action {
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.step-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.steps-follow,
.steps-close {
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.steps-follow {
  margin-top: 16px;
}

.steps-follow + .steps-follow {
  margin-top: 4px;
}

.steps-close {
  margin-top: 4px;
}

.step-toggle {
  display: inline-block;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: Poppins, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.step-letter {
  margin-top: 12px;
}

.step-msg-label {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.step-msg-body {
  margin-top: 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.step-msg-body p + p {
  margin-top: 8px;
}

.step-letter .copy {
  margin-top: 8px;
}

@media (min-width: 960px) {
  .wrap {
    width: min(1120px, calc(100% - 128px));
  }

  .hero {
    font-size: 48px;
  }

  .hero-row {
    align-items: flex-end;
  }

  .hero-art img {
    width: 320px;
  }

  .doors {
    grid-template-columns: 1fr 1fr;
  }

  .revisar {
    width: auto;
  }
}

@media (min-width: 1100px) {
  .door-work {
    flex-direction: row;
  }

  .door-main {
    width: 420px;
    flex: none;
  }

  .steps {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .page-title {
    font-size: 32px;
  }
}

/* Revisión de cuenta (home) */
.scan {
  margin-top: 40px;
  padding: 28px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(28, 26, 27, 0.06);
  color: var(--ink);
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scan-title {
  margin: 6px 0 8px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

.scan-text {
  max-width: 62ch;
  color: var(--muted);
}

.scan-tools {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  max-width: 560px;
}

.scan-drop {
  position: relative;
  display: block;
  padding: 24px;
  border: 2px dashed var(--rule);
  border-radius: 28px;
  cursor: pointer;
}

.scan-drop:focus-within {
  border-color: var(--ink);
}

.scan-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.scan-actions .revisar {
  margin-top: 0;
}

.revisar:disabled {
  opacity: 0.45;
  cursor: default;
}

.scan-status {
  color: var(--ink);
  font-weight: 500;
}

.scan-privacy,
.scan-alt,
.scan-off {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.scan-alt {
  margin-top: 16px;
}

.scan-off {
  margin-top: 16px;
  color: var(--ink);
}

.scan-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.scan-doc {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.scan-sum {
  margin-top: 2px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.scan-none,
.scan-warn {
  color: var(--muted);
  font-size: 14px;
}

.find {
  padding: 20px;
  border-radius: 20px;
  background: var(--bg);
}

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

.find-line {
  min-width: 0;
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.find-amount {
  flex: none;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.find-chip {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.find-chip--alta {
  background: var(--fill);
  color: var(--ink);
}

.find-chip--media {
  border: 1px solid var(--ink);
  color: var(--ink);
}

.find-chip--baja {
  border: 1px solid var(--rule);
  color: var(--muted);
}

.find-why {
  margin-top: 8px;
  color: var(--muted);
}

.find-go {
  display: inline-block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-underline-offset: 3px;
}

/* Chequeo de preguntas */
.quiz {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.quiz-item {
  padding: 20px 24px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(28, 26, 27, 0.06);
}

.quiz-q {
  display: flex;
  gap: 12px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.45;
}

.quiz-n {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--rule);
  font-size: 13px;
  font-weight: 600;
  line-height: 24px;
  text-align: center;
}

.quiz-item .gate-options {
  margin-top: 12px;
  padding-left: 36px;
}

.quiz-item .choice {
  height: 38px;
  padding: 0 16px;
}

.quiz-result {
  margin-top: 32px;
}

.quiz-result h2 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
}

.quiz-result .check-cards {
  margin-top: 12px;
}

@media (min-width: 960px) {
  .scan-title {
    font-size: 30px;
  }
}

/* Guardar caso */
.save {
  margin-top: 16px;
  padding: 24px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(28, 26, 27, 0.06);
  color: var(--ink);
}

.save-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.save-text {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

.save-field {
  display: block;
  margin-top: 16px;
}

.save-field span,
.save-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.save-field input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-family: Poppins, sans-serif;
  font-size: 15px;
}

.save-field input:focus-visible {
  outline: 1px solid var(--ink);
}

.save-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.save-check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--ink);
}

.save-code {
  margin-top: 4px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.save-cc {
  margin-top: 16px;
  padding: 16px;
  border-radius: 20px;
  background: var(--bg);
}

.save-cc-mail {
  margin-top: 4px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.save-cc .copy {
  margin-top: 6px;
}

.save-msg {
  margin-top: 12px;
  color: var(--ink);
  font-size: 14px;
}

/* Mi caso */
.case {
  width: min(680px, 100%);
}

.case-trail {
  margin: 20px 0 0;
  flex-wrap: wrap;
}

.case-now {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  padding: 24px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(28, 26, 27, 0.06);
  color: var(--ink);
}

.case-now:empty {
  display: none;
}

.case-now h2,
.case-block h2,
.prose h2 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.case-now .save-cc,
.case-now .find,
.case-sub {
  width: 100%;
}

.case-now .revisar {
  margin-top: 4px;
}

.case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.case-sub {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.case-text {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 16px;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--bg);
  color: var(--ink);
  font-family: Poppins, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  resize: vertical;
}

.case-block {
  margin-top: 32px;
}

.case-block .steps-list {
  margin-top: 8px;
}

.step-msg-body {
  white-space: pre-wrap;
}

.history {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--rule);
}

.history li {
  padding: 0 0 16px 16px;
}

.history-when {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.history-what {
  color: var(--ink);
  font-weight: 500;
}

.history-detail summary {
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
}

.prose h2 {
  margin: 28px 0 8px;
}

/* Panel */
.admin-login {
  max-width: 360px;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.kpi {
  padding: 16px 20px;
  border-radius: 20px;
  background: var(--card);
}

.kpi-value {
  color: var(--ink);
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 8px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  color: var(--ink);
}

.admin-table th {
  color: var(--muted);
  font-weight: 500;
}

/* Inicio: cómo funciona, contador, confianza */
.how {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.how li {
  padding: 24px;
  border-radius: 28px;
  background: var(--card);
  color: var(--ink);
}

.how-n {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--fill);
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}

.how h3 {
  margin: 12px 0 4px;
  font-size: 17px;
  font-weight: 600;
}

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

.counter {
  margin-top: 40px;
  padding: 24px 28px;
  border-radius: 28px;
  background: var(--fill);
  color: var(--ink);
}

.counter-big {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.home-block {
  margin-top: 48px;
}

.home-block > h2 {
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.quotes {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.quote {
  margin: 0;
  padding: 20px 24px;
  border-radius: 20px;
  background: var(--card);
  color: var(--ink);
}

.quote-by {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.faq {
  margin-top: 16px;
}

.faq details {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.faq p {
  margin-top: 8px;
  max-width: 62ch;
}

@media (min-width: 960px) {
  .how {
    grid-template-columns: repeat(3, 1fr);
  }

  .quotes {
    grid-template-columns: 1fr 1fr;
  }
}

.home-block-title {
  margin: 48px 0 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.home-block-title + .doors {
  margin-top: 16px;
}

/* Header: acceso a Mi caso */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-link {
  flex: none;
  padding: 8px 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.header-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 420px) {
  .wordmark {
    font-size: 24px;
  }

  .tagline {
    font-size: 12px;
  }
}

/* Home en celular: el arte más chico para que la revisión de cuenta quede cerca */
@media (max-width: 959px) {
  .hero-row {
    gap: 8px;
  }

  .hero-art img {
    width: 180px;
  }
}

/* Notificación del Justiciero BOT */
.bot-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 4px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(28, 26, 27, 0.06);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.bot-mark {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.bot-mark::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fill);
  border: 1px solid var(--ink);
}

/* Guardar caso, cuando va después del plan (pantallas angostas) */
.save--after {
  width: min(640px, 100%);
  margin-top: 0;
}

/* Mi caso: cerrar, borrar y casos recordados */
.case-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.case-foot .map-toggle {
  color: var(--muted);
  font-size: 14px;
}

.case-saved {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

/* Panel interno */
.pwrap { width: min(1100px, calc(100% - 32px)); margin: 32px auto; }
.pwrap .card { background: #FFFCF3; border-radius: 28px; padding: 20px 24px; margin: 0 0 16px; border: 1px solid #E8E2D6; }
.pwrap .card h3 { margin: 0 0 6px; }
.pwrap .meta { color: #6B675F; font-size: 14px; overflow-wrap: anywhere; }
.pwrap pre { white-space: pre-wrap; font: inherit; font-size: 14px; background: #FFF6D7; padding: 12px; border-radius: 12px; overflow-wrap: anywhere; }
.pwrap .msg { border-top: 1px solid #E8E2D6; padding-top: 8px; margin-top: 8px; }
.pwrap .ev { font-size: 14px; margin: 2px 0; }
.pwrap .filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.pwrap input[type=password] { font: inherit; padding: 10px 14px; border-radius: 12px; border: 1px solid #E8E2D6; min-width: min(280px, 100%); }

.case-now:empty {
  display: none;
}

.case-links .map-toggle,
.case-foot .map-toggle {
  text-align: left;
}

/* Cartas con párrafos y a dónde va cada una */
.step-msg-body,
.step-msg-body p {
  white-space: pre-line;
}

.step-where {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.step-where a {
  color: var(--ink);
  font-weight: 500;
}

.step-canal {
  display: inline-block;
  margin-right: 2px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.case-now .step-where {
  font-size: 15px;
}

.pwrap .mtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.pwrap .mtable th, .pwrap .mtable td { padding: 6px 8px; border-bottom: 1px solid #E8E2D6; text-align: left; }
.pwrap .mtable th { color: #6B675F; font-weight: 500; }
.pwrap .card { overflow-x: auto; }

/* Pie de página */
.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 12px;
}

.site-footer a {
  display: inline-block;
  padding: 10px 0;
  color: var(--ink);
  font-weight: 500;
}

/* Contacto y aliados */
.contact-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 12px;
}

.contact-form .save-field {
  width: 100%;
}

.contact-form select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 16px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ally-copy {
  margin: 16px 0 24px;
  padding: 20px 24px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(28, 26, 27, 0.06);
  color: var(--ink);
}

.ally-copy .copy {
  margin-top: 8px;
}

/* Accesibilidad: foco visible y áreas de toque más grandes */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.faq summary {
  padding: 10px 0;
}

/* Mi caso: guía del trámite con ClaveÚnica */
.case-guide {
  width: 100%;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--bg);
}

.case-guide summary {
  padding: 6px 0;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.case-guide-list {
  margin: 8px 0 4px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
}

.case-guide-list li + li {
  margin-top: 6px;
}

.prose .explain + .explain,
.prose .check-list + .explain {
  margin-top: 12px;
}
