/* ============================================================
   CompraProindivisos · main.css
   Sistema de diseño editorial · serif expresivo + grotesque
   ============================================================ */

:root {
  /* Paleta */
  --bg:          #F5EFE6;   /* crema cálido */
  --bg-soft:     #ECE3D2;   /* crema más profundo */
  --bg-deep:    #E3D7BE;
  --ink:         #18241D;   /* verde forestal casi negro */
  --ink-soft:    #2D3D32;
  --muted:       #6B5D4F;   /* gris-marrón cálido */
  --line:        #C7B998;
  --accent:      #A24617;   /* terracota oscuro (pasa contraste AA 5.36:1 sobre crema) */
  --accent-soft: #D88863;
  --gold:        #8B7355;
  --white:       #FBF8F1;
  --shadow:      0 1px 0 rgba(24,36,29,.04), 0 8px 32px -12px rgba(24,36,29,.18);
  --shadow-lg:   0 2px 0 rgba(24,36,29,.06), 0 24px 64px -16px rgba(24,36,29,.28);

  /* Tipografías */
  --serif:  'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --sans:   'Manrope', system-ui, -apple-system, sans-serif;
  --mono:   'JetBrains Mono', ui-monospace, monospace;

  /* Espaciado escala áurea aproximada */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px; --s-11: 160px;

  /* Radios */
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-pill: 999px;

  /* Anchos */
  --w-prose: 68ch;
  --w-narrow: 800px;
  --w-mid: 1080px;
  --w-wide: 1280px;
}

/* ----------------------------------------------------------
   Reset & base
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

/* Textura sutil de grano */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.14 0 0 0 0 0.11 0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--white); }

/* ----------------------------------------------------------
   Tipografía
   ---------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 144;
}

h1 {
  font-size: clamp(2.6rem, 6.5vw, 5.6rem);
  font-weight: 380;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
h1 em { font-style: italic; color: var(--accent); font-weight: 380; font-variation-settings: "SOFT" 100, "WONK" 1; }

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
h2 em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }

h3 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h4 {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px; background: var(--accent);
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.4;
  font-weight: 350;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}

p { max-width: 65ch; }
p + p { margin-top: var(--s-4); }

a.link {
  border-bottom: 1px solid var(--accent);
  transition: background .2s ease;
}
a.link:hover { background: rgba(185, 88, 40, 0.08); }

/* ----------------------------------------------------------
   Layout
   ---------------------------------------------------------- */
.container { width: 100%; max-width: var(--w-wide); margin: 0 auto; padding: 0 var(--s-5); position: relative; z-index: 2; }
.container-mid { max-width: var(--w-mid); margin: 0 auto; padding: 0 var(--s-5); position: relative; z-index: 2; }
.container-narrow { max-width: var(--w-narrow); margin: 0 auto; padding: 0 var(--s-5); position: relative; z-index: 2; }

section { padding: var(--s-9) 0; position: relative; }
@media (max-width: 720px) { section { padding: var(--s-7) 0; } }

/* ----------------------------------------------------------
   Header
   ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 239, 230, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(199, 185, 152, 0.4);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
}
.brand__mark { width: 36px; height: 36px; flex-shrink: 0; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 450;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand__name em { font-style: italic; color: var(--accent); font-variation-settings: "SOFT" 100, "WONK" 1; }

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}
.nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s ease;
}
.nav a:hover { color: var(--accent); }
.nav__cta {
  background: var(--ink);
  color: var(--white) !important;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-pill);
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform .2s ease, background .2s ease;
}
.nav__cta:hover { background: var(--accent); transform: translateY(-1px); }

.nav-toggle { display: none; }
@media (max-width: 880px) {
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: var(--s-4) 0; }
  .nav.is-open { display: flex; }
  .nav a { padding: var(--s-3) var(--s-5); width: 100%; }
  .nav__cta { margin: var(--s-3) var(--s-5); text-align: center; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; padding: var(--s-2); }
  .nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; }
}

/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */
.hero {
  padding: var(--s-9) 0 var(--s-8);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-8);
  align-items: end;
}
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; gap: var(--s-6); } }

