/* ==========================================================
   Reformas Florentino — hoja de estilos
   Paleta: cal (fondo), tinta, ladrillo de Alcalá, verde botella
   ========================================================== */
/* Fuentes alojadas en el dominio (subconjunto latino) */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 600; font-display: swap; src: url(assets/fonts/fraunces.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 400; font-display: swap; src: url(assets/fonts/fraunces-italic.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(assets/fonts/inter-tight.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(assets/fonts/jetbrains-mono.woff2) format("woff2"); }

:root {
  --lime: #f1ebdf;
  --lime-2: #e7dfcf;
  --ink: #1b1a17;
  --ink-2: #3a3833;
  --muted: #6d675c;
  --brick: #b5532f;
  --brick-2: #d06a43;
  --bottle: #2e4a3f;
  --line: rgba(27, 26, 23, .16);

  --f-display: "Fraunces", Georgia, serif;
  --f-body: "Inter Tight", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --pad: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--lime);
  color: var(--ink);
  font: 400 17px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; margin: 0; letter-spacing: -.02em; }
em { font-style: italic; color: var(--brick); }
.mono { font-family: var(--f-mono); font-size: .78em; letter-spacing: .02em; }
::selection { background: var(--brick); color: var(--lime); }

/* Grano de papel */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05; transform: translateZ(0);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (max-width: 760px) { .grain { display: none; } }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--ink); --fg: var(--lime);
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.4em; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 500 1rem/1 var(--f-body); text-decoration: none; border: 1.5px solid var(--ink);
  cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brick);
  transform: translateY(101%); transition: transform .45s var(--ease); border-radius: inherit;
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn span { transition: transform .35s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); }
.btn--ghost:hover { color: var(--lime); }
.btn--small { padding: .7em 1.1em; font-size: .9rem; }
.btn--big { font-size: 1.1rem; padding: 1.1em 1.8em; }
:focus-visible { outline: 2px dashed var(--brick); outline-offset: 4px; }

/* ---------- Cabecera ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 14px var(--pad);
  transition: background .3s, backdrop-filter .3s, transform .4s var(--ease);
}
.top.is-scrolled { background: rgba(241, 235, 223, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__mark { width: 34px; height: 34px; }
.brand__name { font: 600 1.35rem/1 var(--f-display); letter-spacing: -.02em; display: flex; flex-direction: column; }
.brand__name small { font: 400 .62rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 2rem; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--brick); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 860px) { .nav { display: none; } }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: 110px var(--pad) 60px;
  position: relative;
}
.eyebrow { display: inline-flex; align-items: center; gap: .6em; margin: 0 0 1.4rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-family: var(--f-mono); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brick); box-shadow: 0 0 0 0 rgba(181,83,47,.6); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(181,83,47,0); } 100% { box-shadow: 0 0 0 0 rgba(181,83,47,0); } }

.hero__title { font-size: clamp(3rem, 6.8vw, 6.8rem); line-height: .92; font-weight: 350; font-variation-settings: "opsz" 144; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); animation: rise 1s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title .line:nth-child(3) > span { animation-delay: .24s; }
.hero__title em { font-weight: 300; }
.hero__title .eyebrow { display: flex; line-height: 1.4; font-weight: 400; font-variation-settings: normal; }
@keyframes rise { to { transform: none; } }

.hero__lead { max-width: 30rem; font-size: 1.12rem; color: var(--ink-2); margin: 1.8rem 0 2rem; opacity: 0; animation: fade .9s .5s var(--ease) forwards; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; opacity: 0; animation: fade .9s .65s var(--ease) forwards; }
.hero__mail { margin: 1rem 0 0; color: var(--ink-2); opacity: 0; animation: fade .9s .8s var(--ease) forwards; }
.hero__mail a { color: var(--brick); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.hero__hint { color: var(--muted); margin-top: 2rem; opacity: 0; animation: fade .9s 1.6s var(--ease) forwards; }
.hero__proof { display: inline-flex; align-items: center; gap: 14px; margin-top: 2rem; text-decoration: none; color: var(--ink-2); font-size: .95rem; opacity: 0; animation: fade .9s .8s var(--ease) forwards; }
.hero__proof strong { color: var(--ink); }
.hero__thumbs { display: flex; }
.hero__thumbs img { width: 40px; height: 52px; object-fit: cover; border-radius: 4px; border: 2px solid var(--lime); margin-left: -12px; box-shadow: 0 4px 12px rgba(27, 26, 23, .18); transition: transform .35s var(--ease); }
.hero__thumbs img:first-child { margin-left: 0; transform: rotate(-4deg); }
.hero__thumbs img:last-child { transform: rotate(4deg); }
.hero__proof:hover .hero__thumbs img { transform: translateY(-3px); }
.hero__proof:hover strong { color: var(--brick); }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Plano */
.plan { margin: 0; position: relative; }
.plan__sheet {
  background: #f7f3ea; border: 1px solid var(--line); padding: clamp(12px, 2vw, 24px);
  box-shadow: 0 1px 0 var(--line), 18px 18px 0 -1px var(--lime-2), 18px 18px 0 0 var(--line);
  transform: rotate(-1.2deg); transition: transform .8s var(--ease);
  position: relative;
}
.plan:hover .plan__sheet { transform: rotate(0); }
.plan__meta { display: flex; justify-content: space-between; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 10px; }
.plan__svg { width: 100%; height: auto; color: var(--ink); overflow: visible; }
.walls path { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: square; stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 2.4s .3s var(--ease) forwards; }
.doors path, .windows path { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.6s 1.4s var(--ease) forwards; }
.windows path { stroke-width: 1; }
.dims { stroke: var(--brick); stroke-width: 1; fill: var(--brick); opacity: 0; animation: fade .8s 2s forwards; }
.dims text { stroke: none; font-family: var(--f-mono); }
@keyframes draw { to { stroke-dashoffset: 0; } }

