/* Matías Muñoz / Salud Útil — tokens */
:root {
  --mm-color-brand-900: #12324A;
  --mm-color-brand-700: #0B5CAD;
  --mm-color-brand-100: #EAF4FC;
  --mm-color-accent-700: #1A7F4B;
  --mm-color-accent-100: #EAF7EF;
  --mm-color-pap-pink: #B82F63;
  --mm-color-pap-pink-soft: #FCEAF1;
  --mm-color-text: #263C4D;
  --mm-color-text-muted: #5B6E7D;
  --mm-color-surface: #FFFFFF;
  --mm-color-surface-subtle: #F5F8FA;
  --mm-color-border: #D5E0E8;
  --mm-color-info: #0B5CAD;
  --mm-color-success: #1A7F4B;
  --mm-color-warning: #6B4F00;
  --mm-color-warning-bg: #FFF7D6;
  --mm-color-danger: #8B2D2D;
  --mm-color-danger-bg: #FDEBEC;
  --mm-color-attention: #9A4619;
  --mm-color-attention-bg: #FFF0E3;
  --mm-color-focus: #66A9E8;
  --mm-color-overlay: rgb(18 50 74 / 72%);
  --mm-color-shadow: rgb(18 50 74 / 10%);
  --mm-color-shadow-strong: rgb(18 50 74 / 16%);
  --mm-shadow-base: 0 12px 32px var(--mm-color-shadow);
  --mm-radius-control: 10px;
  --mm-radius-card: 16px;
  --mm-radius-feature: 22px;
  --mm-container: 1160px;
  --mm-reading: 720px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
  color: var(--mm-color-text);
  background: var(--mm-color-surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--mm-color-brand-700); }
h1, h2, h3 { color: var(--mm-color-brand-900); line-height: 1.14; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); letter-spacing: -.02em; }
h3 { font-size: 1.125rem; }
p { max-width: 75ch; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }
:where(button, input, select, summary, a):focus-visible,
.option-card:focus-within {
  outline: 3px solid var(--mm-color-focus);
  outline-offset: 3px;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  z-index: 1000;
  top: -80px;
  left: 16px;
  padding: 10px 14px;
  color: var(--mm-color-surface);
  background: var(--mm-color-brand-900);
  border-radius: var(--mm-radius-control);
}
.skip-link:focus { top: 12px; }

/* App header and navigation */
.app-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--mm-color-border);
  background: var(--mm-color-surface);
}
.app-header__inner {
  width: min(100%, var(--mm-container));
  min-height: 68px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-lockup {
  min-height: 48px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--mm-color-brand-900);
  background: transparent;
  border: 0;
  text-align: left;
}
.brand-lockup__mark {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--mm-color-brand-700);
  box-shadow: 0 8px 18px var(--mm-color-shadow-strong);
}
.brand-lockup__mark::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 2px solid var(--mm-color-surface);
  border-radius: 50%;
}
.brand-lockup__mark::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 15px;
  width: 13px;
  height: 7px;
  border-bottom: 3px solid var(--mm-color-surface);
  border-left: 3px solid var(--mm-color-surface);
  border-radius: 1px;
  transform: rotate(-45deg);
}
.brand-lockup__copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-lockup strong { font-size: 1.0625rem; }
.brand-lockup small { display: none; margin-top: 4px; color: var(--mm-color-text-muted); font-size: .8125rem; }
.primary-nav {
  position: fixed;
  z-index: 80;
  right: 12px;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 12px;
  min-height: 60px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: var(--mm-color-surface);
  border: 1px solid var(--mm-color-border);
  border-radius: 18px;
  box-shadow: 0 16px 36px var(--mm-color-shadow-strong);
}
.primary-nav button {
  min-width: 0;
  min-height: 46px;
  padding: 6px 8px;
  color: var(--mm-color-text-muted);
  background: transparent;
  border: 0;
  border-radius: var(--mm-radius-control);
  font-size: .8125rem;
  font-weight: 700;
}
.primary-nav button:hover,
.primary-nav button:active,
.primary-nav button.active {
  color: var(--mm-color-brand-700);
  background: var(--mm-color-brand-100);
}
.app-alert {
  width: min(calc(100% - 32px), var(--mm-reading));
  margin: 16px auto 0;
  padding: 14px 16px;
  color: var(--mm-color-attention);
  background: var(--mm-color-attention-bg);
  border: 1px solid var(--mm-color-border);
  border-radius: var(--mm-radius-control);
  font-weight: 600;
}

