/* ==========================================================================
   Nueva Arquitectura — Víctor Vallés Lorente, Arquitecto Técnico
   Hoja de estilos principal
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tipografías autoalojadas (sin peticiones a terceros · RGPD)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Tokens de diseño
   -------------------------------------------------------------------------- */
:root {
  /* Color */
  --ivory: #f8f7f4;
  --paper: #ffffff;
  --ink: #1e262d;
  --body: #414b54;
  --muted: #5f6b75;
  --blue: #1d5c9a;
  --blue-ink: #16354e;
  --blue-mid: #3c6e9c;
  --blue-pale: #eaf0f6;
  --sand: #c9b79e;
  --line: #e4e1d9;
  --line-cool: #e3e8ee;
  --error: #a33a2d;

  /* Tipografía */
  --display: "Jost", "Segoe UI", system-ui, sans-serif;
  --text: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Medidas */
  --pad: clamp(20px, 4.5vw, 56px);
  --edge: max(var(--pad), calc((100% - 1240px) / 2 + var(--pad)));
  --header-h: 88px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--body);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  color: var(--blue-ink);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue-ink);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(29, 92, 154, 0.16);
  color: var(--blue-ink);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   4. Utilidades
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: clamp(72px, 9vw, 128px);
}

.section--paper {
  background: var(--paper);
}

.section--line {
  border-top: 1px solid var(--line);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--pad);
  z-index: 200;
  background: var(--blue-ink);
  color: #fff;
  padding: 12px 20px;
  font-size: 0.85rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

main [id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-family: var(--text);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.72);
}

.eyebrow--light::before {
  background: rgba(255, 255, 255, 0.45);
}

.h2 {
  font-size: clamp(2rem, 1.35rem + 2.1vw, 3.05rem);
  max-width: 20ch;
}

.lead {
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.1rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 58ch;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--blue);
}

.text-link svg {
  transition: transform 0.3s var(--ease);
}

.text-link:hover svg {
  transform: translateX(5px);
}

/* Botones ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn svg {
  flex: none;
  transition: transform 0.3s var(--ease);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 14px 30px -18px rgba(22, 53, 78, 0.65);
}

.btn--primary:hover {
  background: var(--blue-ink);
  border-color: var(--blue-ink);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -18px rgba(22, 53, 78, 0.7);
}

.btn--ghost {
  border-color: rgba(29, 92, 154, 0.28);
  color: var(--blue-ink);
}

.btn--ghost:hover {
  background: rgba(29, 92, 154, 0.06);
  border-color: rgba(29, 92, 154, 0.5);
  color: var(--blue-ink);
}

.btn--light {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn--light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

/* Aparición al hacer scroll (solo si hay JS) --------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   5. Cabecera
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

@supports (backdrop-filter: blur(2px)) {
  .site-header {
    backdrop-filter: blur(14px) saturate(1.1);
  }
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line-cool);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand__mark {
  width: auto;
  height: 44px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__name {
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  line-height: 1.1;
  color: var(--blue-ink);
  white-space: nowrap;
}

.brand__role {
  font-family: var(--text);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding-block: 6px;
  font-size: 0.84rem;
  font-weight: 500;
  color: #3b4650;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__link:hover {
  color: var(--blue-ink);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.header__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding-left: 26px;
  border-left: 1px solid var(--line-cool);
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--blue-ink);
  text-decoration: none;
  white-space: nowrap;
}

.header__cta svg {
  color: var(--blue);
}

.header__cta:hover {
  color: var(--blue);
}

.header__mail {
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.header__mail:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* Botón hamburguesa */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 13px;
  width: 20px;
  height: 1px;
  background: var(--blue-ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease),
    top 0.3s var(--ease);
}

.nav-toggle span:nth-child(1) {
  top: 19px;
}

