/* PréstamoYa — hoja de estilos principal (fintech, mobile-first).
   Fuente: Plus Jakarta Sans (Google Fonts, con fallback al stack del sistema). */

:root {
  --brand: #1D4ED8;
  --brand-dark: #1E3A8A;
  --brand-light: #EFF6FF;
  --accent: #F97316;
  --accent-dark: #EA580C;
  --green: #16A34A;
  --green-bg: #F0FDF4;
  --green-line: #BBE7C8;
  --red: #DC2626;
  --red-bg: #FEF2F2;
  --amber-bg: #FFFBEB;
  --amber-line: #FDE68A;
  --ink: #0F172A;
  --ink-soft: #475569;
  --ink-faint: #94A3B8;
  --line: #E2E8F0;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(15,23,42,.07), 0 10px 28px -14px rgba(15,23,42,.14);
  --shadow-hover: 0 4px 10px rgba(15,23,42,.06), 0 18px 40px -16px rgba(15,23,42,.22);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { flex: 1; }

/* ---------- Animaciones base ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(22,163,74,.45); }
  70%  { box-shadow: 0 0 0 9px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}
@keyframes blob-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-30px, 24px) scale(1.08); }
}
@keyframes blob-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(26px, -20px) scale(1.12); }
}
@keyframes grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Reveal on scroll (lo activa home.js) */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

a { color: var(--brand); }

/* ---------- Topbar ---------- */
.topbar {
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
  transition: box-shadow .25s ease, background .25s ease;
}
.topbar.scrolled { box-shadow: 0 8px 30px -14px rgba(15,23,42,.25); background: rgba(255,255,255,.98); }
.topbar-inner {
  max-width: 1080px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; cursor: pointer; }
.brand-name { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -0.3px; }
.brand-name span { color: var(--brand); }
.nav { display: none; gap: 22px; }
.nav a {
  text-decoration: none; color: var(--ink-soft); font-size: 14px; font-weight: 600;
  position: relative; transition: color .18s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 2px;
  background: var(--accent); border-radius: 2px; transition: right .22s ease;
}
.nav a:hover, .nav a.active { color: var(--brand); }
.nav a:hover::after { right: 0; }
@media (min-width: 760px) { .nav { display: flex; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; background: var(--accent); color: #fff; border: none;
  border-radius: 11px; font-size: 15.5px; font-weight: 800; cursor: pointer;
  text-decoration: none; letter-spacing: .1px;
  box-shadow: 0 10px 22px -10px rgba(249,115,22,.55);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 16px 28px -10px rgba(234,88,12,.6); }
.btn:active { transform: translateY(0); }
.btn:disabled { background: #F3C49B; cursor: default; box-shadow: none; transform: none; }
.btn-primary { background: var(--brand); box-shadow: 0 10px 22px -10px rgba(29,78,216,.5); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 16px 28px -10px rgba(30,58,138,.55); }
.btn-ghost { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); box-shadow: none; }
.btn-ghost:hover { background: var(--brand-light); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 9px; }

/* ---------- Layout ---------- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.section { padding: 44px 0; }
.section-title { font-size: clamp(25px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.8px; text-align: center; line-height: 1.2; }
.section-sub { font-size: 15.5px; color: var(--ink-soft); text-align: center; margin: 12px auto 32px; max-width: 580px; line-height: 1.65; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 88% -12%, rgba(249,115,22,.30), transparent 62%),
    radial-gradient(900px 500px at -12% 112%, rgba(125,180,255,.28), transparent 60%),
    linear-gradient(160deg, #16296B 0%, #1D4ED8 52%, #2E63E7 100%);
  color: #fff; padding: 60px 0 76px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(70px);
}
.hero::before {
  width: 440px; height: 440px; background: rgba(249,115,22,.22);
  top: -160px; right: -100px; animation: blob-a 13s ease-in-out infinite;
}
.hero::after {
  width: 380px; height: 380px; background: rgba(96,165,250,.25);
  bottom: -150px; left: -90px; animation: blob-b 16s ease-in-out infinite;
}
.hero-inner { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 20px; display: grid; gap: 36px; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.1fr .9fr; align-items: center; } }

/* Entrada escalonada del copy del hero */
.hero-inner > div:first-child > * {
  opacity: 0;
  animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-inner > div:first-child > :nth-child(1) { animation-delay: .05s; }
.hero-inner > div:first-child > :nth-child(2) { animation-delay: .15s; }
.hero-inner > div:first-child > :nth-child(3) { animation-delay: .25s; }
.hero-inner > div:first-child > :nth-child(4) { animation-delay: .35s; }
.hero-inner > div:first-child > :nth-child(5) { animation-delay: .45s; }

.hero h1 { font-size: clamp(33px, 4.6vw, 47px); line-height: 1.12; font-weight: 800; letter-spacing: -1px; }
.hero h1 em { font-style: normal; color: #FDBA74; position: relative; z-index: 0; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 9px;
  background: rgba(249,115,22,.35); border-radius: 4px; z-index: -1;
}
.hero p.lead { margin: 18px 0 28px; font-size: 17px; line-height: 1.62; color: #DCE7FB; max-width: 490px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: #B9CBF2; letter-spacing: .2px; }

/* Tarjeta del hero (mockup de préstamo aprobado) */
.hero-card {
  background: #fff; color: var(--ink); border-radius: 20px; box-shadow: 0 30px 70px -22px rgba(2,20,60,.55);
  padding: 26px; max-width: 400px; margin: 0 auto; width: 100%;
  opacity: 0;
  animation: rise .8s .35s cubic-bezier(.2,.7,.2,1) forwards, floaty 6.5s 1.25s ease-in-out infinite;
}
.hero-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 10px; }
.hero-card-amount { font-size: 32px; font-weight: 800; letter-spacing: -0.6px; color: var(--ink); }
.hero-card-amount small { font-size: 13px; font-weight: 700; color: var(--ink-faint); display: block; letter-spacing: .4px; text-transform: uppercase; margin-bottom: 3px; }
.pill-approved {
  background: var(--green-bg); color: #15803D; border: 1px solid var(--green-line);
  border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .8px; padding: 5px 12px; white-space: nowrap;
  animation: pulse-ring 2.4s ease-out infinite;
}
.hero-card-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-soft); padding: 9px 0; border-top: 1px solid var(--line); }
.hero-card-row b { color: var(--ink); font-weight: 700; }
.hero-card .btn { margin-top: 16px; }

/* ---------- Stats strip ---------- */
.stats { background: linear-gradient(180deg, #fff, #F4F8FF); border-bottom: 1px solid var(--line); }
.stats-inner { max-width: 1080px; margin: 0 auto; padding: 26px 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: center; }
.stat b { display: block; font-size: clamp(24px, 3vw, 30px); font-weight: 800; color: var(--brand); letter-spacing: -0.6px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; margin-top: 2px; display: block; }
@media (max-width: 520px) { .stat b { font-size: 20px; } .stat span { font-size: 11.5px; } }

/* ---------- Steps ---------- */
.steps-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: #C7DAFB; }
.step-num {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, #1D4ED8, #3B82F6); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; margin-bottom: 14px;
  box-shadow: 0 8px 18px -8px rgba(29,78,216,.55);
}
.step-card h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.2px; }
.step-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }

/* ---------- Cards genéricas ---------- */
.grid-2 { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: #C7DAFB; }
.info-card .ico {
  width: 40px; height: 40px; border-radius: 10px; background: var(--brand-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.info-card h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 6px; }
.info-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Testimonios ---------- */
.testi-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.testi-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: #FBD9BD; }
.testi-stars { color: #F59E0B; font-size: 14px; letter-spacing: 2px; margin-bottom: 10px; }
.testi-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }
.testi-who { margin-top: 12px; font-size: 13px; font-weight: 700; }
.testi-who small { display: block; color: var(--ink-faint); font-weight: 500; margin-top: 1px; }

/* ---------- FAQ ---------- */
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.faq-item:hover { border-color: #C7DAFB; }
.faq-item.open { border-color: #BFDBFE; box-shadow: var(--shadow); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 16px 18px; font-size: 14.5px; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: inherit; transition: color .18s ease;
}
.faq-q:hover { color: var(--brand); }
.faq-q .chev { transition: transform .28s ease; color: var(--ink-faint); flex: none; }
.faq-item.open .chev { transform: rotate(180deg); color: var(--brand); }
.faq-a {
  max-height: 0; opacity: 0; padding: 0 18px; overflow: hidden;
  font-size: 13.5px; color: var(--ink-soft); line-height: 1.6;
  transition: max-height .35s ease, opacity .3s ease, padding .35s ease;
}
.faq-item.open .faq-a { max-height: 240px; opacity: 1; padding: 0 18px 16px; }

/* ---------- CTA final ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 20px; padding: 44px 24px; text-align: center; color: #fff;
  background:
    radial-gradient(600px 260px at 85% 0%, rgba(249,115,22,.35), transparent 60%),
    linear-gradient(120deg, #16296B 0%, #1D4ED8 45%, #2E63E7 70%, #16296B 100%);
  background-size: 100% 100%, 220% 220%;
  animation: grad-shift 9s ease-in-out infinite;
  box-shadow: 0 24px 50px -24px rgba(30,58,138,.6);
}
.cta-band h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -0.5px; }
.cta-band p { margin: 10px 0 24px; color: #DCE7FB; font-size: 15.5px; }

/* ---------- Formulario ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 26px 22px 28px; max-width: 560px; margin: 0 auto; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 15px; color: var(--ink); background: #fff; font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.field input::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29,78,216,.14); }
.field input.invalid, .field select.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(220,38,38,.10); }
.field .hint { font-size: 11.5px; color: var(--ink-faint); margin-top: 5px; }
.row { display: flex; gap: 12px; }
.row .field { flex: 1; }
@media (max-width: 460px) { .row { flex-direction: column; gap: 0; } }

.input-suffix { position: relative; }
.input-suffix input { padding-right: 76px; }
.brand-badge { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; height: 22px; pointer-events: none; }

.form-error { display: none; margin-top: 12px; text-align: center; color: var(--red); font-size: 13px; font-weight: 600; }
.form-error.show { display: block; }
.form-note { margin-top: 14px; font-size: 11.5px; color: var(--ink-faint); text-align: center; line-height: 1.6; }

/* ---------- Stepper (multi-step) ---------- */
.stepper { max-width: 560px; margin: 0 auto 22px; padding: 0 20px; }
.stepper-track { display: flex; align-items: center; gap: 6px; }
.stepper-dot {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line); color: var(--ink-faint);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
  transition: all .2s ease;
}
.stepper-dot.active { border-color: var(--brand); background: var(--brand); color: #fff; }
.stepper-dot.done { border-color: var(--green); background: var(--green); color: #fff; }
.stepper-line { flex: 1; height: 3px; border-radius: 2px; background: var(--line); transition: background .2s ease; }
.stepper-line.done { background: var(--green); }
.stepper-label { text-align: center; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin-top: 10px; }

.step-panel { display: none; }
.step-panel.active { display: block; }
.step-nav { display: flex; gap: 10px; margin-top: 20px; }
.step-nav .btn { flex: 1; }
.step-nav .btn-ghost { flex: 0 0 auto; }

/* ---------- Simulador ---------- */
.sim-wrap { display: grid; gap: 20px; max-width: 880px; margin: 0 auto; }
@media (min-width: 860px) { .sim-wrap { grid-template-columns: 1fr 1fr; align-items: start; } }
.sim-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 26px 24px; }
.sim-card h2 { font-size: 19px; font-weight: 800; margin-bottom: 20px; }
.amount-display { text-align: center; margin: 18px 0 8px; }
.amount-display b { font-size: 34px; font-weight: 800; color: var(--brand); letter-spacing: -0.8px; }
.amount-display span { display: block; font-size: 13px; color: var(--ink-faint); margin-top: 2px; }
input[type=range] {
  width: 100%; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, var(--brand) var(--fill, 20%), var(--line) var(--fill, 20%));
  outline: none; margin: 6px 0 2px;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand); box-shadow: 0 2px 6px rgba(15,23,42,.25); cursor: pointer;
}
input[type=range]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--brand);
  box-shadow: 0 2px 6px rgba(15,23,42,.25); cursor: pointer;
}
.range-marks { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-faint); }
.sim-result-row { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.sim-result-row:last-of-type { border-bottom: none; }
.sim-result-row span { font-size: 13.5px; color: var(--ink-soft); }
.sim-result-row b { font-size: 17px; font-weight: 800; }
.sim-result-row.big b { font-size: 26px; color: var(--brand); }
.sim-fine { font-size: 11px; color: var(--ink-faint); margin-top: 14px; line-height: 1.5; }

/* ---------- Estado ---------- */
.estado-result { display: none; margin-top: 18px; }
.estado-result.show { display: block; }
.estado-banner { border-radius: 12px; padding: 16px; display: flex; gap: 12px; align-items: flex-start; }
.estado-banner.ok { background: var(--green-bg); border: 1px solid var(--green-line); }
.estado-banner.pending { background: var(--amber-bg); border: 1px solid var(--amber-line); }
.estado-banner h3 { font-size: 15.5px; font-weight: 800; }
.estado-banner p { font-size: 13px; margin-top: 4px; line-height: 1.55; }
.estado-banner.ok h3 { color: #166534; }
.estado-banner.ok p { color: #3F6212; }
.estado-banner.pending h3 { color: #92400E; }
.estado-banner.pending p { color: #854D0E; }
.estado-summary { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-top: 12px; padding: 14px 16px; font-size: 13.5px; }
.estado-summary div { display: flex; justify-content: space-between; padding: 6px 0; }
.estado-summary b { font-weight: 700; }
.estado-comision {
  margin-top: 12px; background: #FFF7ED; border: 1px solid #FED7AA; border-radius: 12px; padding: 14px 16px;
  font-size: 13px; color: #7C2D12; line-height: 1.55;
}
.estado-comision b { color: #9A3412; }
.estado-id { text-align: center; font-size: 11.5px; color: var(--ink-faint); margin-top: 14px; }

/* ---------- Overlay de carga ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(248,250,252,.97);
  display: none; flex-direction: column; align-items: center; justify-content: center;
  z-index: 60; text-align: center; padding: 24px;
}
.overlay.show { display: flex; }
.spinner {
  width: 52px; height: 52px; border-radius: 50%;
  border: 4px solid #DBEAFE; border-top-color: var(--brand);
  animation: spin .8s linear infinite; margin-bottom: 22px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.overlay-title { font-size: 17px; font-weight: 800; }
.overlay-step { font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; min-height: 20px; }

/* ---------- Exito ---------- */
.success { text-align: center; padding: 8px 0; }
.success-icon {
  width: 76px; height: 76px; border-radius: 50%; background: var(--green);
  display: flex; align-items: center; justify-content: center; margin: 6px auto 18px;
  animation: pop .35s ease;
}
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.success h2 { font-size: 21px; font-weight: 800; }
.success p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin: 10px auto 22px; max-width: 380px; }
.success .fine { font-size: 12px; color: var(--ink-faint); margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 48px; }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 30px 20px; display: grid; gap: 24px; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-col h4 { font-size: 13.5px; font-weight: 800; margin-bottom: 10px; }
.footer-col a { display: block; color: var(--ink-soft); text-decoration: none; font-size: 13px; padding: 4px 0; }
.footer-col a:hover { color: var(--brand); }
.footer-col p { font-size: 12.5px; color: var(--ink-faint); line-height: 1.6; }
.footer-legal { max-width: 1080px; margin: 0 auto; padding: 16px 20px 26px; border-top: 1px solid var(--line); font-size: 11px; color: var(--ink-faint); line-height: 1.7; }

/* ---------- 404 ---------- */
.err-page { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.err-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 44px 38px; text-align: center; max-width: 400px; box-shadow: var(--shadow); }
.err-code { font-size: 46px; font-weight: 800; color: var(--brand); }
.err-box h1 { font-size: 18px; margin: 10px 0 8px; }
.err-box p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 18px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-inner > div:first-child > *, .hero-card { opacity: 1; transform: none; }
}

/* ---------- Condiciones ---------- */
.doc { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 30px 26px; max-width: 760px; margin: 0 auto; }
.doc h1 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.doc .doc-meta { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 22px; }
.doc h2 { font-size: 16px; font-weight: 800; margin: 24px 0 8px; }
.doc p, .doc li { font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 6px; }