.room { cursor: pointer; outline: none; }
.room__hot { fill: url(#hatch); opacity: 0; transition: opacity .35s; }
.room .furn { fill: none; stroke: var(--ink); stroke-width: 1; opacity: 0; animation: fade .8s 1.8s forwards; }
.room__label { font: 600 13px var(--f-body); letter-spacing: .14em; text-anchor: middle; fill: var(--ink); opacity: 0; animation: fade .8s 2.1s forwards; }
.room__area { font-size: 10px; text-anchor: middle; fill: var(--muted); opacity: 0; animation: fade .8s 2.2s forwards; }
.room:hover .room__hot, .room:focus-visible .room__hot, .room.is-active .room__hot { opacity: .22; }
.room:hover .room__label, .room.is-active .room__label { fill: var(--brick); }

.plan__tag {
  position: absolute; left: clamp(-20px, -2vw, -8px); bottom: -22px;
  background: var(--ink); color: var(--lime); padding: 10px 14px; display: flex; flex-direction: column; gap: 2px;
  min-width: 190px; transform: rotate(1.2deg);
}
.plan__tag-room { color: var(--brick-2); text-transform: uppercase; letter-spacing: .14em; }
.plan__tag-trade { font-family: var(--f-display); font-size: 1.3rem; font-style: italic; }

.stork { position: absolute; width: clamp(60px, 8vw, 110px); right: -10px; top: -70px; color: var(--ink); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-3deg); } }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 100px; }
  .stork { top: -50px; right: 6px; }
}

/* ---------- Ticker ---------- */
.ticker { background: var(--ink); color: var(--lime); overflow: hidden; padding: 18px 0; transform: rotate(-1.5deg); margin: 40px -20px; border-block: 1px solid var(--ink); }
.ticker__track { display: flex; gap: 2rem; width: max-content; animation: marquee 40s linear infinite; font-family: var(--f-display); font-size: clamp(1.4rem, 3vw, 2.4rem); font-style: italic; }
.ticker i { color: var(--brick-2); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifiesto ---------- */
.manifesto { padding: clamp(80px, 14vw, 180px) var(--pad); max-width: 1200px; margin: 0 auto; }
.manifesto__text { font-family: var(--f-display); font-size: clamp(1.7rem, 4.2vw, 3.6rem); line-height: 1.15; margin: 0; letter-spacing: -.015em; font-weight: 350; }
.reveal-words .w { opacity: .14; transition: opacity .4s; }
.reveal-words .w.on { opacity: 1; }

/* ---------- Encabezados de sección ---------- */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head .eyebrow { grid-column: 1 / -1; margin: 0; }
.section-head h2 { font-size: clamp(2.4rem, 6vw, 5rem); line-height: .98; font-weight: 350; }
.section-head__aside { color: var(--muted); max-width: 26rem; margin: 0; justify-self: end; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } .section-head__aside { justify-self: start; } }