/* Shared layout and components */
main { min-height: calc(100vh - 230px); }
.view { animation: view-enter 190ms ease-out; }
@keyframes view-enter { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.eyebrow {
  margin: 0 0 8px;
  color: var(--mm-color-brand-700);
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.lead { margin: 18px 0 24px; color: var(--mm-color-text-muted); font-size: clamp(1.0625rem, 2.5vw, 1.25rem); line-height: 1.55; }
.lead--compact { max-width: 70ch; font-size: 1.0625rem; }
.button {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--mm-radius-control);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(0); }
.button:disabled { opacity: .48; }
.button--primary { color: var(--mm-color-surface); background: var(--mm-color-brand-700); }
.button--primary:hover:not(:disabled) { background: var(--mm-color-brand-900); }
.button--secondary { color: var(--mm-color-brand-900); background: var(--mm-color-surface); border-color: var(--mm-color-border); }
.button--secondary:hover:not(:disabled) { border-color: var(--mm-color-brand-700); background: var(--mm-color-brand-100); }
.button--ghost { min-height: 44px; padding: 0 8px; color: var(--mm-color-brand-700); background: transparent; }
.button--ghost:hover:not(:disabled) { background: var(--mm-color-surface); }
.button--large { min-height: 56px; padding-inline: 24px; font-size: 1.0625rem; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label,
.directory-toolbar label,
.approximate-reminder > label:first-child { color: var(--mm-color-brand-900); font-size: .875rem; font-weight: 700; }
input, select {
  width: 100%;
  min-height: 50px;
  padding: 0 13px;
  color: var(--mm-color-text);
  background: var(--mm-color-surface);
  border: 1px solid var(--mm-color-border);
  border-radius: var(--mm-radius-control);
}
input:hover, select:hover { border-color: var(--mm-color-brand-700); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--mm-color-danger); }
.checkbox, .check-line {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mm-color-text);
}
.checkbox input, .check-line input { width: 20px; height: 20px; min-height: 0; flex: 0 0 auto; accent-color: var(--mm-color-brand-700); }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, var(--mm-container));
  margin: 0 auto;
  padding: 32px 16px 56px;
  display: grid;
  gap: 32px;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(112vw, 640px);
  aspect-ratio: 4 / 3;
  top: 4px;
  right: -34%;
  background: url("assets/hero-uterus-v1.6.png") center / contain no-repeat;
  opacity: .075;
  pointer-events: none;
}
.hero__content { position: relative; min-width: 0; }
.hero h1 { max-width: 12ch; margin: 0; }
.pap-highlight { color: var(--mm-color-pap-pink); }
.privacy-callout {
  max-width: 650px;
  margin: 0 0 18px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--mm-color-brand-900);
  background: var(--mm-color-brand-100);
  border: 1px solid var(--mm-color-border);
  border-radius: 14px;
}
.privacy-callout__icon { flex: 0 0 auto; line-height: 1.5; }
.privacy-callout p { margin: 0; }
.hero__time { margin: 12px 0 0; color: var(--mm-color-text-muted); font-size: .875rem; }
.trust-grid { margin-top: 28px; display: grid; gap: 12px; }
.trust-item { min-width: 0; display: flex; align-items: flex-start; gap: 12px; }
.trust-item__number {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--mm-color-brand-700);
  border: 1px solid var(--mm-color-border);
  border-radius: 50%;
  font-size: .8125rem;
  font-weight: 800;
}
.trust-item strong { color: var(--mm-color-brand-900); }
.trust-item p { margin: 2px 0 0; color: var(--mm-color-text-muted); font-size: .875rem; }
.scope-card {
  align-self: start;
  padding: 24px;
  background: var(--mm-color-surface-subtle);
  border: 1px solid var(--mm-color-border);
  border-radius: var(--mm-radius-feature);
  box-shadow: var(--mm-shadow-base);
}
.scope-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  color: var(--mm-color-brand-700);
  background: var(--mm-color-brand-100);
  border-radius: 12px;
  font-size: 1.25rem;
  font-weight: 800;
}
.scope-card h2 { margin: 0 0 12px; }
.scope-card > p:not(.eyebrow) { margin: 0; }
.scope-card__notice { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--mm-color-border); }
.scope-card__notice strong { color: var(--mm-color-brand-900); }
.scope-card__notice p { margin: 4px 0 0; }
.home-shortcuts { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 4px 12px; }

