/* Trabajos en Piedra Canarias — hoja de estilos principal.
   Concepto: «piedra a piedra». Basalto, toba y arena de Gran Canaria, con el naranja y el marrón de la marca.
   Los muros que aparecen en la web se dibujan con /js/stones.js (aparejos reales, sin fotos de banco). */
:root {
  --basalt: #1b1613;
  --basalt-2: #241e1a;
  --basalt-3: #31291f;
  --brown: #584431;
  --brown-2: #6d5440;
  --orange: #d77e00;
  --orange-hi: #ef9a1f;
  --orange-soft: #fbe8cc;
  --cream: #f7f1e7;
  --sand: #efe6d7;
  --sand-2: #e4d7c3;
  --ink: #2a211b;
  --muted: #74675a;
  --line: #e2d6c4;
  --white: #fffdf9;
  --serif: 'Fraunces Variable', Georgia, 'Times New Roman', serif;
  --font: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --radius: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 30px 60px -34px rgba(27, 22, 19, .55);
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3 { font-family: var(--serif); font-optical-sizing: auto; font-variation-settings: 'SOFT' 50, 'WONK' 0; font-weight: 600; line-height: 1.02; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--basalt); }
h1 em, h2 em { font-style: italic; font-variation-settings: 'SOFT' 100, 'WONK' 1; color: var(--orange); }
p { margin: 0 0 1em; }
.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--orange); color: var(--basalt); border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
[hidden] { display: none !important; }
main { display: block; overflow-x: clip; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.stones { display: block; width: 100%; height: 100%; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 11px 24px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: .96rem; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-orange { background: var(--orange); color: var(--white); box-shadow: 0 14px 30px -14px rgba(215, 126, 0, .9); }
.btn-orange:hover { background: var(--orange-hi); }
.btn-dark { background: var(--basalt); color: var(--white); }
.btn-dark:hover { background: var(--brown); }
.btn-glass { background: rgba(255, 255, 255, .08); color: var(--white); border-color: rgba(255, 255, 255, .3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .16); }
.btn-outline { background: transparent; color: var(--basalt); border-color: var(--basalt); }
.btn-outline:hover { background: var(--basalt); color: var(--white); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--orange); text-decoration: none; }
.text-link .icon { transition: transform .25s var(--ease); }
a:hover .text-link .icon, .text-link:hover .icon { transform: translateX(4px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); }
.kicker::before { content: ''; width: 26px; height: 2px; background: currentColor; }
.kicker-plain::before { display: none; }
.kicker-light { color: var(--orange-hi); }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 241, 231, .88); backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px); border-bottom: 1px solid rgba(88, 68, 49, .1); transition: background .3s, box-shadow .3s, color .3s; }
.site-header.is-scrolled { background: rgba(247, 241, 231, .97); box-shadow: 0 10px 30px -24px rgba(27, 22, 19, .7); }
.is-home .site-header:not(.is-scrolled) { background: linear-gradient(180deg, rgba(27, 22, 19, .7), transparent); backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; color: var(--white); }
.header-inner { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; color: inherit; }
.brand-mark { width: 50px; height: 52px; }
.brand-mark-light { display: none; }
.is-home .site-header:not(.is-scrolled) .brand-mark-dark { display: none; }
.is-home .site-header:not(.is-scrolled) .brand-mark-light { display: block; }
.brand-word { display: grid; font-family: var(--serif); line-height: 1; }
.brand-word small { font-family: var(--font); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.brand-word b { font-weight: 650; font-size: 1.32rem; letter-spacing: -.01em; }
.brand-word b span { color: var(--orange); }
.main-nav { flex: 1; display: flex; align-items: center; gap: 18px; }
.main-nav ul { display: flex; gap: 2px; list-style: none; margin: 0 auto; padding: 0; }
.main-nav ul a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; opacity: .86; transition: background .2s, opacity .2s; }
.main-nav ul a:hover { opacity: 1; background: rgba(88, 68, 49, .08); }
.is-home .site-header:not(.is-scrolled) .main-nav ul a:hover { background: rgba(255, 255, 255, .12); }
.main-nav ul a.is-active { opacity: 1; color: var(--orange); }
.nav-phone { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.nav-phone .icon { color: var(--orange); }
.header-cta { min-height: 44px; padding: 9px 20px; }
.nav-toggle { display: none; }

/* ---------- Hiladas: el muro sube al recorrer la página (escritorio) ---------- */
.courses { position: fixed; right: 16px; top: 50%; z-index: 30; display: grid; justify-items: center; gap: 8px; transform: translateY(-50%); pointer-events: none; opacity: 0; transition: opacity .4s; }
.courses.is-on { opacity: 1; }
.courses-label { font-family: var(--mono); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; transform: rotate(180deg); }
.courses-wall { position: relative; width: 26px; height: 42vh; border-radius: 4px; overflow: hidden; background: rgba(88, 68, 49, .08); }
.courses-wall svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.courses-wall .stone { opacity: 0; transform: translateY(-30px); transition: opacity .25s, transform .35s var(--ease); }
.courses-wall .stone.is-set { opacity: 1; transform: none; }
.courses-value { font-family: var(--mono); font-size: .7rem; font-weight: 700; color: var(--brown); background: rgba(255, 253, 249, .92); padding: 2px 7px; border-radius: 6px; box-shadow: 0 4px 10px -6px rgba(0, 0, 0, .4); }

/* ---------- Portada ---------- */
.hero { position: relative; min-height: min(100svh, 940px); display: grid; align-items: center; color: var(--white); background: var(--basalt); overflow: hidden; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 50px) 0 190px; }
.hero-slides { position: absolute; inset: 0; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.1); transition: opacity 1.6s ease, transform 9s linear; }
.hero-slides img.is-on { opacity: 1; transform: scale(1); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(27, 22, 19, .94) 0%, rgba(27, 22, 19, .7) 50%, rgba(27, 22, 19, .25) 100%), linear-gradient(0deg, rgba(27, 22, 19, .7) 0%, transparent 45%); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.4fr .6fr; gap: 50px; align-items: end; }
.hero h1 { color: var(--white); font-size: clamp(3.4rem, 9vw, 8.4rem); line-height: .9; margin-bottom: 18px; font-weight: 500; }
.hero h1 em { color: var(--orange-hi); }
.hero-tag { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.2vw, 1.7rem); color: var(--sand); margin: 0 0 22px; font-variation-settings: 'SOFT' 100; }
.hero-lead { font-size: 1.08rem; color: rgba(255, 255, 255, .8); max-width: 36em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Cartela de museo con la obra que se ve de fondo */
.cartela { display: block; padding: 20px 22px; border-radius: 6px; background: var(--cream); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transform: rotate(-1.5deg); transition: transform .4s var(--ease); max-width: 330px; justify-self: end; }
.cartela:hover { transform: rotate(0) translateY(-4px); }
.cartela-k { font-family: var(--mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; display: flex; justify-content: space-between; gap: 10px; }
.cartela h2 { font-size: 1.5rem; margin: 0 0 6px; }
.cartela p { margin: 0; font-size: .9rem; color: var(--muted); }
.cartela .text-link { margin-top: 12px; font-size: .88rem; }
.cartela-bar { display: flex; gap: 5px; margin-top: 14px; }
.cartela-bar span { height: 3px; flex: 1; border-radius: 2px; background: var(--sand-2); position: relative; overflow: hidden; }
.cartela-bar span.is-on::after { content: ''; position: absolute; inset: 0; background: var(--orange); animation: fill 6.5s linear forwards; transform-origin: left; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* Muro que se levanta al cargar */
.hero-wall { position: absolute; z-index: 2; left: 0; right: 0; bottom: -2px; height: 150px; }
.hero-wall .stone { animation: lay .7s var(--ease) both; animation-delay: calc(400ms + var(--row) * 260ms + (var(--i) * 6ms)); }
@keyframes lay { from { opacity: 0; transform: translateY(-60px); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
.hero-down { position: absolute; z-index: 3; left: 50%; bottom: 170px; display: grid; place-items: center; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); color: var(--white); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .hero-slides img { transition: opacity .6s; transform: none !important; }
  .hero-down, .cartela-bar span.is-on::after, .hero-wall .stone { animation: none !important; }
}

/* ---------- Cifras ---------- */
.stats { background: var(--basalt); color: var(--sand); padding: 26px 0 60px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 10px 24px; border-left: 1px solid rgba(239, 230, 215, .14); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--white); }
.stat strong span { color: var(--orange-hi); }
.stat > span { font-size: .86rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: rgba(239, 230, 215, .65); }

/* ---------- Secciones ---------- */
.section { padding: 110px 0; position: relative; }
.section-tight { padding: 60px 0 100px; }
.section-sand { background: var(--sand); }
.section-white { background: var(--white); }
.section-dark { background: var(--basalt); color: rgba(239, 230, 215, .78); overflow: hidden; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(2.3rem, 4.8vw, 4rem); }
.section-head > p:last-child { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-dark .section-head > p:last-child { color: rgba(239, 230, 215, .7); }
.section-head-split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; text-align: left; }
.section-head-split h2 { margin: 0; }
.section-head-split > p { max-width: 32em; }
.section-head-left { text-align: left; margin-left: 0; }

/* ---------- Oficios (servicios) ---------- */
.trades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: trade; }
.trade { position: relative; display: flex; flex-direction: column; min-height: 330px; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); text-decoration: none; isolation: isolate; transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.trade:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.trade-wall { position: relative; height: 130px; overflow: hidden; background: var(--sand-2); }
.trade-wall img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .5s, transform .9s var(--ease); }
.trade:hover .trade-wall img, .trade:focus-visible .trade-wall img { opacity: 1; transform: none; }
.trade-num { position: absolute; z-index: 1; left: 18px; top: 14px; font-family: var(--mono); font-size: .76rem; font-weight: 700; color: var(--white); background: rgba(27, 22, 19, .7); padding: 3px 8px; border-radius: 6px; }
.trade-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 22px 24px 24px; }
.trade-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-top: -46px; border-radius: 14px; background: var(--orange); color: var(--white); box-shadow: 0 10px 20px -10px rgba(215, 126, 0, .9); position: relative; z-index: 1; }
.trade-icon .icon { width: 26px; height: 26px; }
.trade h2, .trade h3 { font-size: 1.45rem; margin: 6px 0 0; }
.trade p { margin: 0; color: var(--muted); font-size: .94rem; }
.trade .text-link { margin-top: auto; padding-top: 10px; }