/* ---------- Oficios ---------- */
.trades { padding: 40px var(--pad) clamp(80px, 10vw, 140px); }
.trade-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); counter-reset: t; }
.trade {
  display: grid; grid-template-columns: 70px minmax(0, 1.2fr) minmax(0, 1fr) 72px; align-items: center; gap: 1rem 2rem;
  padding: 26px 0; border-bottom: 1px solid var(--ink); position: relative; isolation: isolate; cursor: default;
  scroll-margin-top: 100px;
}
.trade::before { content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); background: var(--ink); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.trade:hover::before, .trade:target::before { transform: scaleY(1); }
.trade:hover, .trade:target { color: var(--lime); }
.trade__n { color: var(--brick); }
.trade__name { font-size: clamp(1.8rem, 4.4vw, 3.6rem); line-height: 1; transition: transform .5s var(--ease), font-style .3s; }
.trade:hover .trade__name, .trade:target .trade__name { transform: translateX(14px); font-style: italic; }
.trade__desc { margin: 0; color: var(--muted); transition: color .3s; max-width: 32rem; }
.trade:hover .trade__desc, .trade:target .trade__desc { color: #cfc7b8; }
.trade__icon { width: 56px; height: 56px; justify-self: end; }
.trade__icon path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 1.1s var(--ease); }
.trade.in .trade__icon path { stroke-dashoffset: 0; }
.trade:hover .trade__icon path { stroke: var(--brick-2); }
@media (max-width: 760px) {
  .trade { grid-template-columns: 44px 1fr 44px; }
  .trade__desc { grid-column: 2 / 4; grid-row: 2; }
  .trade__icon { width: 40px; height: 40px; grid-column: 3; grid-row: 1; }
}

/* ---------- Obras reales ---------- */
.works { padding: clamp(80px, 10vw, 140px) var(--pad); background: var(--lime-2); }
.works__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.works__filters button { font: 500 .95rem var(--f-body); color: var(--ink); background: transparent; border: 1.5px solid var(--ink); border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: background .25s, color .25s; }
.works__filters button:hover { background: rgba(27, 26, 23, .08); }
.works__filters button.is-on { background: var(--ink); color: var(--lime); }
.works__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: clamp(8px, 1.2vw, 16px); }
.work { aspect-ratio: 3 / 4; position: relative; overflow: hidden; background: var(--ink); border-radius: 4px; transition: opacity .7s var(--ease), transform .7s var(--ease); }
/* Las fotos solo se ocultan para animarlas cuando main.js está activo: sin JS (o con un main.js antiguo en caché) siguen visibles */
.works__grid.is-anim .work:not(.in) { opacity: 0; transform: translateY(24px); }
.work.is-big { grid-column: span 2; grid-row: span 2; }
.work[hidden] { display: none; }
.work__link { display: block; width: 100%; height: 100%; color: var(--lime); text-decoration: none; }
.work picture, .work img { width: 100%; height: 100%; }
.work img { object-fit: cover; transition: transform 1.2s var(--ease), opacity .4s; }
.work__link:hover img, .work__link:focus-visible img { transform: scale(1.05); }
.work__link:focus-visible { outline-offset: -6px; outline-color: var(--lime); }
.work__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; display: flex; flex-direction: column; gap: 2px; font: 400 clamp(1rem, 1.5vw, 1.25rem)/1.15 var(--f-display); background: linear-gradient(transparent, rgba(27, 26, 23, .9) 70%); }
.work.is-big .work__cap { font-size: clamp(1.2rem, 2.4vw, 2rem); padding: 60px 20px 18px; }
.work__cap .mono { color: #f3b596; text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; font-family: var(--f-mono); }
.works__cta { grid-column: span 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.2rem; padding: clamp(20px, 3vw, 40px); border: 1.5px solid var(--ink); border-radius: 4px; }
.works__cta p { margin: 0; font: 400 clamp(1.4rem, 2.6vw, 2.2rem)/1.1 var(--f-display); }
@media (max-width: 1000px) { .works__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work__cap { padding: 30px 10px 8px; font-size: .95rem; }
  .works__filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scrollbar-width: none; }
  .works__filters button { flex: none; }
}