/* Questionnaire */
.question-view, .result-view {
  width: min(calc(100% - 32px), var(--mm-reading));
  margin: 0 auto;
  padding: 28px 0 56px;
}
.progress-indicator { margin-bottom: 16px; }
.progress-indicator__copy { margin-bottom: 8px; display: flex; justify-content: space-between; gap: 16px; color: var(--mm-color-text-muted); font-size: .875rem; font-weight: 700; }
.progress-indicator__track { height: 8px; overflow: hidden; background: var(--mm-color-surface-subtle); border: 1px solid var(--mm-color-border); border-radius: 999px; }
.progress-indicator__track span { display: block; width: 10%; height: 100%; background: var(--mm-color-brand-700); border-radius: inherit; transition: width 200ms ease; }
.question-card, .result-card {
  padding: 24px 18px;
  background: var(--mm-color-surface);
  border: 1px solid var(--mm-color-border);
  border-radius: var(--mm-radius-card);
  box-shadow: var(--mm-shadow-base);
}
.question-card h1 { margin: 0; font-size: clamp(1.75rem, 5vw, 2.35rem); }
.question-help { margin: 12px 0 24px; color: var(--mm-color-text-muted); }
.option-list { display: grid; gap: 10px; }
.option-card {
  position: relative;
  min-height: 64px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--mm-color-brand-900);
  background: var(--mm-color-surface);
  border: 1px solid var(--mm-color-border);
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.option-card:hover { border-color: var(--mm-color-brand-700); background: var(--mm-color-surface-subtle); }
.option-card--selected, .option-card:has(input:checked) { border-color: var(--mm-color-brand-700); background: var(--mm-color-brand-100); box-shadow: inset 0 0 0 1px var(--mm-color-brand-700); }
.option-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.option-indicator { width: 24px; height: 24px; flex: 0 0 auto; display: grid; place-items: center; background: var(--mm-color-surface); border: 2px solid var(--mm-color-text-muted); border-radius: 50%; }
.option-card input:checked + .option-indicator { border: 7px solid var(--mm-color-brand-700); }
.option-copy { min-width: 0; }
.option-copy strong { display: block; font-size: 1rem; }
.option-copy small { display: block; margin-top: 2px; color: var(--mm-color-text-muted); font-size: .8125rem; }
.date-fields, .reminder-fields { display: grid; gap: 14px; }
.date-unknowns { margin-top: 14px; display: grid; gap: 2px; }
.skip-education { margin-top: 16px; }
.form-error { margin: 16px 0 0; padding: 12px 14px; color: var(--mm-color-danger); background: var(--mm-color-danger-bg); border-left: 4px solid var(--mm-color-danger); border-radius: var(--mm-radius-control); font-weight: 700; }
.question-actions { margin-top: 28px; padding-top: 20px; display: flex; flex-direction: column-reverse; gap: 10px; border-top: 1px solid var(--mm-color-border); }
.question-actions .button { width: 100%; }
.local-processing { margin: 14px auto 0; color: var(--mm-color-text-muted); font-size: .8125rem; text-align: center; }

