/* ==========================================================================
   Certificado CIVUT Madrid — v2
   Dirección: Trust & Authority + Swiss Modernism, estética de plano técnico.
   Acento único: rojo del logo. Amarillo solo como apoyo puntual.
   Movimiento: curvas propias, solo transform/opacity, reduced-motion suave.
   ========================================================================== */

:root {
  /* Color */
  --red: #b5191f;
  --red-700: #8f1217;
  --red-50: #fbeeed;
  --yellow: #e4aa1c;
  --yellow-50: #fdf6e3;
  --ink: #151312;
  --ink-2: #45403c;
  --ink-3: #6b655f;
  --line: #e7e2dc;
  --line-strong: #d3ccc4;
  --paper: #faf8f5;
  --white: #ffffff;
  --dark: #151312;
  --dark-2: #1f1c1a;
  --dark-line: rgb(255 255 255 / 12%);
  --dark-text: #b9b1aa;
  --grid-line: rgb(21 19 18 / 5.5%);

  /* Tipografía (con respaldo métrico para que no salte el texto al cargar la fuente) */
  --font-display: "Inter Tight", "Inter Tight Fallback", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Forma */
  --radius: 10px;
  --radius-sm: 6px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --shadow: 0 1px 2px rgb(21 19 18 / 6%), 0 12px 32px -8px rgb(21 19 18 / 12%);

  /* Movimiento */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

/* Fuentes de respaldo con métricas ajustadas a Inter (reducen el CLS mientras carga Google Fonts) */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 107%; ascent-override: 90%; descent-override: 22.5%; line-gap-override: 0%; }
@font-face { font-family: "Inter Tight Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 99%; ascent-override: 97%; descent-override: 24%; line-gap-override: 0%; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--red-700); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.3rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.2; font-weight: 600; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
strong { font-weight: 600; }
::selection { background: var(--red); color: #fff; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.section--dark :focus-visible, .site-footer--dark :focus-visible { outline-color: var(--yellow); }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 128px); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--dark); color: var(--dark-text); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--line { border-top: 1px solid var(--line); }

/* Fondo de plano técnico */
.blueprint {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Etiqueta de sección (estilo índice técnico) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--red);
  margin-bottom: 18px; flex-wrap: wrap; max-width: 100%;
}
.eyebrow__num { font-variant-numeric: tabular-nums; color: var(--ink-3); }
.eyebrow__num::after { content: ""; display: inline-block; width: 24px; height: 1px; background: currentColor; margin-left: 10px; vertical-align: middle; opacity: .6; }
.section--dark .eyebrow { color: var(--yellow); }
.section--dark .eyebrow__num { color: var(--dark-text); }

.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--ink-2); line-height: 1.6; }
.section--dark .lead { color: var(--dark-text); }

/* Rejilla de cabecera de sección: título a la izquierda, texto a la derecha */
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: minmax(0, 1fr); align-items: start; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: 600 1rem/1.2 var(--font-body); letter-spacing: -0.005em;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; text-align: center; max-width: 100%;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 200ms var(--ease-out); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-700); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--paper); color: var(--ink); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / 30%); }
.btn--outline-light:hover { border-color: #fff; color: #fff; }
.btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover svg[data-arrow] { transform: translateX(3px); }
}