.hero__title { margin-top: var(--s-5); }
.hero__title-underline {
  display: inline-block;
  position: relative;
  padding-bottom: 4px;
}
.hero__title-underline::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  transform-origin: left;
  animation: scaleIn 1.2s 0.6s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes scaleIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero__lead { margin-top: var(--s-6); max-width: 32ch; }

.hero__ctas {
  margin-top: var(--s-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}

.hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  border-top: 1px solid var(--line);
  padding-top: var(--s-5);
}
.stat__num {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.stat__num em { font-style: italic; color: var(--accent); font-variation-settings: "SOFT" 100, "WONK" 1; }
.stat__label {
  margin-top: var(--s-2);
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.35;
}

/* Animación entrada */
.fade-up { opacity: 0; transform: translateY(20px); animation: fadeUp 0.9s cubic-bezier(.2,.8,.2,1) forwards; }
.fade-up.d1 { animation-delay: 0.1s; }
.fade-up.d2 { animation-delay: 0.25s; }
.fade-up.d3 { animation-delay: 0.4s; }
.fade-up.d4 { animation-delay: 0.55s; }
.fade-up.d5 { animation-delay: 0.7s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ----------------------------------------------------------
   Buttons
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-6);
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.005em;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { color: var(--ink); border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--ink); }
.btn__arrow { transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ----------------------------------------------------------
   Section: Ventajas (USP)
   ---------------------------------------------------------- */
.usp { background: var(--bg-soft); }
.usp__header { max-width: 56ch; margin-bottom: var(--s-7); }
.usp__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 880px) { .usp__grid { grid-template-columns: 1fr; } }

.usp__card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  position: relative;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}
.usp__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.usp__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--accent);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  line-height: 1;
  margin-bottom: var(--s-4);
}
.usp__card h3 { margin-bottom: var(--s-3); }
.usp__card p { color: var(--muted); font-size: 0.95rem; }

/* Match offer destacado */
.match-banner {
  margin-top: var(--s-7);
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: var(--s-7) var(--s-7);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-5);
  align-items: center;
}
@media (max-width: 720px) { .match-banner { grid-template-columns: 1fr; padding: var(--s-6); } }
.match-banner h3 {
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-bottom: var(--s-2);
}
.match-banner h3 em { font-style: italic; color: var(--accent-soft); font-variation-settings: "SOFT" 100, "WONK" 1; }
.match-banner p { color: var(--bg-deep); max-width: 60ch; font-size: 0.98rem; }

/* ----------------------------------------------------------
   Process
   ---------------------------------------------------------- */
.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-7);
  counter-reset: step;
}
@media (max-width: 880px) { .process__steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .process__steps { grid-template-columns: 1fr; } }

.step { position: relative; counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: 0.95rem;
  color: var(--accent);
  display: block;
  margin-bottom: var(--s-3);
  letter-spacing: 0.04em;
}
.step h4 { margin-bottom: var(--s-2); }
.step p { font-size: 0.93rem; color: var(--muted); }

/* ----------------------------------------------------------
   Formulario
   ---------------------------------------------------------- */
.form-section {
  background: var(--ink);
  color: var(--white);
  position: relative;
}
.form-section h2 { color: var(--white); }
.form-section h2 em { color: var(--accent-soft); }
.form-section .lead { color: var(--bg-deep); }
.form-section .eyebrow { color: var(--accent-soft); }
.form-section .eyebrow::before { background: var(--accent-soft); }

.form-section__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s-8);
  align-items: start;
  margin-top: var(--s-7);
}
@media (max-width: 980px) { .form-section__grid { grid-template-columns: 1fr; gap: var(--s-6); } }

.form-aside p { color: var(--bg-deep); font-size: 0.97rem; }
.form-aside p + p { margin-top: var(--s-4); }
.form-aside__bullet {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: 0.95rem;
  color: var(--bg);
  margin-top: var(--s-3);
}
.form-aside__bullet svg { flex-shrink: 0; margin-top: 2px; color: var(--accent-soft); }