/* Results */
.result-view { width: min(calc(100% - 32px), 880px); }
.result-card { border-top: 5px solid var(--mm-color-brand-700); }
.result-card.tone-green { border-top-color: var(--mm-color-success); }
.result-card.tone-yellow { border-top-color: var(--mm-color-warning); }
.result-card.tone-orange { border-top-color: var(--mm-color-attention); }
.result-card.tone-red { border-top-color: var(--mm-color-danger); }
.result-header { display: flex; align-items: flex-start; gap: 14px; }
.result-header__icon {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--mm-color-brand-700);
  background: var(--mm-color-brand-100);
  border-radius: 14px;
  font-size: 1.25rem;
  font-weight: 800;
}
.tone-green .result-header__icon { color: var(--mm-color-success); background: var(--mm-color-accent-100); }
.tone-yellow .result-header__icon { color: var(--mm-color-warning); background: var(--mm-color-warning-bg); }
.tone-orange .result-header__icon { color: var(--mm-color-attention); background: var(--mm-color-attention-bg); }
.tone-red .result-header__icon { color: var(--mm-color-danger); background: var(--mm-color-danger-bg); }
.result-header__copy { min-width: 0; }
.result-header h1 { margin: 8px 0 0; font-size: clamp(2rem, 5vw, 2.75rem); }
.status-badge { width: fit-content; max-width: 100%; padding: 5px 9px; display: inline-flex; align-items: center; gap: 6px; color: var(--mm-color-brand-700); background: var(--mm-color-brand-100); border-radius: 999px; font-size: .8125rem; font-weight: 800; line-height: 1.3; }
.status-badge.tone-green { color: var(--mm-color-success); background: var(--mm-color-accent-100); }
.status-badge.tone-yellow { color: var(--mm-color-warning); background: var(--mm-color-warning-bg); }
.status-badge.tone-orange { color: var(--mm-color-attention); background: var(--mm-color-attention-bg); }
.status-badge.tone-red { color: var(--mm-color-danger); background: var(--mm-color-danger-bg); }
.result-situation { margin-top: 24px; padding: 18px; background: var(--mm-color-surface-subtle); border-radius: 12px; }
.result-situation h2, .result-details h2, .timeline h2, .calendar-card h2, .recommendations h2 { margin: 0 0 8px; font-size: 1.25rem; }
.result-situation p, .result-details p { margin: 0; }
.result-details { margin-top: 14px; display: grid; gap: 14px; }
.meaning-panel, .action-panel { padding: 18px; border: 1px solid var(--mm-color-border); border-radius: 12px; }
.action-panel { background: var(--mm-color-brand-100); border-color: var(--mm-color-brand-700); }
.tone-green .action-panel { background: var(--mm-color-accent-100); border-color: var(--mm-color-success); }
.tone-yellow .action-panel { background: var(--mm-color-warning-bg); border-color: var(--mm-color-warning); }
.tone-orange .action-panel { background: var(--mm-color-attention-bg); border-color: var(--mm-color-attention); }
.tone-red .action-panel { background: var(--mm-color-danger-bg); border-color: var(--mm-color-danger); }
.action-panel__label { margin: 0 0 4px !important; color: var(--mm-color-text-muted); font-size: .8125rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.timeline, .recommendations { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--mm-color-border); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.timeline > p { margin-top: 10px; }
.year-scale { position: relative; min-height: 64px; margin: 32px 0 8px; display: grid; grid-template-columns: 2.3fr 1fr 1fr 1.2fr; border: 1px solid var(--mm-color-border); border-radius: var(--mm-radius-control); }
.scale-segment { min-width: 0; padding: 8px 5px; display: flex; align-items: flex-end; font-size: .8125rem; font-weight: 800; }
.scale-segment:first-child { border-radius: 9px 0 0 9px; }
.scale-segment:nth-child(4) { border-radius: 0 9px 9px 0; }
.scale-green { color: var(--mm-color-success); background: var(--mm-color-accent-100); }
.scale-yellow { color: var(--mm-color-warning); background: var(--mm-color-warning-bg); }
.scale-orange { color: var(--mm-color-attention); background: var(--mm-color-attention-bg); }
.scale-red { color: var(--mm-color-danger); background: var(--mm-color-danger-bg); }
.scale-marker { position: absolute; top: -16px; left: 0; width: 3px; height: 87px; background: var(--mm-color-brand-900); border-radius: 3px; transform: translateX(-50%); }
.scale-marker::before { content: ""; position: absolute; top: 0; left: 50%; width: 11px; height: 11px; background: var(--mm-color-brand-900); border-radius: 50%; transform: translateX(-50%); }
.scale-caption, .field-help { margin: 0; color: var(--mm-color-text-muted); font-size: .8125rem; }
.calendar-card { margin-top: 28px; padding: 20px; background: var(--mm-color-surface-subtle); border: 1px solid var(--mm-color-border); border-radius: var(--mm-radius-card); }
.barriers-card { margin-top: 20px; padding: 20px; background: #f4f9ff; border: 1px solid var(--mm-color-border); border-radius: var(--mm-radius-card); }
.barriers-card__heading { display: flex; align-items: flex-start; gap: 12px; }
.barriers-card__heading h2 { margin: 0 0 8px; font-size: 1.25rem; }
.barriers-card__heading p { margin: 0; color: var(--mm-color-text-muted); }
.barriers-card__icon { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; background: var(--mm-color-brand-100); border: 1px solid var(--mm-color-border); border-radius: 12px; }
.barriers-fields { display: grid; gap: 18px; margin-top: 20px; }
.barrier-fieldset { display: grid; gap: 10px; margin: 0; padding: 16px; border: 1px solid var(--mm-color-border); border-radius: var(--mm-radius-control); }
.barrier-fieldset legend { padding: 0 4px; color: var(--mm-color-brand-900); font-weight: 800; }
.other-reason-field { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--mm-color-border); }
.other-reason-field textarea { min-height: 92px; resize: vertical; }
.barriers-success { margin: 16px 0 0; padding: 12px 14px; color: #146c43; background: #e6f6ed; border-left: 4px solid #1d8a52; border-radius: var(--mm-radius-control); font-weight: 700; }
.calendar-card__heading { display: flex; align-items: flex-start; gap: 12px; }
.calendar-card__heading p { margin: 0; color: var(--mm-color-text-muted); }
.calendar-card__icon { width: 44px; height: 44px; padding: 9px; display: grid; place-items: center; flex: 0 0 auto; color: var(--mm-color-brand-700); background: var(--mm-color-brand-100); border: 1px solid var(--mm-color-border); border-radius: 12px; }
.calendar-card__icon svg { width: 100%; height: 100%; }
.exam-preparation { margin-top: 18px; padding: 16px 18px; color: var(--mm-color-brand-900); background: var(--mm-color-surface); border: 1px solid var(--mm-color-brand-700); border-left-width: 4px; border-radius: var(--mm-radius-control); }
.exam-preparation ul { margin: 8px 0 0; padding-left: 1.25rem; }
.exam-preparation li + li { margin-top: 5px; }
.approximate-reminder { margin-top: 16px; padding: 16px; display: grid; gap: 9px; background: var(--mm-color-warning-bg); border-radius: var(--mm-radius-control); }
.action-reminder__intro { margin: 16px 0 0; }
.reminder-fields { margin-top: 14px; }
.calendar-card .button { width: 100%; margin-top: 16px; }
.calendar-button { box-shadow: 0 7px 0 rgb(11 92 173 / 18%), 0 12px 22px var(--mm-color-shadow); transform: translateY(0); transition: transform 120ms ease, box-shadow 120ms ease; }
.calendar-button:hover { box-shadow: 0 5px 0 rgb(11 92 173 / 20%), 0 10px 18px var(--mm-color-shadow-strong); transform: translateY(2px); }
.calendar-button:active { box-shadow: 0 2px 0 rgb(11 92 173 / 20%); transform: translateY(5px); }
.recommendations h2 { font-size: clamp(1.5rem, 3vw, 1.8rem); }
#recommendations-list { margin-top: 14px; display: grid; gap: 10px; }
.recommendation { position: relative; padding: 15px 16px 15px 44px; background: var(--mm-color-brand-100); border-radius: var(--mm-radius-control); }
.recommendation::before { content: ""; position: absolute; top: 19px; left: 17px; width: 10px; height: 6px; border-bottom: 2px solid var(--mm-color-brand-700); border-left: 2px solid var(--mm-color-brand-700); transform: rotate(-45deg); }
.recommendation p { margin: 0; }
.disclosure { margin-top: 28px; padding: 0 18px; border: 1px solid var(--mm-color-border); border-radius: 12px; }
.disclosure summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--mm-color-brand-900); font-weight: 700; cursor: pointer; }
.disclosure summary::after { content: "+"; color: var(--mm-color-brand-700); font-size: 1.25rem; }
.disclosure[open] summary::after { content: "−"; }
.disclosure__intro { margin: 0 0 14px; color: var(--mm-color-text-muted); }
.traceability-list { margin: 0 0 18px; display: grid; gap: 10px; }
.traceability-list div { min-width: 0; }
.traceability-list dt { color: var(--mm-color-brand-900); font-size: .8125rem; font-weight: 800; }
.traceability-list dd { margin: 2px 0 0; overflow-wrap: anywhere; color: var(--mm-color-text-muted); }
.result-actions { margin-top: 24px; padding-top: 22px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--mm-color-border); }
.result-actions .button { width: 100%; }
.disclaimer-box { margin-top: 14px; padding: 14px 16px; color: var(--mm-color-text-muted); background: var(--mm-color-surface-subtle); border-radius: var(--mm-radius-control); font-size: .875rem; }
.urgent-result .disclaimer-box { color: var(--mm-color-danger); background: var(--mm-color-danger-bg); }

