/* ==========================================================================
   UNYX — portada.css  (prototipo «Dos piezas»)
   Papel, tinta y cobalto. El rombo partido es el objeto y el hilo de la pagina:
   lo pinta js/piezas.js en WebGL; aqui va todo lo demas y la composicion quieta
   (SVG) para sin JS, movimiento reducido y navegadores sin WebGL.
   Se carga la ultima: en el port iria como css/portada.css despues de calculator.css
   y consulta.css (sobrescribe, no edita).
   ========================================================================== */

:root {
  --paper: #ECECE6;
  --sheet: #F7F7F2;
  --ink: #16181C;
  --ink-2: #50545C;
  --ink-3: #63676F;
  --line: rgba(22, 24, 28, 0.16);
  --line-2: rgba(22, 24, 28, 0.38);
  --cobalt: #2240F2;
  --cobalt-deep: #1830C0;
  --signal: #B83A1C;

  --font-display: "Bricolage Grotesque", sans-serif;
  --font-logo: "Bricolage Grotesque", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
  --font-mono: "Fragment Mono", monospace;

  --ease-cinema: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.4, 0, 0.2, 1);

  --margen: clamp(20px, 5vw, 72px);
  --barra: 64px;
}

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

html {
  background: var(--paper);
  overflow-x: clip;
  scroll-padding-top: calc(var(--barra) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxODAnIGhlaWdodD0nMTgwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC44MicgbnVtT2N0YXZlcz0nMicvPjxmZUNvbG9yTWF0cml4IHR5cGU9J3NhdHVyYXRlJyB2YWx1ZXM9JzAnLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0nMTgwJyBoZWlnaHQ9JzE4MCcgZmlsdGVyPSd1cmwoI24pJyBvcGFjaXR5PScwLjA1NScvPjwvc3ZnPg==") repeat, var(--paper);
  background-size: 180px 180px, auto;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* la reticula de 72 px, fija, al 34 % */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.34;
}

/* el lienzo de las piezas: por debajo del texto; .encima lo sube cuando tapa a proposito */
.piezas-lienzo {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}
.piezas-lienzo.encima { z-index: 3; }

main, .footer { position: relative; z-index: 2; }
main:focus { outline: none; }

::selection { background: var(--cobalt); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }

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

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  transform: translateY(-200%);
  background: var(--ink); color: var(--paper);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  padding: 12px 18px;
  transition: transform 0.2s var(--ease-snap);
}
.skip-link:focus { transform: none; }

/* ===================== barra ===================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: var(--barra);
  display: flex; align-items: center; gap: 30px;
  padding: 0 var(--margen);
  background: var(--paper);
  border-bottom: 1px solid var(--line-2);
}
.nav.scrolled { border-bottom-color: var(--ink); }

.logo {
  font-family: var(--font-logo);
  font-weight: 800; font-size: 17px; letter-spacing: 0.04em;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
}
/* el rombo partido, igual que en la web: 40,5 / 14,9 / 44,6, sin una curva */
.logo .spark { position: relative; width: 12px; height: 12px; transform: rotate(45deg); }
.logo .spark::before, .logo .spark::after { content: ""; position: absolute; left: 0; right: 0; background: var(--cobalt); }
.logo .spark::before { top: 0; height: 40.5%; }
.logo .spark::after { bottom: 0; height: 44.6%; }

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  position: relative;
  font-size: 13.5px; font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px;
  height: 2px; background: var(--cobalt);
  transition: right 0.3s var(--ease-snap);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }

.nav-cta {
  font-size: 13px; font-weight: 600;
  color: var(--paper); background: var(--ink);
  border: 1px solid var(--ink);
  padding: 10px 16px;
  box-shadow: 3px 3px 0 var(--cobalt);
  transition: transform 0.14s var(--ease-snap), box-shadow 0.14s var(--ease-snap), background 0.2s;
}
.nav-cta:hover { background: var(--cobalt); border-color: var(--ink); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.nav-cta:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); transition-duration: 0.05s; }

