/* Evora Trans 2000 — hoja de estilos principal. Concepto: «obra de noche» (asfalto, azul de marca y amarillo de seguridad). */
:root {
  --night: #06122f;
  --night-2: #0a1a44;
  --navy: #0a1f5c;
  --navy-700: #16357f;
  --blue: #1f8fd6;
  --sky: #3bb0ff;
  --yellow: #ffc21a;
  --yellow-600: #e6aa00;
  --ink: #0d1526;
  --muted: #5a6784;
  --concrete: #eef1f6;
  --line: #dde3ee;
  --white: #fff;
  --display: 'Archivo Variable', 'Arial Black', Impact, sans-serif;
  --font: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 30px 60px -32px rgba(6, 18, 47, .6);
  --header-h: 76px;
}

*, *::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(--white); -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(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; line-height: 1; letter-spacing: -.01em; margin: 0 0 .5em; }
h3 { font-weight: 700; }
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(--yellow); color: var(--night); border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--yellow); 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; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 rgba(255, 194, 26, .7); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255, 194, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 194, 26, 0); } }
/* Curvas de nivel: fondo topográfico sutil. */
.topo { position: absolute; inset: 0; pointer-events: none; opacity: .5; background:
  repeating-radial-gradient(ellipse at 18% 30%, transparent 0 26px, rgba(59, 176, 255, .12) 27px 28px),
  repeating-radial-gradient(ellipse at 85% 80%, transparent 0 34px, rgba(59, 176, 255, .08) 35px 36px);
  mask-image: linear-gradient(90deg, #000 0%, transparent 70%); -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 11px 24px; border-radius: 10px; border: 2px solid transparent; font-weight: 800; 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 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-yellow { background: var(--yellow); color: var(--night); box-shadow: 0 14px 30px -14px rgba(255, 194, 26, .8); }
.btn-yellow:hover { background: #ffd04d; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); }
.btn-glass { background: rgba(255, 255, 255, .08); color: var(--white); border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .16); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--blue); 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: 8px; margin: 0 0 14px; font-size: .76rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }
.kicker-yellow { color: var(--yellow); }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(6, 18, 47, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, .06); transition: background .3s, box-shadow .3s; }
.site-header.is-scrolled { background: rgba(6, 18, 47, .96); box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .8); }
.is-home .site-header:not(.is-scrolled) { background: linear-gradient(180deg, rgba(6, 18, 47, .75), transparent); backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; }
.header-inner { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); flex: none; }
.brand-icon { width: 40px; height: 40px; }
.brand-logo { height: 62px; width: auto; }
.brand-logo-lg { height: 96px; }
.brand-word { font-family: var(--display); font-stretch: 125%; font-weight: 600; font-size: 1.12rem; letter-spacing: .02em; line-height: 1; white-space: nowrap; }
.brand-word b { font-weight: 900; color: var(--white); }
.brand-word small { display: inline-block; margin-left: 2px; padding: 3px 6px; border-radius: 5px; background: var(--sky); color: var(--night); font-size: .72rem; font-weight: 900; vertical-align: .15em; }
.main-nav { flex: 1; display: flex; align-items: center; gap: 18px; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0 auto; padding: 0; }
.main-nav ul a { display: block; padding: 8px 14px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: .95rem; color: rgba(255, 255, 255, .85); transition: background .2s, color .2s; }
.main-nav ul a:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
.main-nav ul a.is-active { color: var(--yellow); box-shadow: inset 0 -2px 0 var(--yellow); border-radius: 0; }
.nav-phone { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 800; color: var(--white); font-size: .95rem; white-space: nowrap; }
.nav-phone .icon { color: var(--yellow); }
.header-cta { min-height: 44px; padding: 9px 18px; }
.nav-toggle { display: none; }