.nav-toggle span:nth-child(2) {
  top: 25px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  top: 22px;
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. Portada
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(32px, 4vw, 72px);
  padding-left: var(--edge);
  min-height: clamp(580px, calc(100vh - var(--header-h)), 780px);
  min-height: clamp(580px, calc(100svh - var(--header-h)), 780px);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(56px, 7vw, 96px);
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(2.5rem, 1.45rem + 2.9vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.hero h1 .accent {
  color: var(--blue);
  position: relative;
  white-space: nowrap;
}

.hero__lead {
  max-width: 50ch;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.7;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 30px;
  font-size: 0.78rem;
  color: var(--muted);
}

.hero__note span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__note svg {
  color: var(--blue-mid);
  flex: none;
}

.hero__media {
  position: relative;
  min-height: 460px;
  background: #dfe6ec;
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 45%;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: clamp(14px, 1.8vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   7. Franja de confianza
   -------------------------------------------------------------------------- */
.trust {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.trust__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust__item {
  padding: 26px 30px;
  border-left: 1px solid var(--line-cool);
}

.trust__item:first-child {
  border-left: 0;
  padding-left: 0;
}

.trust__item:last-child {
  padding-right: 0;
}

.trust__k {
  display: block;
  margin-bottom: 5px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.trust__v {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--blue-ink);
}

/* --------------------------------------------------------------------------
   8. Cabecera de sección
   -------------------------------------------------------------------------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 24px 60px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head .h2 {
  max-width: 18ch;
}

.section-head__aside {
  padding-bottom: 6px;
}

.section-head__aside p {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   9. Servicios
   -------------------------------------------------------------------------- */
.services {
  border-top: 1px solid var(--line);
}

.service {
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 170px;
  gap: 24px 32px;
  padding: clamp(28px, 3.4vw, 42px) 0;
  border-bottom: 1px solid var(--line);
}

.service::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 34px;
  bottom: 34px;
  width: 2px;
  background: var(--blue);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.service:hover::before {
  opacity: 1;
}

.service__num {
  padding-top: 7px;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--blue);
}

.service h3 {
  font-size: clamp(1.3rem, 1.1rem + 0.55vw, 1.62rem);
  line-height: 1.24;
  max-width: 26ch;
  transition: color 0.25s var(--ease);
}

.service:hover h3 {
  color: var(--blue);
}

.service p {
  margin-top: 14px;
  max-width: 64ch;
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--body);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tags li {
  padding: 5px 11px;
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.71rem;
  letter-spacing: 0.02em;
  color: #4c5a66;
}

.service__link {
  align-self: start;
  justify-self: end;
  margin-top: 8px;
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.services__extra {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 40px;
  padding-top: 26px;
  font-size: 0.9rem;
  color: var(--muted);
}

.services__extra p {
  max-width: 66ch;
}

.services__extra strong {
  font-weight: 500;
  color: var(--blue-ink);
}

/* --------------------------------------------------------------------------
   9 bis. Tipologías de reforma
   -------------------------------------------------------------------------- */
.reformas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
}

.reforma {
  margin: 0;
}

.reforma__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--blue-pale);
  border: 1px solid var(--line-cool);
}

.reforma__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.reforma:hover .reforma__media img {
  transform: scale(1.035);
}

.reforma__body {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 3px 8px;
  padding-top: 14px;
}

.reforma__num {
  padding-top: 4px;
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--blue);
}

.reforma h3 {
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.25;
}

.reforma p {
  grid-column: 2;
  font-size: 0.81rem;
  line-height: 1.55;
  color: var(--muted);
}

.reformas__note {
  margin-top: 24px;
  font-size: 0.71rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-align: right;
}

@media (max-width: 960px) {
  .reformas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .reformas {
    grid-template-columns: minmax(0, 1fr);
  }

  .reformas__note {
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   10. Banda de cita
   -------------------------------------------------------------------------- */
.band {
  position: relative;
  overflow: hidden;
  background: var(--blue-ink);
  color: #fff;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.055) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: linear-gradient(100deg, #000 0%, transparent 72%);
  mask-image: linear-gradient(100deg, #000 0%, transparent 72%);
  pointer-events: none;
}

.band::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -140px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(201, 183, 158, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.band__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px 56px;
  padding-block: clamp(56px, 7vw, 88px);
}

.band__quote {
  margin: 0;
  max-width: 24ch;
  font-family: var(--display);
  font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.5rem);
  font-weight: 300;
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: #fff;
}

.band__quote em {
  font-style: normal;
  color: var(--sand);
}

.band__sign {
  margin-top: 22px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   11. Proceso
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.step {
  position: relative;
  padding: 34px 28px 0;
  border-left: 1px solid var(--line);
}

.step:first-child {
  border-left: 0;
  padding-left: 0;
}

.step:last-child {
  padding-right: 0;
}

.step__num {
  display: block;
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: 2.35rem;
  font-weight: 300;
  line-height: 1;
  color: var(--blue);
  opacity: 0.4;
}

.step h3 {
  font-size: 1.16rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 12px;
}

.step p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   12. Sobre mí
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.about__copy .h2 {
  max-width: 16ch;
  margin-bottom: 26px;
}

.about__copy p + p {
  margin-top: 16px;
}

.about__copy p {
  max-width: 56ch;
  color: var(--body);
}

.about__facts {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.about__facts div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}

.about__facts dt {
  color: var(--muted);
  letter-spacing: 0.04em;
}

.about__facts dd {
  margin: 0;
  color: var(--blue-ink);
  font-weight: 500;
}

.about__aside {
  position: relative;
}

.profile {
  background: var(--paper);
  border: 1px solid var(--line-cool);
  box-shadow: 0 40px 80px -60px rgba(22, 53, 78, 0.55);
}

.profile__media {
  height: 210px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-cool);
}

.profile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
}

.profile__body {
  padding: clamp(24px, 3vw, 34px);
}

.profile__logo {
  width: min(100%, 340px);
  height: auto;
}

.profile__rule {
  height: 1px;
  margin: 24px 0;
  background: var(--line);
}

.profile__meta {
  display: grid;
  gap: 4px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}

.profile__meta strong {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--blue-ink);
}

.profile__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}