.nav-burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--ink);
  background: var(--sheet);
  cursor: pointer;
  position: relative;
  box-shadow: 3px 3px 0 var(--line-2);
}
.nav-burger i, .nav-burger i::before {
  content: ""; position: absolute; left: 12px; right: 12px;
  height: 2px; background: var(--ink);
}
.nav-burger i { top: 17px; }
.nav-burger i::before { top: 7px; left: 0; right: 0; }

/* menu movil (nav.js): oculto con visibility, no solo con opacidad */
.menu-overlay {
  position: fixed; inset: 0; z-index: 55;
  background: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
  gap: 2px;
  padding: 0 var(--margen);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.menu-overlay.open { opacity: 1; visibility: visible; }
.menu-overlay a {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(32px, 9vw, 54px); line-height: 1.22; letter-spacing: -0.03em;
  color: var(--ink);
  transition: color 0.2s;
}
.menu-overlay a:hover { color: var(--cobalt); }
.menu-overlay .menu-mail {
  margin-top: 28px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em;
  color: var(--cobalt);
}
.menu-close {
  position: absolute; top: 10px; right: var(--margen);
  width: 44px; height: 44px;
  border: 1px solid var(--ink);
  background: var(--sheet); color: var(--ink);
  font-size: 17px; cursor: pointer;
}

/* ===================== botones: la sombra dura que se aprieta ===================== */
.btn-primary {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.2;
  color: #fff; background: var(--cobalt);
  border: 1.5px solid var(--ink); border-radius: 0;
  padding: 16px 24px;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.14s var(--ease-snap), box-shadow 0.14s var(--ease-snap), background 0.2s;
}
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn-primary:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); transition-duration: 0.05s; }
.btn-primary:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn-primary .flecha { width: 20px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform 0.25s var(--ease-snap); }
.btn-primary:hover .flecha { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 500;
  color: var(--ink); background: var(--sheet);
  border: 1.5px solid var(--ink); border-radius: 0;
  padding: 15px 22px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--line-2);
  transition: transform 0.14s var(--ease-snap), box-shadow 0.14s var(--ease-snap);
}
.btn-ghost:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn-ghost:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); transition-duration: 0.05s; }

.arr { display: inline-block; transition: transform 0.25s var(--ease-snap); }

/* ===================== tipografia comun ===================== */
.titulo {
  margin: 0;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 800;
  font-size: clamp(36px, 4.9vw, 78px);
  line-height: 0.97;
  letter-spacing: -0.042em;
  text-wrap: balance;
}
.titulo .voz, .titulo .serif { font-weight: 500; color: var(--ink-2); }
.titulo .grad-text { color: var(--cobalt); }

.entradilla {
  margin: 22px 0 0;
  max-width: 36em;
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

.seccion {
  position: relative;
  padding: clamp(96px, 15vh, 168px) var(--margen) 0;
}

.prueba {
  margin: 18px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--cobalt);
  font-family: var(--font-mono);
  font-size: 12.5px; line-height: 1.6;
  color: var(--ink-2);
}
.prueba .quien { color: var(--ink); }
.prueba .n { color: var(--cobalt); font-weight: 400; }

/* ===================== las piezas quietas (sin JS, reducido, sin WebGL) ===================== */
.estatica { display: block; width: 100%; height: 100%; overflow: visible; }
.mov .estatica { visibility: hidden; }
.mov.sin-gl .estatica { visibility: visible; }

.etapa { position: relative; }