.form-card {
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: var(--s-7);
}
@media (max-width: 520px) { .form-card { padding: var(--s-5); } }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-row--full { grid-column: 1 / -1; }

.form-field { display: flex; flex-direction: column; gap: var(--s-2); }
.form-field label {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.form-field label .req { color: var(--accent); }
.form-field .hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: -2px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="number"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: var(--s-3) var(--s-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.98rem;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(185, 88, 40, 0.15);
}
.form-field textarea { min-height: 100px; resize: vertical; font-family: var(--sans); }

.radio-group {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.radio-pill {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.radio-pill input[type="radio"],
.radio-pill input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill span {
  display: inline-block;
  padding: var(--s-3) var(--s-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all .2s ease;
}
.radio-pill input:checked + span {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.radio-pill:hover span { border-color: var(--ink); }

.form-conditional { display: none; }
.form-conditional.is-shown { display: grid; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}
.consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.consent a { color: var(--ink); border-bottom: 1px solid var(--ink); }

.form-submit { margin-top: var(--s-5); }
.form-submit button { width: 100%; justify-content: center; padding: var(--s-4) var(--s-6); font-size: 1.05rem; }

.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ----------------------------------------------------------
   FAQ
   ---------------------------------------------------------- */
.faq__header { margin-bottom: var(--s-7); max-width: 56ch; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-align: left;
  color: var(--ink);
  line-height: 1.3;
  cursor: pointer;
}
.faq__q-icon {
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .2s ease, transform .3s ease, border-color .2s ease;
}
.faq__q-icon::before, .faq__q-icon::after {
  content: '';
  position: absolute;
  background: var(--ink);
  border-radius: 1px;
}
.faq__q-icon::before { width: 10px; height: 2px; }
.faq__q-icon::after { width: 2px; height: 10px; transition: transform .3s ease; }
.faq__item[open] .faq__q-icon { background: var(--ink); border-color: var(--ink); }
.faq__item[open] .faq__q-icon::before { background: var(--white); }
.faq__item[open] .faq__q-icon::after { background: var(--white); transform: scaleY(0); }
.faq__a {
  padding-bottom: var(--s-5);
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: var(--w-prose);
}
.faq__a p + p { margin-top: var(--s-3); }

/* ----------------------------------------------------------
   Legal services cross-link
   ---------------------------------------------------------- */
.legal-services {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.legal-services__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-6);
  align-items: center;
}
@media (max-width: 720px) { .legal-services__inner { grid-template-columns: 1fr; } }
.legal-services h3 { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: var(--s-2); }
.legal-services h3 em { font-style: italic; color: var(--accent); font-variation-settings: "SOFT" 100, "WONK" 1; }
.legal-services p { color: var(--muted); }

/* ----------------------------------------------------------
   Blog
   ---------------------------------------------------------- */
.blog-hero { padding: var(--s-9) 0 var(--s-7); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6);
  margin-top: var(--s-7);
}
@media (max-width: 720px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card__meta {
  display: flex;
  gap: var(--s-3);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.blog-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.blog-card h3 a { transition: color .2s ease; }
.blog-card:hover h3 a { color: var(--accent); }
.blog-card__excerpt { color: var(--muted); font-size: 0.95rem; }
.blog-card__more {
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.blog-card__more::after {
  content: '→';
  transition: transform .2s ease;
}
.blog-card:hover .blog-card__more::after { transform: translateX(4px); }

/* Article page */
.article {
  padding: var(--s-8) 0 var(--s-9);
}
.article__header {
  max-width: var(--w-narrow);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.article__meta {
  display: flex;
  gap: var(--s-4);
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--s-5);
}
.article__title {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.article__lead {
  margin-top: var(--s-5);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.45;
  color: var(--ink-soft);
  font-weight: 350;
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 0;
}
.article__byline {
  margin-top: var(--s-5);
  font-size: 0.92rem;
  color: var(--muted);
}
.article__byline strong { color: var(--ink); font-weight: 600; }

.article__body {
  max-width: var(--w-prose);
  margin: var(--s-8) auto 0;
  padding: 0 var(--s-5);
  font-size: 1.08rem;
  line-height: 1.75;
}
.article__body h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin: var(--s-8) 0 var(--s-4);
  letter-spacing: -0.025em;
}
.article__body h2 em { font-style: italic; color: var(--accent); font-variation-settings: "SOFT" 100, "WONK" 1; }
.article__body h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  margin: var(--s-6) 0 var(--s-3);
  font-weight: 500;
}
.article__body p { color: var(--ink-soft); }
.article__body p + p { margin-top: var(--s-4); }
.article__body ul, .article__body ol { margin: var(--s-4) 0 var(--s-4) var(--s-5); color: var(--ink-soft); }
.article__body li { margin-bottom: var(--s-2); }
.article__body strong { color: var(--ink); font-weight: 600; }
.article__body a { color: var(--accent); border-bottom: 1px solid currentColor; }

.article__body blockquote {
  border-left: 3px solid var(--accent);
  padding: var(--s-3) 0 var(--s-3) var(--s-5);
  margin: var(--s-6) 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--ink);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.article__body blockquote cite {
  display: block;
  margin-top: var(--s-2);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-style: normal;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.legal-callout {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-sm);
  padding: var(--s-5) var(--s-6);
  margin: var(--s-6) 0;
  font-size: 0.97rem;
}
.legal-callout strong { color: var(--ink); display: block; margin-bottom: var(--s-2); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.legal-callout p { font-size: 0.95rem; color: var(--ink-soft); }

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5);
  margin: var(--s-6) 0;
}
.toc__title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s-3); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; padding: var(--s-2) 0; font-size: 0.97rem; border-bottom: 1px solid var(--bg-deep); }
.toc li:last-child { border-bottom: 0; }
.toc li::before { content: counter(toc, decimal-leading-zero); font-family: var(--serif); font-style: italic; color: var(--accent); margin-right: var(--s-3); font-variation-settings: "SOFT" 100, "WONK" 1; }
.toc a { color: var(--ink-soft); transition: color .2s ease; }
.toc a:hover { color: var(--accent); }

.article__cta {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: var(--s-7);
  margin: var(--s-8) 0 0;
  text-align: center;
}
.article__cta h3 { color: var(--white); margin-bottom: var(--s-3); font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.article__cta h3 em { font-style: italic; color: var(--accent-soft); font-variation-settings: "SOFT" 100, "WONK" 1; }
.article__cta p { color: var(--bg-deep); max-width: 50ch; margin: 0 auto var(--s-5); }

/* ----------------------------------------------------------
   Gracias
   ---------------------------------------------------------- */
.gracias {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
}
.gracias__inner { max-width: 56ch; margin: 0 auto; padding: 0 var(--s-5); }
.gracias h1 { margin-bottom: var(--s-5); }
.gracias .lead { margin-bottom: var(--s-7); }

/* ----------------------------------------------------------
   Legal pages
   ---------------------------------------------------------- */
.legal-page { padding: var(--s-8) 0; }
.legal-page h1 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: var(--s-3); }
.legal-page .lead { margin-bottom: var(--s-7); }
.legal-page h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin: var(--s-7) 0 var(--s-3); }
.legal-page h3 { font-size: 1.1rem; margin: var(--s-5) 0 var(--s-2); font-weight: 600; }
.legal-page p, .legal-page li { color: var(--ink-soft); font-size: 1rem; line-height: 1.7; }
.legal-page ul { margin-left: var(--s-5); }
.legal-page ul li { margin-bottom: var(--s-2); }
.legal-page strong { color: var(--ink); }

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--bg-deep);
  padding: var(--s-8) 0 var(--s-5);
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: var(--s-6);
  margin-bottom: var(--s-7);
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand__name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 450;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: var(--s-3);
}
.footer-brand__name em { font-style: italic; color: var(--accent-soft); font-variation-settings: "SOFT" 100, "WONK" 1; }
.footer-brand p { font-size: 0.92rem; color: var(--bg-deep); opacity: 0.85; line-height: 1.55; max-width: 36ch; }