/* ---------- Medidor de profundidad (escritorio) ---------- */
.depth { position: fixed; right: 18px; top: 50%; z-index: 30; display: grid; justify-items: center; gap: 8px; transform: translateY(-50%); font-family: var(--mono); pointer-events: none; opacity: 0; transition: opacity .4s; }
.depth.is-on { opacity: 1; }
.depth-label { font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl; transform: rotate(180deg); }
.depth-rule { position: relative; width: 14px; height: 42vh; border-left: 2px solid rgba(90, 103, 132, .4); background: repeating-linear-gradient(180deg, rgba(90, 103, 132, .5) 0 1px, transparent 1px 10%), repeating-linear-gradient(180deg, rgba(90, 103, 132, .35) 0 1px, transparent 1px 2%); background-size: 14px 100%, 7px 100%; background-repeat: no-repeat; }
.depth-bucket { position: absolute; left: -16px; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 3px rgba(255, 194, 26, .8); transform: translateY(-50%); transition: top .15s linear; }
.depth-bucket img { width: 20px; height: 20px; transform: scaleX(-1); }
.depth-value { font-size: .72rem; font-weight: 700; color: var(--navy); background: rgba(255, 255, 255, .9); padding: 2px 6px; border-radius: 6px; box-shadow: 0 4px 10px -6px rgba(0, 0, 0, .4); }

/* ---------- Portada ---------- */
.hero { position: relative; min-height: min(100svh, 900px); display: grid; align-items: center; color: var(--white); background: var(--night); overflow: hidden; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 60px) 0 130px; }
.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.12); 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(6, 18, 47, .96) 0%, rgba(6, 18, 47, .82) 45%, rgba(6, 18, 47, .35) 100%), linear-gradient(0deg, rgba(6, 18, 47, .85) 0%, transparent 40%); }
.hero .topo { z-index: 1; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.35fr .65fr; gap: 50px; align-items: end; }
.hero .kicker { color: var(--yellow); }
.hero-title { display: grid; font-size: clamp(3.4rem, 8.4vw, 8rem); line-height: .88; margin-bottom: 26px; }
.hero-title .outline { color: transparent; -webkit-text-stroke: 2px var(--white); }
.hero-sub { font-family: var(--font); font-stretch: 100%; text-transform: none; font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: 0; color: var(--sky); margin-top: 18px; line-height: 1.3; }
.hero-lead { font-size: 1.08rem; color: rgba(255, 255, 255, .82); max-width: 36em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-panel { padding: 22px; border-radius: var(--radius); background: rgba(6, 18, 47, .6); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.panel-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.led { width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; animation: blink 2.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hero-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hero-panel li { display: flex; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px dashed rgba(255, 255, 255, .14); }
.hero-panel li:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-panel li > .icon { width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: rgba(255, 194, 26, .14); color: var(--yellow); }
.hero-panel b { display: block; font-family: var(--display); font-stretch: 125%; font-size: 1.3rem; line-height: 1.1; color: var(--white); }
.hero-panel span { font-size: .85rem; color: rgba(255, 255, 255, .72); }
.panel-dots { display: flex; gap: 6px; margin-top: 16px; }
.panel-dots span { height: 4px; flex: 1; border-radius: 2px; background: rgba(255, 255, 255, .18); overflow: hidden; position: relative; }
.panel-dots span.is-on::after { content: ''; position: absolute; inset: 0; background: var(--yellow); animation: fill 6s linear forwards; transform-origin: left; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-down { position: absolute; z-index: 2; left: 50%; bottom: 76px; display: grid; place-items: center; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); 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, .dot, .led, .panel-dots span.is-on::after { animation: none !important; } }

/* Cinta de balizamiento con los servicios */
.tape { position: relative; overflow: hidden; background: var(--yellow); color: var(--night); padding: 12px 0; border-block: 6px solid transparent; border-image: repeating-linear-gradient(45deg, var(--night) 0 14px, var(--yellow) 14px 28px) 6; }
.tape-hero { position: absolute; z-index: 2; left: -2%; right: -2%; bottom: 0; transform: rotate(-1.4deg); transform-origin: left; }
.tape-track { display: flex; gap: 0; width: max-content; animation: marquee 40s linear infinite; }
.tape-track span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 1.1rem; text-transform: uppercase; white-space: nowrap; }
.tape-track span::after { content: ''; width: 12px; height: 12px; background: var(--night); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tape-track { animation: none; } }

/* ---------- Relojes de cifras ---------- */
.gauges { background: var(--night); color: var(--white); padding: 60px 0 70px; }
.gauges-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.gauge { display: grid; justify-items: center; text-align: center; }
.gauge svg { width: 100%; max-width: 190px; overflow: visible; }
.g-track, .g-fill { fill: none; stroke-width: 10; stroke-linecap: round; }
.g-track { stroke: rgba(255, 255, 255, .1); }
.g-fill { stroke: var(--sky); stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.6s var(--ease) var(--d, 0ms); }
.g-tick { stroke: rgba(255, 255, 255, .3); stroke-width: 1.5; }
.g-needle { stroke: var(--yellow); stroke-width: 3; stroke-linecap: round; transform-origin: 70px 76px; transform: rotate(-90deg); transition: transform 1.6s var(--ease) var(--d, 0ms); }
.g-hub { fill: var(--yellow); }
.gauge.is-visible .g-fill, .no-js .g-fill { stroke-dashoffset: calc(var(--len) - var(--val)); }
.gauge.is-visible .g-needle, .no-js .g-needle { transform: rotate(var(--rot)); }
.gauge strong { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 3rem; line-height: 1; margin-top: -30px; }
.gauge > span { font-size: .88rem; color: rgba(255, 255, 255, .7); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }

/* ---------- Secciones ---------- */
.section { padding: 110px 0; position: relative; }
.section-tight { padding: 60px 0 100px; }
.section-soft { background: var(--concrete); }
.section-dark { background: var(--night); color: rgba(255, 255, 255, .78); overflow: hidden; }
.section-dark h2 { color: var(--white); }
.section-head { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); color: var(--navy); }
.section-head > p:last-child { color: var(--muted); font-size: 1.06rem; margin: 0; }
.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; }