/* ---------- Explorador de aparejos ---------- */
.bonds > *, .calc-grid > *, .map-grid > *, .restore-grid > *, .why-grid > *, .hero-inner > *, .job-detail > *, .svc-detail > *, .contact-grid > * { min-width: 0; }
.bonds { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.bonds h2 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); }
.bond-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 24px; padding: 0; list-style: none; }
.bond-tab { min-height: 44px; padding: 9px 18px; border-radius: 999px; border: 1.5px solid rgba(239, 230, 215, .22); background: transparent; color: var(--sand); font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.bond-tab:hover { border-color: var(--orange-hi); }
.bond-tab[aria-selected="true"] { background: var(--orange); border-color: var(--orange); color: var(--white); }
.bond-text { min-height: 7.5em; }
.bond-text h3 { font-size: 1.9rem; margin-bottom: 10px; }
.bond-text p { font-size: 1.06rem; }
.bond-stage { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--basalt-2); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.bond-stage .stone { animation: lay .55s var(--ease) both; animation-delay: calc(var(--row) * 110ms + var(--i) * 4ms); }
.bond-rebuild { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 0; background: rgba(27, 22, 19, .78); color: var(--white); font-weight: 600; font-size: .85rem; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bond-rebuild:hover { background: var(--orange); }
@media (prefers-reduced-motion: reduce) { .bond-stage .stone { animation: none; } }

/* ---------- Antes y después ---------- */
.ba { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--sand-2); box-shadow: var(--shadow); --pos: 50%; user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--white); box-shadow: 0 0 20px rgba(0, 0, 0, .5); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; background: var(--orange); color: var(--white); box-shadow: 0 10px 20px -6px rgba(0, 0, 0, .6); }
.ba-label { position: absolute; top: 16px; padding: 5px 12px; border-radius: 999px; background: rgba(27, 22, 19, .75); color: var(--white); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; }
.ba-label-before { left: 16px; }
.ba-label-after { right: 16px; background: var(--orange); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba input:focus-visible ~ .ba-line .ba-knob { outline: 3px solid var(--white); outline-offset: 3px; }
.restore-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.restore-grid h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }

