/* Facilidad Deuda — static site core, 2026-08-28 */
:root {
  --ink: #102a43;
  --ink-2: #243b53;
  --muted: #52667a;
  --paper: #fffef9;
  --cream: #f6f3e9;
  --mint: #dff3ea;
  --green: #08735f;
  --green-dark: #055447;
  --yellow: #ffc857;
  --line: #ced8d4;
  --white: #ffffff;
  --danger: #8f2d2d;
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 36px;
  --shadow: 0 14px 40px rgba(16, 42, 67, .10);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green-dark); text-decoration-thickness: .09em; text-underline-offset: .18em; }
a:hover { color: var(--green); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 1000;
  background: var(--ink); color: var(--white); padding: 10px 16px;
  border-radius: 0 0 10px 10px;
}
.skip-link:focus { top: 0; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 780px); margin-inline: auto; }
.section { padding: 88px 0; }
.section-sm { padding: 54px 0; }
.section-tint { background: var(--cream); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark a { color: var(--yellow); }

h1, h2, h3, .display {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color: var(--ink); letter-spacing: -.025em; text-wrap: balance;
}
h1 { font-size: clamp(2.85rem, 6.1vw, 5.7rem); line-height: .98; margin: 0 0 28px; }
h2 { font-size: clamp(2.1rem, 4vw, 3.8rem); line-height: 1.04; margin: 0 0 22px; }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.16; margin: 0 0 12px; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.35em; padding-left: 1.35em; }
li + li { margin-top: .55em; }
.lede { font-size: clamp(1.16rem, 2vw, 1.36rem); line-height: 1.55; color: var(--ink-2); max-width: 710px; }
.eyebrow { margin: 0 0 18px; color: var(--green-dark); font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.kicker { font-size: .94rem; color: var(--muted); font-weight: 700; }
.text-muted { color: var(--muted); }
.text-small { font-size: .88rem; line-height: 1.55; }
.section-heading { max-width: 760px; margin-bottom: 44px; }
.section-heading p { color: var(--muted); font-size: 1.1rem; }

.site-header { border-bottom: 1px solid var(--line); background: rgba(255, 254, 249, .97); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { flex: 0 0 auto; }
.brand img { width: 242px; height: auto; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 10px 24px; flex-wrap: wrap; }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); font-size: .95rem; font-weight: 700; text-decoration: none; padding: 10px 2px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--green-dark); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.site-nav .nav-cta { background: var(--green); color: var(--white); padding: 12px 18px; border-radius: 999px; }
.site-nav .nav-cta:hover { background: var(--green-dark); color: var(--white); text-decoration: none; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 30px; }
.btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 22px; border-radius: 999px; font-weight: 800; text-decoration: none; line-height: 1.2; transition: transform .16s ease, background .16s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); }
.btn-secondary { border: 2px solid var(--ink); color: var(--ink); background: transparent; }
.btn-secondary:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--yellow); color: #1c3449 !important; }
.btn-light:hover { background: #ffda83; color: #1c3449 !important; }
.phone-line { margin-top: 13px; font-weight: 800; color: var(--ink-2); }
.phone-line a { white-space: nowrap; }

.hero { padding: 82px 0 72px; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.hero-copy { min-width: 0; }
.hero-copy .lede { max-width: 670px; }
.route-panel { position: relative; background: var(--mint); border: 2px solid var(--ink); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 46px); box-shadow: 16px 16px 0 var(--yellow); }
.route-panel h2 { font-size: 2rem; }
.route-list { list-style: none; padding: 0; margin: 24px 0 0; counter-reset: steps; }
.route-list li { counter-increment: steps; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.route-list li::before { content: counter(steps); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--white); font-weight: 800; }
.route-list li + li { margin-top: 22px; }
.route-list strong { display: block; margin-bottom: 2px; }
.route-list span { color: var(--ink-2); font-size: .95rem; }

.fact-bar { border-block: 1px solid var(--line); background: var(--white); }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 24px 28px; font-size: .95rem; font-weight: 700; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact strong { color: var(--green-dark); }

.action-list { border-top: 1px solid var(--line); }
.action-row { display: grid; grid-template-columns: 76px 1fr minmax(180px, 260px); gap: 28px; align-items: start; padding: 32px 0; border-bottom: 1px solid var(--line); }
.action-number { font-family: Georgia, serif; font-size: 2.2rem; color: var(--green); line-height: 1; }
.action-row p { color: var(--muted); margin: 0; }
.action-row a { align-self: center; justify-self: end; font-weight: 800; }

.option-table { border: 2px solid var(--ink); border-radius: var(--radius-md); overflow: hidden; background: var(--white); }
.option-row { display: grid; grid-template-columns: 1.15fr 1.45fr 1fr; }
.option-row > * { padding: 23px 26px; margin: 0; }
.option-row + .option-row { border-top: 1px solid var(--line); }
.option-row > * + * { border-left: 1px solid var(--line); }
.option-head { background: var(--ink); color: var(--white); font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.option-row strong { color: var(--ink); }

.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.guide-card { display: flex; flex-direction: column; min-height: 100%; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px; background: var(--white); }
.guide-card:nth-child(2) { background: var(--mint); }
.guide-card .kicker { margin-bottom: 36px; }
.guide-card p { color: var(--muted); }
.guide-card a { margin-top: auto; font-weight: 800; }

.callout { border: 2px solid var(--ink); border-radius: var(--radius-md); padding: clamp(26px, 4vw, 42px); background: var(--yellow); }
.callout h2, .callout h3 { max-width: 740px; }
.callout p { max-width: 780px; color: var(--ink-2); }
.warning { background: #fff6e5; border: 1px solid #d9a13d; border-radius: var(--radius-sm); padding: 22px; }
.warning strong { color: #6d4700; }
.note { background: var(--mint); border-radius: var(--radius-sm); padding: 20px 22px; }

.page-hero { padding: 66px 0 54px; background: var(--cream); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 900px; font-size: clamp(2.7rem, 5.3vw, 5rem); }
.page-hero .lede { max-width: 800px; }
.breadcrumbs { font-size: .86rem; font-weight: 700; color: var(--muted); margin-bottom: 24px; }
.breadcrumbs a { color: var(--muted); }
.help-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 62px; align-items: start; }
.sticky-card { position: sticky; top: 24px; border: 2px solid var(--ink); border-radius: var(--radius-md); padding: 28px; background: var(--mint); box-shadow: 10px 10px 0 var(--yellow); }
.sticky-card h2 { font-size: 1.9rem; }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: -.05em; color: var(--green-dark); font-weight: 900; }
.numbered { list-style: none; padding: 0; counter-reset: item; }
.numbered > li { counter-increment: item; position: relative; padding: 0 0 28px 58px; border-bottom: 1px solid var(--line); }
.numbered > li + li { padding-top: 28px; }
.numbered > li::before { content: counter(item); position: absolute; left: 0; top: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--white); font-weight: 800; }
.numbered > li + li::before { top: 28px; }
.numbered h3 { margin-bottom: 8px; }
.red-flags { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.red-flag { border: 1px solid #d7b3b3; background: #fffafa; border-radius: var(--radius-sm); padding: 20px; }
.red-flag strong { color: var(--danger); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 72px; align-items: start; }
.article { min-width: 0; max-width: 760px; }
.article h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); margin-top: 1.65em; }
.article h3 { margin-top: 1.8em; }
.article p, .article li { color: var(--ink-2); }
.article .note p, .article .warning p { margin-bottom: 0; }
.toc { position: sticky; top: 24px; border-left: 3px solid var(--yellow); padding-left: 20px; font-size: .9rem; }
.toc strong { display: block; margin-bottom: 10px; }
.toc a { display: block; padding: 6px 0; }
.table-wrap { overflow-x: auto; margin: 24px 0; }
table { border-collapse: collapse; width: 100%; min-width: 560px; }
th, td { border: 1px solid var(--line); padding: 14px; text-align: left; vertical-align: top; }
th { background: var(--ink); color: var(--white); }
.faq { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { cursor: pointer; font-weight: 800; color: var(--ink); }
details p { margin: 14px 0 0; color: var(--muted); }

.legal { max-width: 790px; }
.legal h2 { font-size: 2rem; margin-top: 1.7em; }
.legal h3 { font-size: 1.35rem; margin-top: 1.4em; }
.legal p, .legal li { color: var(--ink-2); }
.updated { display: inline-block; padding: 6px 10px; background: var(--mint); border-radius: 8px; font-size: .86rem; font-weight: 800; }

.site-footer { background: var(--ink); color: #dce6ef; padding: 58px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 240px; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 470px; margin-top: 20px; color: #c5d2df; }
.footer-title { color: var(--white); font-size: .9rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 14px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { min-height: 44px; display: flex; align-items: center; color: #e8eef4; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid #38536b; font-size: .84rem; color: #bac9d6; }
.footer-bottom p { margin: 0; }

.not-found { min-height: 68vh; display: grid; place-items: center; text-align: center; padding: 70px 0; }
.not-found .mark { width: 96px; margin: 0 auto 24px; }
.not-found h1 { font-size: clamp(3rem, 9vw, 7rem); }

/* Direct-response help route */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.landing-header { border-bottom: 1px solid var(--line); background: var(--white); }
.landing-header-inner { min-height: 80px; display: flex; align-items: center; justify-content: flex-start; }
.landing-header .brand img { width: 205px; height: auto; }
.dr-landing { padding: 18px 0 54px; background: var(--white); }
.dr-shell-compact { max-width: 792px; display: block; }
.dr-shell-compact h1, .dr-shell-compact h2 { font-family: inherit; letter-spacing: 0; text-wrap: wrap; }
.dr-shell-compact > h1 { font-size: 2.5rem; line-height: 1.2; margin: 0 0 1rem; }
.dr-emphasis { color: var(--green); text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .12em; }
.dr-rule { height: 4px; margin: 0 0 1rem; border: 0; background: var(--ink); }
.dr-benefits { margin: 0 0 1.65rem; padding-left: 1.35rem; color: var(--ink-2); }
.dr-benefits li { margin: 0; }
.dr-benefits li + li { margin-top: .55em; }
.quiz-card { min-height: 0; display: block; border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 0; }
.result-label { margin: 0 0 10px; color: var(--green-dark); font-size: .78rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.quiz-step h2 { font-size: 2rem; line-height: 1.35; margin: 0 0 1rem; text-align: center; }
.quiz-step > p:not(.result-label, .quiz-small) { color: var(--muted); }
.quiz-options { display: grid; gap: 0; margin-top: 0; }
.quiz-option { width: 100%; min-height: 54px; margin: 0 0 1.125rem; border: 0; border-radius: 3px; background: var(--green); color: var(--white); padding: 15px 18px; font: inherit; font-weight: 800; line-height: 1.2; cursor: pointer; text-align: center; transition: background .15s ease; }
.quiz-option:hover, .quiz-option-secondary:hover { transform: none; background: var(--green-dark); color: var(--white); }
.quiz-option-secondary { background: var(--green); color: var(--white); border-color: transparent; }
.quiz-loading, .quiz-result { text-align: center; padding: 20px 34px; border-top: 5px solid var(--green); background: var(--white); box-shadow: 0 0 7px rgba(0, 0, 0, .20); }
.quiz-loading h2, .quiz-result h2 { font-size: 1.5rem; line-height: 1.5; }
.quiz-call, .quiz-guide { min-height: 54px; display: flex; align-items: center; justify-content: center; margin-top: 20px; border-radius: 3px; background: var(--green); color: var(--white); padding: 15px 18px; font-weight: 900; font-size: 1rem; text-decoration: none; }
.quiz-call:hover, .quiz-guide:hover { background: var(--green-dark); color: var(--white); }
.quiz-small { margin: 15px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.quiz-reset { display: block; margin: 18px auto 0; border: 0; background: transparent; color: var(--green-dark); font: inherit; font-size: .84rem; font-weight: 800; text-decoration: underline; cursor: pointer; }
.quiz-reset[hidden] { display: none; }
.landing-footer { background: var(--ink); color: #c5d2df; padding: 24px 0; text-align: center; font-size: .72rem; }
.landing-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 8px; }
.landing-footer a { min-height: 44px; display: inline-flex; align-items: center; color: var(--white); }
.landing-footer p { max-width: 792px; margin: 5px auto 0; }

@media (max-width: 900px) {
  .header-inner { padding: 16px 0; align-items: flex-start; }
  .brand img { width: 210px; }
  .site-nav { max-width: 430px; }
  .hero-grid, .help-grid, .article-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 54px; }
  .toc, .sticky-card { position: static; }
  .article { max-width: none; }
  .fact-grid, .guide-grid { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .action-row { grid-template-columns: 58px 1fr; }
  .action-row a { grid-column: 2; justify-self: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container, .narrow { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 64px 0; }
  .section-sm { padding: 42px 0; }
  .site-header { position: static; }
  .landing-header-inner { min-height: 68px; }
  .landing-header .brand img { width: 178px; }
  .dr-landing { padding: 16px 0 42px; }
  .dr-shell-compact > h1 { font-size: 1.3rem; line-height: 1.2; }
  .quiz-step h2 { font-size: 1.5rem; line-height: 1.4; }
  .quiz-loading, .quiz-result { padding: 20px 22px; }
  .quiz-call, .quiz-guide { font-size: 1rem; }
  .header-inner { display: block; min-height: 0; }
  .brand img { width: 196px; margin-bottom: 12px; }
  .site-nav { justify-content: flex-start; gap: 2px 16px; }
  .site-nav a { font-size: .88rem; }
  .site-nav .nav-cta { padding: 10px 15px; }
  .hero { padding: 54px 0 58px; }
  .route-panel { box-shadow: 8px 8px 0 var(--yellow); border-radius: 26px; }
  .btn-row, .btn { width: 100%; }
  .phone-line { text-align: center; }
  .phone-line a, .action-row > a, .guide-card > a { min-height: 44px; display: inline-flex; align-items: center; }
  .action-row { grid-template-columns: 44px 1fr; gap: 18px; }
  .action-number { font-size: 1.7rem; }
  .option-table { border-radius: 16px; }
  .option-row { grid-template-columns: 1fr; }
  .option-head { display: none; }
  .option-row > * { padding: 10px 18px; }
  .option-row > *:first-child { padding-top: 20px; }
  .option-row > *:last-child { padding-bottom: 20px; }
  .option-row > * + * { border-left: 0; }
  .red-flags { grid-template-columns: 1fr; }
  .page-hero { padding: 46px 0 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { display: block; }
  .footer-bottom p + p { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .site-header, .site-footer, .btn-row, .toc { display: none; }
  body { font-size: 12pt; color: #000; background: #fff; }
  .section, .section-sm, .page-hero { padding: 20px 0; }
  a { color: #000; text-decoration: underline; }
}