/* Enlace con flecha */
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
.link-arrow:hover { color: var(--red); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover svg { transform: translateX(3px); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { flex: none; }
.brand img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  position: relative; display: block; padding: 10px 12px;
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .96rem;
  transition: color 150ms ease;
}
.nav__list a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform 200ms var(--ease-out);
}
.nav__list a:hover { color: var(--ink); }
.nav__list a[aria-current="page"] { color: var(--ink); }
.nav__list a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .nav__list a:hover::after { transform: scaleX(1); } }
.nav__cta { margin-left: 12px; min-height: 42px; padding: 10px 18px; white-space: nowrap; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: #fff; cursor: pointer; place-items: center;
  transition: transform 160ms var(--ease-out);
}
.nav-toggle:active { transform: scale(0.95); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 1.5px; background: var(--ink); border-radius: 2px; position: relative;
  transition: transform 200ms var(--ease-out), background-color 150ms ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1040px) {
  .nav-toggle { display: grid; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    background: #fff; padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px -24px rgb(21 19 18 / 25%);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    opacity: 0; transform: translateY(-8px); visibility: hidden;
    transition: opacity 150ms ease, transform 150ms var(--ease-out), visibility 0s linear 150ms;
  }
  .nav.is-open {
    opacity: 1; transform: none; visibility: visible;
    transition: opacity 220ms ease, transform 260ms var(--ease-drawer), visibility 0s;
  }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { padding: 16px 4px; font-size: 1.1rem; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav__list a::after { display: none; }
  .nav__list a[aria-current="page"] { color: var(--red); }
  .nav__cta { margin: 0; min-height: 48px; }
  .brand img { height: 40px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { /* plano técnico desvanecido */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
}
.hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 6vw, 88px); align-items: center; padding-block: clamp(56px, 8vw, 112px); }
@media (max-width: 960px) { .hero .container { grid-template-columns: minmax(0, 1fr); } }
.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { max-width: 580px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) { .hero__actions .btn { width: 100%; } }

/* Datos clave (ficha técnica) */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: clamp(40px, 6vw, 64px) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.facts li { padding: 18px 20px 0 0; }
.facts li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.facts strong { display: block; font-family: var(--font-display); font-size: clamp(1.15rem, 1.7vw, 1.4rem); letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); margin-bottom: 6px; }
.facts span { display: block; font-size: .9rem; color: var(--ink-3); line-height: 1.45; }
@media (max-width: 560px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts li, .facts li + li { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Entrada del hero: momento único por visita (presupuesto de "delight") */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.js [data-enter] { animation: rise 700ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }

/* ---------- Tarjeta de solicitud (formulario hero) ---------- */
.request {
  position: relative; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.request__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.request__head em { font-style: normal; color: var(--red); }
.request__body { padding: clamp(22px, 3vw, 32px); }
.request h2 { font-size: 1.75rem; margin-bottom: 6px; }
.request__body > p { color: var(--ink-3); font-size: .98rem; margin-bottom: 22px; }
.request__note { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--ink-3); margin: 14px 0 0; }
.request__note svg { width: 16px; height: 16px; color: var(--red); flex: none; }
.stamp {
  position: absolute; right: -18px; top: -22px; width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center; background: var(--red); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem; letter-spacing: .08em;
  box-shadow: 0 0 0 6px #fff, 0 8px 24px rgb(181 25 31 / 30%);
  transform: rotate(-12deg);
}
.stamp::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1.5px dashed rgb(255 255 255 / 60%); }
.js .stamp { animation: stamp 520ms var(--ease-out) 650ms both; }
@keyframes stamp { from { opacity: 0; transform: rotate(-12deg) scale(1.25); } to { opacity: 1; transform: rotate(-12deg) scale(1); } }
@media (max-width: 520px) { .stamp { right: 8px; top: -30px; width: 68px; height: 68px; font-size: .72rem; } }

/* ---------- Formularios ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 500; font-size: .94rem; margin-bottom: 6px; color: var(--ink); }
.field .req { color: var(--red); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.textarea { min-height: 140px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151312' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 42px; }
.input:hover, .select:hover, .textarea:hover { border-color: #b9b0a7; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(181 25 31 / 18%); }
.input:user-invalid, .textarea:user-invalid { border-color: var(--red); }
.input::placeholder, .textarea::placeholder { color: #9b948d; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); line-height: 1.45; margin-bottom: 18px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--red); flex: none; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { background: var(--red-50); border: 1px solid #f1c9c7; color: var(--red-700); padding: 12px 16px; border-radius: var(--radius-sm); font-size: .95rem; }

/* ---------- Qué es ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split__aside { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 960px) { .split__aside { position: static; } }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose h3 { margin-top: 2em; }

.spec { margin: 32px 0 0; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: #fff; }
.spec__title { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--ink); color: #fff; font-family: var(--font-display); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.spec__title span:last-child { color: var(--yellow); }
.spec dl { margin: 0; }
.spec__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: .97rem; }
.spec__row:first-child { border-top: 0; }
.spec dt { color: var(--ink-3); }
.spec dd { margin: 0; font-weight: 500; color: var(--ink); }
@media (max-width: 480px) { .spec__row { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

.who-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.who { padding: 22px; background: #fff; }
.who + .who { border-left: 1px solid var(--line); }
.who svg { width: 26px; height: 26px; color: var(--red); margin-bottom: 14px; }
.who strong { display: block; font-family: var(--font-display); font-size: 1.1rem; line-height: 1.25; margin-bottom: 4px; color: var(--ink); }
.who span { display: block; font-size: .94rem; color: var(--ink-3); line-height: 1.5; }
@media (max-width: 640px) { .who-grid { grid-template-columns: minmax(0, 1fr); } .who + .who { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Requisitos (rejilla técnica numerada) ---------- */
.req-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.req-card { position: relative; padding: clamp(24px, 3vw, 36px); border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: var(--paper); transition: background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .req-card:hover { background: #fff; } }
.req-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; }
.req-card__num { font-family: var(--font-display); font-size: .85rem; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.req-card__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); color: var(--red); }
.req-card__icon svg { width: 22px; height: 22px; }
.req-card h3 { margin-bottom: 10px; }
.req-card p { color: var(--ink-2); margin: 0; font-size: .98rem; }
@media (max-width: 960px) { .req-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .req-grid { grid-template-columns: minmax(0, 1fr); } .req-card__top { margin-bottom: 24px; } }
.disclaimer { margin-top: 24px; font-size: .92rem; color: var(--ink-3); display: flex; gap: 10px; align-items: flex-start; }
.disclaimer svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--ink-3); }