/* ---------- Calculadora de muro ---------- */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.calc-grid h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.calc { margin-top: 26px; display: grid; gap: 18px; }
.calc-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.calc-field { position: relative; display: grid; gap: 6px; }
.calc-field span { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.calc-field input { width: 100%; min-height: 58px; padding: 10px 44px 10px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); color: var(--basalt); font: 600 1.4rem var(--font); -moz-appearance: textfield; }
.calc-field input::-webkit-outer-spin-button, .calc-field input::-webkit-inner-spin-button { -webkit-appearance: none; }
.calc-field input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(215, 126, 0, .14); }
.calc-field em { position: absolute; right: 14px; bottom: 18px; font-style: normal; font-weight: 700; color: var(--muted); }
.calc-types { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.calc-types label { position: relative; }
.calc-types input { position: absolute; opacity: 0; }
.calc-types span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-weight: 600; font-size: .9rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.calc-types input:checked + span { background: var(--basalt); color: var(--white); border-color: var(--basalt); }
.calc-types input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.calc-result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-radius: 16px; overflow: hidden; background: var(--line); }
.calc-result div { padding: 16px 18px; background: var(--white); }
.calc-result small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.calc-result strong { font-family: var(--serif); font-weight: 600; font-size: 2.4rem; line-height: 1.05; color: var(--orange); }
.calc-result span { margin-left: 4px; font-weight: 700; }
.calc .btn { justify-self: start; }
.calc-note { margin: 0; font-size: .82rem; color: var(--muted); }
.calc-visual { position: relative; }
.calc-elev { position: relative; aspect-ratio: 2 / 1; border-radius: var(--radius); background: linear-gradient(180deg, #dfe8ec 0%, #f3ede2 70%); overflow: hidden; box-shadow: var(--shadow); }
.calc-elev-inner { position: absolute; left: 5%; right: 5%; bottom: 16%; top: 10%; }
.calc-elev-wall { position: absolute; left: 0; bottom: 0; border-radius: 3px 3px 0 0; overflow: hidden; transition: width .35s var(--ease), height .35s var(--ease); }
.calc-elev-person { position: absolute; bottom: 0; height: 0; transition: height .35s var(--ease); }
.calc-elev-person img { height: 100%; width: auto; max-width: none; }
.calc-elev-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 16%; background: repeating-linear-gradient(90deg, rgba(88, 68, 49, .12) 0 2px, transparent 2px 18px), #cdbba0; }
.calc-dims { margin-top: 12px; text-align: center; font-family: var(--mono); font-weight: 700; color: var(--brown); }

/* ---------- Mapa de obras ---------- */
.map-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: center; }
.map-grid h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.map-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.map-list a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); text-decoration: none; transition: border-color .2s, background .2s; }
.map-list a:hover, .map-list a.is-hot { border-color: var(--orange); }
.map-list b { display: block; font-size: .92rem; color: var(--basalt); }
.map-list small { display: block; font-size: .76rem; color: var(--muted); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ml-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--basalt); color: var(--orange-hi); flex: none; }
.island { position: relative; }
.island-svg { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 30px 40px rgba(27, 22, 19, .3)); }
.island-coast { stroke: var(--brown); stroke-width: 3; stroke-dasharray: 8 6; opacity: .45; }
.pin { cursor: pointer; }
.pin-dot { fill: var(--orange); stroke: var(--white); stroke-width: 4; transition: r .2s; }
.pin-pulse { fill: rgba(215, 126, 0, .35); transform-origin: center; transform-box: fill-box; animation: ping 2.6s ease-out infinite; animation-delay: var(--d); }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
.pin:hover .pin-dot, .pin.is-hot .pin-dot, .pin:focus-visible .pin-dot { r: 15; fill: var(--basalt); }
@media (prefers-reduced-motion: reduce) { .pin-pulse { animation: none; opacity: .5; } }
.island-card { position: absolute; z-index: 3; width: 260px; display: grid; grid-template-columns: 80px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--white); box-shadow: var(--shadow); pointer-events: none; transform: translate(-50%, calc(-100% - 20px)); }
.island-card img { width: 80px; height: 64px; object-fit: cover; border-radius: 10px; }
.island-card h3 { font-family: var(--font); font-size: .88rem; font-weight: 700; letter-spacing: 0; margin: 0 0 4px; line-height: 1.25; }
.ic-kicker { margin: 0 0 2px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.island-card .text-link { font-size: .78rem; }
.projects-map { max-width: 620px; margin: 0 auto 40px; }

/* ---------- Trabajos (proyectos) ---------- */
.jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.job-cell.is-hidden { display: none; }
.job { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s; }
.job:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.job figure { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-2); }
.job figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.job:hover figure img { transform: scale(1.06); }
.job-tag { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--cream); color: var(--basalt); font-size: .76rem; font-weight: 700; }
.job-tag .icon { width: 16px; height: 16px; color: var(--orange); }
.job-count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgba(27, 22, 19, .75); color: var(--white); font-size: .78rem; font-weight: 700; }
.job-count .icon { width: 14px; height: 14px; }
.job-ba { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--orange); color: var(--white); font-size: .74rem; font-weight: 700; }
.job-ba .icon { width: 14px; height: 14px; }
.job-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.job-body h3 { font-size: 1.4rem; margin: 0; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: auto 0 0; font-size: .84rem; color: var(--muted); }
.job-meta span { display: inline-flex; align-items: center; gap: 5px; }
.job-meta .icon { width: 15px; height: 15px; color: var(--orange); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9rem; transition: background .2s, color .2s, border-color .2s; }
.chip span { font-size: .72rem; padding: 1px 7px; border-radius: 999px; background: var(--sand); }
.chip .icon { width: 1.05em; height: 1.05em; color: var(--orange); }
.chip:hover { border-color: var(--basalt); }
.chip.is-active { background: var(--basalt); color: var(--white); border-color: var(--basalt); }
.chip.is-active span { background: rgba(255, 255, 255, .16); }