.profile__foot .text-link {
  font-size: 0.68rem;
}

.profile__stamp {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #737e89;
  text-align: right;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   13. Preguntas frecuentes
   -------------------------------------------------------------------------- */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.faq__aside {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.faq__aside .h2 {
  max-width: none;
  font-size: clamp(1.9rem, 1.35rem + 1.7vw, 2.75rem);
  margin-bottom: 22px;
}

.faq__aside p {
  max-width: 34ch;
  font-size: 0.92rem;
  color: var(--muted);
}

.faq__aside .text-link {
  margin-top: 22px;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: clamp(1.02rem, 0.98rem + 0.2vw, 1.16rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--blue-ink);
  transition: color 0.2s var(--ease);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::marker {
  content: "";
}

.faq summary:hover {
  color: var(--blue);
}

.faq summary::after {
  content: "";
  flex: none;
  width: 13px;
  height: 13px;
  margin-top: 5px;
  background: linear-gradient(var(--blue), var(--blue)) center / 13px 1px
      no-repeat,
    linear-gradient(var(--blue), var(--blue)) center / 1px 13px no-repeat;
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 40px 24px 0;
  font-size: 0.93rem;
  line-height: 1.75;
  color: var(--body);
}

.faq__answer p + p {
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   14. Contacto
   -------------------------------------------------------------------------- */
.contact {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.contact__intro .h2 {
  max-width: 14ch;
  margin-bottom: 22px;
}

.contact__list {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.contact__item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.contact__icon {
  color: var(--blue);
  padding-top: 2px;
}

.contact__k {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.contact__v {
  font-family: var(--display);
  font-size: 1.06rem;
  font-weight: 400;
  color: var(--blue-ink);
  text-decoration: none;
  line-height: 1.45;
}

a.contact__v:hover {
  color: var(--blue);
}

.contact__v small {
  display: block;
  font-family: var(--text);
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 2px;
}

.contact__zone {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  padding: 16px 18px;
  border-left: 2px solid var(--sand);
  background: var(--ivory);
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Formulario ---------------------------------------------------------------- */
.form-panel {
  position: relative;
  padding: clamp(24px, 3.2vw, 40px);
  background: var(--ivory);
  border: 1px solid var(--line-cool);
}

.form-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 56px;
  height: 56px;
  border-top: 2px solid var(--blue);
  border-left: 2px solid var(--blue);
  pointer-events: none;
}

.form__head {
  margin-bottom: 26px;
}

.form__head h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.form__head p {
  font-size: 0.84rem;
  color: var(--muted);
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4a5661;
}

.field label .req {
  color: var(--blue);
  margin-left: 2px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d9e0e7;
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.92rem;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
  min-height: 118px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #98a2ac;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231d5c9a' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 92, 154, 0.12);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.field__error {
  font-size: 0.74rem;
  color: var(--error);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 4px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
}

/* El texto del consentimiento no lleva el estilo de etiqueta del formulario */
.field .consent {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.55;
  color: var(--muted);
}

.consent input {
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  flex: none;
  accent-color: var(--blue);
}

.consent a {
  color: var(--blue);
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.form__actions .btn {
  flex: 1 1 220px;
}

.form__note {
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 26ch;
}

.form__status {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--error);
}

.form__status.is-ok {
  color: var(--blue);
}

.form-success {
  display: flex;
  gap: 18px;
  padding: 8px 0 4px;
}

.form-success__icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(29, 92, 154, 0.1);
  color: var(--blue);
}

.form-success h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.form-success p {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 38ch;
}

.form-success .text-link {
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   15. Pie de página
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 0.75fr)) minmax(
      0,
      0.95fr
    );
  gap: 40px;
  padding-block: clamp(48px, 6vw, 72px);
}

.footer__brand .brand {
  margin-bottom: 18px;
}

.footer__brand p {
  max-width: 34ch;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--muted);
}

.footer__col h2 {
  margin-bottom: 16px;
  font-family: var(--text);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__col ul {
  display: grid;
  gap: 9px;
}

.footer__col a {
  font-size: 0.86rem;
  color: var(--blue-ink);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer__col a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.footer__contact {
  display: grid;
  gap: 10px;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--muted);
}

.footer__contact a {
  color: var(--blue-ink);
  text-decoration: none;
}

.footer__contact a:hover {
  color: var(--blue);
}

.footer__bottom {
  background: var(--blue-ink);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.75rem;
}

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding-block: 18px;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.footer__bottom a:hover {
  color: #fff;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   16. Barra fija móvil
   -------------------------------------------------------------------------- */
.mobile-bar {
  display: none;
}

/* --------------------------------------------------------------------------
   17. Páginas legales
   -------------------------------------------------------------------------- */
.legal-page {
  background: var(--ivory);
}

.legal-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.legal-main {
  padding-block: clamp(48px, 7vw, 88px);
}

.legal {
  max-width: 760px;
}

.legal .eyebrow {
  margin-bottom: 18px;
}

.legal h1 {
  font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem);
  margin-bottom: 16px;
}

.legal__meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 36px;
}

.legal h2 {
  margin: 38px 0 12px;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0;
}

.legal h3 {
  margin: 24px 0 8px;
  font-family: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--blue-ink);
}

.legal p,
.legal li {
  font-size: 0.93rem;
  line-height: 1.78;
  color: var(--body);
}

.legal p + p {
  margin-top: 12px;
}

.legal ul {
  margin: 12px 0;
  padding-left: 18px;
  list-style: disc;
}

.legal ul li {
  margin-bottom: 6px;
}

.legal a {
  color: var(--blue);
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.legal__table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.legal__table th,
.legal__table td {
  padding: 10px 12px;
  border: 1px solid var(--line-cool);
  text-align: left;
  vertical-align: top;
}

.legal__table th {
  background: var(--paper);
  font-weight: 600;
  color: var(--blue-ink);
  width: 34%;
}

.todo {
  padding: 0 4px;
  border-bottom: 1px dashed var(--error);
  color: var(--error);
  font-size: 0.94em;
}

/* Página de agradecimiento */
.thanks {
  max-width: 640px;
  padding-block: clamp(16px, 5vw, 56px);
}

.thanks__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 26px;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--blue);
}

.thanks .eyebrow {
  margin-bottom: 16px;
}

.thanks h1 {
  font-size: clamp(2.1rem, 1.5rem + 2vw, 3.1rem);
  margin-bottom: 18px;
}

.thanks__text {
  max-width: 50ch;
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--muted);
}

