/* =====================================================================
   IGDECENAL — Hoja de estilos única
   Identidad: azul #0B2D5B, Manrope, esquinas vivas, retícula editorial.
   Estructura de secciones + asistente de cotización en modal.
   ===================================================================== */

@font-face {
  font-family: Manrope;
  src: url('../fonts/manrope.woff2') format('woff2');
  font-display: swap;
  font-weight: 200 800;
}

:root {
  /* Paleta de la identidad */
  --navy: #0b2d5b;
  --navy-700: #194570;
  --ink: #122a43;
  --gray: #667280;
  --gray-40: #a9b5c3;
  --line: #d8dce3;
  --paper: #f2f5f7;
  --white: #fff;
  --accent: #315f93;
  --danger: #b3261e;

  --font: Manrope, -apple-system, 'Segoe UI', Arial, sans-serif;

  /* Métricas */
  --wrap: 1280px;
  --gutter: 48px;
  --radius: 0;            /* la identidad no usa esquinas redondeadas */

  /* Modal: el botón de cerrar flota sobre el cuerpo, así que su tamaño y su
     separación las necesita la barra de progreso para no pasar por debajo. */
  --close-size: 40px;
  --close-inset: 14px;
  --modal-pad: 44px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* El atributo `hidden` solo aporta `display:none` desde la hoja del navegador,
   así que cualquier `display` propio lo anula. Esto lo hace valer siempre:
   el asistente se apoya en `hidden` para mostrar y ocultar pasos y preguntas. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 40px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color: var(--navy); font-weight: 600; }
h1, .display { font-size: clamp(42px, 4.4vw, 68px); line-height: 1.09; letter-spacing: -2.8px; }
/* El lema grande de cada página es un párrafo destacado; el <h1> es el rótulo con los términos
   que se buscan. Así el buscador sabe de qué va la página y la vista no cambia. */
.display { color: var(--navy); font-weight: 600; }
h1.eyebrow { font-size: 11px; line-height: 1.7; letter-spacing: 2.1px; font-weight: 700; color: var(--accent); }
h2 { font-size: clamp(32px, 3.2vw, 48px); line-height: 1.15; letter-spacing: -1.7px; }
h3 { font-size: 23px; line-height: 1.3; letter-spacing: -.6px; }
p { color: var(--gray); }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
a, button { transition: color .2s, background .2s, border-color .2s, transform .2s; }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px;
}
::selection { background: #d5e5f4; }

.container { max-width: var(--wrap); width: calc(100% - 96px); margin: 0 auto; }

.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 2.1px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 24px;
}