/* Directory and about */
.content-view { width: min(100%, var(--mm-container)); margin: 0 auto; padding: 40px 16px 64px; }
.content-view > h1 { max-width: 18ch; margin: 0; }
.directory-toolbar { margin: 28px 0 18px; padding: 16px; display: grid; gap: 14px; background: var(--mm-color-surface-subtle); border: 1px solid var(--mm-color-border); border-radius: var(--mm-radius-card); }
.directory-status { min-height: 24px; margin: 12px 0; color: var(--mm-color-text-muted); }
.directory-list { display: grid; gap: 12px; }
.directory-card { padding: 20px; border: 1px solid var(--mm-color-border); border-radius: var(--mm-radius-card); }
.directory-card h2 { margin: 0 0 6px; font-size: 1.25rem; }
.directory-card p { margin: 4px 0; }
.directory-card a { font-weight: 700; }
.empty-state { padding: 32px 20px; color: var(--mm-color-text-muted); background: var(--mm-color-surface-subtle); border: 1px dashed var(--mm-color-border); border-radius: var(--mm-radius-card); text-align: center; }
.empty-state h2 { margin: 0 0 8px; font-size: 1.25rem; }
.empty-state p { margin: 0 auto; }
.about-grid { margin-top: 28px; display: grid; gap: 12px; }
.about-grid article { padding: 20px; background: var(--mm-color-surface-subtle); border: 1px solid transparent; border-radius: var(--mm-radius-card); }
.about-grid h2 { margin: 0 0 8px; font-size: 1.25rem; }
.about-grid p { margin: 0; }
.sources-box { margin-top: 24px; padding: 20px; border: 1px solid var(--mm-color-border); border-radius: var(--mm-radius-feature); }
.sources-box > h2 { margin: 0 0 8px; }
.source-item { padding: 16px 0; border-top: 1px solid var(--mm-color-border); }
.source-item:first-child { border-top: 0; }
.source-item p { margin: 6px 0 0; color: var(--mm-color-text-muted); }
.source-link { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--mm-color-brand-900); font-weight: 800; text-decoration: none; }
.source-link span { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; color: var(--mm-color-brand-700); background: var(--mm-color-brand-100); border-radius: 50%; }
.source-link:hover { color: var(--mm-color-brand-700); }