/* Ficha de trabajo */
.job-detail { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.job-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.jg-item { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--sand-2); }
.jg-item.is-main { grid-column: 1 / -1; aspect-ratio: 16 / 10; border-radius: var(--radius); }
.jg-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.jg-item:hover img { transform: scale(1.05); }
.job-text { margin-top: 30px; font-size: 1.08rem; }
.job-ba-block { margin-bottom: 30px; }
.job-ba-block h2 { font-size: 1.8rem; }
.spec { position: sticky; top: calc(var(--header-h) + 20px); padding: 26px; border-radius: var(--radius); color: var(--sand); background: var(--basalt); box-shadow: var(--shadow); overflow: hidden; }
.spec-wall { height: 64px; margin: -26px -26px 20px; }
.spec-title { font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--orange-hi); margin: 0 0 16px; }
.spec dl { margin: 0 0 18px; display: grid; gap: 1px; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .08); }
.spec dl div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; background: var(--basalt-2); }
.spec dt { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(239, 230, 215, .55); }
.spec dd { margin: 0; font-weight: 600; text-align: right; color: var(--white); }
.spec dd a { color: var(--orange-hi); }
.spec-map { width: 100%; height: auto; margin-bottom: 18px; }
.spec-map path { fill: rgba(239, 230, 215, .1); stroke: var(--sand-2); stroke-width: 4; }
.spec-map circle { fill: var(--orange); }
.spec-map .spec-pulse { fill: rgba(215, 126, 0, .35); }