/* ===================== HERO ===================== */
.hero {
  --fh: clamp(44px, min(6.3vw, 10.2vh), 124px);
  --t: calc(var(--barra) + max(26px, 7vh));
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 620px;
  overflow: clip;
}
.hero > .estatica { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
/* la composicion quieta del hero escala con el titular (se genero a 1440 x 900, con el
   titular a 90,7 px), asi el pasillo sigue al texto en cualquier pantalla ancha */
.hero > .estatica--hero-ancha {
  inset: auto;
  left: calc(var(--margen) - 0.7938 * var(--fh));
  top: calc(var(--t) - 1.4002 * var(--fh));
  width: calc(15.876 * var(--fh));
  height: calc(9.923 * var(--fh));
  overflow: visible;
}
.estatica--hero-movil { display: none; }

.hero-titular {
  position: absolute; z-index: 1;
  left: var(--margen); top: var(--t);
  margin: 0;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 800;
  font-size: var(--fh);
  line-height: 0.96;
  letter-spacing: -0.046em;
}
/* la escalera: cada linea entra una altura de linea mas a la derecha, a 45 grados,
   que es el angulo del hueco de la marca. Asi el titular cabe en el pasillo entre las
   dos piezas y estas pueden ser enormes sin tocarlo. */
.ht-l { display: block; width: fit-content; white-space: nowrap; }
.ht-l:nth-child(2) { margin-left: 0.96em; }
.ht-l:nth-child(3) { margin-left: 1.92em; }
.ht-l:nth-child(4) { margin-left: 2.88em; }
.ht-tuyo { color: var(--cobalt); }

.hero-accion {
  position: absolute; z-index: 1;
  top: calc(var(--t) + var(--fh) * 4.2);
  left: calc(var(--margen) + var(--fh) * 3.1 + 210px);
  width: min(29rem, 34vw);
}
.hero-sub {
  margin: 0 0 22px;
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.btn-grande { font-size: clamp(15px, 1.05vw, 17px); padding: clamp(16px, 1.25vw, 20px) clamp(22px, 1.8vw, 30px); }
.hero-micro {
  margin: 16px 0 0;
  font-size: 13px; line-height: 1.6;
  color: var(--ink-3);
}

/* ===================== POR QUÉ ===================== */
.porque-rejilla {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: clamp(28px, 5vw, 96px);
  align-items: start;
}
.porque-rejilla > .titulo, .porque-rejilla > .entradilla, .porque-rejilla > .puente-hoy, .porque-rejilla > .versus { grid-column: 1; }
.etapa--porque {
  grid-column: 2; grid-row: 1 / span 4;
  position: sticky; top: var(--barra);
  height: calc(100vh - var(--barra));
  max-height: 860px;
}

.versus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: clamp(40px, 6vh, 72px);
}
.vs-col {
  position: relative;
  background: var(--sheet);
  border: 1px solid var(--ink);
  padding: 24px 24px 18px;
}
/* lo generico, torcido: no encaja ni en su propia rejilla */
.vs-generico {
  background: transparent;
  border: 1px dashed var(--line-2);
  transform: rotate(-1.6deg) translateY(10px);
  transform-origin: 70% 0;
}
.vs-unyx { box-shadow: 8px 8px 0 var(--cobalt); }
.vs-label {
  margin: 0;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
}
.vs-nombre {
  margin: 4px 0 14px;
  font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em;
}
.vs-generico .vs-nombre { color: var(--ink-2); font-weight: 600; }
.vs-unyx .vs-nombre { color: var(--cobalt); }
.vs-col ul { list-style: none; margin: 0; padding: 0; }
.vs-col li {
  display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: baseline;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 15px; line-height: 1.45;
}
.vs-generico li { color: var(--ink-2); }
.marca-no, .marca-si { width: 12px; height: 12px; fill: none; stroke-width: 1.8; transform: translateY(1px); }
.marca-no { stroke: var(--ink-3); }
.marca-si { stroke: var(--cobalt); stroke-width: 2.2; }

/* el puente: lo de hoy, tachado; al otro lado del hueco, la frase */
.puente { position: relative; padding: clamp(56px, 10vh, 120px) 0 clamp(72px, 12vh, 140px); }
.puente-hoy { margin: clamp(30px, 5vh, 52px) 0 0; max-width: 40rem; }
.puente-tit {
  display: block; margin-bottom: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-3);
}
.puente-tachado {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(22px, 2.3vw, 34px); line-height: 1.32; letter-spacing: -0.02em;
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: var(--cobalt);
  text-decoration-thickness: 2px;
}
.puente-frase {
  margin: 0;
  font-family: var(--font-display); font-optical-sizing: auto; font-weight: 800;
  font-size: clamp(46px, 9.2vw, 168px); line-height: 0.9; letter-spacing: -0.055em;
  text-align: center;
  text-wrap: balance;
}
.puente-frase span { display: block; color: var(--cobalt); }
/* con movimiento, el puente deja sitio para cruzar el hueco: es el unico tramo de la
   pagina que existe para que pase algo, y siempre esta pasando algo */