/* ---------- Proceso ---------- */
.steps { position: relative; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.steps::before, .steps::after { /* raíl + progreso que se dibuja al entrar en pantalla */
  content: ""; position: absolute; top: 23px; left: 24px; right: 24px; height: 1px; background: var(--dark-line);
}
.steps::after { background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform 1200ms var(--ease-in-out) 150ms; }
.steps.is-visible::after { transform: scaleX(1); }
.no-js .steps::after { transform: scaleX(1); }
.step { position: relative; padding-top: 76px; }
.step__num {
  position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; z-index: 1;
  font-family: var(--font-display); font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums;
  background: var(--dark); color: #fff; border: 1px solid rgb(255 255 255 / 25%);
}
.step:first-child .step__num { background: var(--red); border-color: var(--red); }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--dark-text); font-size: .97rem; margin: 0; }
@media (max-width: 1000px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps::before, .steps::after { top: 24px; bottom: 24px; left: 23px; right: auto; width: 1px; height: auto; }
  .steps::after { transform: scaleY(0); transform-origin: top; }
  .steps.is-visible::after { transform: scaleY(1); }
  .step { padding: 0 0 36px 76px; min-height: 48px; }
  .step:last-child { padding-bottom: 0; }
}
.process-cta { margin-top: 64px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding-top: 32px; border-top: 1px solid var(--dark-line); }
.process-cta p { margin: 0; font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -0.015em; color: #fff; }

/* ---------- Normativa ---------- */
.law-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.law { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; padding: 32px 0; border-bottom: 1px solid var(--line-strong); }
.law:nth-child(odd) { padding-right: clamp(20px, 3vw, 40px); }
.law:nth-child(even) { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--line-strong); }
.law__icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--ink); color: var(--yellow); }
.law__icon svg { width: 22px; height: 22px; }
.law__tag { display: block; font-family: var(--font-display); font-weight: 600; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.law h3 { margin-bottom: 8px; }
.law p { margin: 0; color: var(--ink-2); font-size: .98rem; }
@media (max-width: 760px) {
  .law-grid { grid-template-columns: minmax(0, 1fr); }
  .law:nth-child(odd), .law:nth-child(even) { padding: 28px 0; border-left: 0; }
}

/* ---------- Precio ---------- */
.price-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 960px) { .price-wrap { grid-template-columns: minmax(0, 1fr); } }
.factors { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: f; border-top: 1px solid var(--line-strong); }
.factors li { counter-increment: f; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--ink); }
.factors li::before { content: counter(f, decimal-leading-zero); font-family: var(--font-display); font-size: .85rem; font-weight: 600; color: var(--red); font-variant-numeric: tabular-nums; }
.price-box { position: relative; overflow: hidden; background: var(--ink); color: var(--dark-text); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); }
.price-box::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px);
  background-size: 32px 32px; }