.footer-col h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: var(--s-4);
}
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.footer-col a { font-size: 0.93rem; color: var(--bg); transition: color .2s ease; opacity: 0.85; }
.footer-col a:hover { color: var(--accent-soft); opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(245, 239, 230, 0.12);
  padding-top: var(--s-5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-4);
  font-size: 0.85rem;
  color: var(--bg-deep);
  opacity: 0.7;
}

/* ----------------------------------------------------------
   Utility
   ---------------------------------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ----------------------------------------------------------
   Legal services - versión bold/destacada
   ---------------------------------------------------------- */
.legal-services--bold {
  background: var(--ink);
  color: var(--white);
  padding: var(--s-9) 0;
  border: none;
}
.legal-services__bold-inner {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.legal-services__eyebrow {
  color: var(--accent-soft);
}
.legal-services__eyebrow::before {
  background: var(--accent-soft);
}
.legal-services__bold-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  margin: var(--s-4) 0 var(--s-5);
  font-weight: 400;
}
.legal-services--bold .legal-services__bold-subtitle {
  color: var(--bg-deep);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 50ch;
  margin: 0 auto var(--s-7);
}
.legal-services__bold-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent-soft);
  text-decoration: none;
  border-bottom: 2px solid var(--accent-soft);
  padding-bottom: 6px;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.legal-services__bold-link:hover {
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}
.legal-services__bold-link .btn__arrow {
  font-style: normal;
  font-family: var(--sans);
  transition: transform .2s ease;
}
.legal-services__bold-link:hover .btn__arrow {
  transform: translateX(4px);
}