/* Información GES */
.ges-view > h1 { max-width: 22ch; }
.ges-highlight { margin: 28px 0 20px; padding: 18px; display: flex; align-items: center; gap: 16px; color: var(--mm-color-brand-900); background: var(--mm-color-brand-100); border: 1px solid var(--mm-color-border); border-radius: var(--mm-radius-card); }
.ges-highlight p { margin: 0; }
.ges-highlight__icon { width: 54px; height: 54px; display: grid; place-items: center; flex: 0 0 auto; color: var(--mm-color-surface); background: var(--mm-color-brand-700); border-radius: 50%; font-size: 1rem; font-weight: 900; }
.ges-grid { display: grid; gap: 14px; }
.ges-card { padding: 20px; background: var(--mm-color-surface); border: 1px solid var(--mm-color-border); border-radius: var(--mm-radius-card); box-shadow: 0 8px 24px var(--mm-color-shadow); }
.ges-card h2 { margin: 0 0 12px; font-size: 1.3rem; }
.ges-card p { margin: 9px 0 0; }
.ges-card__note { color: var(--mm-color-text-muted); font-size: .875rem; }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 6px 0 6px 30px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--mm-color-success); font-weight: 900; }
.ges-times { margin: 0; display: grid; gap: 0; }
.ges-times div { padding: 13px 0; display: grid; gap: 4px; border-top: 1px solid var(--mm-color-border); }
.ges-times div:first-child { padding-top: 0; border-top: 0; }
.ges-times dt { font-weight: 700; }
.ges-times dd { margin: 0; color: var(--mm-color-brand-700); font-weight: 800; }
.copay-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.copay-grid p { margin: 0; padding: 16px; display: flex; flex-direction: column; background: var(--mm-color-surface-subtle); border-radius: 12px; }
.copay-grid strong { color: var(--mm-color-success); font-size: 2rem; line-height: 1; }
.copay-grid span { margin-top: 8px; color: var(--mm-color-text-muted); }
.ges-source { margin-top: 20px; padding: 18px; color: var(--mm-color-text-muted); background: var(--mm-color-surface-subtle); border-radius: var(--mm-radius-card); }
.ges-source p { margin: 5px 0 0; }