/* Visor de fotos */
.lightbox { border: 0; padding: 0; margin: auto; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(20, 19, 17, .96); color: var(--lime); }
.lightbox::backdrop { background: rgba(20, 19, 17, .9); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; animation: fade .35s var(--ease); }
.lightbox img { max-width: min(92vw, 1000px); max-height: calc(100dvh - 110px); width: auto; height: auto; object-fit: contain; margin-top: 24px; }
.lightbox__cap { margin: 0; padding: 14px var(--pad) 22px; font: italic 400 clamp(1rem, 2vw, 1.3rem) var(--f-display); text-align: center; }
.lightbox__btn { position: fixed; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(241, 235, 223, .35); background: rgba(27, 26, 23, .6); color: var(--lime); font: 300 1.5rem/1 var(--f-body); cursor: pointer; display: grid; place-items: center; transition: background .25s; }
.lightbox__btn:hover { background: var(--brick); border-color: var(--brick); }
.lightbox__close { top: 16px; right: 16px; font-size: 2rem; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; } .lightbox__cap { padding-bottom: 84px; } }

/* ---------- Antes / Después ---------- */
.ba { background: var(--ink); color: var(--lime); padding: clamp(80px, 10vw, 140px) var(--pad); }
.section-head--light .section-head__aside, .section-head--light .eyebrow { color: #a59e90; }
.section-head--light em { color: var(--brick-2); }
.ba__stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; user-select: none; touch-action: pan-y; cursor: ew-resize; --pos: 50%; }
.ba__layer { position: absolute; inset: 0; }
.ba__layer svg { width: 100%; height: 100%; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__badge { position: absolute; top: 16px; padding: 6px 10px; background: var(--ink); color: var(--lime); letter-spacing: .14em; }
.ba__after .ba__badge { right: 16px; background: var(--brick); }
.ba__before .ba__badge { left: 16px; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--lime); transform: translateX(-1px); }
.ba__knob { position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; border-radius: 50%; background: var(--lime); color: var(--ink); transform: translate(-50%, -50%); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .3s var(--ease); }
.ba__stage:active .ba__knob { transform: translate(-50%, -50%) scale(.9); }
.ba__knob svg { width: 26px; }
.ba__knob path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 600px) { .ba__stage { aspect-ratio: 4 / 3.4; } }

/* ---------- Método ---------- */
.method { padding: clamp(80px, 10vw, 140px) var(--pad); position: relative; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.step { padding-top: 70px; position: relative; opacity: .25; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.step.in { opacity: 1; transform: none; }
.step__n { position: absolute; top: 0; left: 0; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--ink); font: italic 1.4rem var(--f-display); background: var(--lime); z-index: 1; transition: background .4s, color .4s; }
.step.in .step__n { background: var(--brick); border-color: var(--brick); color: var(--lime); }
.step h3 { font-size: 1.8rem; margin-bottom: .5rem; }
.step p { color: var(--muted); margin: 0; }
.method__rail { position: absolute; left: var(--pad); right: var(--pad); height: 1.5px; background: var(--line); top: 0; }
.method__progress { display: block; height: 100%; background: var(--brick); width: 100%; transform: scaleX(0); transform-origin: left; will-change: transform; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 2.4rem; padding-left: 70px; }
  .step { padding-top: 0; }
  .step__n { left: -70px; }
  .method__rail { display: none; }
}