/* ---------- Servicios como estratos ---------- */
.strata { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.stratum a { position: relative; display: grid; grid-template-columns: 90px 54px 1fr 1fr 40px; align-items: center; gap: 24px; padding: 26px 20px; text-decoration: none; color: var(--navy); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--navy) calc(var(--i) * 3%), transparent), transparent 70%); transition: padding .35s var(--ease), background .35s, color .35s; overflow: hidden; }
.stratum a::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--yellow); transform: scaleY(0); transition: transform .35s var(--ease); }
.stratum a:hover, .stratum a:focus-visible { padding-block: 34px; background: var(--night); color: var(--white); }
.stratum a:hover::before, .stratum a:focus-visible::before { transform: none; }
.st-depth { font-family: var(--mono); font-size: .8rem; font-weight: 700; color: var(--blue); }
.stratum a:hover .st-depth { color: var(--yellow); }
.st-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--concrete); color: var(--navy); transition: background .35s, color .35s; }
.st-icon .icon { width: 28px; height: 28px; }
.stratum a:hover .st-icon { background: var(--yellow); color: var(--night); }
.st-name { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(1.2rem, 2.2vw, 1.75rem); text-transform: uppercase; line-height: 1.05; }
.st-claim { color: var(--muted); font-size: .95rem; }
.stratum a:hover .st-claim { color: rgba(255, 255, 255, .72); }
.st-go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid currentColor; transition: transform .35s var(--ease); }
.stratum a:hover .st-go { transform: rotate(-45deg); background: var(--yellow); color: var(--night); border-color: var(--yellow); }
.strata-preview { position: fixed; z-index: 20; width: 280px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); pointer-events: none; transform: translate(-50%, -115%) rotate(-3deg); }