/* ----------------------------------------------------------
   Cookie consent banner
   ---------------------------------------------------------- */
.cp-cc-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 920px;
  margin: 0 auto;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  z-index: 9000;
  padding: var(--s-5) var(--s-6);
  font-family: var(--sans);
  font-size: 0.94rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}
.cp-cc-banner.is-shown { opacity: 1; transform: translateY(0); }
.cp-cc-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-5);
  align-items: center;
}
@media (max-width: 720px) {
  .cp-cc-banner { left: 8px; right: 8px; bottom: 8px; padding: var(--s-4) var(--s-5); }
  .cp-cc-inner { grid-template-columns: 1fr; gap: var(--s-3); }
}
.cp-cc-text h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-2);
}
.cp-cc-text p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  max-width: 60ch;
}
.cp-cc-text a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}
.cp-cc-actions {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  align-items: center;
}
@media (max-width: 720px) {
  .cp-cc-actions { flex-direction: column-reverse; align-items: stretch; }
  .cp-cc-actions .cp-cc-btn { width: 100%; }
}
.cp-cc-btn {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
  white-space: nowrap;
}
.cp-cc-btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.cp-cc-btn--ghost:hover { border-color: var(--ink); }
.cp-cc-btn--primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.cp-cc-btn--primary:hover { background: var(--accent); border-color: var(--accent); }

/* Modal de configuración */
.cp-cc-modal[hidden] { display: none; }
.cp-cc-modal {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s ease;
}
.cp-cc-modal.is-shown { opacity: 1; }
.cp-cc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 36, 29, 0.6);
  backdrop-filter: blur(4px);
}
.cp-cc-modal__card {
  position: relative;
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--r-lg);
  max-width: 540px;
  width: calc(100% - 32px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: var(--s-6);
  box-shadow: var(--shadow-lg);
}
.cp-cc-modal__card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-3);
}
.cp-cc-modal__lead {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 var(--s-5);
}
.cp-cc-cat {
  border-top: 1px solid var(--line);
  padding: var(--s-4) 0;
}
.cp-cc-cat:last-of-type { border-bottom: 1px solid var(--line); }
.cp-cc-cat__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-2);
}
.cp-cc-cat__row strong { font-weight: 600; font-size: 0.98rem; }
.cp-cc-cat__provider {
  display: inline-block;
  margin-left: var(--s-2);
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
}
.cp-cc-cat__pill {
  display: inline-block;
  margin-left: var(--s-2);
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cp-cc-cat__desc {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}
.cp-cc-cat__desc code {
  font-family: var(--mono);
  font-size: 0.78rem;
  background: var(--bg-soft);
  padding: 1px 5px;
  border-radius: 3px;
}
.cp-cc-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.cp-cc-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.cp-cc-toggle__track {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease;
}
.cp-cc-toggle__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--bg);
  border-radius: 50%;
  transition: transform .2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.cp-cc-toggle input:checked + .cp-cc-toggle__track {
  background: var(--accent);
}
.cp-cc-toggle input:checked + .cp-cc-toggle__track::after {
  transform: translateX(20px);
}
.cp-cc-toggle--locked .cp-cc-toggle__track {
  background: var(--ink-soft);
  cursor: not-allowed;
  opacity: 0.6;
}
.cp-cc-toggle--locked .cp-cc-toggle__track::after { transform: translateX(20px); }