.mov .puente { padding-top: 0; padding-bottom: 14vh; }
.mov .puente-frase { margin-top: 140vh; }
.mov.sin-gl .puente { padding-top: clamp(56px, 10vh, 120px); }
.mov.sin-gl .puente-frase { margin-top: 0; }

/* ===================== SERVICIOS · la carta, con precio ===================== */
.sec-cab {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px 48px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 4.5vh, 52px);
}
.sec-nota {
  margin: 0; max-width: 24rem;
  font-size: 15px; line-height: 1.55; color: var(--ink-2);
}
.servicios:has(.svc-zona.abierta) .sec-nota { visibility: hidden; }

.svc-zona { display: grid; }
.svc-zona > * { grid-area: 1 / 1; }
.svc-zona.abierta .services { display: none; }

.services {
  background: var(--sheet);
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 var(--line);
}
.svc {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(0, 4fr) minmax(0, 2.4fr) auto;
  align-items: center;
  gap: 6px clamp(18px, 2.4vw, 40px);
  padding: 22px clamp(18px, 2.2vw, 32px);
  border-top: 1px solid var(--line-2);
  transition: background 0.2s;
}
.svc:first-child { border-top: 0; }
.svc:hover { background: var(--paper); }
.svc h3 {
  margin: 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(19px, 1.6vw, 26px); line-height: 1.1; letter-spacing: -0.025em;
}
.svc > p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.svc .svc-precio {
  min-height: 1.35em;
  margin: 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(19px, 1.6vw, 25px); line-height: 1.35; letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: nowrap;
}
.svc .svc-precio:empty::before { content: "\00a0"; }
.svc-cta {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.01em;
  color: var(--ink);
  background: var(--sheet);
  border: 1px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s var(--ease-snap), box-shadow 0.12s var(--ease-snap), background 0.2s, color 0.2s;
}
.svc-cta:hover { background: var(--cobalt); color: #fff; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.svc-cta:hover .arr { transform: translateX(3px); }
.svc-cta:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); transition-duration: 0.05s; }
.svc-tag {
  position: absolute; top: 10px; left: clamp(18px, 2.2vw, 32px);
  transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cobalt); background: var(--sheet);
  padding: 2px 6px;
  border: 1px solid var(--cobalt);
}
.svc--otro h3 { color: var(--ink-2); }

.compromisos {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 10px 40px;
  margin: 34px 0 0; padding: 0;
  font-size: 14.5px; color: var(--ink-2);
}
.compromisos strong { color: var(--ink); font-weight: 600; }