/* ---------- Calculadora de áridos ---------- */
.calc-section .topo { opacity: .35; }
.calc-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.calc-section h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.calc-lead { font-size: 1.05rem; }
.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: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.calc-field input { width: 100%; min-height: 58px; padding: 10px 44px 10px 16px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: var(--white); font: 700 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(--yellow); background: rgba(255, 255, 255, .1); }
.calc-field em { position: absolute; right: 14px; bottom: 18px; font-style: normal; font-weight: 700; color: rgba(255, 255, 255, .5); }
.calc-materials { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.calc-materials label { position: relative; }
.calc-materials input { position: absolute; opacity: 0; }
.calc-materials span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .2); font-weight: 700; font-size: .9rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.calc-materials input:checked + span { background: var(--yellow); color: var(--night); border-color: var(--yellow); }
.calc-materials input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.calc-result { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, .12); }
.calc-result div { padding: 18px 20px; background: var(--night-2); }
.calc-result small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.calc-result strong { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 3rem; line-height: 1; color: var(--yellow); }
.calc-result span { margin-left: 6px; font-weight: 800; color: var(--white); }
.calc .btn { justify-self: start; }
.calc-note { margin: 0; font-size: .8rem; color: rgba(255, 255, 255, .5); }
.calc-visual { text-align: center; }
.calc-visual svg { width: 100%; max-width: 480px; overflow: visible; }
.box-top { fill: #d9b98a; }
.box-left { fill: #a9844f; }
.box-right { fill: #8c6a3a; }
.box-top, .box-left, .box-right { stroke: rgba(0, 0, 0, .25); stroke-width: 1; transition: all .35s var(--ease); }
.box-grain circle { fill: rgba(60, 40, 20, .35); }
.calc-dims { font-family: var(--mono); font-weight: 700; color: var(--sky); }

/* ---------- Mapa de obras ---------- */
.map-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: center; }
.map-section h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); color: var(--navy); }
.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: 12px; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, background .2s; }
.map-list a:hover, .map-list a.is-hot { border-color: var(--navy); background: var(--concrete); }
.map-list b { display: block; font-size: .92rem; color: var(--navy); }
.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(--navy); color: var(--yellow); flex: none; }
.island { position: relative; }
.island-svg { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 30px 40px rgba(6, 18, 47, .35)); }
.island-coast { stroke: var(--sky); stroke-width: 3; stroke-dasharray: 8 6; opacity: .7; }
.pin { cursor: pointer; }
.pin-dot { fill: var(--yellow); stroke: var(--night); stroke-width: 4; transition: r .2s; }
.pin-pulse { fill: rgba(255, 194, 26, .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(--white); }
@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-stretch: 100%; text-transform: none; font-size: .88rem; font-weight: 800; color: var(--navy); margin: 0 0 4px; line-height: 1.25; }
.ic-kicker { margin: 0 0 2px; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.island-card .text-link { font-size: .78rem; }
.projects-map { max-width: 620px; margin: 0 auto 40px; }

/* ---------- 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(--concrete); }
.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 11px; border-radius: 8px; background: var(--yellow); color: var(--night); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.job-tag .icon { width: 16px; height: 16px; }
.job-count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px; background: rgba(6, 18, 47, .75); color: var(--white); font-size: .78rem; font-weight: 700; }
.job-count .icon { width: 14px; height: 14px; }
.job-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.job-body h3 { font-size: 1.15rem; line-height: 1.15; color: var(--navy); margin: 0; }
.job-sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: auto 0 0; border-radius: 10px; overflow: hidden; background: var(--line); font-family: var(--mono); }
.job-sheet div { padding: 8px 10px; background: var(--concrete); }
.job-sheet dt { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.job-sheet dd { margin: 0; font-size: .82rem; font-weight: 700; color: var(--navy); }
.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 15px; border-radius: 10px; background: var(--white); border: 1.5px solid var(--line); text-decoration: none; font-weight: 700; font-size: .9rem; color: var(--navy); transition: background .2s, color .2s, border-color .2s; }
.chip span { font-size: .72rem; padding: 1px 7px; border-radius: 999px; background: var(--concrete); }
.chip .icon { width: 1.05em; height: 1.05em; }
.chip:hover { border-color: var(--navy); }
.chip.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.chip.is-active span { background: rgba(255, 255, 255, .16); }

/* Ficha de proyecto */
.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(--concrete); }
.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.05rem; }
.spec { position: sticky; top: calc(var(--header-h) + 20px); padding: 26px; border-radius: var(--radius); color: var(--white); background: linear-gradient(rgba(59, 176, 255, .08) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, rgba(59, 176, 255, .08) 1px, transparent 1px) 0 0 / 22px 22px, var(--navy); box-shadow: var(--shadow); }
.spec-title { font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); margin: 0 0 16px; }
.spec dl { margin: 0 0 18px; display: grid; gap: 1px; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, .1); }
.spec dl div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; background: rgba(6, 18, 47, .6); }
.spec dt { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.spec dd { margin: 0; font-weight: 700; text-align: right; }
.spec dd a { color: var(--sky); }
.spec-map { width: 100%; height: auto; margin-bottom: 18px; }
.spec-map path { fill: rgba(59, 176, 255, .18); stroke: var(--sky); stroke-width: 4; }
.spec-map circle { fill: var(--yellow); }
.spec-map .spec-pulse { fill: rgba(255, 194, 26, .35); }

/* ---------- Servicios (página) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-card { position: relative; display: flex; flex-direction: column; min-height: 460px; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--white); background: var(--night); isolation: isolate; }
.svc-card figure { position: absolute; inset: 0; z-index: -2; margin: 0; }
.svc-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.svc-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 18, 47, .15) 20%, rgba(6, 18, 47, .95) 80%); }
.svc-card:hover figure img { transform: scale(1.07); }
.svc-num { position: absolute; top: 18px; right: 20px; font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 3rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .7); }
.svc-body { margin-top: auto; padding: 26px; }
.svc-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 14px; background: var(--yellow); color: var(--night); }
.svc-icon .icon { width: 28px; height: 28px; }
.svc-icon-lg { width: 72px; height: 72px; border-radius: 18px; }
.svc-icon-lg .icon { width: 38px; height: 38px; }
.svc-body h2 { font-size: 1.5rem; margin-bottom: 8px; }
.svc-body p { font-size: .94rem; color: rgba(255, 255, 255, .8); }
.svc-body .text-link { color: var(--yellow); }
.svc-detail { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: start; }
.svc-text { font-size: 1.18rem; color: var(--ink); }
.svc-note { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--concrete); }
.svc-note a { color: var(--blue); font-weight: 700; }
.svc-aside { padding: 28px; border-radius: var(--radius); background: var(--concrete); border-left: 5px solid var(--yellow); }
.svc-aside h2 { font-size: 1.3rem; color: var(--navy); }
.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(--blue); margin-top: 3px; }
.svc-gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 50px; }
.svc-gallery a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1; }
.svc-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.svc-gallery a:hover img { transform: scale(1.06); }

/* ---------- Pilares ---------- */
.pillars-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.pillars-photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.pillars-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.pillars-photos img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.pillars-photos img:not(:first-child) { aspect-ratio: 1; }
.years-badge { position: absolute; right: -14px; top: 30%; display: grid; place-items: center; width: 150px; height: 150px; padding: 14px; border-radius: 50%; background: var(--yellow); color: var(--night); text-align: center; font-weight: 800; font-size: .8rem; text-transform: uppercase; line-height: 1.15; box-shadow: var(--shadow); transform: rotate(8deg); }
.years-badge b { display: block; font-family: var(--display); font-stretch: 125%; font-size: 3.2rem; line-height: .9; }
.pillars { display: grid; gap: 22px; }
.pillar { display: flex; gap: 16px; }
.pillar-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--navy); color: var(--yellow); flex: none; }
.pillar-icon .icon { width: 28px; height: 28px; }
.pillar h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 6px; }
.pillar p { color: var(--muted); 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; }
.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: #f5a623; }
.stars .icon { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.stars .star-off { color: #d5d9e6; }
.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: 700; color: var(--navy); }

/* ---------- Llamada final ---------- */
.final { padding: 0 0 110px; }
.final-inner { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: center; padding: 50px; border-radius: 26px; overflow: hidden; color: var(--white); background: repeating-linear-gradient(45deg, rgba(255, 194, 26, .06) 0 18px, transparent 18px 36px), radial-gradient(600px 300px at 100% 0%, #16357f, transparent 60%), var(--night); box-shadow: var(--shadow); }
.final-arm { width: 150px; height: auto; opacity: .95; }
.final-inner h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); margin-bottom: 8px; }
.final-inner p { margin: 0; color: rgba(255, 255, 255, .75); max-width: 34em; }
.final-actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Cabecera de páginas interiores ---------- */
.page-hero { position: relative; overflow: hidden; padding: 70px 0 80px; background: var(--night); color: var(--white); }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.page-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: repeating-linear-gradient(45deg, var(--yellow) 0 16px, var(--night) 16px 32px); }
.page-hero.has-image::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 20%, rgba(6, 18, 47, .4)); }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); max-width: 17em; }
.page-hero .kicker { color: var(--yellow); }
.page-lead { max-width: 44em; font-size: 1.1rem; color: rgba(255, 255, 255, .8); margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; font-size: .85rem; color: rgba(255, 255, 255, .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 -34px rgba(6, 18, 47, .6); }
.q-step > legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 0; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 1.4rem; text-transform: uppercase; color: var(--navy); }
.q-step > *:not(legend) { clear: both; }
.q-n { display: grid; place-items: center; min-width: 46px; height: 34px; padding: 0 8px; border-radius: 8px; background: var(--navy); color: var(--yellow); font-family: var(--mono); font-size: .95rem; }
.q-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.q-service { position: relative; }
.q-service input { position: absolute; opacity: 0; }
.q-service-card { display: grid; justify-items: center; gap: 8px; min-height: 110px; padding: 16px 10px; border-radius: 14px; border: 2px solid var(--line); background: var(--concrete); text-align: center; cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.q-service-card .icon { width: 34px; height: 34px; color: var(--navy); }
.q-service-card b { font-size: .9rem; line-height: 1.2; color: var(--navy); }
.q-service:hover .q-service-card { border-color: var(--navy); transform: translateY(-2px); }
.q-service input:checked + .q-service-card { border-color: var(--navy); background: var(--navy); }
.q-service input:checked + .q-service-card .icon { color: var(--yellow); }
.q-service input:checked + .q-service-card b { color: var(--white); }
.q-service input:focus-visible + .q-service-card { outline: 3px solid var(--yellow); 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; }
.quote:has(input[value="transporte-de-maquinaria"]:checked) .q-fields[data-for="transporte-de-maquinaria"],
.quote:has(input[value="venta-de-aridos"]:checked) .q-fields[data-for="venta-de-aridos"],
.quote:has(input[value="movimientos-de-tierra"]:checked) .q-fields[data-for="movimientos-de-tierra"],
.quote:has(input[value="excavaciones"]:checked) .q-fields[data-for="excavaciones"],
.quote:has(input[value="desmontes"]:checked) .q-fields[data-for="desmontes"],
.quote:has(input[value="demoliciones"]:checked) .q-fields[data-for="demoliciones"],
.quote:has(input[value="gestion-de-residuos"]:checked) .q-fields[data-for="gestion-de-residuos"],
.quote:has(input[value="preparacion-de-terrenos-agricolas"]:checked) .q-fields[data-for="preparacion-de-terrenos-agricolas"] { display: block; animation: rise .4s var(--ease); }
@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: .82rem; font-weight: 800; color: var(--navy); }
.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(--concrete); 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(--navy); background: var(--white); box-shadow: 0 0 0 4px rgba(10, 31, 92, .1); }
.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 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--concrete); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .2s; }
.chip-opt input:checked + span { background: var(--yellow); border-color: var(--yellow); color: var(--night); font-weight: 800; }
.chip-opt input:focus-visible + span { outline: 3px solid var(--navy); 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 #b8c3d9; background: var(--concrete); transition: border-color .2s, background .2s; }
.q-upload-box > .icon { width: 36px; height: 36px; color: var(--blue); }
.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(--navy); background: #e6ebf4; }
.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(--blue); 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(--navy); flex: none; }
.check a { color: var(--blue); font-weight: 700; }
.has-error input, .has-error textarea, .check.has-error, fieldset.has-error .q-service-card { border-color: #d0312d !important; }
.check.has-error { color: #d0312d; }
.form-alert { padding: 12px 16px; border-radius: 12px; background: #fff0ef; color: #a1261f; 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(--navy); transform: translateX(4px); }
.contact-card h2 { font-family: var(--font); font-stretch: 100%; font-size: .72rem; font-weight: 800; letter-spacing: .14em; color: var(--muted); margin: 0 0 2px; }
.contact-card p { margin: 0; font-weight: 800; color: var(--navy); }
.contact-card small { color: var(--muted); }
.contact-call { background: var(--navy); border-color: var(--navy); }
.contact-call h2 { color: rgba(255, 255, 255, .6); }
.contact-call p { color: var(--white); font-family: var(--display); font-stretch: 125%; font-size: 1.6rem; }
.contact-call small { color: var(--yellow); }
.contact-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--concrete); color: var(--navy); flex: none; }
.contact-call .contact-icon { background: var(--yellow); }
.contact-icon .icon { width: 24px; height: 24px; }
.contact-icon-wa { background: #e6f7ec; color: #1c8a45; }
.contact-quote { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 16px; background: #fff7dc; border: 1.5px dashed var(--yellow-600); text-decoration: none; color: var(--ink); }
.contact-quote > .icon:first-child { width: 30px; height: 30px; color: var(--yellow-600); }
.form-card { padding: 34px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card h2 { font-size: 2rem; color: var(--navy); }
.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.4rem, 5.6vw, 4rem); color: var(--navy); }
.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(--yellow); color: var(--night); }
.thanks-icon .icon { width: 44px; height: 44px; stroke-width: 2.6; }
.lost-code { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 8rem; line-height: 1; margin: 0; color: transparent; -webkit-text-stroke: 2px var(--line); }
.empty { text-align: center; color: var(--muted); }
.prose { max-width: 820px; }
.prose h2 { font-family: var(--font); font-stretch: 100%; text-transform: none; font-size: 1.35rem; color: var(--navy); margin-top: 1.6em; }
.prose a { color: var(--blue); font-weight: 600; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.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(--concrete); color: var(--navy); }

/* ---------- Visor ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(3, 9, 24, .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 { background: var(--night); color: rgba(255, 255, 255, .7); font-size: .94rem; }
.site-footer .tape { margin-bottom: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1.1fr; gap: 50px; padding-bottom: 50px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-express { display: flex; align-items: center; gap: 10px; color: var(--yellow); font-weight: 700; }
.site-footer h3 { font-family: var(--font); font-stretch: 100%; font-size: .76rem; font-weight: 800; letter-spacing: .16em; color: var(--sky); 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(--yellow); 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(255, 255, 255, .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: 800; border-bottom: 2px solid var(--yellow); }

/* ---------- 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; }
  .svc-grid, .jobs { grid-template-columns: repeat(2, 1fr); }
  .q-services { grid-template-columns: repeat(4, 1fr); }
  .stratum a { grid-template-columns: 70px 54px 1fr 40px; }
  .st-claim { display: none; }
  .depth { display: none; }
}

/* ================= Tableta y móvil ================= */
@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .nav-toggle { display: grid; gap: 5px; place-content: center; width: 46px; height: 46px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .1); cursor: pointer; flex: none; }
  .nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--white); 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(--night) !important; }
  .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(--night); 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(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 2rem; line-height: 1.1; color: var(--white); border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .main-nav ul a.is-active { color: var(--yellow); box-shadow: none; }
  .nav-extra { display: grid; }
  .nav-phone { justify-content: center; min-height: 54px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; }
  .nav-phone span { display: inline; }
  .hero-inner, .calc-grid, .map-grid, .pillars-grid, .contact-grid, .job-detail, .svc-detail { grid-template-columns: 1fr; }
  .hero-panel { max-width: 460px; }
  .gauges-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .spec { position: static; }
  .final-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .final-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .svc-gallery { grid-template-columns: repeat(3, 1fr); }
  .years-badge { right: 10px; }
}