.cp-cc-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--s-2);
  margin-top: var(--s-5);
}
@media (max-width: 480px) {
  .cp-cc-modal__actions { flex-direction: column-reverse; }
  .cp-cc-modal__actions .cp-cc-btn { width: 100%; }
}

/* ----------------------------------------------------------
   Formulario en pasos
   ---------------------------------------------------------- */
.form-steps__progress {
  margin-bottom: var(--s-6);
}
.form-steps__bar {
  height: 4px;
  background: var(--bg-deep);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--s-3);
}
.form-steps__fill {
  height: 100%;
  width: 33.33%;
  background: var(--accent);
  border-radius: 2px;
  transition: width .35s cubic-bezier(.2,.8,.2,1);
}
.form-steps__labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.form-steps__labels span {
  transition: color .2s ease;
}
.form-steps__labels span.is-active {
  color: var(--accent);
}
.form-steps__labels span.is-done {
  color: var(--ink);
}
.form-step {
  display: none;
}
.form-step.is-active {
  display: block;
  animation: stepFadeIn .35s cubic-bezier(.2,.8,.2,1);
}
@keyframes stepFadeIn {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}
.form-step__actions {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
@media (max-width: 480px) {
  .form-step__actions { flex-direction: column-reverse; }
  .form-step__actions .btn { width: 100%; justify-content: center; }
}
.form-step__actions .btn--accent {
  margin-left: auto;
}
@media (max-width: 480px) {
  .form-step__actions .btn--accent { margin-left: 0; }
}

/* ----------------------------------------------------------
   Breadcrumb
   ---------------------------------------------------------- */
.breadcrumb {
  padding: var(--s-5) 0 0;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
}
.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
}
.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: var(--s-2);
  color: var(--line);
}
.breadcrumb a {
  color: var(--muted);
  transition: color .2s ease;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}

/* ----------------------------------------------------------
   Footer: ítems descriptivos de servicios (más pequeños)
   ---------------------------------------------------------- */
.footer-col__service-item {
  font-size: 0.82em;
  color: var(--bg-deep);
  opacity: 0.7;
  line-height: 1.5;
  margin-top: 2px;
}

/* ----------------------------------------------------------
   Form: campo de archivo (nota simple)
   ---------------------------------------------------------- */
.form-file {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  background: var(--bg-soft);
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.form-file:hover {
  border-color: var(--accent);
  background: var(--bg);
}
.form-file:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* Estilo del botón nativo "Examinar" — varía entre navegadores */
.form-file::file-selector-button {
  margin-right: var(--s-3);
  padding: 6px 14px;
  border: 1px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s ease;
}
.form-file::file-selector-button:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* ----------------------------------------------------------
   Form: mensaje de error en línea (RGPD y otros)
   ---------------------------------------------------------- */
.form-error {
  margin-top: var(--s-3);
  padding: 10px 14px;
  background: #FCE9E2;
  border-left: 3px solid #C13A1A;
  color: #7A2410;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 4px;
  line-height: 1.4;
  animation: errorPulse .35s cubic-bezier(.2,.8,.2,1);
}
@keyframes errorPulse {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