/* ---------- Zona ---------- */
.zone { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; padding: clamp(80px, 10vw, 140px) var(--pad); background: var(--lime-2); }
.zone h2 { font-size: clamp(2.4rem, 6vw, 5rem); line-height: .98; font-weight: 350; margin-bottom: 1.4rem; }
.zone__text > p { color: var(--ink-2); max-width: 34rem; }
.zone__list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.zone__list li { border: 1px solid var(--ink); padding: 6px 12px; border-radius: 999px; transition: background .3s, color .3s; }
.zone__list li:hover { background: var(--ink); color: var(--lime); }
.zone__map svg { width: 100%; height: auto; overflow: visible; }
.rings circle { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 6; opacity: .4; transform-origin: 220px 190px; animation: spin 60s linear infinite; }
.rings circle:nth-child(2n) { animation-direction: reverse; animation-duration: 90s; }
@keyframes spin { to { transform: rotate(360deg); } }
.river { fill: none; stroke: #6f93a8; stroke-width: 6; stroke-linecap: round; opacity: .6; }
.road { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 10 6; }
.town circle { fill: var(--ink); }
.town text, .home text { font: 500 12px var(--f-mono); text-anchor: middle; fill: var(--ink); }
.home circle { fill: var(--brick); }
.home text { font-size: 14px; font-weight: 600; fill: var(--brick); letter-spacing: .12em; }
.pulse { animation: pulse 2.4s ease-out infinite; transform-origin: 220px 190px; }
@keyframes pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(5); opacity: 0; } }
@media (max-width: 860px) { .zone { grid-template-columns: 1fr; } .zone__map { max-width: 420px; } }