/* Footer */
.app-footer { padding: 0 16px 28px; }
.app-footer__inner { width: min(100%, 700px); margin: 0 auto; padding: 18px; display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--mm-color-border); }
.creator-photo { width: 72px; height: 72px; flex: 0 0 auto; object-fit: cover; border-radius: 50%; box-shadow: 0 8px 22px var(--mm-color-shadow-strong); }
.creator-copy { min-width: 0; }
.creator-label { display: block; color: var(--mm-color-text-muted); font-size: .8125rem; font-weight: 700; }
.creator-copy strong { display: block; color: var(--mm-color-brand-900); }
.creator-copy p { margin: 3px 0 10px; color: var(--mm-color-text-muted); font-size: .8125rem; }
.portal-home-link { min-height: 40px; margin: 0 0 10px; display: inline-flex; align-items: center; color: var(--mm-color-brand-700); font-size: .8125rem; font-weight: 800; text-decoration: none; }
.portal-home-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.social-links { display: flex; gap: 8px; }
.social-links a { width: 44px; height: 44px; display: grid; place-items: center; color: var(--mm-color-brand-700); background: var(--mm-color-brand-100); border-radius: 50%; font-weight: 800; text-decoration: none; }
.social-links a:hover { color: var(--mm-color-surface); background: var(--mm-color-brand-700); }
.social-links svg { width: 20px; height: 20px; }