.price-box > * { position: relative; }
.price-box h3 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2rem); letter-spacing: -0.025em; margin-bottom: 12px; }
.price-box ul { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 12px; }
.price-box li { display: flex; gap: 12px; align-items: flex-start; color: #e9e4df; }
.price-box li svg { width: 20px; height: 20px; color: var(--yellow); flex: none; margin-top: 3px; }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 960px) { .about { grid-template-columns: minmax(0, 1fr); } }
.about__visual { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); padding: clamp(16px, 3vw, 28px); }
.about__visual svg { width: 100%; height: auto; }
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 32px; border-top: 1px solid var(--line-strong); }
.value { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); }
.value:nth-child(even) { padding: 20px 0 20px 20px; border-left: 1px solid var(--line); }
.value strong { display: block; font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 4px; color: var(--ink); }
.value span { color: var(--ink-3); font-size: .95rem; line-height: 1.5; display: block; }
@media (max-width: 520px) { .values { grid-template-columns: minmax(0, 1fr); } .value, .value:nth-child(even) { padding: 18px 0; border-left: 0; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 960px) { .faq-wrap { grid-template-columns: minmax(0, 1fr); } }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.35; letter-spacing: -0.01em;
  overflow-wrap: anywhere; hyphens: auto;
  transition: color 150ms ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b5191f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 200ms var(--ease-out), background-color 150ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--red-50); }
.faq summary:hover { color: var(--red); }
.faq__body { padding: 0 52px 24px 0; color: var(--ink-2); }
.faq details[open] .faq__body { animation: fade-down 260ms var(--ease-out); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq__body p:last-child { margin: 0; }

/* ---------- Blog: tarjetas ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: minmax(0, 1fr); } }
.post-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; transition: border-color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .post-card:hover { border-color: var(--ink); }
  .post-card:hover .post-card__media::after { transform: scale(1.04); }
}
.post-card__media {
  position: relative; display: flex; align-items: flex-end; aspect-ratio: 16 / 9; padding: 18px;
  background-color: var(--red); text-decoration: none; overflow: hidden; isolation: isolate;
}
.post-card__media::before { /* rejilla de plano */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgb(255 255 255 / 12%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 12%) 1px, transparent 1px);
  background-size: 24px 24px;
}
.post-card__media::after { /* "L" del logo */
  content: ""; position: absolute; right: 18px; top: 18px; width: 72px; height: 72px; z-index: -1;
  border: 14px solid var(--yellow); border-right: 0; border-top: 0;
  transition: transform 400ms var(--ease-out);
}
.post-card__media--yellow { background-color: var(--yellow); }
.post-card__media--yellow::before { background-image: linear-gradient(rgb(21 19 18 / 8%) 1px, transparent 1px), linear-gradient(90deg, rgb(21 19 18 / 8%) 1px, transparent 1px); }
.post-card__media--yellow::after { border-color: var(--red); }
.post-card__media--dark { background-color: var(--ink); }
.post-card__media span { background: #fff; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; }
.post-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: .86rem; color: var(--ink-3); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.post-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* tarjeta entera clicable */
.post-card__body > p:last-child { color: var(--ink-2); font-size: .97rem; margin: 0; }
.post-card--featured { grid-column: 1 / -1; flex-direction: row; }
.post-card--featured .post-card__media { aspect-ratio: auto; flex: 0 0 46%; min-height: 300px; }
.post-card--featured .post-card__body { justify-content: center; padding: clamp(24px, 4vw, 48px); }
.post-card--featured h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.025em; }
@media (max-width: 760px) { .post-card--featured { flex-direction: column; } .post-card--featured .post-card__media { min-height: 0; aspect-ratio: 16 / 9; } }
.blog-more { margin-top: 40px; }

