/*
Theme Name: Deudas con Orden
Theme URI: https://deudasconorden.es/
Author: Deudas con Orden
Description: Tema editorial rápido y accesible para una guía española sobre deudas y segunda oportunidad.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: deudas-con-orden
*/

:root {
  --ink: #10263d;
  --muted: #566879;
  --paper: #fffdf8;
  --sand: #f5efe4;
  --line: #dce4e8;
  --brand: #176b62;
  --brand-dark: #0d4b45;
  --accent: #d99a2b;
  --white: #fff;
  --shadow: 0 18px 55px rgba(16, 38, 61, .09);
  --radius: 20px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
a { color: var(--brand-dark); text-decoration-thickness: .08em; text-underline-offset: .17em; }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; }
.wrap { width: min(calc(100% - 34px), var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 12px; z-index: 999; padding: 10px 14px; background: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,253,248,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(16,38,61,.09);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: flex; gap: 11px; align-items: center; text-decoration: none; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff; background: var(--brand); font: 800 21px/1 Georgia, serif; }
.brand-name { display: block; font: 800 21px/1.1 Georgia, serif; }
.brand-tag { display: block; color: var(--muted); font-size: 11px; letter-spacing: .04em; margin-top: 3px; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 20px; padding: 0; margin: 0; }
.main-nav a { color: var(--ink); font-size: 14px; font-weight: 750; text-decoration: none; }
.main-nav .menu-cta a { color: #fff; background: var(--brand); padding: 10px 14px; border-radius: 999px; }
.menu-toggle { display: none; min-height: 42px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: 800 14px/1 inherit; cursor: pointer; }

.hero { overflow: hidden; background: radial-gradient(circle at 85% 15%, rgba(217,154,43,.18), transparent 30%), linear-gradient(145deg,#f8f1e6,#fffdf8 65%); border-bottom: 1px solid var(--line); }
.hero-inner { min-height: 610px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 60px; align-items: center; padding-block: 70px; }
.eyebrow { color: var(--brand); font-size: 13px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
h1,h2,h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.08; letter-spacing: -.025em; }
h1 { font-size: clamp(44px, 6vw, 76px); margin: 15px 0 22px; max-width: 900px; }
h2 { font-size: clamp(32px, 4vw, 48px); margin: 0 0 18px; }
h3 { font-size: 24px; margin: 0 0 10px; }
.lead { max-width: 700px; color: #33495e; font-size: clamp(19px,2vw,23px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 20px; border: 1px solid var(--brand); border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--brand-dark); color: #fff; }
.button.secondary { color: var(--ink); background: transparent; border-color: #a9b9bd; }
.button.secondary:hover { background: #fff; }
.hero-card { position: relative; padding: 30px; border-radius: 28px; color: #fff; background: var(--ink); box-shadow: var(--shadow); }
.hero-card::before { content: ""; position: absolute; width: 130px; height: 130px; right: -28px; top: -28px; border-radius: 50%; background: rgba(217,154,43,.28); }
.hero-card ol { padding-left: 22px; margin: 18px 0 0; }
.hero-card li { padding: 8px 0; }

.section { padding-block: 82px; }
.section.alt { background: var(--sand); }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head p { color: var(--muted); font-size: 19px; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.card { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 30px rgba(16,38,61,.04); }
.card p { color: var(--muted); }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover { transform: translateY(-3px); transition: .2s ease; }
.icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 12px; color: var(--brand-dark); background: #e1f2ee; font-weight: 900; }
.trust-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.trust-item { padding: 24px; text-align: center; background: var(--paper); font-size: 14px; font-weight: 750; }

.content-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 54px; align-items: start; }
.article { max-width: 790px; }
.article-header { padding-block: 68px 42px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.article-header h1 { font-size: clamp(40px,5vw,64px); }
.article h2 { margin-top: 44px; font-size: 34px; }
.article h3 { margin-top: 30px; }
.article ul,.article ol { padding-left: 25px; }
.article li { margin-bottom: 8px; }
.article .notice { margin: 28px 0; padding: 20px 22px; border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; background: #fff8e9; }
.meta { color: var(--muted); font-size: 14px; }
.sidebar { position: sticky; top: 110px; }
.sidebar-box { padding: 22px; border-radius: 16px; background: var(--ink); color: #fff; }
.sidebar-box h3 { font-family: inherit; font-size: 18px; }
.sidebar-box p { color: #dce7ef; font-size: 14px; }

.form-card { max-width: 760px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.field { margin-bottom: 19px; }
.field label { display: block; margin-bottom: 6px; font-weight: 750; }
.field input,.field textarea,.field select { width: 100%; padding: 13px 14px; border: 1px solid #b8c5ca; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; }
.field textarea { min-height: 150px; resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.check input { width: auto; margin-top: 6px; }
.success { padding: 16px 18px; border: 1px solid #8bc3b4; border-radius: 12px; background: #e8f7f2; color: #174c43; font-weight: 750; }
.error { padding: 16px 18px; border: 1px solid #e2a39b; border-radius: 12px; background: #fff0ee; color: #7a261e; }

.quiz { max-width: 820px; }
.quiz-step { padding: 26px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.quiz-step legend { padding: 0 8px; font: 700 22px Georgia,serif; }
.quiz-option { display: block; padding: 10px 0; }
.quiz-result { display: none; margin-top: 24px; padding: 25px; border-radius: 18px; background: #e8f7f2; }

.site-footer { padding: 60px 0 28px; color: #dce7ef; background: #0b2034; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h2,.site-footer h3 { color: #fff; font-family: inherit; font-size: 18px; }
.site-footer p,.site-footer a { color: #c7d4de; font-size: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; color: #a9bbc8; }

@media (max-width: 900px) {
  .header-inner { min-height: 68px; flex-wrap: wrap; gap: 10px; padding-block: 10px; }
  .brand-name { font-size: 19px; }
  .brand-tag { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; margin-left: auto; }
  .main-nav { display: none; }
  .main-nav.is-open { display: block; width: 100%; padding: 8px 0 12px; }
  .main-nav ul { display: grid; gap: 4px; }
  .main-nav a { display: block; padding: 9px 0; }
  .main-nav .menu-cta a { display: inline-block; padding: 9px 14px; }
  .hero-inner,.content-layout,.footer-grid { grid-template-columns: 1fr; }
  .hero-inner { min-height: auto; gap: 32px; padding-block: 52px; }
  .grid-3,.trust-strip { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