/* Responsive matrix */
@media (min-width: 480px) {
  .hero, .content-view { padding-inline: 24px; }
  .question-card, .result-card { padding: 32px; }
  .date-fields, .reminder-fields { grid-template-columns: 1fr 1fr; }
  .question-actions { flex-direction: row; justify-content: space-between; }
  .question-actions .button { width: auto; }
  .result-actions { flex-direction: row; }
  .result-actions .button { width: auto; }
  .calendar-card .button { width: auto; }
  .trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust-item { display: block; }
  .trust-item__number { margin-bottom: 8px; }
  .copay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .app-header { position: sticky; top: 0; background: var(--mm-color-surface); }
  .app-header__inner { padding-inline: 24px; }
  .brand-lockup small { display: block; }
  .primary-nav { position: static; min-height: auto; padding: 4px; display: flex; border-radius: 12px; box-shadow: none; }
  .primary-nav button { min-height: 42px; padding-inline: 14px; }
  .hero { padding-top: 48px; padding-bottom: 72px; }
  .hero::before { width: 680px; right: -160px; top: -12px; opacity: .085; }
  .question-view, .result-view { padding-top: 40px; padding-bottom: 72px; }
  .result-details { grid-template-columns: 1fr 1fr; }
  .directory-toolbar { grid-template-columns: minmax(180px, .7fr) minmax(260px, 1.3fr); }
  .directory-list, .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ges-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ges-card--wide { grid-column: 1 / -1; }
  .ges-times { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .ges-times div:nth-child(2) { padding-top: 0; border-top: 0; }
  .app-footer { padding-bottom: 36px; }
}

@media (min-width: 1024px) {
  .app-header__inner { padding-inline: 32px; }
  .hero { padding: 64px 32px 80px; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .72fr); align-items: center; gap: 64px; }
  .hero::before { width: 760px; right: 112px; top: 2px; opacity: .09; }
  .scope-card { padding: 32px; }
  .content-view { padding: 64px 32px 80px; }
  .question-card, .result-card { padding: 40px; }
  .calendar-card { padding: 24px; }
  .barriers-card { padding: 24px; }
}

@media (min-width: 1280px) {
  .hero { gap: 80px; }
  .question-view { width: min(calc(100% - 64px), 760px); }
  .result-view { width: min(calc(100% - 64px), 920px); }
}

@media (max-width: 359px) {
  .brand-lockup__copy small { display: none; }
  .primary-nav button { padding-inline: 4px; font-size: .72rem; }
  .result-header { flex-direction: column; }
  .section-heading { flex-direction: column; }
  .year-scale { grid-template-columns: 2fr 1fr 1fr 1.1fr; }
  .scale-segment { padding-inline: 3px; font-size: .7rem; }
  .app-footer__inner { align-items: flex-start; }
  .creator-photo { width: 60px; height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

@media print {
  body { padding: 0; }
  .app-header, .app-footer, .button, .progress-indicator, .local-processing, .directory-toolbar, .disclosure { display: none !important; }
  .result-view { width: 100%; padding: 0; }
  .result-card { box-shadow: none; }
}

/* Custom Directory Styling */
.directory-referential-note {
  margin: 12px 0 24px;
  padding: 12px 16px;
  color: var(--mm-color-text-muted);
  background: var(--mm-color-surface-subtle);
  border: 1px solid var(--mm-color-border);
  border-radius: var(--mm-radius-control);
  font-size: 0.875rem;
  line-height: 1.45;
}

.directory-card {
  padding: 20px;
  background: var(--mm-color-surface);
  border: 1px solid var(--mm-color-border);
  border-radius: var(--mm-radius-card);
  box-shadow: var(--mm-shadow-base);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.directory-card h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  color: var(--mm-color-brand-900);
}

.directory-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--mm-color-text);
}

.directory-card__type {
  font-weight: 700;
  color: var(--mm-color-brand-700) !important;
}

.directory-card__actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.directory-action-btn {
  min-height: 42px;
  padding: 0 14px;
  font-size: 0.875rem;
  text-decoration: none;
}

.directory-action-btn--wsp:hover {
  border-color: #25D366;
  background: #E8FADF;
  color: #128C7E;
}
