/* ============================================
   Tivan — Manual de identidad v1.0
   ============================================ */

:root {
  --bg: #F7F5EF;
  --surface: #FFFDF8;
  --text: #141413;
  --text-muted: #4A6B66;
  --accent: #0F4C45;
  --accent-hover: #0C3D38;
  --accent-light: #E7EEEC;
  --amber: #E8A23B;
  --amber-hover: #D4922E;
  --amber-dark: #9A5F0E;
  --accent-warm: #9A5F0E;
  --border: #E3DDD0;
  --highlight: #ECE8DD;
  --warning: #9A5F0E;
  --warning-bg: #FBF3E4;
  --success: #0F4C45;
  --success-bg: #E7EEEC;
  --error-bg: #FEF2F2;
  --error-border: #FCA5A5;
  --error-text: #991B1B;
  --radius: 12px;
  --font-display: 'Sora', system-ui, sans-serif;
  --font-serif: var(--font-display);
  --font-sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --shadow: 0 1px 3px rgba(20, 20, 19, 0.06), 0 4px 14px rgba(20, 20, 19, 0.04);
  --shadow-lg: 0 4px 20px rgba(20, 20, 19, 0.08);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  padding: 16px;
  padding-bottom: 40px;
}

.wrap { max-width: 480px; margin: 0 auto; }

/* ===== HEADER ===== */
.site-header {
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

header {
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.brand-mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-mark svg { width: 40px; height: 40px; display: block; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  line-height: 1;
}
.brand-slogan {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.brand-slogan strong,
.footer-slogan strong {
  color: var(--accent);
  font-weight: 700;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-warm);
  font-weight: 600;
  margin: 0 0 8px;
}
h1 {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 40px;
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 strong { color: var(--accent); font-weight: 600; }
.sub { font-size: 15px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ===== STEPS ===== */
.steps {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}
.step {
  flex: 1;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  text-align: center;
}
.step.active { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.step.done { color: var(--text); border-color: var(--accent-warm); }

.progress-bar-wrap {
  margin-bottom: 24px;
}
.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.35s ease;
}
.progress-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: right;
}

.trust-note {
  background: var(--highlight);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.55;
}
.trust-note em {
  color: var(--text);
  font-style: normal;
  font-weight: 500;
}

.trust-note--prominent {
  margin-bottom: 28px;
  font-size: 15px;
}

/* ===== LANDING ===== */
.landing-hero {
  margin-bottom: 24px;
}
.landing-lead {
  font-size: 16px;
  line-height: 1.55;
}
.landing-section {
  margin-bottom: 28px;
}
.landing-heading {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--text);
}
.landing-text {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}
.how-it-works {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.how-it-works li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.how-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--highlight);
  color: var(--accent-warm);
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
}
.how-it-works strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--text);
}
.how-it-works p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}
.landing-includes {
  margin: 0;
  padding: 0;
  list-style: none;
}
.landing-includes li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 0 8px 22px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.landing-includes li:last-child { border-bottom: none; }
.landing-includes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.landing-cta {
  text-align: center;
  margin: 32px 0 24px;
}
.landing-cta-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 12px 0 0;
}
.btn-primary--large {
  padding: 16px 24px;
  font-size: 16px;
  width: 100%;
}

.wizard-chrome {
  margin-top: 24px;
  margin-bottom: 8px;
}

/* ===== SCREENS ===== */
.screen { display: none; }
.screen.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 28px;
  letter-spacing: -0.01em;
  color: var(--text);
  font-weight: 600;
  margin: 0 0 12px;
  padding-bottom: 0;
  border-bottom: none;
}

/* ===== FIELDS ===== */
.field { margin-bottom: 20px; }
.field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.field-label label { margin-bottom: 0; }
.info-btn {
  flex: none;
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  line-height: 16px;
  letter-spacing: 0;
  cursor: pointer;
}
.info-btn:hover { background: var(--accent-light); }
.field .hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.field .optional {
  font-weight: 400;
  color: var(--text-muted);
}
.input-wrap { position: relative; }
.input-wrap .prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}
.input-wrap .suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
}
input[type="number"], input[type="text"], input[type="email"] {
  width: 100%;
  padding: 14px;
  padding-left: 32px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input.no-prefix { padding-left: 14px; }
input.with-suffix { padding-right: 60px; }
input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 76, 69, 0.18);
}
input::placeholder { color: #8A9E9A; }
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

/* ===== BUTTONS ===== */
.btn-row { display: flex; gap: 10px; margin-top: 24px; }
button {
  flex: 1;
  padding: 14px 16px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
  border-radius: var(--radius);
}
.btn-primary {
  background: var(--amber);
  color: var(--text);
  border-color: var(--amber);
}
.btn-primary:hover { background: var(--amber-hover); border-color: var(--amber-hover); }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
}
.btn-secondary:active { background: var(--bg); }
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ===== UNLOCK BANNER & SCENARIO PREVIEW ===== */
.unlock-banner {
  background: var(--highlight);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.5;
  text-align: center;
}