/* ---------- Servicios (página) ---------- */
.svc-detail { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: start; }
.svc-text { font-size: 1.2rem; }
.svc-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 18px; background: var(--orange); color: var(--white); }
.svc-icon .icon { width: 34px; height: 34px; }
.svc-bond { text-decoration: none; color: inherit; transition: border-color .2s; margin: 28px 0; display: grid; grid-template-columns: 160px 1fr; gap: 18px; align-items: center; padding: 14px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.svc-bond-wall { height: 100px; border-radius: 10px; overflow: hidden; }
.svc-bond small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.svc-bond b { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.svc-bond p { margin: 4px 0 0; font-size: .92rem; color: var(--muted); }
.svc-aside { padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--orange); }
.svc-aside h2 { font-size: 1.6rem; }
.check-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--orange); margin-top: 3px; }
.svc-photo { margin: 40px 0 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9; }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Razones ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.why-photos { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; }
.why-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.why-photos img:first-child { grid-row: span 2; aspect-ratio: 3 / 4; }
.why-photos img:not(:first-child) { aspect-ratio: 1; }
.years-badge { position: absolute; left: -18px; bottom: 26px; display: grid; place-items: center; width: 150px; height: 150px; padding: 16px; border-radius: 50%; background: var(--orange); color: var(--white); text-align: center; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; line-height: 1.15; box-shadow: var(--shadow); transform: rotate(-8deg); }
.years-badge b { display: block; font-family: var(--serif); font-weight: 600; font-size: 3.2rem; line-height: .9; letter-spacing: -.03em; }
.why h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.reasons { display: grid; gap: 24px; margin-top: 30px; }
.reason { display: flex; gap: 18px; }
.reason-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--basalt); color: var(--orange-hi); flex: none; }
.reason-icon .icon { width: 28px; height: 28px; }
.reason h3 { font-size: 1.35rem; margin-bottom: 6px; }
.reason p { color: var(--muted); margin: 0; }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand-2); }
.post-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover figure img { transform: scale(1.05); }
.post-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 22px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--muted); }
.post-meta b { color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }
.post-card h3 { font-size: 1.35rem; margin: 0; }
.post-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.post-card .text-link { margin-top: auto; padding-top: 6px; }
.article { max-width: 760px; margin-inline: auto; }
.article-cover { margin: 0 0 36px; border-radius: var(--radius); overflow: hidden; }
.article-cover img { width: 100%; }
.prose { font-size: 1.08rem; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 1.6em; }
.prose h3 { font-size: 1.4rem; margin-top: 1.4em; }
.prose a { color: var(--orange); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--orange); }
.prose img { border-radius: 14px; margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--orange); font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--brown); }
.table-wrap { overflow-x: auto; margin-bottom: 1em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--sand); }
.article-cta { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; margin-top: 50px; padding: 26px 28px; border-radius: var(--radius); background: var(--basalt); color: var(--sand); }
.article-cta h2 { color: var(--white); font-size: 1.6rem; margin: 0 0 4px; }
.article-cta p { margin: 0; }