/* ---------- Blog: artículo ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 960px) { .article-layout { grid-template-columns: minmax(0, 1fr); } .article-aside { position: static !important; } }
.article { min-width: 0; font-size: 1.1rem; max-width: 720px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--ink-3); font-size: .95rem; margin-top: 20px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta svg { width: 16px; height: 16px; color: var(--red); }
.article h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 1.8em; }
.article h3 { margin-top: 1.5em; }
.article p, .article li { color: var(--ink-2); }
.article li { margin-bottom: .45em; }
.article strong { color: var(--ink); }
.article .lead { font-size: 1.25rem; color: var(--ink); }
.article .note { margin: 1.8em 0; padding: 20px 24px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.article .note p:last-child { margin: 0; }
.table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.article table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .97rem; }
.article th, .article td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article tr:last-child td { border-bottom: 0; }
.article th { font-family: var(--font-display); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); background: var(--paper); font-weight: 600; }
.toc { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 2.2em; }
.toc p { font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc li { margin: 6px 0; font-size: 1rem; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--red); text-decoration: underline; }
.article-aside { position: sticky; top: calc(var(--header-h) + 32px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; }
.aside-cta { position: relative; overflow: hidden; background: var(--ink); color: var(--dark-text); border-radius: var(--radius); padding: 28px; }
.aside-cta h2 { color: #fff; font-size: 1.5rem; }
.aside-cta p { font-size: .97rem; }
.aside-box { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 22px 24px; }
.aside-box h2 { font-family: var(--font-display); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.aside-box ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.aside-box li + li { border-top: 1px solid var(--line); }
.aside-box a { color: var(--ink); text-decoration: none; font-weight: 500; line-height: 1.4; display: block; padding: 12px 0; }
.aside-box a:hover { color: var(--red); }
.article-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- CTA final ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--red); color: #fff; border-radius: var(--radius); padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: center; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgb(255 255 255 / 9%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 9%) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); }
.cta-band::after { content: ""; position: absolute; right: 40px; bottom: 40px; width: 120px; height: 120px; z-index: -1; border: 22px solid var(--yellow); border-right: 0; border-top: 0; opacity: .9; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgb(255 255 255 / 88%); margin: 0; font-size: 1.15rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .cta-band { grid-template-columns: minmax(0, 1fr); } .cta-band::after { right: 24px; bottom: 24px; width: 64px; height: 64px; border-width: 12px; } }

/* ---------- Clientes (enlaces) ---------- */
.clients-section { padding-block: clamp(56px, 7vw, 88px); }
.clients-section .section-head { margin-bottom: 32px; }
.clients-section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.clients li { border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.clients a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; height: 100%; padding: 16px 20px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; line-height: 1.3;
  color: var(--ink-2); text-decoration: none; transition: background-color 150ms ease, color 150ms ease;
}
.clients a::after { /* flecha de enlace externo */
  content: ""; width: 14px; height: 14px; flex: none; opacity: .45;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151312' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 200ms var(--ease-out), opacity 150ms ease;
}
.clients a:hover { background: var(--paper); color: var(--red); }
@media (hover: hover) and (pointer: fine) { .clients a:hover::after { opacity: 1; transform: translate(2px, -2px); } }
@media (max-width: 960px) { .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .clients { grid-template-columns: minmax(0, 1fr); } .clients a { min-height: 56px; } }

/* ---------- Páginas internas ---------- */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); padding-block: clamp(48px, 7vw, 88px); }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 85% 0%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse 70% 90% at 85% 0%, #000 20%, transparent 70%); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 900px; }
.page-hero p { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 680px; margin: 0; }
.breadcrumb { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--ink-3); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); text-decoration: underline; }

/* ---------- Página de requisitos: lista de comprobación ---------- */
.rq-hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.rq-hero__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 80px); align-items: end; padding-block: clamp(40px, 6vw, 80px); }
.rq-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-bottom: 20px; }
.rq-hero .lead { max-width: 640px; margin-bottom: 28px; }
@media (max-width: 900px) { .rq-hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; } }

