/* ==========================================================================
   MultiserviciosChait — estilos
   Dirección: "dark room" · un campo pizarra de arriba abajo, cosas iluminadas.
   Marca: pizarra #1F2937 · coral #FF5A5F · aqua #6FFFE9 · blanco · Outfit
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  src: url("../assets/fonts/Outfit-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Color (roles) */
  --bg: #1F2937;          /* pizarra de marca: el suelo de toda la página */
  --bg-deep: #172030;     /* un paso más oscuro para zonas de apoyo */
  --surface: #263244;     /* un paso más claro: campos de formulario, fila activa */
  --ink: #F3F5F8;         /* texto principal, blanco ligeramente apagado */
  --muted: #B4BECB;       /* texto secundario (contraste > 7:1 sobre --bg) */
  --accent: #FF5A5F;      /* coral: solo la acción principal */
  --aqua: #6FFFE9;        /* aqua: foco y el detalle de la C */
  --sky: #86CFF6;         /* celeste: campo del presupuesto, luz del 3D y detalles */
  --sky-deep: #5FB8EC;    /* celeste un paso más intenso para estados */
  --paper: #FFFFFF;
  --paper-ink: #1F2937;
  --paper-muted: #586474;

  /* Tipo: cinco tamaños */
  --t-xxl: clamp(64px, 15vw, 260px);   /* verbos y contacto */
  --t-xl:  clamp(40px, 6.2vw, 104px);  /* titulares */
  --t-l:   clamp(22px, 2.3vw, 34px);   /* frases, filas de servicios */
  --t-m:   18px;                       /* texto */
  --t-s:   14px;                       /* notas */

  /* Espacio */
  --gutter: clamp(20px, 4.5vw, 72px);
  --section: clamp(120px, 14vw, 220px);

  /* Movimiento */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: var(--t-m);
  line-height: 1.55;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--sky); color: var(--paper-ink); }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--paper-ink); padding: 10px 16px; }
.skip:focus { top: 12px; }

.wrap { padding-inline: var(--gutter); max-width: 1680px; margin-inline: auto; }

.h-xl {
  font-size: var(--t-xl);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.035em;
}
.h-l {
  font-size: var(--t-xl);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.02em;
}

/* ---------- Botones y enlaces ---------- */
.btn {
  --press: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 26px;
  background: var(--accent); color: var(--paper-ink);
  font: 500 var(--t-m)/1 "Outfit", sans-serif; letter-spacing: -.005em;
  text-decoration: none; border: 0; border-radius: 999px; cursor: pointer;
  transform: translateY(var(--press));
  transition: transform .18s var(--ease-out), background-color .2s;
}
.btn:hover { background: #FF7175; --press: -2px; }
.btn:active { --press: 1px; transition-duration: .06s; }
.btn--small { min-height: 44px; padding: 0 18px; white-space: nowrap; }
.btn--block { width: 100%; min-height: 58px; }

.link {
  position: relative; display: inline-block; padding: 12px 0;
  color: var(--ink); text-decoration: none; font-weight: 450;
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px;
  background: currentColor; transform-origin: right; transform: scaleX(.35);
  transition: transform .35s var(--ease-out);
}
.link:hover::after, .link:focus-visible::after { transform-origin: left; transform: scaleX(1); }
.link--dark { color: var(--paper-ink); }

/* ==========================================================================
   PORTADA
   ========================================================================== */
/* Titular que cambia a la izquierda, plano de arquitecto a la derecha
   y un juego: montar la casa arrastrando las piezas hasta su sitio en el plano */
.mez {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 3vw;
  padding: 110px var(--gutter) 100px;
  background: radial-gradient(60% 70% at 74% 50%, rgba(134, 207, 246, .15), transparent 70%), var(--bg);
}
/* Papel cuadriculado del plano */
.mez::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(134, 207, 246, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(134, 207, 246, .13) 1px, transparent 1px),
    linear-gradient(rgba(134, 207, 246, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(134, 207, 246, .05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  mask-image: radial-gradient(75% 85% at 72% 50%, #000 25%, transparent 90%);
  animation: papel 1.6s var(--ease-out) both;
}
@keyframes papel { from { opacity: 0; transform: scale(1.04); } }

/* ---------- Titular que cambia (de la prueba 3) ---------- */
.mez__copy { position: relative; z-index: 2; }
.mez__copy > * { animation: sube 1.1s var(--ease-out) both; }
.mez__copy > :nth-child(2) { animation-delay: .1s; } .mez__copy > :nth-child(3) { animation-delay: .2s; } .mez__copy > :nth-child(4) { animation-delay: .3s; }
@keyframes sube { from { opacity: 0; transform: translateY(28px); } }
.mez__h { margin: 0; font-weight: 500; font-size: clamp(50px, 7.4vw, 128px); line-height: .93; letter-spacing: -.045em; }
.mez__h .fija { display: block; }
.slot { position: relative; display: block; height: 1.04em; overflow: hidden; color: var(--accent); }
.slot span { position: absolute; left: 0; top: 0; white-space: nowrap; transform: translateY(105%); transition: transform .9s cubic-bezier(.7, 0, .2, 1); }
.slot span.is-on { transform: none; }
.slot span.is-off { transform: translateY(-105%); }
.mez__h .zona { display: block; margin-top: .25em; font-size: .36em; letter-spacing: -.02em; color: var(--muted); }
.oficios { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; max-width: 560px; }
.oficios li { padding: 8px 15px; border-radius: 999px; font-size: 15px; border: 1px solid rgba(243, 245, 248, .18); color: var(--muted); transition: background-color .5s, color .5s, border-color .5s, transform .5s var(--ease-out); }
.oficios li.is-on { background: var(--sky); border-color: var(--sky); color: var(--paper-ink); transform: translateY(-3px); }

/* ---------- Plano + juego (de la prueba 1) ---------- */
.juego { position: relative; z-index: 1; width: 100%; max-width: min(640px, calc((100svh - 250px) * 1.04)); justify-self: center; }
.juego__svg { width: 100%; height: auto; overflow: visible; user-select: none; -webkit-user-select: none; }
.juego__svg text { font: 500 5.2px "Outfit", sans-serif; fill: var(--sky); }
.trazo { fill: transparent; stroke: none; }
.trazo-dibujo { fill: none; stroke: var(--sky); stroke-width: .7; stroke-dasharray: 1; stroke-dashoffset: 1; animation: dibuja 1.6s var(--ease-io) .3s forwards; }
.trazo-dibujo--2 { animation-delay: .6s; } .trazo-dibujo--3 { animation-delay: 1s; animation-duration: .5s; }
@keyframes dibuja { to { stroke-dashoffset: 0; } }
.trazos { opacity: 0; animation: aparece .5s ease 1.8s forwards; }
@keyframes aparece { to { opacity: 1; } }
@keyframes apaga { to { opacity: 0; } }
.trazo-dibujo { fill: rgba(134, 207, 246, .04); }
.medida line { stroke: rgba(134, 207, 246, .55); stroke-width: .4; }
.medida text { fill: rgba(134, 207, 246, .8); font-size: 4.2px; }

.juego .cota { opacity: 0; transition: opacity .5s, transform .5s var(--ease-out); transform: translateY(2px); }
.juego .cota.is-on { opacity: 1; transform: none; }
.juego .cota path { stroke: var(--sky); stroke-width: .45; fill: none; }
.juego .cota circle { fill: var(--sky); }

.ficha { cursor: grab; touch-action: none; outline: none; }
.ficha.is-cogida { cursor: grabbing; }
.agarre { fill: transparent; stroke: none; pointer-events: all; }
.ficha.is-cogida .flota { filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .45)); }
.ficha.is-puesta { cursor: default; pointer-events: none; }
.ficha path { stroke: rgba(0, 0, 0, .22); stroke-width: .45; stroke-linejoin: round; }
.ficha:focus-visible path { stroke: var(--aqua); stroke-width: 1.2; }
.ficha--cuerpo path { fill: var(--ink); }
.ficha--tejado path { fill: var(--accent); }
.ficha--ventana path { fill: var(--aqua); }
.ficha--ventana.is-puesta path { filter: drop-shadow(0 0 4px rgba(111, 255, 233, .9)); }
/* Las piezas sueltas respiran un poco para invitar a cogerlas */
.ficha:not(.is-puesta):not(.is-cogida) .flota { animation: flota 2.6s ease-in-out infinite; }
.ficha--cuerpo .flota { animation-delay: -.8s !important; } .ficha--ventana .flota { animation-delay: -1.6s !important; }
@keyframes flota { 50% { transform: translateY(-2px); } }

.juego__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-top: 4px; font-size: 14px; color: var(--muted); }
.juego__bar b { color: var(--ink); font-weight: 500; }
.juego__pista { display: inline-flex; align-items: center; gap: 10px; }
.juego__pista i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 0 rgba(111, 255, 233, .6); animation: pulso 1.6s infinite; }
@keyframes pulso { 70% { box-shadow: 0 0 0 10px rgba(111, 255, 233, 0); } 100% { box-shadow: 0 0 0 0 rgba(111, 255, 233, 0); } }
.juego__btn { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(243, 245, 248, .25); background: transparent; color: var(--ink); font: 450 14px "Outfit", sans-serif; cursor: pointer; }
.juego__btn:hover { border-color: var(--ink); }
.juego__crono { font-variant-numeric: tabular-nums; }