/* la calculadora ocupa el sitio de la carta (estructura de calculator.js, sin tocar) */
.svc-zona .calc-shell {
  z-index: 2; align-self: start; width: 100%; max-width: none; margin: 0;
}
.calc-shell {
  background: var(--sheet);
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 var(--cobalt);
}
.calc-opt { background: var(--paper); border-color: var(--line-2); }
.calc-opt:hover { border-color: var(--ink); transform: none; box-shadow: 3px 3px 0 var(--ink); }
.calc-opt.selected { border-color: var(--cobalt); box-shadow: 3px 3px 0 var(--cobalt); }
.calc-opt[data-kind="radio"] .box { border-radius: 0; transform: rotate(45deg) scale(0.82); }
.calc-step-label { color: var(--cobalt); }
.pay-opt { background: var(--paper); }
.pay-opt--plan { box-shadow: 4px 4px 0 var(--cobalt); }
.pay-badge { border-radius: 0; }
.res-figures.res-pay::after { border-radius: 0; transform: translate(-50%, -50%) rotate(45deg); }
.calc-spinner { border-radius: 0; }

/* ===================== CÓMO TRABAJAMOS ===================== */
.proceso-rejilla {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(28px, 5vw, 96px);
  align-items: start;
}
.proceso-rejilla > .titulo, .proceso-rejilla > .entradilla, .proceso-rejilla > .fases { grid-column: 2; }
.etapa--proceso {
  grid-column: 1; grid-row: 1 / span 3;
  position: sticky; top: var(--barra);
  height: calc(100vh - var(--barra));
  max-height: 860px;
}
.fases { list-style: none; margin: clamp(40px, 7vh, 80px) 0 0; padding: 0; }
.fase {
  min-height: 40vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 44px 0;
  border-top: 1px solid var(--line-2);
}
.fase:last-child { min-height: 48vh; }
.fase-nombre {
  margin: 0 0 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cobalt);
}
.fase-tit {
  margin: 0 0 14px;
  font-family: var(--font-display); font-weight: 800; font-optical-sizing: auto;
  font-size: clamp(28px, 3.2vw, 50px); line-height: 1; letter-spacing: -0.035em;
}
.fase > p { margin: 0; max-width: 34em; font-size: clamp(15.5px, 1.1vw, 18px); line-height: 1.6; color: var(--ink-2); }
.fase > .prueba { margin-top: 20px; }