/* ---------- Presupuesto ---------- */
.quote { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 90px); padding: clamp(80px, 10vw, 140px) var(--pad); }
.quote h2 { font-size: clamp(2.6rem, 7vw, 6rem); line-height: .95; font-weight: 350; margin-bottom: 1.4rem; }
.quote__intro > p { color: var(--ink-2); max-width: 28rem; }
.contact-lines { margin-top: 2rem; display: grid; gap: 10px; }
.contact-lines a { display: flex; align-items: baseline; gap: 12px; text-decoration: none; font: 400 clamp(1.4rem, 3vw, 2.2rem)/1.1 var(--f-display); border-bottom: 1px solid var(--line); padding-bottom: 10px; transition: color .3s; overflow-wrap: anywhere; }
.contact-lines a small { font: 400 .7rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); min-width: 80px; }
.contact-lines a:hover { color: var(--brick); }
.contact-lines__mail { font-size: clamp(1.05rem, 2.2vw, 1.6rem) !important; }
.quote__send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.quote__form { background: #f7f3ea; border: 1px solid var(--ink); padding: clamp(20px, 3.5vw, 44px); display: grid; gap: 28px; position: relative; box-shadow: 12px 12px 0 var(--ink); }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend, .range label, .field span { font: 500 .78rem var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; padding: 0; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 9px 16px; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 500; transition: background .25s, color .25s, transform .25s var(--ease); }
.chips input:checked + span { background: var(--ink); color: var(--lime); transform: translateY(-2px); }
.chips input:focus-visible + span { outline: 2px dashed var(--brick); outline-offset: 3px; }
.range label { display: flex; justify-content: space-between; }
.range output { color: var(--brick); font-size: 1rem; }
input[type=range] { width: 100%; appearance: none; -webkit-appearance: none; background: transparent; height: 28px; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: var(--ink); }
input[type=range]::-moz-range-track { height: 2px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -11px; border-radius: 50%; background: var(--brick); border: 3px solid #f7f3ea; box-shadow: 0 0 0 1.5px var(--ink); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--brick); border: 3px solid #f7f3ea; box-shadow: 0 0 0 1.5px var(--ink); cursor: grab; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; }
.field--wide { grid-column: 1 / -1; }
.field input, .field textarea { font: 400 1.05rem var(--f-body); color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid var(--ink); padding: 8px 0; border-radius: 0; resize: vertical; transition: border-color .3s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brick); }
.field.invalid input { border-color: var(--brick); }
.quote__status { min-height: 1.4em; margin: -10px 0 0; color: var(--bottle); }
@media (max-width: 860px) { .quote { grid-template-columns: 1fr; } .quote__form { box-shadow: 8px 8px 0 var(--ink); } }
@media (max-width: 520px) { .fields { grid-template-columns: 1fr; } }

/* ---------- Pie ---------- */
.foot { background: var(--ink); color: var(--lime); padding: 40px var(--pad) 28px; overflow: hidden; }
.foot__word { font: italic 300 clamp(4rem, 19vw, 20rem)/.8 var(--f-display); letter-spacing: -.05em; margin: 0 0 30px -.04em; color: var(--brick); white-space: nowrap; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(241,235,223,.2); padding-top: 20px; font-size: .9rem; }
.foot__row p { margin: 0; }
.foot a { text-decoration: none; }

/* Iconos */
.ico { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--phone { font-family: var(--f-mono); letter-spacing: .02em; }
.hero__lead strong { font-weight: 600; color: var(--ink); }

/* ---------- Preguntas frecuentes ---------- */
.faq { padding: clamp(80px, 10vw, 140px) var(--pad); }
.faq__list { border-top: 1px solid var(--ink); max-width: 980px; }
.faq details { border-bottom: 1px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 24px 0; font: 400 clamp(1.25rem, 2.6vw, 1.9rem)/1.2 var(--f-display); transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 2rem/1 var(--f-body); color: var(--brick); transition: transform .4s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--brick); }
.faq details p { margin: 0; padding: 0 0 26px; max-width: 44rem; color: var(--ink-2); }
.faq details p a { color: var(--brick); font-weight: 600; }

/* Pie: llamada final */
.foot__cta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 30px; }
.foot__cta p { margin: 0; font: italic 300 clamp(1.6rem, 4vw, 3rem) var(--f-display); }
.foot__cta a { font: 400 clamp(2rem, 7vw, 5.5rem)/1 var(--f-display); letter-spacing: -.02em; text-decoration: none; border-bottom: 2px solid var(--brick); transition: color .3s; }
.foot__cta a:hover { color: var(--brick-2); }
.foot__cta .foot__mail { flex-basis: 100%; font: 400 clamp(1.1rem, 3vw, 1.8rem)/1.2 var(--f-body); letter-spacing: 0; border-bottom: 0; text-decoration: underline; text-decoration-color: var(--brick); text-underline-offset: 6px; overflow-wrap: anywhere; }
.foot__row a { text-decoration: underline; text-underline-offset: 3px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 26px; color: #a59e90; }
.foot__links a:hover { color: var(--lime); }

/* Barra de contacto (móvil) */
.dock { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: none; gap: 8px; transform: translateY(150%); transition: transform .45s var(--ease); }
.dock.show { transform: none; }
.dock a { flex: 1; display: flex; align-items: center; justify-content: center; gap: .5em; padding: 15px 10px; border-radius: 999px; font-weight: 600; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.dock__call { background: var(--brick); color: #fff; }
.dock__wa { background: var(--ink); color: var(--lime); border: 1px solid rgba(241, 235, 223, .3); }
@media (max-width: 860px) {
  .dock { display: flex; }
  .foot { padding-bottom: 96px; }
  .top .btn--phone { padding: .65em .9em; font-size: .8rem; }
}

/* Rendimiento: pausar animaciones infinitas fuera de pantalla.
   (Sin content-visibility: con alturas estimadas, los enlaces del menú caían en la sección equivocada) */
.is-offscreen, .is-offscreen * { animation-play-state: paused !important; }

/* Reveal genérico */
@media (prefers-reduced-motion: reduce) { .works__grid.is-anim .work:not(.in) { opacity: 1; transform: none; } }
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
}

/* Enlace a la página de cada servicio */
.trade__more { color: var(--brick); font-weight: 600; text-decoration: none; white-space: nowrap; }
.trade__more span { display: inline-block; transition: transform .35s var(--ease); }
.trade__more:hover span { transform: translateX(4px); }
.trade:hover .trade__more, .trade:target .trade__more { color: var(--brick-2); }

/* ==========================================================
   Páginas de servicio
   ========================================================== */
.svc-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: 120px var(--pad) clamp(60px, 8vw, 110px); }
.crumbs { margin: 0 0 1.6rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4em; margin: 0; padding: 0; text-transform: uppercase; letter-spacing: .12em; }
.crumbs li + li::before { content: "/"; margin-right: .4em; color: var(--brick); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--brick); }
.svc-hero h1 { font-size: clamp(2.6rem, 6vw, 5.6rem); line-height: .95; font-weight: 350; font-variation-settings: "opsz" 144; margin-bottom: 1.6rem; }
.svc-hero h1 em { font-weight: 300; }
.svc-hero__lead { font-size: 1.12rem; color: var(--ink-2); max-width: 34rem; margin: 0 0 2rem; }
.svc-hero__lead strong { color: var(--ink); font-weight: 600; }
.svc-hero__pic { position: relative; margin: 0; }
.svc-hero__pic img { width: 100%; aspect-ratio: 4 / 5; max-height: min(76svh, 760px); object-fit: cover; border-radius: 4px; box-shadow: 18px 18px 0 -1px var(--lime-2), 18px 18px 0 0 var(--line); }
.svc-hero__pic figcaption { position: absolute; left: -12px; bottom: 24px; background: var(--ink); color: var(--lime); padding: 10px 14px; font: italic 400 1.1rem var(--f-display); transform: rotate(-1.2deg); max-width: 80%; }
@media (max-width: 860px) {
  .svc-hero { grid-template-columns: 1fr; padding-top: 100px; }
  .svc-hero__pic img { aspect-ratio: 4 / 3.4; }
}