.skip-link { position: absolute; left: 10px; top: -100px; background: #fff; color: var(--navy); z-index: 100; padding: 15px; }
.skip-link:focus { top: 10px; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 38px;
  min-height: 55px; padding: 15px 24px;
  background: var(--navy); color: #fff; border: 1px solid var(--navy); border-radius: var(--radius);
  font-size: 13px; font-weight: 600; line-height: 1.5; cursor: pointer;
}
.btn:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.btn > span { font-size: 21px; font-weight: 400; line-height: 1; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--sm { min-height: 49px; padding: 13px 19px; font-size: 12px; gap: 20px; }
.btn--light { background: #fff; border-color: #fff; color: var(--navy); }
.btn--light:hover { background: #dbe5ee; border-color: #dbe5ee; color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { background: var(--paper); color: var(--navy); border-color: var(--gray-40); }

.text-link {
  display: inline-flex; align-items: center; gap: 24px;
  border-bottom: 1px solid var(--gray-40); padding: 8px 0;
  font-size: 13px; font-weight: 600; color: var(--navy);
}
.text-link span { font-size: 20px; }
.btn > span, .text-link span { transition: transform .25s ease; }
.btn:hover > span, .text-link:hover span { transform: translate(3px, -3px); }

/* ---------- cabecera ---------- */
.header { background: #fff; position: relative; z-index: 20; }
.header__inner {
  max-width: 1440px; margin: 0 auto; padding: 20px 40px 25px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: block; flex-shrink: 0; }
.brand img { width: 255px; height: auto; }
.header__right { display: flex; flex-direction: column; align-items: flex-end; gap: 17px; position: relative; }
/* Selector de idioma: la misma página en ES · CA · EN, como en el WordPress */
.lang { position: absolute; right: 0; top: -5px; display: flex; gap: 5px; font-size: 10px; font-weight: 700; }
.lang a { padding: 5px 7px; color: var(--gray); border-bottom: 1px solid transparent; }
.lang a:hover { color: var(--navy); }
.lang a[aria-current=true] { color: var(--navy); border-color: var(--navy); }
.lang + .utility { margin-right: 120px; }
.utility { font-size: 10px; display: flex; gap: 19px; align-items: center; color: var(--gray); }
.utility span.sep { color: var(--gray-40); }
.utility a { color: var(--navy); }
.nav { display: flex; align-items: center; gap: 26px; font-size: 12px; font-weight: 500; }
.nav__toggle { display: none; }

/* ---------- portada ---------- */
.hero { display: grid; grid-template-columns: 42% 58%; max-width: 1440px; margin: 15px auto 0; padding: 0 40px; align-items: center; }
.hero__copy { padding: 20px 46px 30px 8px; }
.hero__copy .display { margin-bottom: 25px; }
.hero__copy .display em { font-style: normal; color: #657d98; }
.hero__copy > p:not(.eyebrow):not(.display) { font-size: 14px; max-width: 380px; line-height: 1.85; margin-bottom: 31px; }
.hero__visual { height: 570px; position: relative; overflow: hidden; }
.hero__visual img { width: 100%; height: 100%; object-fit: cover; object-position: 49% center; }
.hero__visual::after { content: ''; position: absolute; bottom: 0; left: 0; width: 72px; height: 72px; background: #fff; }
.img-caption {
  position: absolute; bottom: 25px; right: 24px; color: #fff; font-size: 9px;
  letter-spacing: 1.7px; text-transform: uppercase; text-shadow: 0 1px 5px #000;
  display: flex; align-items: center; gap: 12px;
}
.img-caption::before { content: ''; width: 25px; height: 1px; background: #fff; }
.hero__foot {
  max-width: 1440px; margin: 0 auto; padding: 25px 48px 0;
  display: flex; justify-content: space-between; color: var(--gray); font-size: 10px;
}
.hero__foot a { color: var(--navy); }

/* ---------- tira de ventajas ---------- */
.benefits {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 65px; padding: 29px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.benefit { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 2px 24px; }
.benefit + .benefit { border-left: 1px solid var(--line); }
.icon { width: 35px; height: 35px; stroke: var(--navy); fill: none; stroke-width: 1.2; flex-shrink: 0; }
.benefit strong { display: block; font-size: 13px; font-weight: 600; color: var(--navy); }
.benefit span { display: block; font-size: 11px; color: var(--gray); margin-top: 2px; }

/* ---------- secciones ---------- */
.section { padding: 105px 0; }
.section--soft { background: var(--paper); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3, .section--navy .eyebrow { color: #fff; }
.section--navy p { color: #c3cfdd; }

.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 60px; margin-bottom: 48px; }
.section__head h2 { max-width: 600px; }
.section__head > p { max-width: 355px; font-size: 14px; }
.section__head .eyebrow { margin-bottom: 17px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { border-top: 1px solid var(--line); padding: 28px 0 10px; }
.card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.card__top > span { font-size: 11px; color: #708196; }
.card h3 { margin-bottom: 14px; }
.card p { font-size: 13px; line-height: 1.9; max-width: 340px; margin-bottom: 22px; }
.card .text-link { font-size: 12px; }
.card { transition: border-color .25s ease; }
.card:hover { border-color: var(--navy); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.split h2 { margin-bottom: 24px; }
.split p { font-size: 14px; margin-bottom: 30px; }
.split__visual { height: 430px; position: relative; overflow: hidden; }
/* Encuadre centrado y sin ampliar: la escena es un grupo alrededor de la mesa
   y cualquier recorte lateral deja gente fuera. */
.split__visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.split__visual::after { content: ''; position: absolute; right: 0; top: 0; width: 65px; height: 65px; background: var(--navy); }
.list-numbered { padding: 0; list-style: none; margin: 25px 0 30px; }
.list-numbered li { font-size: 13px; border-top: 1px solid #365271; padding: 16px 0; display: flex; gap: 18px; }
.list-numbered span { color: #99b2ce; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.step { border-top: 1px solid var(--line); padding-top: 24px; position: relative; }

/* Secuencia del proceso. Sobre el filete de cada paso hay una línea de avance y
   una marca cuadrada en su origen. Este es el estado final, y también el que se
   ve sin JavaScript o con movimiento reducido: los cuatro pasos completos. */
.step::before {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: var(--navy); transform-origin: left center;
}
.step::after {
  content: ''; position: absolute; left: 0; top: -5px; width: 10px; height: 10px;
  background: var(--navy);
}

@media (prefers-reduced-motion: no-preference) {
  /* Cada paso: primero la marca, luego la línea avanza y, al llegar, el contenido. */
  .motion .seq::after {
    transform: scale(0);
    transition: transform .35s cubic-bezier(.2,.65,.3,1) var(--t, 0s);
  }
  .motion .seq::before {
    transform: scaleX(0);
    transition: transform .75s cubic-bezier(.65,0,.35,1) calc(var(--t, 0s) + .15s);
  }
  .motion .seq > * {
    opacity: 0; transform: translateY(14px);
    transition: opacity .55s ease calc(var(--t, 0s) + .5s),
                transform .55s cubic-bezier(.2,.65,.3,1) calc(var(--t, 0s) + .5s);
  }
  .motion .seq.is-in::after { transform: scale(1); }
  .motion .seq.is-in::before { transform: scaleX(1); }
  .motion .seq.is-in > * { opacity: 1; transform: none; }
}

/* En fila los cuatro entran a la vez: estos retardos son los que cuentan el orden.
   Apilados no hacen falta, porque ya entran uno tras otro al desplazarse. */
@media (min-width: 901px) {
  .steps .step:nth-child(2) { --t: .6s; }
  .steps .step:nth-child(3) { --t: 1.2s; }
  .steps .step:nth-child(4) { --t: 1.8s; }
}
/* En tableta van de dos en dos: basta con retrasar el de la derecha de cada fila. */
@media (min-width: 601px) and (max-width: 900px) {
  .steps .step:nth-child(2n) { --t: .6s; }
}
.step__n { display: block; font-size: 13px; color: var(--accent); margin-bottom: 30px; }
.step h3 { font-size: 20px; margin-bottom: 15px; }
.step p { font-size: 13px; line-height: 1.9; }

.tech { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-bottom: 32px; }
.tech article { border-top: 1px solid var(--line); padding: 25px 0; }
.tech__n { display: block; color: var(--accent); font-size: 12px; margin-bottom: 24px; }
.tech h3 { font-size: 21px; margin-bottom: 15px; }
.tech p { font-size: 13px; line-height: 1.9; }

.resources { display: grid; grid-template-columns: 1fr 1fr; gap: 85px; }
.resources h2 { margin-bottom: 24px; }
.resources p { font-size: 14px; margin-bottom: 24px; }
.resources__links { border-top: 1px solid var(--line); }
.resources__links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  font-size: 15px; font-weight: 600; color: var(--navy);
}
.resources__links a span { font-size: 23px; font-weight: 400; }

.cta { padding: 70px 0; background: #e5ecf2; }
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta h2 { max-width: 660px; font-size: 38px; }
.cta .eyebrow { margin-bottom: 17px; }

/* ---------- pie ---------- */
.footer { padding-top: 65px; background: #fff; }
.footer__main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 45px; padding-bottom: 55px; }
.footer__main img { width: 205px; height: auto; }
.footer__main p { font-size: 12px; margin-top: 19px; line-height: 1.8; }
.footer__label { display: block; font-size: 9px; letter-spacing: 1.5px; color: var(--gray); margin: 10px 0 20px; }
.footer__main > div > a:not(.brand) { display: block; font-size: 12px; margin: 12px 0; }
.footer__claim { font-size: 21px; font-weight: 500; line-height: 1.5; padding-top: 8px; color: var(--navy); letter-spacing: -.4px; }
.footer__claim em { font-style: normal; color: #78899d; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 20px;
  border-top: 1px solid var(--line); padding: 24px 0; font-size: 9px; color: var(--gray);
}
.footer__bottom > div { display: flex; gap: 25px; }

/* ---------- páginas legales ---------- */
.page-head { padding: 75px 0 85px; background: var(--paper); }
.page-head .display, .page-head h1:not(.eyebrow) { max-width: 860px; font-size: clamp(40px, 4.3vw, 64px); margin-bottom: 25px; }
.page-head p:not(.eyebrow):not(.display) { max-width: 650px; font-size: 16px; }
.prose { max-width: 870px; padding-top: 80px; padding-bottom: 85px; }
.prose h2 { font-size: 32px; margin: 45px 0 22px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 20px; }
.prose ul { padding-left: 20px; color: var(--gray); }
.prose li { margin: 10px 0; }
/* Solo los enlaces de texto corrido: los botones y los enlaces con flecha tienen su propio estilo. */
.prose a:not(.btn):not(.text-link) { text-decoration: underline; text-underline-offset: 4px; }
.page-head .btn { margin-top: 30px; }

/* Rejilla de documentos (seguros de construcción, documentación). */
.document-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 35px 55px; margin: 40px 0; }
.document-item { border-top: 1px solid var(--line); padding: 25px 0; }
.document-item .eyebrow { margin-bottom: 14px; }
.document-item h3 { font-size: 20px; margin: 0 0 15px; }
.document-item p { font-size: 14px; }

/* Preguntas frecuentes: acordeón nativo, sin JavaScript. */
.faq { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary {
  cursor: pointer; list-style: none; position: relative; padding-right: 35px;
  color: var(--navy); font-size: 16px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 5px; top: -4px; font-size: 25px; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.prose .faq details p { font-size: 14px; margin: 17px 0 0; padding-right: 25px; }

/* Página actual en la navegación. */
.nav a[aria-current="page"]:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 7px; }

/* ---------- página de contacto ---------- */
.contact { display: grid; grid-template-columns: 360px 1fr; gap: 80px; padding: 80px 0 95px; align-items: start; }

.contact__aside { position: sticky; top: 40px; }
.contact__aside h2 { font-size: 32px; letter-spacing: -1.2px; margin-bottom: 20px; }
.contact__aside > p { font-size: 14px; }

.contact__steps { list-style: none; margin: 32px 0; padding: 0; border-top: 1px solid var(--line); }
.contact__steps li {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--gray);
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.contact__steps li.is-current { color: var(--navy); font-weight: 600; }
.contact__steps li.is-done { color: var(--accent); }

.contact__direct a { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--navy); margin-bottom: 10px; }
.contact__direct svg { color: var(--accent); flex-shrink: 0; }
.contact__example { font-size: 10px; letter-spacing: .5px; text-transform: uppercase; color: var(--gray); margin-top: 14px; }

.contact__address { font-size: 13px; margin-top: 14px; }
.contact__alt { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 24px; }
.contact__alt p { font-size: 13px; line-height: 1.8; margin-bottom: 18px; }

.contact__form { min-width: 0; }
.form-note { font-size: 12px; padding: 14px 16px; border-left: 2px solid var(--accent); background: var(--paper); margin-bottom: 22px; }
.form-note a { color: var(--navy); text-decoration: underline; }

/* ---------- formulario de contacto ---------- */
.project-form label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 22px; }
.project-form .req { color: var(--accent); }
.project-form .opt { color: var(--gray); font-weight: 400; font-size: 11px; }
.project-form input:not([type=checkbox]),
.project-form select,
.project-form textarea {
  display: block; width: 100%; margin-top: 9px;
  background: #f6f8fa; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; font-size: 13px; min-height: 47px;
}
.project-form textarea { resize: vertical; min-height: 110px; }
.project-form .select-wrap { display: block; }
.project-form select { appearance: none; padding-right: 40px; }
.project-form .select-wrap .select-caret { top: calc(50% + 4px); }
.project-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }

/* La casilla de consentimiento no es un campo más: se separa y se lee en línea. */
.project-form .wz-consent { font-weight: 400; margin: 4px 0 26px; }

.project-form .btn { margin-top: 4px; }
.form-status { font-size: 13px; color: var(--danger); margin-top: 16px; }

/* Señuelo antispam: fuera de la vista, pero sin display:none para que se rellene solo. */
.honey { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* =====================================================================
   ASISTENTE DE COTIZACIÓN
   Vive incrustado en la página de contacto y, opcionalmente, en un modal.
   ===================================================================== */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__mask { position: absolute; inset: 0; background: #0b2d5bcc; opacity: 0; transition: opacity .25s ease; }
.modal.is-open .modal__mask { opacity: 1; }
.modal__dialog {
  position: relative; display: grid;
  grid-template-columns: 320px 1fr;
  /* minmax(0,…) es imprescindible: sin él, la fila no puede encoger por debajo
     del contenido, el diálogo se desborda y el cuerpo nunca llega a hacer scroll. */
  grid-template-rows: minmax(0, 1fr);
  width: min(1100px, 100%); max-height: min(92vh, 860px);
  overflow: hidden;
  background: #fff; box-shadow: 0 30px 70px #0b2d5b40;
  opacity: 0; transform: translateY(14px); transition: opacity .25s ease, transform .25s ease;
}
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .modal__mask, .modal__dialog { transition: none; }
}
.modal__close {
  position: absolute; top: var(--close-inset); right: var(--close-inset); z-index: 2;
  width: var(--close-size); height: var(--close-size); display: grid; place-items: center;
  background: #fff; color: var(--navy); border: 1px solid var(--line); cursor: pointer;
}
.modal__close:hover { background: var(--paper); }

.modal__aside {
  background: var(--navy); color: #fff; padding: 44px 34px;
  display: flex; flex-direction: column;
  min-height: 0; overflow-y: auto;
}
.modal__aside .eyebrow { color: #8fb3d8; }
.modal__aside h2 { color: #fff; font-size: 27px; letter-spacing: -1px; margin-bottom: 30px; }
.modal__points { list-style: none; margin: 0 0 auto; padding: 0; display: grid; gap: 4px; }
.modal__points li {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: #a9c2dc; padding: 10px 0; border-top: 1px solid #2c5382;
}
.modal__points li.is-current { color: #fff; font-weight: 600; }
.modal__points li.is-done { color: #cfe0f0; }
/* La casilla de paso vive sobre azul (modal) y sobre blanco (página de contacto),
   así que sus colores se declaran en el contenedor, no aquí. */
.tick {
  width: 16px; height: 16px; flex-shrink: 0; position: relative;
  border: 1px solid var(--tick-line);
}
.is-done .tick { background: var(--tick-on); border-color: var(--tick-on); }
.is-done .tick::after {
  content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px;
  border: solid var(--tick-mark); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.is-current .tick { border-color: var(--tick-current); }

.modal__aside { --tick-line: #4a729f; --tick-on: #8fb3d8; --tick-mark: var(--navy); --tick-current: #fff; }
.contact__steps { --tick-line: var(--line); --tick-on: var(--accent); --tick-mark: #fff; --tick-current: var(--navy); }
.modal__contact { margin-top: 28px; display: grid; gap: 10px; font-size: 12px; }
.modal__contact a { display: flex; align-items: center; gap: 10px; color: #cfe0f0; }
.modal__contact a:hover { color: #fff; }

/* min-height:0 permite que este hijo del grid encoja y se convierta de verdad
   en el contenedor con scroll; sin él, el atributo overflow no tiene efecto. */
.modal__body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--modal-pad) var(--modal-pad) 0; }

.wz__bar { display: flex; gap: 6px; margin-bottom: 26px; }

/* Solo en el modal: la barra se acorta por la derecha lo justo para no quedar
   debajo del botón de cerrar, que flota sobre esa misma esquina, con 12 px de aire. */
.modal .wz__bar { margin-right: calc(var(--close-inset) + var(--close-size) + 12px - var(--modal-pad)); }
.wz__dot { height: 3px; flex: 1; background: var(--line); }
.wz__dot.is-on { background: var(--navy); }

.wz__panel[hidden] { display: none; }
.wz__phead { margin-bottom: 26px; }
.wz__pkey { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--accent); }
.wz__ptitle { font-size: 28px; letter-spacing: -1px; margin-top: 8px; }
.wz__pnote { font-size: 13px; color: var(--gray); margin-top: 8px; }

.wz__grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.wz-field { grid-column: 1 / -1; }
.wz-field[hidden] { display: none; }
.wz-label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.wz-label .req { color: var(--accent); }
.wz-label .opt { color: var(--gray); font-weight: 400; font-size: 11px; }
.wz-subtitle {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--navy); border-top: 1px solid var(--line); padding-top: 22px; margin-top: 6px;
}
.wz-subtitle .tick { border-color: var(--navy); }
.wz-subtitle[hidden] { display: none; }

/* tarjetas de opción (radio y checkbox) */
.opt-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.opt-cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.opt-card {
  display: flex; align-items: center; gap: 11px;
  border: 1px solid var(--line); background: #fff; padding: 13px 15px;
  font-size: 13px; cursor: pointer;
}
.opt-card:hover { border-color: var(--gray-40); background: var(--paper); }
.opt-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt-mark { width: 16px; height: 16px; border: 1px solid var(--gray-40); flex-shrink: 0; position: relative; }
.opt-card input[type=radio] ~ .opt-mark { border-radius: 50%; }
.opt-card:has(input:checked) { border-color: var(--navy); background: #f4f8fc; }
.opt-card:has(input:checked) .opt-mark { border-color: var(--navy); background: var(--navy); }
.opt-card:has(input:checked) .opt-mark::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px);
}
.opt-card input:focus-visible ~ .opt-mark { outline: 3px solid var(--accent); outline-offset: 2px; }

/* campos de texto */
.wz-field input[type=text], .wz-field input[type=tel], .wz-field input[type=email],
.wz-field input[type=number], .wz-field textarea, .wz-field select {
  width: 100%; background: #f6f8fa; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; font-size: 13px; min-height: 47px;
}
.wz-field textarea { resize: vertical; min-height: 96px; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-right: 40px; }
.select-caret { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--gray); }

.wz-address { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.wz-addr-street { grid-column: 1 / -1; }
.wz-addr-cp { grid-column: span 1; }
.wz-addr-mid { grid-column: span 2; }
.wz-addr-cp + .wz-addr-mid { grid-column: span 1; }

.wz-date { display: grid; grid-template-columns: 1fr 130px; gap: 10px; max-width: 420px; }

/* Sugerencias de direcciones (Google Places, a través del backend) */
.wz-ac-wrap { position: relative; }
.wz-ac-wrap input { width: 100%; }
.wz-ac-list {
  position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 2px);
  margin: 0; padding: 4px; list-style: none; max-height: 240px; overflow: auto;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 24px #0b2d5b1f;
}
.wz-ac-list[hidden] { display: none; }
.wz-ac-item { padding: 9px 11px; font-size: 13px; line-height: 1.4; color: var(--navy); cursor: pointer; }
.wz-ac-item:hover, .wz-ac-item.is-active { background: #f4f8fc; }

/* Campo señuelo contra bots: fuera de la vista y del tabulador */
.wz-hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.wz-money { position: relative; }

.wz-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 12px; line-height: 1.7; color: var(--gray); cursor: pointer; }
.wz-consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--navy); flex-shrink: 0; }
.wz-consent a { color: var(--navy); text-decoration: underline; }

.wz-err { color: var(--danger); font-size: 12px; margin-top: 7px; }
.wz-err[hidden] { display: none; }
.is-invalid input, .is-invalid select, .is-invalid textarea { border-color: var(--danger); }
.is-invalid .opt-card { border-color: #e3b4b0; }

/* pie del asistente */
.wz__foot {
  background: #fff; border-top: 1px solid var(--line); margin-top: 34px;
  padding: 18px 0 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
}
/* Dentro del modal los botones se quedan a la vista mientras se hace scroll.
   Incrustado en la página no hace falta: el pie acompaña al contenido. */
.modal .wz__foot { position: sticky; bottom: 0; }
.wz__nav { display: flex; gap: 12px; margin-left: auto; }
.wz__legal { font-size: 10px; color: var(--gray); max-width: 250px; line-height: 1.6; }
.wz__submit-err { flex-basis: 100%; order: 3; margin: 4px 0 0; font-size: 12px; color: var(--danger); }
.wz__submit-err[hidden] { display: none; }

.wz__success { text-align: center; padding: 56px 0 70px; }
.wz__success[hidden] { display: none; }
.wz__success .mark {
  width: 56px; height: 56px; margin: 0 auto 24px; border: 1px solid var(--navy);
  display: grid; place-items: center; color: var(--navy); font-size: 26px;
}
.wz__success h3 { font-size: 27px; letter-spacing: -1px; margin-bottom: 14px; }
.wz__success p { font-size: 14px; max-width: 420px; margin: 0 auto 26px; }
.wz.is-sent .wz__bar, .wz.is-sent .wz__panel, .wz.is-sent .wz__foot { display: none; }

body.form-open { overflow: hidden; }

/* ---------- animaciones de entrada ---------- */
@media (prefers-reduced-motion: no-preference) {
  .motion .reveal { opacity: 0; transform: translateY(25px); transition: opacity .7s ease var(--d, 0ms), transform .7s cubic-bezier(.2,.65,.3,1) var(--d, 0ms); }
  .motion .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- adaptación ---------- */
@media (max-width: 1150px) {
  .header__inner { padding: 20px 30px; }
  .brand img { width: 215px; }
  .nav { gap: 16px; font-size: 11px; }
  .hero { padding: 0 30px; grid-template-columns: 44% 56%; }
  .hero__copy { padding-right: 30px; }
  .hero__visual { height: 510px; }
  .hero__copy .display { font-size: 49px; }
  .split { gap: 50px; }
  .split__visual { height: 400px; }
  .container { width: calc(100% - 70px); }
  .resources { gap: 45px; }
  .modal__dialog { grid-template-columns: 260px 1fr; }
}

@media (max-width: 900px) {
  .utility { display: none; }
  .header__inner { padding: 20px 25px; }
  .header__right { flex-direction: row; align-items: center; gap: 14px; position: static; }
  .lang { position: static; align-items: center; }
  .lang a { padding: 9px 5px; min-height: 36px; display: inline-flex; align-items: center; }
  .nav__toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 44px; height: 44px; padding: 10px; background: #fff; border: 1px solid var(--line); cursor: pointer;
  }
  .nav__toggle span { width: 22px; height: 1px; background: var(--navy); transition: transform .2s ease; }
  .nav__toggle[aria-expanded=true] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded=true] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    padding: 22px 30px 30px; background: #fff; box-shadow: 0 14px 18px #0b2d5b10;
    font-size: 15px; flex-direction: column; align-items: stretch; gap: 0;
  }
  .nav.is-open { display: flex; }
  .nav > a { padding: 12px; }
  .nav .btn { font-size: 13px; margin-top: 15px; }
  .hero { padding: 0 25px; grid-template-columns: 46% 54%; }
  .hero__copy { padding: 15px 25px 20px 0; }
  .hero__copy .display { font-size: 41px; letter-spacing: -1.6px; }
  .hero__visual { height: 475px; }
  .container { width: calc(100% - 50px); }
  .section { padding: 75px 0; }
  .cards { gap: 20px; }
  .split { gap: 40px; }
  /* La columna se estrecha mucho: con la caja alta, el recorte lateral se comía
     casi una cuarta parte de la foto por cada lado y partía a las personas. */
  .split__visual { height: 260px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 38px; }
  .tech { grid-template-columns: 1fr; gap: 15px; }
  .footer__main { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer__claim { display: none; }
  /* La columna de apoyo pasa arriba y deja de acompañar al desplazarse. */
  .contact { grid-template-columns: 1fr; gap: 45px; padding: 55px 0 70px; }
  .contact__aside { position: static; }
  .project-form .form-grid { grid-template-columns: 1fr; gap: 0; }
  .modal { padding: 0; }
  /* dvh sigue a la barra del navegador en móvil; vh es el respaldo si no se admite. */
  .modal__dialog { grid-template-columns: 1fr; height: 100vh; height: 100dvh; max-height: none; width: 100%; }
  .modal__aside { display: none; }
  /* El cuerpo se estrecha; la barra recalcula sola su margen con esta variable. */
  .modal__dialog { --modal-pad: 24px; }
  .modal__body { padding: 60px var(--modal-pad) 0; }
}

@media (max-width: 600px) {
  h2 { font-size: 33px; letter-spacing: -1px; }
  .page-head { padding: 48px 0 55px; }
  .page-head .display, .page-head h1:not(.eyebrow) { font-size: 40px; }
  .prose { padding-top: 45px; padding-bottom: 55px; }
  .prose h2 { font-size: 28px; }
  .document-grid { grid-template-columns: 1fr; gap: 15px; }
  .header__inner { padding: 16px 20px; }
  .brand img { width: 198px; }
  .header__inner { gap: 10px; }
  .header__right { gap: 7px; }
  .lang { gap: 0; }
  .nav__toggle { width: 40px; height: 40px; padding: 9px; }
  .hero { display: flex; flex-direction: column; padding: 0 20px; margin-top: 15px; }
  .hero__copy { padding: 18px 0 33px; }
  .hero__copy .display { font-size: 48px; max-width: 410px; margin-bottom: 22px; }
  .hero__visual { height: 340px; }
  .hero__foot { padding: 18px 20px 0; font-size: 9px; }
  .container { width: calc(100% - 40px); }
  .benefits { display: block; margin-top: 30px; padding: 8px 0; }
  .benefit { justify-content: flex-start; padding: 18px 5px; gap: 20px; }
  .benefit + .benefit { border-left: 0; border-top: 1px solid var(--line); }
  .section { padding: 62px 0; }
  .section__head { display: block; margin-bottom: 30px; }
  .section__head > p { max-width: none; margin-top: 23px; }
  .cards { grid-template-columns: 1fr; gap: 25px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split__visual { height: 260px; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .resources { grid-template-columns: 1fr; gap: 30px; }
  .cta { padding: 52px 0; }
  .cta .container { align-items: flex-start; flex-direction: column; gap: 28px; }
  .cta h2 { font-size: 35px; }
  .footer__main { grid-template-columns: 1fr 1fr; gap: 30px 15px; padding-bottom: 30px; }
  .footer__main > div:first-child { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; padding: 22px 0; gap: 13px; }
  .btn { width: 100%; }
  .wz-address { grid-template-columns: 1fr 1fr; }
  .wz-addr-mid, .wz-addr-cp { grid-column: span 1; }
  .wz-date { grid-template-columns: 1fr 1fr; max-width: none; }
  .wz__foot { flex-wrap: wrap; }
  .wz__legal { max-width: none; order: 2; }
  .wz__nav { width: 100%; }
  .wz__nav .btn { flex: 1; }
}

/* Móviles estrechos: el logo cede sitio al selector de idioma y al botón de menú. */
@media (max-width: 380px) {
  .brand img { width: 165px; }
}

@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
  .nav__toggle, .modal, .footer { display: none; }
  a { color: inherit; }
}