/* ---------- Opiniones ---------- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.review { margin: 0; padding: 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.review blockquote { margin: 12px 0 18px; font-family: var(--serif); font-size: 1.12rem; }
.review figcaption { display: grid; }
.review small { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .8rem; }
.stars { display: inline-flex; gap: 2px; color: var(--orange); }
.stars .icon { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.stars .star-off { color: var(--sand-2); }
.reviews-verify { text-align: center; margin-top: 30px; }
.reviews-verify a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); text-decoration: none; font-weight: 600; }

/* ---------- Llamada final ---------- */
.final { position: relative; overflow: hidden; background: var(--basalt); color: var(--sand); padding: 120px 0 110px; }
.final-wall { position: absolute; inset: 0; opacity: .32; }
.final::after { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 400px at 30% 50%, rgba(27, 22, 19, .92), rgba(27, 22, 19, .55)); }
.final-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.final h2 { color: var(--white); font-size: clamp(2.4rem, 5vw, 4.4rem); margin-bottom: 12px; }
.final p { margin: 0; max-width: 34em; font-size: 1.08rem; }
.final-actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Cabecera de páginas interiores ---------- */
.page-hero { position: relative; overflow: hidden; padding: 70px 0 90px; background: var(--basalt); color: var(--sand); }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.page-hero.has-image::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--basalt) 15%, rgba(27, 22, 19, .45)); }
.page-hero-wall { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; height: 34px; }
.page-hero-inner { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: clamp(2.5rem, 5.8vw, 4.8rem); max-width: 16em; font-weight: 500; }
.page-lead { max-width: 44em; font-size: 1.12rem; color: rgba(239, 230, 215, .82); margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; font-size: .85rem; color: rgba(239, 230, 215, .6); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.crumbs [aria-current] { color: var(--white); font-weight: 600; }

/* ---------- Presupuesto ---------- */
.quote-wrap { max-width: 980px; }
.quote { display: grid; gap: 22px; }
.q-step { border: 0; margin: 0; padding: 30px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: 0 20px 40px -36px rgba(27, 22, 19, .6); }
.q-step > legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 0; font-family: var(--serif); font-weight: 600; font-size: 1.6rem; color: var(--basalt); }
.q-step > *:not(legend) { clear: both; }
.q-n { display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: var(--white); font-family: var(--mono); font-size: .95rem; }
.q-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.q-service { position: relative; }
.q-service input { position: absolute; opacity: 0; }
.q-service-card { display: flex; gap: 12px; align-items: center; min-height: 72px; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--cream); cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.q-service-card .icon { width: 30px; height: 30px; color: var(--orange); }
.q-service-card b { font-size: .92rem; line-height: 1.2; }
.q-service:hover .q-service-card { border-color: var(--basalt); transform: translateY(-2px); }
.q-service input:checked + .q-service-card { border-color: var(--basalt); background: var(--basalt); }
.q-service input:checked + .q-service-card b { color: var(--white); }
.q-service input:checked + .q-service-card .icon { color: var(--orange-hi); }
.q-service input:focus-visible + .q-service-card { outline: 3px solid var(--orange); outline-offset: 2px; }
.q-hint { color: var(--muted); }
.q-fields { display: none; margin-bottom: 16px; }
.quote:has(input[name="service"]:checked) .q-hint { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field > span, .field-choice legend { font-size: .84rem; font-weight: 700; color: var(--basalt); }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 12px 15px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--cream); font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: var(--white); box-shadow: 0 0 0 4px rgba(215, 126, 0, .12); }
.field textarea { resize: vertical; min-height: 0; }
.field-choice { border: 0; padding: 0; margin: 0; }
.field-choice legend { margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt { position: relative; }
.chip-opt input { position: absolute; opacity: 0; }
.chip-opt span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--cream); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .2s; }
.chip-opt input:checked + span { background: var(--orange); border-color: var(--orange); color: var(--white); }
.chip-opt input:focus-visible + span { outline: 3px solid var(--basalt); outline-offset: 2px; }
.q-upload { display: block; margin-top: 14px; cursor: pointer; }
.q-upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.q-upload-box { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 14px; border: 2px dashed var(--sand-2); background: var(--cream); transition: border-color .2s, background .2s; }
.q-upload-box > .icon { width: 36px; height: 36px; color: var(--orange); }
.q-upload-box small { display: block; color: var(--muted); }
.q-upload:hover .q-upload-box, .q-upload input:focus-visible + .q-upload-box { border-color: var(--orange); background: var(--orange-soft); }
.q-previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.q-previews img { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; }
.q-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 22px; }
.q-submit p { margin: 0; color: var(--muted); font-size: .92rem; }
.q-submit a { color: var(--orange); font-weight: 700; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: .88rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--orange); flex: none; }
.check a { color: var(--orange); font-weight: 700; }
.has-error input, .has-error textarea, .check.has-error, fieldset.has-error .q-service-card { border-color: #c0392b !important; }
.check.has-error { color: #c0392b; }
.form-alert { padding: 12px 16px; border-radius: 12px; background: #fdecea; color: #a12a1f; font-weight: 700; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-side { display: grid; gap: 12px; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s; }
a.contact-card:hover { border-color: var(--orange); transform: translateX(4px); }
.contact-card h2 { font-family: var(--font); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 2px; }
.contact-card > div { min-width: 0; }
.contact-card p { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.contact-card small { color: var(--muted); }
.contact-call { background: var(--basalt); border-color: var(--basalt); color: var(--white); }
.contact-call h2 { color: rgba(239, 230, 215, .6); }
.contact-call p { color: var(--white); font-family: var(--serif); font-weight: 600; font-size: 1.8rem; }
.contact-call small { color: var(--orange-hi); }
.contact-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--sand); color: var(--brown); flex: none; }
.contact-call .contact-icon { background: var(--orange); color: var(--white); }
.contact-icon .icon { width: 24px; height: 24px; }
.contact-icon-wa { background: #e5f6ea; color: #1c8a45; }
.contact-quote { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 16px; background: var(--orange-soft); border: 1.5px dashed var(--orange); text-decoration: none; color: var(--ink); }
.contact-quote > .icon:first-child { width: 30px; height: 30px; color: var(--orange); }
.form-card { padding: 34px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card h2 { font-size: 2.2rem; }
.form-card .btn { margin-top: 20px; }

/* ---------- Gracias / 404 / legales ---------- */
.thanks { padding: 110px 0; text-align: center; }
.thanks-inner { display: grid; justify-items: center; }
.thanks-inner h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.thanks-inner p { color: var(--muted); font-size: 1.1rem; }
.thanks-icon { display: grid; place-items: center; width: 90px; height: 90px; margin-bottom: 22px; border-radius: 50%; background: var(--orange); color: var(--white); }
.thanks-icon .icon { width: 44px; height: 44px; stroke-width: 2.6; }
.lost-wall { width: min(420px, 90%); height: 150px; margin-bottom: 24px; }
.lost-wall .stone { animation: tumble 1.2s var(--ease) both; animation-delay: calc(var(--i) * 25ms); }
.lost-wall .stone:nth-child(5n+2) { animation-name: fallen; }
@keyframes tumble { from { opacity: 0; transform: translateY(-40px); } }
@keyframes fallen { from { opacity: 0; transform: translateY(-40px); } to { opacity: .15; transform: translateY(60px) rotate(18deg); } }
.empty { text-align: center; color: var(--muted); }
.legal-prose { max-width: 820px; }
.legal-prose h2 { font-family: var(--font); font-weight: 700; letter-spacing: 0; font-size: 1.3rem; margin-top: 1.6em; }

/* ---------- Visor ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(20, 16, 13, .95); padding: 60px 70px; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 10px; object-fit: contain; }
.lightbox figcaption { color: rgba(255, 255, 255, .7); font-size: .9rem; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: var(--white); cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Pie ---------- */
.site-footer { position: relative; background: var(--basalt); color: rgba(239, 230, 215, .72); font-size: .94rem; }
.footer-wall { height: 44px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1.1fr; gap: 50px; padding: 70px 0 50px; }
.footer-brand .brand { margin-bottom: 18px; color: var(--white); }
.footer-brand .brand-mark { width: 64px; height: 66px; }
.site-footer h3 { font-family: var(--font); font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--orange-hi); margin-bottom: 18px; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--white); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--orange-hi); margin-top: 3px; }
.footer-cta { margin-top: 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 22px 0 28px; border-top: 1px solid rgba(239, 230, 215, .1); font-size: .82rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.made-by a { color: var(--white); font-weight: 700; border-bottom: 2px solid var(--orange); }

/* ---------- WhatsApp y barra móvil ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: var(--white); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 32px; height: 32px; stroke-width: 1.6; }
.dock { display: none; }

/* ---------- Animación de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ================= Escritorio medio ================= */
@media (max-width: 1180px) {
  .nav-phone span { display: none; }
  .trades, .jobs, .posts { grid-template-columns: repeat(2, 1fr); }
  .courses { display: none; }
}

/* ================= Tableta y móvil ================= */
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: grid; gap: 5px; place-content: center; width: 46px; height: 46px; border-radius: 12px; border: 0; background: rgba(88, 68, 49, .1); color: inherit; cursor: pointer; flex: none; }
  .is-home .site-header:not(.is-scrolled) .nav-toggle { background: rgba(255, 255, 255, .14); }
  .nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-cta { margin-left: auto; }
  /* El backdrop-filter de la cabecera atraparía el menú fijo: se quita con el menú abierto. */
  body.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--basalt) !important; color: var(--white) !important; }
  body.nav-open .brand-mark-dark { display: none; }
  body.nav-open .brand-mark-light { display: block; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0; z-index: 49; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 24px; padding: 26px 24px calc(30px + env(safe-area-inset-bottom)); background: var(--basalt); color: var(--white); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
  body.nav-open { overflow: hidden; }
  body.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; margin: 0; gap: 0; }
  .main-nav ul a { padding: 14px 4px; font-family: var(--serif); font-weight: 500; font-size: 2.2rem; line-height: 1.1; opacity: 1; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .main-nav ul a:hover { background: none; }
  .main-nav ul a.is-active { color: var(--orange-hi); }
  .nav-extra { display: grid; }
  .nav-phone { justify-content: center; min-height: 54px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; }
  .nav-phone span { display: inline; }
  .hero-inner, .calc-grid, .map-grid, .why-grid, .contact-grid, .job-detail, .svc-detail, .bonds, .restore-grid { grid-template-columns: 1fr; }
  .cartela { justify-self: start; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .spec { position: static; }
  .section { padding: 80px 0; }
  .section-head-split { flex-direction: column; align-items: flex-start; }
  .q-services { grid-template-columns: repeat(2, 1fr); }
  .final-inner { grid-template-columns: 1fr; }
  .final-actions { flex-direction: row; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .why-photos { max-width: 560px; }
}

@media (max-width: 700px) {
  .container { width: min(1240px, 100% - 32px); }
  .header-cta span { display: none; }
  .header-cta { width: 46px; min-height: 46px; padding: 0; }
  .brand-word small { display: none; }
  .brand-word b { font-size: 1.12rem; }
  .brand-mark { width: 40px; height: 42px; }
  .hero { padding-bottom: 150px; min-height: 92svh; }
  .hero-wall { height: 110px; }
  .hero-down { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
  .trades, .jobs, .posts { grid-template-columns: 1fr; }
  .trade { min-height: 0; }
  .calc-row { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .calc-field input { font-size: 1.15rem; padding-right: 30px; padding-left: 12px; }
  .calc-field em { right: 10px; }
  .calc-result strong { font-size: 1.8rem; }
  .map-list { grid-template-columns: 1fr; }
  .field-grid, .q-services { grid-template-columns: 1fr; }
  .q-step { padding: 22px 18px; }
  .job-gallery { grid-template-columns: repeat(2, 1fr); }
  .svc-bond { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .lightbox { padding: 60px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .article-cta { grid-template-columns: 1fr; }
  .years-badge { width: 120px; height: 120px; left: -6px; }
  .years-badge b { font-size: 2.6rem; }
  /* Barra flotante inferior: llamar, WhatsApp y presupuesto siempre a mano. */
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .section { padding: 70px 0; }
  .section-tight { padding: 36px 0 70px; }
  .section-head { margin-bottom: 36px; }
  .hero::before { background: linear-gradient(180deg, rgba(27, 22, 19, .7) 0%, rgba(27, 22, 19, .88) 60%, rgba(27, 22, 19, .96) 100%); }
  .hero h1 { font-size: 3.6rem; }
  .hero-lead { font-size: .98rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .cartela { transform: none; max-width: none; }
  .stat { padding: 6px 14px; }
  .stat strong { font-size: 2.4rem; }
  .stat > span { font-size: .72rem; }
  .map-grid { gap: 20px; }
  .map-grid > div:last-child { order: -1; }
  .map-list { display: flex; overflow-x: auto; gap: 8px; margin: 18px -16px 0; padding: 2px 16px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .map-list::-webkit-scrollbar { display: none; }
  .map-list li { flex: 0 0 72%; scroll-snap-align: start; }
  .island-card { width: 220px; grid-template-columns: 64px 1fr; }
  .island-card img { width: 64px; height: 52px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 24px; padding: 2px 16px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .bond-tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px; scrollbar-width: none; }
  .bond-tabs::-webkit-scrollbar { display: none; }
  .bond-tab { flex: none; }
  .bond-text { min-height: 0; }
  .calc-visual { order: -1; }
  .calc .btn, .q-submit .btn { width: 100%; }
  .page-hero { padding: 40px 0 62px; }
  .page-hero h1 { font-size: 2.5rem; }
  .page-lead { font-size: 1rem; }
  .q-step > legend { font-size: 1.3rem; }
  .form-card { padding: 24px 18px; }
  .final { padding: 80px 0; }
  .final-actions .btn { flex: 1 1 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .dock { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 45; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px; padding: 6px; border-radius: 18px; background: rgba(27, 22, 19, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .08); }
  .dock a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; border-radius: 13px; color: var(--white); text-decoration: none; font-weight: 700; font-size: .84rem; }
  .dock a .icon { width: 20px; height: 20px; }
  .dock a:nth-child(2) .icon { color: #25d366; }
  .dock .dock-cta { background: var(--orange); color: var(--white); }
  body.nav-open .dock { display: none; }
  .wa-float { display: none; }
  .cc-tab { bottom: calc(76px + env(safe-area-inset-bottom)) !important; border-radius: 12px !important; transform: none !important; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 3rem; }
  .brand-word b { font-size: 1rem; }
}

/* ---------- Aviso de cookies ---------- */
.cc-backdrop { position: fixed; inset: 0; z-index: 59; background: rgba(0, 0, 0, .72); opacity: 0; transition: opacity .35s var(--ease); }
.cc-backdrop.is-visible { opacity: 1; }
html.cc-open, html.cc-open body { overflow: hidden; }
.cc {
  position: fixed; left: 20px; bottom: 20px; z-index: 60; width: min(600px, calc(100vw - 40px)); max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--basalt); color: rgba(239, 230, 215, .78); border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6); font-size: .9rem; line-height: 1.6;
  opacity: 0; transform: translateY(16px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.cc.is-visible { opacity: 1; transform: none; }
.cc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 24px 0; }
.cc-head h2 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--white); margin: 0; }
.cc-close { flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin: -6px -8px 0 0; border: 0; border-radius: 50%; background: transparent; color: rgba(255, 255, 255, .6); cursor: pointer; }
.cc-close:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
.cc-close .icon { width: 18px; height: 18px; }
.cc-text { margin: 10px 24px 18px; }
.cc-text strong { color: rgba(255, 255, 255, .92); font-weight: 600; }
.cc-prefs { margin: 0 24px 18px; display: grid; gap: 10px; }
.cc-cat { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
label.cc-cat { cursor: pointer; }
.cc-cat strong { color: var(--white); display: block; font-size: .92rem; }
.cc-cat p { margin: 2px 0 0; font-size: .8rem; line-height: 1.5; color: rgba(255, 255, 255, .6); }
.cc-always { flex: none; font-size: .75rem; font-weight: 700; color: var(--orange-hi); white-space: nowrap; }
.cc-switch { flex: none; position: relative; width: 44px; height: 24px; }
.cc-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cc-switch span[aria-hidden] { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, .2); transition: background .2s; pointer-events: none; }
.cc-switch span[aria-hidden]::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); transition: transform .2s var(--ease); }
.cc-switch input:checked + span { background: var(--orange); }
.cc-switch input:checked + span::after { transform: translateX(20px); }
.cc-switch input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.cc-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 24px 22px; }
.cc.is-expanded [data-cc-accept] { display: none; }
.cc-btn { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 46px; padding: 10px 14px; border-radius: 999px; font: inherit; font-weight: 700; font-size: .9rem; color: var(--white); background: transparent; border: 1px solid rgba(255, 255, 255, .2); cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, transform .15s; }
.cc-btn:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .35); }
.cc-btn:active { transform: scale(.98); }
.cc-btn-primary { background: var(--orange); border-color: var(--orange); color: var(--white); }
.cc-btn-primary:hover { background: var(--orange-hi); border-color: var(--orange-hi); }
.cc-chevron { width: 16px; height: 16px; flex: none; transition: transform .2s; }
.cc-btn[aria-expanded="true"] .cc-chevron { transform: rotate(180deg); }
.cc-links { display: flex; justify-content: center; gap: 24px; padding: 14px 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .8rem; }
.cc-links a { color: rgba(255, 255, 255, .65); text-decoration: underline; text-underline-offset: 3px; }
.cc-links a:hover { color: var(--white); }
.cc-tab { position: fixed; left: 24px; bottom: 0; z-index: 39; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 9px; font: inherit; font-size: .78rem; font-weight: 700; color: var(--white); background: var(--basalt); border: 1px solid rgba(255, 255, 255, .12); border-bottom: 0; border-radius: 12px 12px 0 0; box-shadow: 0 -6px 20px -10px rgba(0, 0, 0, .5); cursor: pointer; transform: translateY(4px); transition: transform .2s var(--ease), background .2s; }
.cc-tab:hover, .cc-tab:focus-visible { transform: none; background: var(--brown); }
.cc-tab .icon { width: 16px; height: 16px; color: var(--orange-hi); }
@media (max-width: 600px) {
  .cc { left: 10px; right: 10px; bottom: 10px; width: auto; }
  .cc-actions { grid-template-columns: 1fr; padding: 0 18px 18px; }
  .cc-head { padding: 20px 18px 0; }
  .cc-text, .cc-prefs { margin-left: 18px; margin-right: 18px; }
  .cc-tab { left: 12px; }
}
@media (prefers-reduced-motion: reduce) { .cc, .cc-tab { transition: none; } }
.svc-bond:hover { border-color: var(--orange); }