.thanks__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.thanks__sign {
  margin-top: 40px;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   18. Adaptación a pantallas
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .nav {
    gap: 22px;
  }

  .nav__list {
    gap: 22px;
  }

  .header__contact {
    padding-left: 20px;
  }

  .header__cta {
    font-size: 0.94rem;
  }

  .service {
    grid-template-columns: 62px minmax(0, 1fr) 150px;
    gap: 20px 26px;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-h: 76px;
  }

  .nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .header__contact {
    display: none;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    padding-right: var(--pad);
    gap: 0;
    min-height: 0;
  }

  .hero__copy {
    padding-block: clamp(44px, 7vw, 72px);
    max-width: 660px;
  }

  .hero__media {
    min-height: 0;
    height: clamp(340px, 52vw, 470px);
    margin-inline: calc(-1 * var(--pad));
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .section-head__aside {
    max-width: 56ch;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .step:nth-child(n + 3) {
    padding-top: 34px;
    border-top: 1px solid var(--line);
  }

  .about__grid,
  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .about__aside {
    max-width: 520px;
  }

  .faq__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .faq__aside {
    position: static;
  }

  .faq__aside .h2 {
    max-width: 20ch;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }
}

/* Menú móvil desplegable */
@media (max-width: 1024px) {
  .nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--pad) 26px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 50px -30px rgba(22, 53, 78, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
      visibility 0.25s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__list li {
    border-bottom: 1px solid var(--line-cool);
  }

  .nav__link {
    display: block;
    padding: 15px 0;
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--blue-ink);
  }

  .nav__link::after {
    display: none;
  }

  .nav__cta {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .nav__cta .btn {
    flex: 1 1 160px;
  }

  .nav__mail {
    flex: 1 1 100%;
    padding-top: 6px;
    font-size: 0.82rem;
    color: var(--muted);
    text-align: center;
    text-decoration: none;
  }

  .nav__mail:hover {
    color: var(--blue);
    text-decoration: underline;
  }
}

@media (max-width: 520px) {
  .nav__cta {
    flex-direction: column;
  }

  .nav__cta .btn {
    flex: 0 0 auto;
    width: 100%;
  }
}

@media (min-width: 1025px) {
  .nav__cta {
    display: none;
  }
}

@media (max-width: 860px) {
  .service {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service__num {
    padding-top: 0;
  }

  .service__link {
    justify-self: start;
    margin-top: 2px;
  }

  .services__extra {
    flex-direction: column;
    align-items: flex-start;
  }

  .band__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .band__quote {
    max-width: 20ch;
  }

  .band .btn {
    justify-self: start;
  }

  .trust__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust__item {
    padding: 20px 24px;
  }

  .trust__item:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .trust__item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-cool);
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 70px;
  }

  body {
    padding-bottom: 70px;
  }

  .brand__mark {
    height: 38px;
  }

  .brand__name {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
  }

  .brand__role {
    font-size: 0.5rem;
    letter-spacing: 0.2em;
  }

  .header__cta {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 1.2rem + 5vw, 3rem);
    margin-bottom: 22px;
  }

  .hero__actions {
    margin-top: 30px;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .hero__note {
    font-size: 0.75rem;
  }

  .hero__media {
    height: 300px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .step {
    padding: 26px 0 0;
    border-left: 0;
  }

  .step + .step {
    margin-top: 26px;
    border-top: 1px solid var(--line);
  }

  .step__num {
    margin-bottom: 12px;
    font-size: 1.9rem;
  }

  .about__facts div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .form__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form__actions .btn {
    flex: 1 1 100%;
  }

  .form__note {
    max-width: none;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.72rem;
  }

  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--line-cool);
    backdrop-filter: blur(10px);
  }

  .mobile-bar .btn {
    min-height: 46px;
    font-size: 0.82rem;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .brand__role {
    display: none;
  }

  .brand__mark {
    height: 34px;
  }

  .trust__item {
    padding: 16px 16px;
  }

  .trust__v {
    font-size: 0.94rem;
  }

  .hero__media {
    height: 250px;
  }
}

/* --------------------------------------------------------------------------
   19. Accesibilidad y preferencias
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .mobile-bar,
  .hero__media,
  .hero__actions,
  .site-footer,
  .form-panel,
  .band__inner .btn {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero__grid,
  .about__grid,
  .contact__grid {
    display: block;
    padding: 0;
  }

  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