.svc-body { padding: clamp(70px, 9vw, 130px) var(--pad); background: var(--lime-2); }
.svc-body__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); }
.svc-body__text p { color: var(--ink-2); max-width: 36rem; margin: 0 0 1.1rem; }
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); counter-reset: s; }
.svc-list li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 0 12px; padding: 16px 0; border-bottom: 1px solid var(--ink); }
.svc-list li::before { content: counter(s, decimal-leading-zero); font: .78rem var(--f-mono); color: var(--brick); padding-top: .45em; }
.svc-list strong { font: 400 1.35rem/1.2 var(--f-display); display: block; }
.svc-list span { color: var(--muted); }
@media (max-width: 860px) { .svc-body__grid { grid-template-columns: 1fr; } }

.svc-works { padding: clamp(70px, 9vw, 130px) var(--pad); background: var(--lime); }
.svc-works .works__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) {
  .svc-works .works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-works .work:last-child:nth-child(odd) { grid-column: span 2; aspect-ratio: 4 / 3; }
}

.svc-cta { background: var(--ink); color: var(--lime); padding: clamp(70px, 9vw, 130px) var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; }
.svc-cta h2 { font-size: clamp(2.4rem, 6vw, 5rem); line-height: .98; font-weight: 350; }
.svc-cta em { color: var(--brick-2); }
.svc-cta > div > p { color: #cfc7b8; max-width: 30rem; }
.svc-cta .contact-lines a { border-color: rgba(241, 235, 223, .2); }
.svc-cta .contact-lines a small { color: #a59e90; }
.svc-cta .contact-lines a:hover { color: var(--brick-2); }
.svc-cta .btn { --bg: var(--lime); --fg: var(--ink); border-color: var(--lime); margin-top: 1.6rem; }
.svc-cta .btn:hover { color: var(--lime); }
@media (max-width: 860px) { .svc-cta { grid-template-columns: 1fr; } }

.svc-more { padding: clamp(70px, 9vw, 130px) var(--pad); background: var(--lime-2); }
.svc-more__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.svc-more__list a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 22px 20px; border: 1.5px solid var(--ink); border-radius: 4px; text-decoration: none; font: 400 clamp(1.2rem, 2vw, 1.5rem)/1.15 var(--f-display); transition: background .3s, color .3s; }
.svc-more__list a::after { content: "→"; flex: none; font-family: var(--f-body); color: var(--brick); transition: transform .35s var(--ease); }
.svc-more__list a:hover { background: var(--ink); color: var(--lime); }
.svc-more__list a:hover::after { transform: translateX(4px); color: var(--brick-2); }
.svc-more .zone__list { margin-top: 2.4rem; }

/* Página no encontrada */
.notfound { min-height: 100svh; display: grid; place-content: center; gap: 1.4rem; padding: 120px var(--pad) 80px; }
.notfound h1 { font-size: clamp(3rem, 9vw, 8rem); line-height: .92; font-weight: 350; }
.notfound p { color: var(--ink-2); max-width: 34rem; margin: 0; }
.notfound .hero__cta, .svc-hero .hero__cta { opacity: 1; animation: none; }

/* Accesibilidad: saltar al contenido */
.skip { position: fixed; left: 12px; top: 12px; z-index: 200; background: var(--ink); color: var(--lime); padding: 10px 16px; border-radius: 999px; text-decoration: none; transform: translateY(-160%); transition: transform .3s var(--ease); }
.skip:focus { transform: none; }
.notfound .zone__list a { text-decoration: none; }