.rq-summary { background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 24px; }
.rq-summary__title { font-family: var(--font-display); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
.rq-summary dl { margin: 0; }
.rq-summary dl > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rq-summary dt { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; letter-spacing: -0.03em; color: var(--red); line-height: 1; white-space: nowrap; }
.rq-summary dd { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.4; }
.rq-summary__date { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: .88rem; color: var(--ink-3); }
.rq-summary__date svg { width: 15px; height: 15px; color: var(--red); flex: none; }

.rq-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 112px); }
.rq-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
.rq-progress { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 20px; display: grid; gap: 10px; }
.rq-progress__label { margin: 0; font-family: var(--font-display); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dark-text); }
.rq-progress__count { margin: 0; font-size: .98rem; color: #e9e4df; }
.rq-progress__count strong { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; margin-right: 4px; }
.rq-progress__bar { height: 6px; border-radius: 3px; background: rgb(255 255 255 / 14%); overflow: hidden; }
.rq-progress__bar span { display: block; height: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease-out); }
.rq-progress__reset { justify-self: start; background: none; border: 0; padding: 4px 0; font: inherit; font-size: .85rem; color: var(--dark-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rq-progress__reset:hover { color: #fff; }
.rq-index ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-strong); }
.rq-index a { display: flex; gap: 12px; padding: 8px 0 8px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: .95rem; line-height: 1.35; transition: color 150ms ease, border-color 150ms ease; }
.rq-index a span { font-family: var(--font-display); font-size: .8rem; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 2px; }
.rq-index a:hover, .rq-index a.is-active { color: var(--ink); border-left-color: var(--red); }

.rq-intro { margin: 0 0 8px; padding: 16px 20px; background: var(--yellow-50); border-radius: var(--radius-sm); color: #5c4300; font-size: .97rem; }
.rq-block { padding: 40px 0; border-bottom: 1px solid var(--line); }
.rq-block__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 20px; }
.rq-block__num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: .9; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.25px var(--red); font-variant-numeric: tabular-nums; min-width: 2.2ch; }
.rq-block__head h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin: 0 0 4px; }
.rq-block__head p { margin: 0; color: var(--ink-3); font-size: .97rem; }

.rq-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.rq-checks label { overflow-wrap: break-word; hyphens: auto; }
.rq-checks li { position: relative; border-top: 1px dashed var(--line-strong); }
.rq-checks li:last-child { border-bottom: 1px dashed var(--line-strong); }
.rq-checks input { position: absolute; left: 0; top: 50%; width: 22px; height: 22px; margin: -11px 0 0; appearance: none; -webkit-appearance: none; border: 1.5px solid var(--line-strong); border-radius: 5px; background: #fff; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease; }
.rq-checks input:hover { border-color: var(--ink-3); }
.rq-checks input:checked { background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--red); }
.rq-checks input:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.rq-checks label { display: block; padding: 14px 0 14px 40px; min-height: 48px; color: var(--ink); line-height: 1.5; cursor: pointer; transition: color 150ms ease; }
.rq-checks input:checked + label { color: var(--ink-3); }

.rq-table-wrap { overflow-x: auto; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.rq-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .97rem; }
.rq-table th, .rq-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.rq-table tr:last-child th, .rq-table tr:last-child td { border-bottom: 0; }
.rq-table thead th { font-family: var(--font-display); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); background: var(--paper); }
.rq-table tbody th { font-weight: 600; color: var(--ink); width: 30%; }
.rq-table td { color: var(--ink-2); }

.rq-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rq-note { padding: 20px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--yellow-50); border-left: 4px solid var(--yellow); }
.rq-note--alt { background: var(--red-50); border-left-color: var(--red); }
.rq-note h3 { font-size: 1.1rem; margin-bottom: 8px; }
.rq-note p { margin: 0; color: var(--ink-2); font-size: .97rem; }
@media (max-width: 700px) { .rq-notes { grid-template-columns: minmax(0, 1fr); } }

.rq-cta { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding: 28px 32px; border: 1px solid var(--line-strong); border-top: 4px solid var(--red); border-radius: var(--radius); background: #fff; }
.rq-cta h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 0 0 6px; }
.rq-cta p { margin: 0; color: var(--ink-2); }