.scenario-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.preview-ready {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 20px;
}

/* ===== SCENARIO CARDS ===== */
.scenario-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  position: relative;
}

.scenario-card--locked {
  background: var(--surface);
  border-style: dashed;
}

.scenario-card--locked .scenario-card-body {
  filter: none;
  user-select: auto;
  pointer-events: auto;
  opacity: 0.85;
}

.scenario-card--recommended {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}

.scenario-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.scenario-card-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.scenario-path-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-warm);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.scenario-card-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.scenario-included {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  flex-shrink: 0;
}

.scenario-included svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.scenario-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

.scenario-card-destacado {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 12px;
  line-height: 1.4;
}

.scenario-score {
  margin-bottom: 12px;
}

.scenario-score-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.scenario-score-bar {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.scenario-score-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.scenario-pros-cons {
  display: grid;
  gap: 10px;
  font-size: 13px;
}

.scenario-pros-cons ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

.scenario-pros-cons li { margin-bottom: 4px; color: var(--text-muted); }
.scenario-pros-cons strong {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}

/* ===== PRICE CARD ===== */
.price-card {
  background: var(--accent);
  color: var(--bg);
  padding: 24px 20px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 1px solid rgba(247, 245, 239, 0.15);
}
.price-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 245, 239, 0.75);
  margin-bottom: 8px;
  font-weight: 500;
}
.price-amount {
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}
.price-currency {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.85;
}
.price-detail {
  font-size: 13px;
  color: rgba(247, 245, 239, 0.85);
  margin-bottom: 18px;
}
.price-features {
  text-align: left;
  margin: 0;
  list-style: none;
  border-top: 1px solid rgba(247, 245, 239, 0.2);
  padding-top: 16px;
}
.price-features li {
  font-size: 13px;
  padding: 5px 0;
  padding-left: 22px;
  position: relative;
  color: rgba(247, 245, 239, 0.95);
}
.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* ===== PAYMENT METHODS ===== */
.payment-method-title {
  font-size: 14px;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--text);
}
.payment-method-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin: 16px 0 8px;
}
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.payment-methods--secondary { margin-top: 0; }
.pay-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-transform: none;
  letter-spacing: normal;
  font-weight: normal;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.pay-method:hover { border-color: var(--accent); }
.pay-method:active { transform: scale(0.99); }
.pay-method--secondary {
  background: var(--bg);
  box-shadow: none;
}
.pay-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 8px;
  flex-shrink: 0;
  color: var(--accent);
}
.pay-icon svg { width: 20px; height: 20px; }
.pay-label { flex: 1; display: flex; flex-direction: column; }
.pay-label strong {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text);
}
.pay-label small { font-size: 12px; color: var(--text-muted); }

.demo-banner {
  background: var(--warning-bg);
  border: 1px dashed var(--warning);
  border-radius: var(--radius);
  padding: 12px;
  font-size: 13px;
  color: var(--amber-dark);
  margin-bottom: 16px;
  line-height: 1.4;
}

/* ===== RESULT ===== */
.result-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.result-hero-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.result-hero-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 10px;
  line-height: 1.25;
}
.result-hero-resumen {
  font-size: 15px;
  color: var(--text);
  margin: 0;
  line-height: 1.45;
}

.scenario-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.analysis {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.analysis h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: -0.01em;
  text-transform: none;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
}
.metric {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.metric:last-child { border-bottom: none; }
.metric-label { font-size: 13px; color: var(--text-muted); flex: 1; }
.metric-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  white-space: nowrap;
}
.metric-value.alert { color: var(--warning); }
.metric-value.good { color: var(--success); }

.reasoning {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px;
  margin-bottom: 16px;
  font-size: 14px;
  box-shadow: var(--shadow);
}
.reasoning strong { display: block; margin-bottom: 6px; font-weight: 600; }
.reasoning ul { margin: 8px 0 0; padding-left: 20px; }
.reasoning li { margin-bottom: 6px; color: var(--text-muted); }

.disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  padding: 16px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
  line-height: 1.5;
}

.error {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--error-text);
}

.success {
  background: var(--success-bg);
  border: 1px solid rgba(15, 76, 69, 0.28);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--accent);
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20, 20, 19, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.modal h2 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
}
.modal p { margin: 0 0 12px; font-size: 14px; color: var(--text-muted); }

.help-modal-content {
  max-width: min(920px, 100%);
  padding: 16px;
}
.help-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.help-modal-head h2 { margin: 0; }
.help-close {
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
}
.help-modal img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 16px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.oxxo-voucher {
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
  text-align: center;
}
.oxxo-voucher .ref-number {
  font-family: 'Courier New', monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 12px 0;
  word-break: break-all;
}
.oxxo-voucher .amount {
  font-size: 26px;
  font-weight: 700;
  margin: 8px 0;
  color: var(--accent);
}
.oxxo-voucher .expires {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== SUGERENCIAS ===== */
.suggest-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-top: 10px;
  font-size: 13px;
}
.suggest-title {
  font-size: 12px;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 600;
}
.suggest-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.suggest-links a {
  display: inline-block;
  padding: 6px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.15s;
}
.suggest-links a:active { background: var(--accent-light); }
.suggest-tip {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 4px;
}

/* ===== CHECKBOX LEGAL ===== */
.legal-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.4;
}
.legal-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.legal-checkbox label {
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: normal;
}
.legal-checkbox a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 500;
}

/* ===== FOOTER ===== */
.site-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-brand { margin-bottom: 16px; }
.footer-wordmark {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 2px;
}
.footer-brand span { font-size: 12px; color: var(--text-muted); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.footer-links a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 0;
}
.footer-links a:hover { color: var(--accent); }
.footer-legal {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.5;
  padding-bottom: 8px;
}

/* ===== PÁGINAS LEGALES ===== */
.legal-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px;
}
.legal-page h1 {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 40px;
  margin: 24px 0 8px;
  font-weight: 700;
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 28px;
  margin: 32px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
}
.legal-page h3 {
  font-size: 15px;
  margin: 20px 0 8px;
  color: var(--accent);
}
.legal-page p, .legal-page li {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
  color: var(--text-muted);
}
.legal-page ul, .legal-page ol { padding-left: 24px; }
.legal-page .updated {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.legal-page a:not(.back-link) {
  color: var(--accent);
}
.legal-page .back-link {
  display: inline-block;
  margin: 24px 0 16px;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.legal-page .placeholder {
  background: var(--warning-bg);
  padding: 2px 6px;
  border: 1px dashed var(--warning);
  border-radius: 4px;
  font-family: monospace;
  font-size: 13px;
  color: var(--amber-dark);
}
.faq-item {
  margin-bottom: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}
.faq-item:last-child { margin-bottom: 0; }
.faq-q {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 8px;
}
.faq-a {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== ANÁLISIS CON IA ===== */
.ai-badge {
  display: inline-block;
  margin: 12px 0 0;
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 999px;
}
.next-steps { border-left-color: var(--success); }
.next-steps strong { color: var(--success); }

/* ===== RESULT ACTIONS / PDF ===== */
.result-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.result-actions .btn-secondary {
  width: 100%;
}
.result-email-status {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.45;
  min-height: 1.2em;
}
.result-email-status--error {
  color: var(--error-text);
}

@media print {
  body * {
    visibility: hidden;
  }
  body.printing-analysis .site-header,
  body.printing-analysis .site-header *,
  body.printing-analysis #screen4,
  body.printing-analysis #screen4 #resultado,
  body.printing-analysis #screen4 #resultado * {
    visibility: visible;
  }
  body.printing-analysis .site-header {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
    border: none;
    background: #fff;
  }
  body.printing-analysis #screen4 {
    position: absolute;
    left: 0;
    top: 72px;
    width: 100%;
    display: block !important;
    padding: 0;
  }
  body.printing-analysis .no-print,
  body.printing-analysis #screen4 > .btn-row,
  body.printing-analysis #screen4 > .disclaimer,
  body.printing-analysis .site-footer,
  body.printing-analysis .result-actions {
    display: none !important;
  }
  body.printing-analysis .scenario-card,
  body.printing-analysis .result-hero,
  body.printing-analysis .reasoning,
  body.printing-analysis .analysis {
    break-inside: avoid;
    box-shadow: none;
  }
}