/* ================= Móvil ================= */
@media (max-width: 700px) {
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .container { width: calc(100% - 32px); }
  .section { padding: 70px 0; }
  .section-tight { padding: 36px 0 70px; }
  .section-head { margin-bottom: 36px; }
  .section-head-split { flex-direction: column; align-items: flex-start; gap: 16px; }
  .header-cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .brand-icon { width: 34px; height: 34px; }
  .brand-logo { height: 44px; }
  .brand-logo-lg { height: 80px; }
  .brand-word { font-size: .98rem; }

  .hero { min-height: auto; padding: calc(var(--header-h) + 30px) 0 110px; }
  .hero::before { background: linear-gradient(180deg, rgba(6, 18, 47, .72) 0%, rgba(6, 18, 47, .9) 60%, rgba(6, 18, 47, .97) 100%); }
  .hero-inner { gap: 26px; }
  .hero .kicker { font-size: .66rem; letter-spacing: .12em; }
  .hero-title { font-size: 3.3rem; margin-bottom: 18px; }
  .hero-title .outline { -webkit-text-stroke-width: 1.5px; }
  .hero-sub { font-size: 1.08rem; margin-top: 12px; }
  .hero-lead { font-size: .98rem; margin-bottom: 22px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-panel { padding: 18px; }
  .hero-panel b { font-size: 1.1rem; }
  .hero-down { display: none; }
  .tape-track span { font-size: .9rem; }

  .gauges { padding: 44px 0 50px; }
  .gauge strong { font-size: 2.4rem; margin-top: -24px; }
  .gauge > span { font-size: .72rem; }

  .stratum a { grid-template-columns: 46px 1fr 34px; gap: 14px; padding: 18px 6px; }
  .stratum a:hover, .stratum a:focus-visible { padding-block: 18px; }
  .st-depth { display: none; }
  .st-icon { width: 46px; height: 46px; border-radius: 12px; }
  .st-icon .icon { width: 24px; height: 24px; }
  .st-name { font-size: 1.05rem; }
  .st-go { width: 34px; height: 34px; }
  .strata-preview { display: none !important; }

  .calc-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .calc-field input { font-size: 1.15rem; padding: 10px 30px 10px 10px; min-height: 52px; }
  .calc-field em { right: 8px; bottom: 16px; font-size: .8rem; }
  .calc-result strong { font-size: 2.3rem; }
  .calc .btn { justify-self: stretch; }
  .calc-visual { order: -1; }
  .calc-visual svg { max-width: 300px; }

  .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; }

  .jobs, .svc-grid { grid-template-columns: 1fr; }
  .svc-card { min-height: 360px; }
  .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; }

  .pillars-photos { margin-right: 0; }
  .years-badge { width: 116px; height: 116px; font-size: .66rem; right: 6px; top: 10px; }
  .years-badge b { font-size: 2.4rem; }

  .page-hero { padding: 40px 0 52px; }
  .page-hero h1 { font-size: 2.3rem; }
  .page-lead { font-size: 1rem; }

  .q-step { padding: 20px 16px; }
  .q-step > legend { font-size: 1.1rem; }
  .q-services { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .q-service-card { min-height: 92px; padding: 12px 8px; }
  .field-grid { grid-template-columns: 1fr; }
  .q-submit .btn { width: 100%; }
  .form-card { padding: 24px 18px; }
  .job-gallery { gap: 8px; }
  .svc-gallery { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .final { padding-bottom: 70px; }
  .final-inner { padding: 34px 22px; }
  .final-arm { width: 100px; }
  .final-actions .btn { flex: 1 1 100%; }
  .lightbox { padding: 60px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }

  .site-footer .tape { margin-bottom: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; padding-bottom: 34px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .wa-float { display: none; }
  .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: 16px; background: rgba(6, 18, 47, .95); 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: 12px; color: var(--white); text-decoration: none; font-weight: 800; font-size: .84rem; }
  .dock a .icon { width: 20px; height: 20px; }
  .dock a:nth-child(2) .icon { color: #25d366; }
  .dock .dock-cta { background: var(--yellow); color: var(--night); }
  body.nav-open .dock { 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-title { font-size: 2.8rem; }
  .brand-word { font-size: .88rem; }
}

/* ---------- 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(--night); color: rgba(255, 255, 255, .75); 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(--font); font-stretch: 100%; text-transform: none; font-size: 1.15rem; font-weight: 800; color: var(--white); margin: 0; letter-spacing: 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(--sky); 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(--yellow); }
.cc-switch input:checked + span::after { transform: translateX(20px); }
.cc-switch input:focus-visible + span { outline: 3px solid var(--yellow); 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: 12px; 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(--yellow); border-color: var(--yellow); color: var(--night); }
.cc-btn-primary:hover { background: var(--yellow-600); border-color: var(--yellow-600); }
.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(--night); 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(--navy-700); }
.cc-tab .icon { width: 16px; height: 16px; color: var(--yellow); }
@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; } }