@media (max-width: 960px) {
  .rq-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
  .rq-side { top: var(--header-h); z-index: 20; margin-inline: calc(var(--gutter) * -1); padding: 10px var(--gutter); background: rgb(255 255 255 / 95%); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
  .rq-index { display: none; }
  .rq-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 14px; }
  .rq-progress__bar { flex: 1 1 40px; }
  .rq-progress__label { display: none; }
  .rq-progress__count { font-size: .9rem; white-space: nowrap; }
  .rq-progress__count strong { font-size: 1.3rem; }
  .rq-intro { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) { .rq-progress__bar span { transition: none; } }

.sources { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-3); }
.sources > p:first-child { font-family: var(--font-display); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.sources ul { margin: 0 0 12px; padding-left: 1.1em; display: grid; gap: 6px; }
.sources a { color: var(--ink-2); }
.sources__note { margin: 0; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.form-card { background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.form-card h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.form-card > p { color: var(--ink-3); }
.contact-aside { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 960px) { .contact-aside { position: static; } }
.contact-card { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; }
.contact-card h3 { font-size: 1.2rem; margin: 0; }
.contact-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-card li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; color: var(--ink-2); line-height: 1.5; }
.contact-card li svg { width: 18px; height: 18px; color: var(--red); flex: none; margin-top: 3px; }
.contact-card--mail { gap: 4px; text-decoration: none; color: var(--ink); transition: border-color 150ms ease, background-color 150ms ease; }
.contact-card--mail:hover { border-color: var(--red); background: var(--red-50); color: var(--ink); }
.contact-card__label { font-family: var(--font-display); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.contact-card--mail strong { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.contact-card--dark { background: var(--ink); border-color: var(--ink); }
.contact-card--dark h3 { color: #fff; }
.contact-card--dark li { color: #e9e4df; }
.contact-card--dark li svg { color: var(--yellow); }

/* Legal */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.6rem; margin-top: 1.8em; }
.legal p, .legal li { color: var(--ink-2); }
.todo { background: var(--yellow-50); border: 1px dashed var(--yellow); padding: 14px 18px; border-radius: var(--radius-sm); color: #6b4b00; font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding-top: clamp(56px, 8vw, 88px); font-size: .97rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.3fr); gap: 40px; padding-bottom: 56px; }
@media (max-width: 960px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-top { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.footer-top img { height: 56px; width: auto; margin-bottom: 18px; }
.footer-top p { color: var(--ink-2); max-width: 340px; }
.footer-title { font-family: var(--font-display); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 16px; color: var(--ink-3); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.footer-links a { color: var(--ink); text-decoration: none; overflow-wrap: break-word; }
.footer-top > div { min-width: 0; }
.footer-links a:hover { color: var(--red); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--ink-3); font-size: .9rem; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; }
.footer-bottom a { color: var(--ink-3); text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom button { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-3); cursor: pointer; }
.footer-bottom button:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Botón flotante móvil ---------- */
.float-call { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: none; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 600; text-decoration: none; box-shadow: 0 10px 30px rgb(181 25 31 / 35%); transition: transform 160ms var(--ease-out); }
.float-call:active { transform: scale(0.96); }
.float-call:hover { color: #fff; }
.float-call svg { width: 20px; height: 20px; }
@media (max-width: 720px) { .float-call { display: inline-flex; } }
/* Aparece al dejar atrás el hero (evita tapar el formulario principal) */
.js .float-call { opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 200ms ease, transform 250ms var(--ease-out); }
.js .float-call.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.js .float-call.is-shown:active { transform: scale(0.96); }

/* ---------- Banner cookies ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300;
  max-width: 480px; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 24px 64px -16px rgb(21 19 18 / 30%); padding: 22px 24px;
  transition: opacity 300ms ease, transform 300ms var(--ease-out);
}
@starting-style { .cookie-banner { opacity: 0; transform: translateY(16px); } }
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 1.2rem; margin-bottom: 6px; }
.cookie-banner p { font-size: .93rem; color: var(--ink-2); margin-bottom: 16px; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn { min-height: 42px; padding: 8px 18px; font-size: .95rem; }

/* ---------- Revelado al hacer scroll (sutil, con stagger) ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Movimiento reducido: más suave, no cero ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-enter] { animation: fade 300ms ease both; animation-delay: 0ms; }
  .js .stamp { animation: fade 300ms ease both; }
  .js .reveal { transform: none; transition: opacity 300ms ease; transition-delay: 0ms; }
  .steps::after { transition: none; transform: none !important; }
  .faq details[open] .faq__body { animation: fade 200ms ease; }
  .btn:active, .float-call:active, .nav-toggle:active { transform: none; }
  .nav, .nav.is-open, .js .float-call { transform: none; }
  .post-card__media::after, .link-arrow svg, .btn svg { transition: none; }
}