/* ===================== PROPIEDAD · el clic ===================== */
.propiedad {
  position: relative;
  overflow: clip;
  background: var(--cobalt);
  color: #fff;
}
.prop-escena { position: sticky; top: 0; height: 100vh; height: 100svh; }
.etapa--propiedad { position: absolute; left: 4%; top: 13%; width: 44%; height: 74%; }
.etapa--propiedad .estatica { position: absolute; inset: 0; }
.prop-inundacion {
  --lado: max(300vmax, 2800px);
  position: absolute; left: 50%; top: 50%;
  width: var(--lado); height: var(--lado);
  background: var(--cobalt);
  visibility: hidden;
  transform: translate(-50%, -50%) rotate(45deg) scale(var(--ini, 0.05));
  transition: transform 0.82s cubic-bezier(0.76, 0, 0.18, 1), visibility 0s linear 0.82s;
}
.prop-texto {
  position: relative;
  margin-top: -64vh;
  padding: 0 var(--margen) 36vh 52%;
}
.prop-cifra {
  margin: 0 0 6px;
  font-family: var(--font-display); font-weight: 800; font-optical-sizing: auto;
  font-size: clamp(84px, 11vw, 200px); line-height: 0.82; letter-spacing: -0.06em;
}
.prop-cifra .pc-pct { font-size: 0.5em; vertical-align: 0.62em; letter-spacing: 0; margin-left: 0.02em; }
.prop-cifra .pc-cola { display: block; font-size: 0.42em; letter-spacing: -0.04em; margin-top: 0.12em; }
.prop-titulo {
  margin: 30px 0 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 2.9vw, 48px); line-height: 1.02; letter-spacing: -0.035em;
}
.prop-sub { margin: 18px 0 0; max-width: 30em; font-size: clamp(15.5px, 1.1vw, 18px); line-height: 1.6; color: rgba(255, 255, 255, 0.9); }
.prop-lista {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase;
}
.prop-lista li { display: inline-flex; align-items: center; gap: 10px; }
.prop-lista li::before { content: ""; width: 8px; height: 8px; background: #fff; transform: rotate(45deg); }
.prueba--cobalto { border-left-color: #fff; color: rgba(255, 255, 255, 0.9); }
.prueba--cobalto .quien, .prueba--cobalto .n { color: #fff; }

/* con movimiento: el fondo lo pone la inundacion y el texto espera a que llegue */
.mov .propiedad { background: transparent; }
.mov.sin-gl .propiedad { background: var(--cobalt); }
.mov .prop-texto > * { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.8s var(--ease-cinema); }
.mov .prop-texto > :nth-child(2) { transition-delay: 0.08s; }
.mov .prop-texto > :nth-child(3) { transition-delay: 0.16s; }
.mov .prop-texto > :nth-child(4) { transition-delay: 0.22s; }
.mov .prop-texto > :nth-child(5) { transition-delay: 0.28s; }
.mov.sin-gl .prop-texto > *, .propiedad.inundada .prop-texto > * { opacity: 1; transform: none; }
.propiedad.inundando .prop-inundacion {
  visibility: visible;
  transform: translate(-50%, -50%) rotate(45deg) scale(1);
  transition: transform 0.82s cubic-bezier(0.76, 0, 0.18, 1), visibility 0s;
}
.propiedad.sin-transicion .prop-inundacion, .propiedad.sin-transicion .prop-texto > * { transition: none !important; }

/* ===================== CONTEXTO ===================== */
.contexto-rejilla {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 32px clamp(28px, 5vw, 96px);
  align-items: end;
}
.contexto-rejilla > .titulo { grid-column: 1; font-size: clamp(30px, 3.5vw, 56px); }
.dato { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.dato-num {
  margin: 0;
  font-family: var(--font-display); font-weight: 800; font-optical-sizing: auto;
  font-size: clamp(76px, 10vw, 176px); line-height: 0.86; letter-spacing: -0.06em;
  color: var(--ink);
}
.dato-num small { font-size: 0.42em; letter-spacing: 0; margin-left: 0.04em; }
.dato-sep { color: var(--cobalt); font-weight: 500; }
.dato-texto { margin: 18px 0 0; max-width: 30em; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.dato-texto b { color: var(--ink); }
.fuente {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px;
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid var(--line-2);
  font-family: var(--font-mono); font-size: 11.5px; line-height: 1.5; color: var(--ink-3);
}
.fuente a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; }
.flecha-diag { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.cierre {
  margin: 0;
  max-width: 34em;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(19px, 1.6vw, 26px); line-height: 1.3; letter-spacing: -0.02em;
}
.contexto-rejilla > .cierre { grid-column: 1; }

/* ===================== BÚSQUEDA ===================== */
.cruce {
  margin: 0;
  background: var(--sheet);
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 var(--line);
  padding: clamp(18px, 2.4vw, 36px);
}
.cruce-svg { display: block; width: 100%; height: auto; overflow: visible; }
.cx-rejilla line { stroke: var(--line); stroke-width: 1; }
.cx-eje text { font-family: var(--font-mono); font-size: 12px; fill: var(--ink-3); }
.cx-linea { fill: none; stroke-width: 3; stroke-linecap: square; stroke-linejoin: miter; }
.cx-sube { stroke: var(--cobalt); }
.cx-baja { stroke: var(--signal); }
.cx-punto--sube { fill: var(--cobalt); }
.cx-punto--baja { fill: var(--signal); }
.cx-val { font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.cx-val--sube { fill: var(--cobalt); }
.cx-val--baja { fill: var(--signal); }
.cx-nota { font-family: var(--font-mono); font-size: 12px; fill: var(--cobalt); }
.mov .cruce .cx-linea { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease-cinema) 0.15s; }
.mov .cruce .cx-baja { transition-delay: 0.65s; }
.mov .cruce .cx-punto, .mov .cruce .cx-val, .mov .cruce .cx-nota { opacity: 0; transition: opacity 0.4s ease 1s; }
.mov .cruce.visto .cx-linea { stroke-dashoffset: 0; }
.mov .cruce.visto .cx-punto, .mov .cruce.visto .cx-val, .mov .cruce.visto .cx-nota { opacity: 1; }
.cruce-pies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; margin-top: 18px; }
.cruce-pies p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.cruce-pies b { color: var(--ink); }
.cp-marca { display: inline-block; width: 18px; height: 3px; margin-right: 8px; vertical-align: middle; }
.cp-marca--sube { background: var(--cobalt); }
.cp-marca--baja { background: var(--signal); }
.busqueda > .cierre { margin-top: 30px; }
.enlace-flecha { display: inline-flex; align-items: center; gap: 8px; color: var(--cobalt); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.enlace-flecha .flecha { width: 18px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ===================== CONTACTO ===================== */
.contacto { padding-bottom: clamp(96px, 14vh, 160px); }
.contacto-rejilla {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px clamp(28px, 6vw, 110px);
  align-items: start;
}
.vias { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 30px 0 22px; }
.vias-nota { flex-basis: 100%; margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.contact-mail {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 1.6vw, 24px); letter-spacing: -0.02em;
  color: var(--cobalt);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px;
}
.contact-note { margin: 4px 0 0; font-size: 14px; color: var(--ink-3); }
.form {
  display: grid; gap: 16px;
  background: var(--sheet);
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 var(--line);
  padding: clamp(22px, 2.6vw, 38px);
}
.campo { display: grid; gap: 7px; }
.form label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%;
  font: inherit; font-size: 15.5px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-2); border-radius: 0;
  padding: 13px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form textarea { min-height: 128px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 3px 3px 0 var(--cobalt); }
.form input::placeholder, .form textarea::placeholder { color: var(--ink-3); }
.form-consent {
  display: grid !important; grid-template-columns: 20px 1fr; gap: 10px; align-items: start;
  font-family: var(--font-body) !important; font-size: 13.5px !important; letter-spacing: 0 !important; text-transform: none !important;
  line-height: 1.5; color: var(--ink-2) !important;
}
.form-consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--cobalt); }
.form-consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.form .btn-primary { justify-self: start; }
.form-status {
  margin: 2px 0 0; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.02em; line-height: 1.45;
  padding: 10px 12px; border: 1px solid var(--line-2);
}
.form-status--send { color: var(--ink-3); }
.form-status--ok { color: var(--cobalt); border-color: var(--cobalt); background: rgba(34, 64, 242, 0.06); }
.form-status--err { color: var(--signal); border-color: rgba(184, 58, 28, 0.5); background: rgba(184, 58, 28, 0.05); }

/* ===================== PIE ===================== */
.footer { border-top: 1px solid var(--ink); background: var(--paper); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 56px var(--margen) 40px;
}
.f-tag { margin: 14px 0 0; max-width: 24em; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.f-col { display: flex; flex-direction: column; gap: 4px; }
.f-col h3 { margin: 0 0 8px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.f-col a { display: inline-flex; align-items: center; min-height: 32px; font-size: 14px; color: var(--ink); }
.f-col a:hover { color: var(--cobalt); }
.f-copy { margin-top: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
@media (pointer: coarse) { .f-col a { min-height: 44px; } }
/* el remate: el rombo cerrado asoma por abajo, partido por el borde de la pagina */
.pie-firma { position: relative; height: clamp(170px, 30vw, 420px); overflow: hidden; }
.pie-firma .estatica { position: absolute; inset: 0; overflow: hidden; }
.gl .footer { background: transparent; }

/* ===================== el rasca, a la medida de la casa ===================== */
.rasca-caja { box-shadow: 10px 10px 0 var(--ink); border-radius: 0; }

/* ===================== estrecho ===================== */
@media (min-width: 900px) and (max-width: 1120px) {
  .nav { gap: 18px; }
  .nav-links { gap: 15px; }
  .nav-links a { font-size: 12.5px; }
  .nav-cta { font-size: 12px; padding: 9px 12px; }
}

@media (max-width: 899px) {
  :root { --barra: 60px; }
  .nav-links, .nav .nav-cta { display: none; }
  .nav-burger { display: block; }

  .hero {
    height: auto;
    min-height: 100vh; min-height: 100svh;
    padding: calc(var(--barra) + 30px) var(--margen) 0;
  }
  .estatica--hero-ancha { display: none; }
  .estatica--hero-movil { display: block; }
  .hero-titular { position: relative; left: auto; top: auto; font-size: clamp(32px, 9.7vw, 58px); line-height: 0.98; }
  .ht-l { white-space: normal; }
  .ht-l:nth-child(n) { margin-left: 0; }
  .hero-accion { position: relative; left: auto; top: auto; width: auto; max-width: 30rem; margin-top: 24px; }
  .hero-sub { font-size: 16.5px; margin-bottom: 20px; }

  .porque-rejilla, .proceso-rejilla { display: block; }
  .etapa--porque, .etapa--proceso {
    position: relative; top: auto;
    height: min(64vw, 320px);
    max-height: none;
    margin: 0 0 22px;
  }
  .etapa--proceso { margin: 30px 0 0; }
  .versus { gap: 12px; margin-top: 34px; }
  .vs-col { padding: 16px 12px 10px; }
  .vs-nombre { font-size: 18px; margin-bottom: 8px; }
  .vs-col li { grid-template-columns: 12px 1fr; gap: 7px; padding: 9px 0; font-size: 13.5px; line-height: 1.38; }
  .vs-generico { transform: rotate(-1.4deg) translateY(6px); }
  .vs-unyx { box-shadow: 5px 5px 0 var(--cobalt); }

  .puente-tachado { font-size: 21px; }
  .mov .puente-frase { margin-top: 100vh; }
  .mov .puente { padding-bottom: 8vh; }
  .seccion { padding-top: 84px; }
  .contacto { padding-bottom: 84px; }

  .sec-cab { display: block; }
  .sec-nota { margin-top: 14px; }
  .svc {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "nom precio" "txt txt" "cta cta";
    gap: 6px 14px;
    padding: 18px 16px 16px;
  }
  .svc > p:not(.svc-precio) { font-size: 14px; }
  .svc h3 { grid-area: nom; }
  .svc > p:not(.svc-precio) { grid-area: txt; }
  .svc .svc-precio { grid-area: precio; text-align: right; font-size: 18px; }
  .svc-cta { grid-area: cta; justify-self: start; margin-top: 4px; }
  .svc-tag { left: 18px; }

  .fase { min-height: 0; padding: 26px 0; }
  .fase:last-child { min-height: 0; }

  .prop-escena { position: relative; height: min(76vw, 400px); }
  .etapa--propiedad { left: 10%; top: 8%; width: 80%; height: 84%; }
  .prop-texto { margin-top: 0; padding: 0 var(--margen) 96px; }
  .prop-cifra { font-size: clamp(76px, 25vw, 132px); }

  .contexto-rejilla, .contacto-rejilla { display: block; }
  .dato { margin-top: 32px; }
  .contexto-rejilla > .cierre { margin-top: 28px; }
  .cruce-pies { grid-template-columns: 1fr; }
  .form { margin-top: 36px; }
  .vias { flex-direction: column; align-items: stretch; }
  .vias .btn { justify-content: center; }

  .footer-grid { grid-template-columns: 1fr 1fr; padding-top: 44px; }
  .f-brand { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .hero-titular { font-size: clamp(29px, 9.3vw, 44px); }
  .puente-frase { font-size: clamp(42px, 13.4vw, 60px); }
}

/* ===================== movimiento reducido: quieto y compuesto ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