/* Final: la casa se enciende y sube la tarjeta de las llaves */
.juego.is-completa .ficha path { stroke: transparent; transition: stroke .6s; }
.juego.is-completa .ficha--tejado path, .juego.is-completa .ficha--cuerpo path { animation: enciende 1.4s ease-out; }
@keyframes enciende { 0% { filter: brightness(1); } 30% { filter: brightness(1.35) drop-shadow(0 0 6px rgba(255, 255, 255, .6)); } 100% { filter: brightness(1); } }
.juego.is-completa .ficha--ventana path { animation: ventana 2.4s ease-in-out infinite; }
@keyframes ventana { 0%, 100% { filter: drop-shadow(0 0 3px rgba(111, 255, 233, .7)); } 50% { filter: drop-shadow(0 0 9px rgba(111, 255, 233, 1)); } }
.juego.is-completa .dibujo { opacity: .25; transition: opacity .8s; }
/* La casa sube y se recoge para dejar sitio a la tarjeta */
.juego__svg { transform-origin: 50% 0; transition: transform .9s cubic-bezier(.65, 0, .35, 1); }
.juego.is-completa .juego__svg { transform: translateY(-6%) scale(.68); }

.fin {
  position: absolute; z-index: 5; left: 50%; bottom: 46px; width: min(460px, 100%);
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  padding: 20px 22px 20px 18px; border-radius: 24px;
  background: var(--paper); color: var(--paper-ink);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6);
  transform: translate(-50%, 40px) scale(.96); opacity: 0;
  transition: transform .7s cubic-bezier(.2, 1.3, .35, 1), opacity .35s;
}
.fin[hidden] { display: none; }
.fin.is-on { transform: translate(-50%, 0) scale(1); opacity: 1; }
.fin__llave { width: 40px; height: 54px; margin-top: 4px; fill: none; stroke: var(--paper-ink); stroke-width: 3.4; stroke-linecap: round; transform-origin: 24px 2px; }
.fin__llave circle:first-of-type { fill: var(--aqua); }
.fin__llave .fin__hueco { fill: var(--paper); }
.fin.is-on .fin__llave { animation: balancea 2.2s ease-in-out .3s 2; }
@keyframes balancea { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(14deg); } 75% { transform: rotate(-10deg); } }
.fin__k { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #3C8F86; }
.fin__t { margin: 4px 0 0; font-size: clamp(22px, 2vw, 27px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.fin__seg { font-weight: 650; font-variant-numeric: tabular-nums; }
.fin__r { margin: 8px 0 0; font-size: 14px; color: var(--paper-muted); min-height: 1em; }
.fin__r:empty { display: none; }
.fin__badge { display: inline-block; margin-right: 8px; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--paper-ink); font-weight: 600; font-size: 13px; animation: late 1s ease-in-out 3; }
@keyframes late { 50% { transform: scale(1.08); } }
.fin__p { margin: 10px 0 0; font-size: 15px; line-height: 1.45; color: #3A4657; }
.fin__b { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; }
.fin__b .btn { min-height: 46px; padding: 0 20px; font-size: 16px; }
.fin__otra { min-height: 46px; padding: 0 4px; border: 0; background: none; color: var(--paper-ink); font: 500 15px "Outfit", sans-serif; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
/* Chispas al terminar */
.chispa { position: absolute; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; }

@media (max-width: 900px) {
  .mez { grid-template-columns: 1fr; align-content: start; gap: 8px; min-height: 0; padding: 92px var(--gutter) 72px; }
  .juego { order: -1; max-width: min(440px, 50svh); }
  .mez__h { font-size: clamp(44px, 12.5vw, 72px); }
  .oficios li { font-size: 13px; padding: 7px 12px; }
  .fin { bottom: 52px; padding: 16px; gap: 12px; }
  .fin__llave { width: 30px; height: 42px; }
}
.mez__kicker { margin: 0 0 18px; font-size: var(--t-s); letter-spacing: .16em; text-transform: uppercase; color: var(--sky); }
.mez__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 30px; }
/* Mientras está la pantalla de carga, todo espera */
.mez:not(.is-on)::before, .mez:not(.is-on) .mez__copy > *, .mez:not(.is-on) .trazo-dibujo, .mez:not(.is-on) .trazos, .mez:not(.is-on) .dibujo { animation-play-state: paused; }

.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; gap: 32px;
  padding: 24px var(--gutter);
  transition: transform .55s var(--ease-out), background-color .4s, padding .4s;
}
.bar.is-solid { background: rgba(23, 32, 48, .97); padding-block: 14px; }
.bar.is-hidden { transform: translateY(-105%); }
.bar__logo img { width: clamp(190px, 17vw, 260px); }
.bar__links { display: flex; gap: 28px; margin-left: auto; font-size: var(--t-m); }
.bar__links a { text-decoration: none; color: var(--ink); opacity: .86; transition: opacity .2s; padding: 10px 0; }
.bar__links a:hover { opacity: 1; }

/* ==========================================================================
   INTRO · una sola frase grande que se enciende al bajar
   ========================================================================== */
.intro {
  min-height: 72svh;
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 110px); align-items: center;
  padding: var(--section) var(--gutter) calc(var(--section) * .5);
}
.intro__media, .faq__img { margin: 0; overflow: hidden; }
.intro__media { aspect-ratio: 4 / 3; }
.intro__media img, .faq__img img { width: 100%; height: 100%; object-fit: cover; }

/* Franja de imagen a todo el ancho */
.band { height: 78svh; overflow: hidden; position: relative; }
.band__img { width: 100%; height: 100%; object-fit: cover; transform-origin: center; }

/* Imagen de preguntas */
.faq__img { grid-column: 1; margin-top: 48px; aspect-ratio: 4 / 5; max-width: 440px; }
.intro__statement {
  font-size: clamp(26px, 2.6vw, 40px);
  font-weight: 300; line-height: 1.2; letter-spacing: -.025em;
  max-width: 24ch;
}

/* ==========================================================================
   SERVICIOS · tiras que se despliegan
   ========================================================================== */
.services { padding-block: var(--section); }
.services__intro { margin-top: 24px; color: var(--muted); max-width: 46ch; }
.kbd-plus { color: var(--ink); font-weight: 500; }

/* Tiras: una por oficio, la que tocas se despliega a lo ancho */
/* Nueve tiras, una por oficio: la que tocas se despliega a lo ancho con letra de revista */
.tiras { display: flex; gap: 8px; height: min(76svh, 720px); margin-top: clamp(40px, 5vw, 72px); }
.tira {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; cursor: pointer;
  border-radius: 26px; background: var(--fondo); color: var(--tinta);
  transition: flex-grow .8s cubic-bezier(.65, 0, .25, 1), background-color .5s;
  outline: none;
}
.tira.is-on { flex-grow: 7; cursor: default; }
.tira:focus-visible { box-shadow: inset 0 0 0 3px var(--aqua); }
.tira[data-g="Obra"] { --fondo: #3A2A33; --tinta: #FFE4E4; --acento: var(--accent); }
.tira[data-g="Instalaciones"] { --fondo: #1F3A42; --tinta: #E0FFFA; --acento: var(--aqua); }
.tira[data-g="Acabados"] { --fondo: var(--sky); --tinta: var(--paper-ink); --acento: var(--paper-ink); }
.tira[data-g="Antes y después"] { --fondo: #2B3647; --tinta: var(--ink); --acento: var(--sky); }
/* Cerrada: número, icono y nombre en vertical */
.tira__cerrada { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 22px 0; transition: opacity .35s; }
.tira.is-on .tira__cerrada { opacity: 0; pointer-events: none; }
.tira__num { font-size: 13px; font-weight: 600; opacity: .7; }
.tira__vert { writing-mode: vertical-rl; transform: rotate(180deg); font-size: clamp(18px, 1.5vw, 24px); font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.tira__cerrada .ico { width: 26px; height: 26px; color: var(--acento); }
/* Abierta */
.tira__abierta { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; padding: clamp(24px, 3vw, 48px); min-width: 520px; opacity: 0; transform: translateX(30px); transition: opacity .3s, transform .6s var(--ease-out); pointer-events: none; }
.tira.is-on .tira__abierta { opacity: 1; transform: none; transition-delay: .35s; pointer-events: auto; }
.tira__top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.tira__n { margin: auto 0 0; font-size: clamp(54px, 7vw, 124px); font-weight: 500; letter-spacing: -.05em; line-height: .9; }
.tira__q { margin: 16px 0 0; font-size: clamp(18px, 1.5vw, 24px); opacity: .85; }
.tira__inc { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.tira__inc li { padding: 9px 15px; border-radius: 999px; border: 1px solid currentColor; font-size: 15px; opacity: .9; }
.tira__pie { display: flex; justify-content: space-between; align-items: end; margin-top: 26px; }
.tira .btn-add { background: var(--acento); color: var(--fondo); }
.tira[data-g="Acabados"] .btn-add { color: var(--sky); }
.tira .btn-add[aria-pressed="true"] { background: var(--aqua); color: var(--paper-ink); }
/* Icono gigante de fondo */
.tira__marca { position: absolute; right: -4%; top: 8%; width: 46%; max-width: 380px; color: var(--acento); opacity: 0; transform: rotate(-12deg) scale(.8); transition: opacity .6s, transform 1s var(--ease-out); pointer-events: none; }
.tira__marca .ico { width: 100%; height: auto; stroke-width: .9; }
.tira.is-on .tira__marca { opacity: .16; transform: rotate(-6deg) scale(1); transition-delay: .3s; }
.tiras__pista { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .tiras { flex-direction: column; height: auto; gap: 8px; }
  .tira { flex: none; height: 64px; border-radius: 20px; transition: height .7s cubic-bezier(.65, 0, .25, 1); }
  .tira.is-on { height: 470px; }
  .tira__cerrada { flex-direction: row; padding: 0 20px; justify-content: flex-start; gap: 14px; }
  .tira__vert { writing-mode: horizontal-tb; transform: none; font-size: 19px; }
  .tira__cerrada .ico { order: -1; }
  .tira__num { order: 1; margin-left: auto; }
  .tira__abierta { min-width: 0; padding: 22px; transform: translateY(16px); }
  .tira__n { font-size: clamp(40px, 12vw, 60px); }
  .tira__inc li { font-size: 13px; padding: 7px 12px; }
  .tira__marca { width: 60%; top: 4%; }
}

.tira .ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn-add {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border: 0; border-radius: 999px; cursor: pointer; font: 600 15px "Outfit", sans-serif;
  transition: background-color .25s, transform .2s var(--ease-out);
}
.btn-add:hover { transform: translateY(-2px); }
.btn-add[aria-pressed="true"]::before { content: "✓"; }
.tira:has(.btn-add[aria-pressed="true"]) .tira__num::after { content: " ✓"; color: var(--aqua); }

/* ==========================================================================
   CÓMO TRABAJAMOS · introducción, barra de progreso y cuatro pasos ilustrados
   ========================================================================== */
.process { position: relative; }
.process__intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: end;
  padding-block: var(--section) clamp(64px, 8vw, 120px);
}
.process__lede { font-size: var(--t-l); font-weight: 300; line-height: 1.3; letter-spacing: -.01em; max-width: 26ch; }
.process__map { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 6px; }
.process__map a {
  display: flex; align-items: center; gap: 18px; padding: 14px 16px; margin-inline: -16px;
  text-decoration: none; font-size: var(--t-m); color: var(--ink);
  transition: background-color .25s, transform .3s var(--ease-out);
}
.process__map a:hover { background: var(--surface); transform: translateX(6px); }
.process__n {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 40px; height: 40px; background: var(--sky); color: var(--paper-ink); font-weight: 600;
}

/* Barra fija de pasos */
.process__progress {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg); padding: 0 var(--gutter);
}
.process__progress ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.process__progress a {
  display: flex; align-items: center; gap: 12px; min-height: 64px;
  text-decoration: none; color: var(--muted); font-size: var(--t-m); transition: color .3s;
}
.process__progress b {
  display: inline-grid; place-items: center; width: 30px; height: 30px; font-weight: 600; font-size: var(--t-s);
  background: var(--surface); color: var(--ink); transition: background-color .3s, color .3s;
}
.process__progress li.is-active a, .process__progress a:hover { color: var(--ink); }
.process__progress li.is-active b { background: var(--sky); color: var(--paper-ink); }
.process__progress li.is-done b { background: var(--aqua); color: var(--paper-ink); }
.process__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--surface); }
.process__bar span { position: absolute; inset: 0; background: var(--sky); transform-origin: left; transform: scaleX(.25); transition: transform .6s var(--ease-out); }

/* Cada paso */
.step {
  min-height: 100svh;
  display: grid; grid-template-columns: 5fr 6fr; align-items: center; gap: clamp(32px, 5vw, 96px);
  padding: clamp(80px, 9vw, 140px) var(--gutter);
}
.step--pizarra { background: var(--bg-deep); color: var(--ink); --line: var(--ink); --soft: var(--muted); }
.step--celeste { background: var(--sky); color: var(--paper-ink); --line: var(--paper-ink); --soft: #2F3E52; }
.step--azul    { background: var(--surface); color: var(--ink); --line: var(--ink); --soft: var(--muted); }
.step--blanco  { background: var(--paper); color: var(--paper-ink); --line: var(--paper-ink); --soft: var(--paper-muted); }
.step__count { font-size: var(--t-m); color: var(--soft); }
.step__verb {
  margin-top: 10px;
  font-size: clamp(56px, 8.4vw, 150px); font-weight: 650; letter-spacing: -.05em; line-height: .92;
}
.step__verb--largo { font-size: clamp(44px, 6.4vw, 116px); }
.step__text { margin-top: 28px; font-size: var(--t-l); font-weight: 300; line-height: 1.3; max-width: 26ch; }
.step__list { margin-top: 32px; display: grid; gap: 12px; max-width: 40ch; }
.step__list li { position: relative; padding-left: 30px; font-size: var(--t-m); }
.step__list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; background: var(--accent); }
.step--celeste .step__list li::before, .step--blanco .step__list li::before { background: var(--paper-ink); }

/* Ilustraciones */
.step__art { display: grid; place-items: center; }
.art { width: min(100%, 560px); height: auto; overflow: visible; }
.art path, .art circle { vector-effect: non-scaling-stroke; }
.draw { fill: none; stroke: var(--line); stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease-io); }
.draw--late { transition-delay: .9s; }
.is-in .draw { stroke-dashoffset: 0; }

/* 1 · Miramos: el contorno discontinuo, una lupa y marcas de encuadre */
.art--mirar .draw { stroke-dasharray: .018 .012; stroke-dashoffset: 1; }
.art--mirar .lupa { fill: none; stroke: var(--sky); stroke-width: 4; stroke-linecap: round; transform: translate(-60px, -70px); opacity: 0; transition: transform 1.6s var(--ease-out) .6s, opacity .6s .6s; }
.is-in .art--mirar .lupa { transform: none; opacity: 1; }
.art--mirar .esquinas { fill: none; stroke: var(--aqua); stroke-width: 3; opacity: 0; transition: opacity .6s 1.6s; }
.is-in .art--mirar .esquinas { opacity: 1; }

/* 2 · Presupuestamos: plano sobre rejilla con cada oficio en su partida */
.art--plano .rejilla { stroke: rgba(31, 41, 55, .14); stroke-width: 1; }
.art--plano .cota { opacity: 0; transform: translateX(-10px); transition: opacity .5s, transform .6s var(--ease-out); }
.art--plano .cota path { stroke: var(--paper-ink); stroke-width: 1.6; fill: none; }
.art--plano .cota circle { fill: var(--paper-ink); }
.art--plano .cota text { font: 600 9px "Outfit", sans-serif; fill: var(--paper-ink); }
.is-in .art--plano .cota { opacity: 1; transform: none; }
.is-in .art--plano .cota--1 { transition-delay: 1.2s; }
.is-in .art--plano .cota--2 { transition-delay: 1.45s; }
.is-in .art--plano .cota--3 { transition-delay: 1.7s; }
.is-in .art--plano .cota--4 { transition-delay: 1.95s; }

/* 3 · Reformamos: las piezas llegan y encajan */
.pieza { transition: transform 1.2s var(--ease-out), opacity .6s; }
.pieza--cuerpo { fill: #F4F6F8; transform: translateY(70px); opacity: 0; }
.pieza--tejado { fill: var(--accent); transform: translateY(-90px) rotate(-8deg); transform-origin: 50px 24px; opacity: 0; transition-delay: .45s; }
.pieza--ventana { fill: var(--aqua); transform: translateX(60px); opacity: 0; transition-delay: .95s; }
.is-in .pieza { transform: none; opacity: 1; }

/* 4 · Entregamos: el logo completo, la luz encendida y las llaves */
.lleno--cuerpo { fill: var(--paper-ink); }
.lleno--tejado { fill: var(--accent); }
.lleno--ventana { fill: var(--aqua); }
.art--entrega .halo { fill: var(--aqua); opacity: 0; transform-origin: 89px 80px; transform: scale(.4); transition: opacity .8s .6s, transform 1.2s var(--ease-out) .6s; }
.is-in .art--entrega .halo { opacity: .22; transform: scale(1.45); }
.art--entrega .llave { fill: none; stroke: var(--paper-ink); stroke-width: 3.5; stroke-linecap: round; transform-origin: 14px 132px; transform: rotate(-35deg) translateY(-20px); opacity: 0; transition: transform 1.1s var(--ease-out) 1s, opacity .5s 1s; }
.is-in .art--entrega .llave { transform: none; opacity: 1; }

/* ==========================================================================
   EL PARTE DE TRABAJO
   ========================================================================== */
.order { padding-block: var(--section); background: var(--sky); color: var(--paper-ink); }
.order :focus-visible { outline-color: var(--paper-ink); }
.order__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.order__lede { margin-top: 24px; color: var(--paper-ink); max-width: 46ch; }

.field { display: block; border: 0; padding: 0; margin: 40px 0 0; min-width: 0; }
.field legend, .field__label { display: block; font-size: var(--t-m); font-weight: 500; margin-bottom: 14px; color: inherit; }
.opt { opacity: .72; font-weight: 400; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field-row .field { margin-top: 40px; }

select, textarea {
  width: 100%; font: 400 var(--t-m)/1.4 "Outfit", sans-serif; color: var(--ink);
  background: var(--surface); border: 2px solid transparent; border-radius: 14px;
  padding: 14px 16px; min-height: 52px;
  transition: border-color .2s;
}
select { appearance: none; background: var(--surface) 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='%23F3F5F8' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 18px center; padding-right: 44px; }
select option, select optgroup { background: var(--bg); color: var(--ink); }
select:hover, textarea:hover { border-color: #3A485C; }
.order select, .order textarea, .order input[type="text"] { background-color: rgba(255,255,255,.72); color: var(--paper-ink); }
.order select { 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='%231F2937' stroke-width='2'/%3E%3C/svg%3E"); }
.order select:hover, .order textarea:hover, .order input[type="text"]:hover { border-color: rgba(31,41,55,.35); }
.order select:focus, .order textarea:focus, .order input[type="text"]:focus { border-color: var(--paper-ink); background-color: #fff; }
.order textarea::placeholder, .order input::placeholder { color: #4F5D70; }
input[type="text"] { width: 100%; font: 400 var(--t-m)/1.4 "Outfit", sans-serif; border: 2px solid transparent; border-radius: 14px; padding: 14px 16px; min-height: 52px; transition: border-color .2s, background-color .2s; }
select:focus, textarea:focus { border-color: var(--aqua); outline: none; }
textarea { resize: vertical; }
textarea::placeholder { color: #8C97A6; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font: 450 var(--t-m)/1 "Outfit", sans-serif; color: var(--ink);
  min-height: 46px; padding: 0 18px;
  background: var(--surface); border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background-color .2s, color .2s, transform .15s var(--ease-out);
}
.chip:hover { border-color: #3A485C; }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--aqua); color: var(--paper-ink); }
.order .chip { background: rgba(255,255,255,.72); color: var(--paper-ink); }
.order .chip:hover { border-color: rgba(31,41,55,.35); }
.order .chip[aria-pressed="true"] { background: var(--paper-ink); color: #fff; }

/* Interruptor de fotos / vídeos */
.toggle {
  display: inline-flex; align-items: center; gap: 14px; width: 100%;
  min-height: 52px; padding: 0 16px;
  font: 450 var(--t-m)/1.2 "Outfit", sans-serif; color: var(--paper-ink); text-align: left;
  background: rgba(255,255,255,.72); border: 2px solid transparent; border-radius: 14px; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.toggle:hover { border-color: rgba(31,41,55,.35); }
.toggle__box { position: relative; flex: 0 0 auto; width: 22px; height: 22px; border: 2px solid currentColor; border-radius: 6px; }
.toggle__box::after {
  content: ""; position: absolute; left: 6px; top: 1px; width: 6px; height: 12px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) scale(0); transition: transform .25s var(--ease-out);
}
.toggle[aria-pressed="true"] { background: var(--paper-ink); color: #fff; }
.toggle[aria-pressed="true"] .toggle__box::after { transform: rotate(45deg) scale(1); }

/* La hoja */
.ticket {
  position: sticky; top: 32px;
  background: var(--paper); color: var(--paper-ink);
  padding: clamp(24px, 3vw, 44px);
  border-radius: 24px;
  box-shadow: 0 30px 60px -30px rgba(31, 41, 55, .45);
}
.ticket__head { display: flex; gap: 16px; align-items: center; margin-bottom: 28px; }
.ticket__title { font-size: var(--t-l); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.ticket__date { font-size: var(--t-s); color: var(--paper-muted); }
.ticket__body { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; margin-bottom: 28px; }
.ticket__wide { grid-column: 1 / -1; }
.ticket__body > div { padding: 16px 0; border-top: 2px solid #E6E9EE; }
.ticket__body dt { font-size: 14px; color: var(--paper-muted); margin-bottom: 4px; }
.ticket__body dd { font-size: var(--t-m); font-weight: 450; line-height: 1.35; transition: opacity .25s; }
.ticket__body dd.is-empty { color: #677283; font-weight: 350; }
.ticket__body dd.flash { animation: flash .5s var(--ease-out); }
@keyframes flash { from { opacity: .2; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ticket .link--dark { margin-top: 8px; }
.ticket__note {
  margin-top: 16px; padding: 14px 16px;
  background: #EEF7FD; color: var(--paper-ink); font-size: var(--t-s); line-height: 1.5;
  transition: background-color .3s;
}
.ticket__note strong { font-weight: 600; }
.ticket__note.is-on { background: var(--sky); }
.ticket .btn[aria-disabled="true"] { background: #D7DBE1; color: #3F4A5A; pointer-events: none; }

/* ==========================================================================
   ZONA · fila que se arrastra
   ========================================================================== */
.zone { padding-block: var(--section) calc(var(--section) * .7); background: var(--bg-deep); }
.zone__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.zone__head p { color: var(--muted); max-width: 44ch; }
.drag {
  display: flex; gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  cursor: grab;
}
.drag::-webkit-scrollbar { display: none; }
.drag.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.drag.is-dragging .drag__item { pointer-events: none; }
.drag__item {
  flex: 0 0 auto; scroll-snap-align: start; margin: 0;
  width: clamp(280px, 38vw, 620px);
  user-select: none;
}
.drag__item--tall { width: clamp(240px, 28vw, 460px); }
.drag__item img {
  width: 100%; height: clamp(340px, 58vh, 620px); object-fit: cover;
  filter: brightness(.82) contrast(1.05);
  transition: filter .4s, transform .6s var(--ease-out);
}
.drag__item:hover img { filter: brightness(.95) contrast(1.05); }
.drag__item figcaption { transition: color .3s; }
.drag__item:hover figcaption { color: var(--sky); }
.drag__item figcaption { margin-top: 14px; font-size: var(--t-l); font-weight: 300; letter-spacing: -.01em; }
.drag__item--text {
  width: clamp(280px, 30vw, 460px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 28px;
  padding: 32px; background: var(--surface);
  height: clamp(340px, 58vh, 620px);
}
.drag__item--text p { font-size: var(--t-l); line-height: 1.3; }
.drag__item--text .btn { align-self: flex-start; }

/* ==========================================================================
   PREGUNTAS
   ========================================================================== */
.faq { padding-block: var(--section); overflow: hidden; }
.faq__grid { display: block; }
.faq__col { display: grid; grid-template-columns: 5fr 7fr; column-gap: clamp(40px, 6vw, 100px); align-items: start; }
.faq__col > h2, .faq__col > .faq__facts, .faq__col > .faq__actions { grid-column: 1; }
.faq__col > .accordion { grid-column: 2; grid-row: 1 / span 5; margin-top: 0; }
.faq__facts { margin-top: 28px; display: grid; gap: 6px; }
.faq__facts strong { font-weight: 550; }
.accordion { margin-top: 44px; display: grid; gap: 4px; }
.accordion details { padding: 14px 0; }
.accordion summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-size: var(--t-m); font-weight: 450; min-height: 44px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; flex: 0 0 auto; width: 10px; height: 10px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  transition: transform .3s var(--ease-out);
}
.accordion details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.accordion details p { padding-top: 8px; color: var(--muted); max-width: 52ch; }
.accordion details[open] p { animation: flash .45s var(--ease-out); }
.faq__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }

/* ==========================================================================
   CONTACTO · colores invertidos
   ========================================================================== */
.contact {
  min-height: 100svh;
  background: var(--paper); color: var(--paper-ink);
  padding: 44px var(--gutter);
  display: grid; grid-template-rows: auto auto 1fr auto auto;
}
.contact__pasos {
  list-style: none; margin: clamp(40px, 6vw, 80px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px);
}
.contact__pasos li { display: grid; gap: 14px; align-content: start; padding-top: 18px; border-top: 3px solid var(--paper-ink); }
.contact__pasos b { font-size: var(--t-l); font-weight: 600; color: #C8323A; }
.contact__pasos span { font-size: var(--t-m); max-width: 26ch; }
.contact__corners p span { display: block; }
.contact__corners p span[hidden] { display: none; }
.contact__lead { font-size: var(--t-l); max-width: 30ch; font-weight: 400; }
.contact__big {
  grid-row: 4;
  display: block;
  font-size: min(var(--t-xxl), 8.4vw);
  font-weight: 400; letter-spacing: -.045em; line-height: .95;
  text-decoration: none; color: var(--paper-ink);
  margin-bottom: 9vh;
  transition: color .35s;
}
.contact__big:hover { color: var(--accent); }
.contact__corners { grid-row: 5; display: flex; justify-content: space-between; gap: 20px; }
.contact__social { display: flex; gap: 20px; align-items: flex-end; }
.contact__social a { text-decoration: none; }
.contact__social a:hover { color: #D9363C; }

/* ==========================================================================
   PIE
   ========================================================================== */
.footer {
  min-height: 72svh;
  background: var(--bg-deep);
  padding: 44px var(--gutter) 24px;
  display: grid; grid-template-rows: auto 1fr auto auto;
}
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; color: var(--muted); }
.footer__cols a { text-decoration: none; }
.footer__cols a:hover { color: var(--ink); }
.footer__h { color: var(--sky); font-weight: 450; margin-bottom: 6px; }
.footer__mark { grid-row: 3; width: 100%; margin: 0 0 20px; }
.footer__legal { grid-row: 4; display: flex; justify-content: space-between; gap: 24px; font-size: 14px; color: var(--muted); align-items: start; }
.credits-wrap { max-width: 70ch; text-align: right; }
.credits-wrap summary { cursor: pointer; list-style: none; }
.credits-wrap summary::-webkit-details-marker { display: none; }
.credits-wrap summary:hover { color: var(--ink); }
.credits { margin-top: 10px; text-align: left; line-height: 1.5; color: var(--ink); }

/* Botón fijo de presupuesto: siempre a mano hasta llegar al final */
.wa-dock {
  position: fixed; right: clamp(16px, 2.4vw, 36px); bottom: calc(clamp(16px, 2.4vw, 32px) + env(safe-area-inset-bottom)); z-index: 50;
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 22px 0 26px;
  background: var(--accent); color: var(--paper-ink);
  font-weight: 550; font-size: var(--t-m); text-decoration: none;
  outline: 3px solid rgba(31, 41, 55, .9);
  transform: translateY(160%); transition: transform .5s var(--ease-out), background-color .2s;
}
.wa-dock.is-on { transform: none; }
.wa-dock:hover { background: #FF7175; }
.wa-dock__arrow { display: inline-block; transition: transform .3s var(--ease-out); }
.wa-dock:hover .wa-dock__arrow { transform: translateX(4px); }

/* ==========================================================================
   APARICIONES
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   ACABADO PREMIUM · pantalla de carga, cursor, banda de servicios, grano
   ========================================================================== */
html.cargando, html.cargando body { overflow: hidden; }
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background-color: var(--bg-deep);
  transition: background-color 1.2s var(--ease-io);
}
.loader.is-done { background-color: rgba(23, 32, 48, 0); pointer-events: none; }
/* Al terminar, el monograma vuela hasta donde aparece la casa 3D y se funde en ella */
.loader__mark {
  width: clamp(72px, 8vw, 112px); overflow: visible;
  transition: transform 1.25s cubic-bezier(.7, 0, .2, 1), opacity .55s ease .7s;
}
.loader.is-done .loader__mark { transform: translate(var(--ir-x, 0), var(--ir-y, 0)) scale(var(--ir-s, 3)); opacity: 0; }
.loader.is-done .loader__count { opacity: 0; transform: translateY(20px); }
.loader__count { transition: opacity .4s, transform .6s var(--ease-out); }
.loader__roof, .loader__body { stroke-width: 2.4; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: trazo 1.1s var(--ease-io) forwards, relleno .5s ease 1s forwards; }
.loader__roof { stroke: var(--accent); fill: transparent; }
.loader__body { stroke: var(--ink); fill: transparent; animation-delay: .15s, 1.1s; }
.loader__win { fill: var(--aqua); opacity: 0; animation: aparecer .4s ease 1.25s forwards; }
@keyframes trazo { to { stroke-dashoffset: 0; } }
@keyframes relleno { to { fill: currentColor; } }
.loader__roof { color: var(--accent); }
.loader__body { color: var(--ink); }
@keyframes aparecer { to { opacity: 1; } }
.loader__count {
  position: absolute; right: var(--gutter); bottom: 28px;
  font-size: var(--t-xl); font-weight: 300; letter-spacing: -.04em; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--ink);
}

/* Cursor propio */
.cursor { position: fixed; inset: 0; z-index: 150; pointer-events: none; opacity: 0; transition: opacity .3s; mix-blend-mode: difference; }
.cursor.is-on { opacity: 1; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid #fff;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .3s;
}
.cursor.is-link .cursor__ring { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: #fff; }
.cursor.is-drag .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
html.con-cursor, html.con-cursor a, html.con-cursor button, html.con-cursor summary, html.con-cursor .drag { cursor: none; }

/* El nombre de la empresa, hecho de arena */
.nombre { padding-block: clamp(48px, 7vw, 120px) clamp(28px, 4vw, 64px); text-align: center; }
.nombre__lienzo { display: block; width: 100%; touch-action: pan-y; }
.nombre__pista { margin-top: 18px; font-size: var(--t-s); color: var(--muted); letter-spacing: .02em; }
@media (hover: none) { .nombre__pista { visibility: hidden; } }

/* Grano sutil, como papel impreso */
body::after {
  content: ""; position: fixed; inset: -8%; z-index: 120; pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grano 1.2s steps(5) infinite;
}
@keyframes grano {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ==========================================================================
   LUZ · el hilo conductor de la web
   ========================================================================== */
/* Foco del cursor que revela un plano de arquitecto en las secciones oscuras */
.has-light { position: relative; isolation: isolate; }
/* Una sola capa pequeña que sigue al cursor: se mueve con transform, sin repintar la sección */
.luz {
  position: absolute; left: 0; top: 0; z-index: -1; pointer-events: none;
  width: 640px; height: 640px; margin: -320px 0 0 -320px;
  opacity: 0; transition: opacity .6s;
  will-change: transform;
  background-image:
    linear-gradient(var(--luz-l, rgba(134, 207, 246, .28)) 1px, transparent 1px),
    linear-gradient(90deg, var(--luz-l, rgba(134, 207, 246, .28)) 1px, transparent 1px),
    radial-gradient(circle, var(--luz-g, rgba(134, 207, 246, .08)), transparent 70%);
  background-size: 48px 48px, 48px 48px, 100% 100%;
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, .35) 45%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, .35) 45%, transparent 100%);
}
.has-light.is-lit > .luz { opacity: 1; }
/* En los fondos claros la cuadrícula se dibuja en azul oscuro */
.order.has-light { --luz-l: rgba(31, 41, 55, .2); --luz-g: rgba(255, 255, 255, .22); }
.contact.has-light { --luz-l: rgba(74, 144, 184, .32); --luz-g: rgba(134, 207, 246, .16); }
.has-light.is-lit::before, .has-light.is-lit::after { opacity: 1; }

/* Zona: las ciudades en penumbra se encienden */
.drag__item img { filter: brightness(.5) saturate(.75) contrast(1.05); transition: filter .7s var(--ease-out), transform .9s var(--ease-out); }
.drag__item:hover img, .drag__item.is-center img { filter: brightness(1) saturate(1.05) contrast(1.05); }
.drag__item figcaption { transition: color .4s; }
.drag__item.is-center figcaption { color: var(--sky); }

/* Contacto: un destello de luz recorre el texto grande */
.contact__big { position: relative; overflow: hidden; }
.contact__big::after {
  content: ""; position: absolute; inset: -10% -20%; pointer-events: none;
  background: linear-gradient(100deg, transparent 38%, rgba(134, 207, 246, .95) 50%, transparent 62%);
  mix-blend-mode: screen; transform: translateX(-100%);
  animation: destello 7s cubic-bezier(.65, 0, .35, 1) 2s infinite;
}
@keyframes destello { 0% { transform: translateX(-100%); } 35%, 100% { transform: translateX(100%); } }

/* Pie: volver arriba */
.to-top { color: var(--ink); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; padding: 10px 0; }
.to-top span { display: inline-block; transition: transform .35s var(--ease-out); }
.to-top:hover span { transform: translateY(-4px); }

/* ==========================================================================
   MENÚ MÓVIL
   ========================================================================== */
.bar__menu { display: none; }
.menu { display: none; }
@media (max-width: 900px) {
  .bar__menu {
    display: inline-grid; place-items: center; gap: 7px; align-content: center;
    width: 48px; height: 48px; margin-left: auto; padding: 0;
    background: transparent; border: 0; cursor: pointer; color: var(--ink);
  }
  .bar__menu span { display: block; width: 26px; height: 2px; background: currentColor; transition: transform .45s var(--ease-out); }
  .bar__menu[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .bar__menu[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .menu {
    display: flex; flex-direction: column; justify-content: space-between;
    position: fixed; inset: 0; z-index: 55;
    padding: 110px 20px calc(110px + env(safe-area-inset-bottom));
    background: var(--bg-deep);
    clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io);
  }
  .menu[hidden] { display: none; }
  .menu.is-open { clip-path: inset(0 0 0 0); }
  .menu__links { display: grid; gap: 6px; }
  .menu__links a { display: block; padding: 10px 0; text-decoration: none; color: var(--ink); }
  .menu__links b { display: block; font-size: clamp(34px, 10vw, 48px); font-weight: 300; letter-spacing: -.035em; line-height: 1.05; }
  .menu__links span { display: block; font-size: var(--t-s); color: var(--muted); margin-top: 2px; }
  .menu__links li { opacity: 0; transform: translateY(26px); transition: opacity .5s, transform .7s var(--ease-out); }
  .menu.is-open .menu__links li { opacity: 1; transform: none; }
  .menu.is-open .menu__links li:nth-child(1) { transition-delay: .18s; }
  .menu.is-open .menu__links li:nth-child(2) { transition-delay: .24s; }
  .menu.is-open .menu__links li:nth-child(3) { transition-delay: .30s; }
  .menu.is-open .menu__links li:nth-child(4) { transition-delay: .36s; }
  .menu.is-open .menu__links li:nth-child(5) { transition-delay: .42s; }
  .menu__links li:nth-child(3) b { color: var(--accent); }
  .menu__pie { font-size: var(--t-s); color: var(--muted); line-height: 1.6; }
  html.menu-abierto, html.menu-abierto body { overflow: hidden; }
  html.menu-abierto .bar { background: var(--bg-deep); transform: none; }
}

/* Palabras con máscara para las animaciones de titulares */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.wi { display: inline-block; will-change: transform; }
.intro__statement .w { overflow: visible; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* ==========================================================================
   TELÉFONO
   ========================================================================== */
@media (max-width: 900px) {
  .bar__links { display: none; }
  .bar { justify-content: space-between; padding: 16px 20px; }
  .bar.is-solid { padding-block: 12px; }
  .bar__logo img { width: 150px; }
  .bar .btn--small { display: none; }

  .intro { min-height: 0; padding: 96px 20px 64px; grid-template-columns: 1fr; gap: 40px; }
  .band { height: 52svh; }
  .faq__img { max-width: none; aspect-ratio: 4 / 3; }


  .process__intro { grid-template-columns: 1fr; gap: 28px; padding-block: 96px 56px; }
  .process__progress { padding: 0 12px; }
  .process__progress a { min-height: 56px; gap: 8px; font-size: var(--t-s); }
  .process__progress li:not(.is-active) .lbl { display: none; }
  .step { grid-template-columns: 1fr; min-height: 0; padding: 72px 20px 88px; gap: 40px; }
  .step__art { order: -1; }
  .art { width: 78%; }

  .order__grid { grid-template-columns: 1fr; }
  .ticket { position: relative; top: 0; }
  .field-row { grid-template-columns: 1fr; gap: 0; }

  .zone__head { grid-template-columns: 1fr; gap: 20px; }
  .drag__item, .drag__item--tall { width: 78vw; }
  .drag__item img { height: 46vh; }
  .drag__item--text { width: 78vw; height: 46vh; padding: 24px; }

  .faq__col { grid-template-columns: 1fr; }
  .faq__col > .accordion { grid-column: 1; grid-row: auto; margin-top: 40px; }
  .faq__col > .faq__actions { grid-row: auto; }
  .faq__actions .btn { width: 100%; }

  .contact { min-height: 86svh; padding: 32px 20px; }
  .contact__big { font-size: 13.6vw; margin-bottom: 6vh; }
  .contact__pasos { grid-template-columns: 1fr; gap: 18px; }
  .contact__corners { flex-direction: column; }

  .footer { padding: 40px 20px 20px; min-height: 80svh; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__legal { flex-direction: column; }
  .credits-wrap { text-align: left; }

  .wa-dock { left: 16px; right: 16px; justify-content: center; }
}

/* ==========================================================================
   MOVIMIENTO REDUCIDO
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  body::after, .contact__big::after { animation: none !important; }
  .loader { display: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Portada: la escena 3D es opaca, así que la cuadrícula va por encima de ella y por debajo del texto */

/* ==========================================================================
   BOTÓN DE WHATSAPP · PIE LEGAL · AVISO DE COOKIES · PÁGINAS LEGALES · 404
   ========================================================================== */
.wa-dock { padding-left: 10px; border-radius: 999px; outline: 0; box-shadow: 0 0 0 3px rgba(31, 41, 55, .9), 0 14px 34px rgba(0, 0, 0, .35); }
.wa-dock__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper-ink); }
.wa-dock__ico svg { width: 22px; height: 22px; fill: #F3F5F8; }
html.con-aviso .wa-dock { transform: translateY(160%); }

.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__nav a, .sub-pie a { color: inherit; text-underline-offset: 3px; }
.footer__nav a:hover, .sub-pie a:hover { color: var(--ink); }

.ticket__rgpd { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--paper-muted); }
.ticket__rgpd a { color: inherit; }
/* Campo trampa para robots: invisible para personas y lectores de pantalla */
.trampa { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Aviso de cookies: rechazar y aceptar con el mismo peso */
.cookies {
  position: fixed; z-index: 120; left: clamp(12px, 2.4vw, 32px); bottom: calc(clamp(12px, 2.4vw, 32px) + env(safe-area-inset-bottom));
  width: min(420px, calc(100vw - 24px)); padding: 22px 22px 20px;
  background: var(--paper); color: var(--paper-ink); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
  opacity: 0; transform: translateY(24px); transition: opacity .4s var(--ease-out), transform .5s var(--ease-out);
}
.cookies.is-on { opacity: 1; transform: none; }
.cookies__t { margin: 0 0 6px; font-weight: 600; font-size: 19px; }
.cookies__p { margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: var(--paper-muted); }
.cookies__p a { color: var(--paper-ink); }
.cookies__b { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookies__btn {
  min-height: 46px; border-radius: 999px; cursor: pointer;
  font: 500 16px/1 "Outfit", sans-serif; color: var(--paper-ink);
  background: transparent; border: 2px solid var(--paper-ink);
}
.cookies__btn:hover { background: var(--paper-ink); color: var(--paper); }
.cookies__btn:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 2px; }

/* Páginas legales y 404 */
.sub-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px var(--gutter); border-bottom: 1px solid rgba(243, 245, 248, .1); }
.sub-bar__logo img { display: block; width: clamp(170px, 18vw, 230px); height: auto; }
.legal { max-width: 760px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gutter) clamp(80px, 10vw, 140px); }
.legal__kicker { margin: 0 0 14px; font-size: var(--t-s); letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.legal__h { margin: 0; font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -.03em; font-weight: 600; }
.legal__fecha { margin: 16px 0 28px; font-size: var(--t-s); color: var(--muted); }
.legal__lede { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; }
.legal h2 { margin: 56px 0 14px; font-size: clamp(22px, 2vw, 27px); font-weight: 600; letter-spacing: -.01em; }
.legal p, .legal li { color: #D5DCE5; line-height: 1.65; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--sky); text-underline-offset: 3px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal__datos { display: grid; margin: 0; border-top: 1px solid rgba(243, 245, 248, .12); }
.legal__datos > div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(243, 245, 248, .12); }
.legal__datos dt { color: var(--muted); }
.legal__datos dd { margin: 0; }
.legal__tabla { overflow-x: auto; margin: 0 0 18px; border-radius: 14px; border: 1px solid rgba(243, 245, 248, .12); }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(243, 245, 248, .1); }
.legal th { font-weight: 600; color: var(--muted); background: var(--bg-deep); }
.legal tr:last-child td { border-bottom: 0; }
.legal__tipo { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: rgba(111, 255, 233, .14); color: var(--aqua); }
.legal__tipo--opc { background: rgba(134, 207, 246, .14); color: var(--sky); }
.pendiente { background: rgba(255, 90, 95, .16); color: #FFB3B5; padding: 1px 6px; border-radius: 6px; }
.sub-pie { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(243, 245, 248, .1); font-size: var(--t-s); color: var(--muted); }
.sub-pie p { margin: 0; }
.sub-pie nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }

.e404 { min-height: calc(100svh - 190px); display: grid; align-content: center; justify-items: start; max-width: 900px; margin: 0 auto; padding: 64px var(--gutter); }
.e404__mark { width: 84px; margin-bottom: 30px; overflow: visible; }
.e404__body { fill: var(--ink); }
.e404__roof { fill: var(--accent); transform-origin: 50% 50%; animation: tejado404 2.8s var(--ease-io) infinite; }
.e404__win { fill: var(--aqua); }
@keyframes tejado404 { 0%, 100% { transform: translateY(0) rotate(0); } 45% { transform: translateY(-14px) rotate(-6deg); } }
.e404__h { margin: 0; font-size: clamp(44px, 8vw, 104px); line-height: .98; letter-spacing: -.035em; font-weight: 600; }
.e404__p { max-width: 46ch; margin: 22px 0 34px; font-size: clamp(18px, 1.6vw, 21px); color: #D5DCE5; }
.e404__acc { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }

@media (max-width: 640px) {
  .sub-bar .btn--small { display: none; }
  .legal__datos > div { grid-template-columns: 1fr; gap: 2px; }
  /* La tabla de cookies pasa a fichas */
  .legal table { min-width: 0; }
  .legal thead { display: none; }
  .legal tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid rgba(243, 245, 248, .1); }
  .legal tr:last-child { border-bottom: 0; }
  .legal td { padding: 0; border: 0; }
  .legal td:nth-child(3), .legal td:nth-child(4) { grid-column: 1 / -1; }
  .legal td:nth-child(2) { text-align: right; color: var(--muted); }
  .legal td:nth-child(4) { color: var(--muted); font-size: 14px; }
  .legal td:nth-child(4)::before { content: "Duración: "; }
  .cookies { left: 12px; right: 12px; width: auto; }
}
@media (max-width: 900px) {
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
.footer__redes a { display: block; }
.footer__redes a[hidden] { display: none; }

/* ==========================================================================
   CIFRAS · lo que la web promete, en cuatro números
   ========================================================================== */
.cifras {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0; padding: clamp(36px, 5vw, 64px) var(--gutter); list-style: none;
  background: var(--bg-deep); border-block: 1px solid rgba(243, 245, 248, .07);
}
.cifra { padding: 0 clamp(16px, 2.4vw, 40px); border-left: 1px solid rgba(243, 245, 248, .1); }
.cifra:first-child { border-left: 0; padding-left: 0; }
.cifra b { display: block; overflow: hidden; font-size: clamp(54px, 6.4vw, 104px); font-weight: 500; line-height: 1; letter-spacing: -.05em; color: var(--sky); }
.cifra b span { display: inline-block; transform: translateY(100%); transition: transform 1s var(--ease-out); transition-delay: var(--d, 0ms); }
.cifra.is-in b span, html:not(.js) .cifra b span { transform: none; }
.cifra:nth-child(3) b { color: var(--accent); }
.cifra p { margin: 12px 0 0; max-width: 22ch; color: #CBD3DD; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.4; }
.js .cifra[data-reveal] { transform: none; }
@media (max-width: 900px) {
  .cifras { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .cifra:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .cifra b span { transform: none; transition: none; } }
.tira__texto { display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; }
