/* Green Construction Services Group · sistema de la web de Humberto Garcés, llevado a la empresa.
   Asfalto, lima de alta visibilidad y concreto; tipografía condensada de señalética de obra. */
/* Titulares: la fuente de marca siempre (block); en la primera visita llega detrás de la intro, así que no se ve la espera. */
@font-face { font-family: 'Big Shoulders Display'; src: url('/assets/fonts/big-shoulders.woff2') format('woff2'); font-weight: 100 900; font-display: block; }
/* Texto: swap con un respaldo de Arial ajustado a las medidas de Archivo, para que el cambio no mueva el diseño. */
@font-face { font-family: 'Archivo'; src: url('/assets/fonts/archivo.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Archivo Fallback'; src: local('Arial'), local('Helvetica Neue'), local('Helvetica'); size-adjust: 103.3%; ascent-override: 85%; descent-override: 20.3%; line-gap-override: 0%; }
:root { --asphalt: #262A21; --asphalt-2: #31362B; --hivis: #CDF52C; --concrete: #F2F1EC; --ink: #16180F; --orange: #FF6A1F;
  --display: 'Big Shoulders Display', 'Archivo Narrow', Impact, sans-serif; --text: 'Archivo', 'Archivo Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(18px, 3.6vw, 64px); --max: 1440px; --ease: cubic-bezier(0.16, 1, 0.3, 1); }
body[data-theme="asphalt"] { --bg: var(--asphalt); --fg: var(--concrete); --muted: rgba(242, 241, 236, 0.66); --line: rgba(242, 241, 236, 0.16); --accent: var(--hivis); --on-accent: var(--ink); --card: var(--asphalt-2); }
body[data-theme="concrete"] { --bg: var(--concrete); --fg: var(--ink); --muted: rgba(22, 24, 15, 0.66); --line: rgba(22, 24, 15, 0.16); --accent: var(--ink); --on-accent: var(--hivis); --card: #E6E5DE; }
body[data-theme="lime"] { --bg: var(--hivis); --fg: var(--ink); --muted: rgba(22, 24, 15, 0.74); --line: rgba(22, 24, 15, 0.24); --accent: var(--ink); --on-accent: var(--hivis); --card: #BEE524; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; overflow-x: clip; }
body { background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; transition: background-color 0.8s var(--ease), color 0.8s var(--ease); }
h1, h2, h3, p { margin: 0; } img { display: block; max-width: 100%; } a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--hivis); outline-offset: 3px; }
body[data-theme="lime"] :focus-visible, body[data-theme="concrete"] :focus-visible { outline-color: var(--ink); }
[hidden] { display: none !important; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 300; padding: 12px 18px; border-radius: 999px; background: var(--hivis); color: var(--ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
section { position: relative; padding: clamp(96px, 12vw, 190px) var(--pad); }
/* ---------- tipografía y piezas comunes ---------- */
.tag { font: 700 12px/1.4 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.giant { font: 900 clamp(60px, 10.5vw, 190px)/0.84 var(--display); text-transform: uppercase; letter-spacing: -0.005em; text-wrap: balance; }
.head { max-width: var(--max); margin: 0 auto clamp(44px, 6vw, 88px); display: grid; gap: 22px; }
.head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; }
.head-row > div { display: grid; gap: 22px; }
.sub { max-width: 58ch; color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); }
.fine { max-width: var(--max); margin: 32px auto 0; color: var(--muted); font-size: 14px; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 2px solid transparent; border-radius: 999px; font: 800 14px var(--text); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform 0.4s var(--ease), background-color 0.3s, color 0.3s; }
.pill:hover { transform: translateY(-2px); }
.pill-lime, .btn-green { background: var(--hivis); color: var(--ink); }
.pill-line, .btn-line { border-color: currentColor; background: transparent; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent; font: 800 14px var(--text); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.btn:disabled, .pill:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.link-u { font-weight: 700; text-decoration: underline; text-decoration-color: var(--hivis); text-decoration-thickness: 3px; text-underline-offset: 6px; }
body[data-theme="concrete"] .link-u, body[data-theme="lime"] .link-u { text-decoration-color: var(--ink); }
/* ---------- navegación ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; gap: 28px; padding: 14px var(--pad); background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: background-color 0.8s var(--ease), transform 0.5s var(--ease); }
.nav.hide { transform: translateY(-110%); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark { width: 38px; height: 38px; flex: none; } .mark rect { fill: var(--hivis); } .mark path { stroke: var(--ink); }
.brand-name { font: 900 26px/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font: 700 13px var(--text); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.tool { min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font: 800 13px var(--text); }
.snd .eq { display: inline-flex; gap: 2px; align-items: end; height: 14px; } .snd .eq i { width: 2px; height: 4px; background: currentColor; }
.snd[aria-pressed="true"] { background: var(--hivis); color: var(--ink); border-color: var(--hivis); }
.snd[aria-pressed="true"] .eq i { animation: eq 0.9s ease-in-out infinite; } .snd .eq i:nth-child(2) { animation-delay: 0.2s; } .snd .eq i:nth-child(3) { animation-delay: 0.4s; }
@keyframes eq { 50% { height: 14px; } }
/* ---------- héroe ---------- */
.hero { padding-top: 130px; padding-bottom: 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(28px, 4vw, 72px); align-items: center; max-width: var(--max); min-height: calc(100svh - 210px); margin: 0 auto; padding-bottom: clamp(36px, 5vw, 64px); }
.hero h1 { display: grid; margin: 22px 0 26px; font: 900 clamp(72px, 9.6vw, 196px)/0.82 var(--display); white-space: nowrap; text-transform: uppercase; letter-spacing: -0.01em; }
.hero h1 .ln { display: block; overflow: hidden; animation: rise 1.1s var(--ease) both; } .hero h1 .ln + .ln { animation-delay: 0.12s; }
.hero h1 .hl { color: var(--hivis); }
@keyframes rise { from { opacity: 0; transform: translateY(0.3em); } }
.hero .lede { max-width: 50ch; color: var(--muted); font-size: clamp(17px, 1.35vw, 20px); }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 30px; }
.hero-photo { position: relative; margin: 0; }
.hero-photo img:first-child { width: 100%; height: auto; max-height: calc(100svh - 260px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; }
.seal { position: absolute; left: -46px; top: -46px; width: clamp(110px, 10vw, 160px); height: auto; animation: spin 26s linear infinite; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35)); }
@keyframes spin { to { transform: rotate(360deg); } }
.tick { margin: 0 calc(var(--pad) * -1); overflow: hidden; background: var(--hivis); color: var(--ink); border-block: 2px solid var(--ink); }
.tick-track { display: flex; width: max-content; will-change: transform; }
.tick-track span { padding: 14px 0; padding-right: 0.6em; font: 900 clamp(26px, 3vw, 44px)/1 var(--display); text-transform: uppercase; white-space: nowrap; }
/* ---------- cifras ---------- */
.stats ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: var(--max); margin: 0 auto; }
.stats li { display: grid; gap: 14px; padding: 18px 22px 0 0; border-top: 3px solid var(--ink); }
.stats li + li { padding-left: 22px; }
.stats b { font: 900 clamp(84px, 12vw, 210px)/0.82 var(--display); }
.stats span { max-width: 22ch; font-weight: 600; font-size: 16px; }
/* ---------- servicios ---------- */
.svc { max-width: var(--max); margin: 0 auto; border-bottom: 2px solid var(--fg); }
.svc-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 34%); gap: clamp(18px, 3vw, 48px); align-items: center; padding: 30px 0; border-top: 2px solid var(--fg); }
.svc-n { align-self: start; padding-top: 10px; font: 900 34px var(--display); }
.svc-txt h3 { font: 900 clamp(46px, 6.4vw, 112px)/0.86 var(--display); text-transform: uppercase; }
.svc-txt p { max-width: 46ch; margin-top: 14px; color: var(--muted); }
.svc-ph { margin: 0; overflow: hidden; border-radius: 14px; } .svc-ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s var(--ease); }
.svc-row:hover .svc-ph img { transform: scale(1.06); }
/* ---------- antes y después ---------- */
.ba-frame { position: relative; max-width: var(--max); height: min(82vh, 860px); margin: 0 auto; overflow: hidden; border-radius: 20px; --pos: 50%; }
.ba-frame:focus-within { outline: 3px solid var(--hivis); outline-offset: 4px; }
.ba-img { width: 100%; height: 100%; object-fit: cover; }
.ba-after { position: absolute; inset: 0; 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(--hivis); pointer-events: none; }
.ba-line i { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--hivis); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.ba-line i::before { content: "‹ ›"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); font: 900 22px var(--display); letter-spacing: 6px; }
.ba-tag { position: absolute; top: 18px; padding: 8px 14px; border-radius: 999px; background: var(--hivis); color: var(--ink); font: 800 12px var(--text); letter-spacing: 0.1em; text-transform: uppercase; pointer-events: none; }
.ba-tag-b { left: 18px; } .ba-tag-a { right: 18px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
/* ---------- obras ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: 0 18px; border: 2px solid var(--fg); border-radius: 999px; background: transparent; cursor: pointer; font: 800 13px var(--text); letter-spacing: 0.08em; text-transform: uppercase; }
.chip.on { background: var(--fg); color: var(--bg); }
.work { padding-inline: 0; }
.work .head { padding-inline: var(--pad); }
.wtrack { display: flex; gap: clamp(14px, 1.6vw, 24px); overflow-x: auto; padding: 0 var(--pad) 10px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; cursor: grab; }
.wtrack::-webkit-scrollbar { display: none; } .wtrack.drag { cursor: grabbing; scroll-snap-type: none; }
.wcard { flex: 0 0 clamp(260px, 28vw, 420px); margin: 0; scroll-snap-align: start; }
.w-item.hide { display: none; }
.w-open { display: block; width: 100%; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: none; cursor: zoom-in; }
.w-open img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 1s var(--ease); }
.wcard:hover .w-open img { transform: scale(1.05); }
.wcard figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; font-weight: 700; }
.cat { padding: 4px 10px; border-radius: 999px; background: var(--hivis); color: var(--ink); font: 800 11px var(--text); letter-spacing: 0.1em; text-transform: uppercase; }
.hint { padding: 18px var(--pad) 0; color: var(--muted); font-size: 14px; }
/* ---------- vive verde ---------- */
.notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2vw, 32px); max-width: var(--max); margin: 0 auto; }
.note { display: grid; align-content: start; gap: 12px; padding-top: 18px; border-top: 3px solid var(--ink); }
.note-n { font: 900 64px/0.9 var(--display); }
.note h3 { font: 900 32px/0.95 var(--display); text-transform: uppercase; }
.note p { color: var(--muted); }
/* ---------- certificaciones como calcomanías ---------- */
.stickers { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 2.4vw, 34px); max-width: 1180px; margin: 0 auto; }
.stk { display: grid; justify-items: center; gap: 4px; min-width: 190px; padding: 22px 30px; border-radius: 999px; color: var(--ink); text-align: center; transform: rotate(var(--rot, 0deg)); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3); transition: transform 0.6s var(--ease); }
.stk:hover { transform: rotate(0deg) scale(1.06); }
.stk b { font: 900 44px/0.9 var(--display); }
.stk span { max-width: 20ch; font: 800 11px/1.3 var(--text); letter-spacing: 0.08em; text-transform: uppercase; }
.stk-lime { background: var(--hivis); } .stk-white { background: var(--concrete); } .stk-orange { background: var(--orange); }
/* ---------- dirección ---------- */
.leader { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 90px); align-items: end; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding-bottom: 0; }
.lead-photo { position: relative; margin: 0; }
.lead-photo::before { content: ""; position: absolute; left: 8%; right: 8%; bottom: 0; aspect-ratio: 1; border-radius: 50%; background: var(--hivis); }
.lead-photo img { position: relative; width: 100%; height: auto; }
.lead-copy { display: grid; gap: 22px; padding-bottom: clamp(60px, 8vw, 140px); }
.lead-name { font-size: 18px; } .lead-name b { font: 900 30px var(--display); text-transform: uppercase; }
/* ---------- cotización ---------- */
.est { max-width: 1040px; margin: 0 auto; padding: clamp(22px, 3vw, 44px); border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.est-prog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 32px; font: 700 12px var(--text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.est-prog li { padding-top: 12px; border-top: 4px solid var(--line); } .est-prog li.done { border-color: var(--hivis); color: var(--fg); } .est-prog li.on { border-color: var(--hivis); color: var(--fg); }
.est fieldset { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.est legend { margin-bottom: 14px; font: 900 32px/1 var(--display); text-transform: uppercase; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.opt { position: relative; display: grid; gap: 4px; padding: 16px 18px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color 0.25s, background-color 0.25s; }
.opt input { position: absolute; opacity: 0; } .opt b { font-weight: 800; } .opt small { color: var(--muted); font-size: 13px; }
.opt:hover { border-color: var(--fg); }
.opt:has(input:checked) { border-color: var(--hivis); background: rgba(205, 245, 44, 0.1); }
.opt:has(input:focus-visible) { outline: 3px solid var(--hivis); outline-offset: 2px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fld { display: grid; gap: 6px; margin-bottom: 16px; } .fld label { font-weight: 700; font-size: 14px; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 50px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--fg); }
.fld textarea { min-height: 120px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--hivis); outline: none; }
.bad .opts, .bad input, .bad select, .bad textarea { border-color: var(--orange) !important; box-shadow: 0 0 0 2px var(--orange); border-radius: 12px; }
.est-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.est-msg { min-height: 1.5em; margin-top: 14px; color: var(--orange); font-weight: 700; font-size: 14px; }
.est-ok { display: grid; gap: 14px; justify-items: start; } .est-ok h3 { font: 900 clamp(44px, 6vw, 80px)/0.9 var(--display); text-transform: uppercase; color: var(--hivis); }
.kicker, .mono { font: 700 12px var(--text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
/* ---------- contacto y pie ---------- */
.cinfo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; max-width: var(--max); margin: 0 auto; }
.cinfo div { padding-top: 16px; border-top: 2px solid var(--line); }
.cinfo dt { font: 700 12px var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.cinfo dd { margin: 10px 0 0; font: 800 clamp(22px, 2vw, 30px)/1.25 var(--display); text-transform: uppercase; }
.cinfo a { text-decoration: underline; text-decoration-color: var(--hivis); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.foot { overflow: hidden; padding: 40px var(--pad) 34px; }
.foot-word { font: 900 clamp(84px, 17.5vw, 320px)/0.8 var(--display); text-transform: uppercase; color: var(--hivis); letter-spacing: -0.01em; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot-row a { margin-left: auto; color: var(--fg); font-weight: 700; }
/* ---------- asistente de voz, visor y avisos ---------- */
/* Talk to Green: asistente de voz con la hojita (diseño aprobado por Humberto, oct 2026) */
.voice { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; justify-items: end; gap: 12px; }
.voice-btn { gap: 10px; padding: 0 24px 0 16px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35); }
.voice-btn .leaf { width: 27px; height: 22px; flex: none; }
.voice.is-live .voice-btn { animation: vlive 1.8s ease-out infinite; }
@keyframes vlive { 0% { box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(205, 245, 44, 0.55); } 100% { box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 0 0 16px rgba(205, 245, 44, 0); } }
.voice-panel { width: min(384px, calc(100vw - 40px)); max-height: calc(100svh - 112px); overflow-y: auto; overscroll-behavior: contain; padding: 22px 22px 18px; border: 1px solid rgba(205, 245, 44, 0.16); border-radius: 24px;
  background: linear-gradient(180deg, #2A4436 0%, #253A31 46%, #21352B 100%); color: var(--concrete); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); scrollbar-width: thin; }
.vp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.vp-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vp-brand .leaf { width: 42px; height: 34px; flex: none; margin-top: -4px; }
.vp-head h2 { font: 900 32px/0.92 var(--display); letter-spacing: 0.01em; text-transform: uppercase; }
.vp-green { color: var(--hivis); }
.vp-sub { max-width: 32ch; margin-top: 12px; color: rgba(242, 241, 236, 0.78); font-size: 15px; line-height: 1.45; }
.vp-close { display: grid; place-items: center; width: 40px; height: 40px; flex: none; padding: 0; border: 1px solid rgba(242, 241, 236, 0.3); border-radius: 50%; background: none; color: inherit; cursor: pointer; transition: background-color 0.25s, border-color 0.25s, color 0.25s; }
.vp-close:hover { border-color: var(--hivis); background: var(--hivis); color: var(--ink); }
.vp-close svg { width: 14px; height: 14px; }
.vp-orb { --lvl: 0; display: grid; place-items: center; width: 96px; height: 96px; margin: 32px auto 26px; border-radius: 50%; background: var(--hivis); color: var(--ink);
  box-shadow: 0 0 0 calc(12px + var(--lvl) * 12px) rgba(205, 245, 44, 0.13), 0 0 0 calc(26px + var(--lvl) * 22px) rgba(205, 245, 44, 0.05); transition: box-shadow 0.12s linear; }
.vp-orb svg { width: 34px; height: 34px; }
.voice[data-state="voiceConnecting"] .vp-orb { animation: vorb 1.2s ease-in-out infinite; }
@keyframes vorb { 50% { box-shadow: 0 0 0 20px rgba(205, 245, 44, 0.17), 0 0 0 40px rgba(205, 245, 44, 0.06); } }
.vp-status { text-align: center; font: 700 19px/1.25 var(--text); text-wrap: balance; }
.vp-log { display: grid; gap: 6px; max-height: 150px; overflow: auto; margin-top: 14px; font-size: 14px; line-height: 1.4; }
.vp-log:empty { display: none; }
.vp-log p { max-width: 88%; padding: 8px 12px; border-radius: 14px; }
.vl-ai { justify-self: start; background: rgba(242, 241, 236, 0.09); }
.vl-user { justify-self: end; background: rgba(205, 245, 44, 0.16); }
.vl-sys { justify-self: center; max-width: 100%; padding: 2px 0; background: none; color: var(--hivis); font-weight: 700; text-align: center; }
.vp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.vp-actions .pill { min-height: 46px; padding: 0 22px; font-size: 13px; }
.vp-actions .pill-line { border-color: rgba(242, 241, 236, 0.36); color: var(--concrete); }
.vp-actions .pill-line:not(:disabled):hover { border-color: var(--concrete); }
.vp-note { margin-top: 18px; color: rgba(242, 241, 236, 0.78); font-size: 13.5px; line-height: 1.45; }
.vp-fine { margin-top: 6px; color: rgba(242, 241, 236, 0.62); font-size: 12px; line-height: 1.4; }
.lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(22, 24, 15, 0.96); color: var(--concrete); }
.lb::backdrop { background: rgba(22, 24, 15, 0.6); } .lb[open] { display: grid; place-items: center; }
.lb-fig { display: grid; justify-items: center; gap: 14px; max-width: min(1240px, 90vw); margin: 0; }
.lb-fig img { width: auto; max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: 12px; }
.lb-fig figcaption { font-weight: 700; } .lb-fig #lb-n { color: var(--hivis); }
.lb-x, .lb-nav { position: absolute; width: 56px; height: 56px; border: 2px solid var(--hivis); border-radius: 50%; background: transparent; color: var(--hivis); font-size: 22px; cursor: pointer; }
.lb-x { top: 20px; right: 20px; } .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); } .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-x:hover, .lb-nav:hover { background: var(--hivis); color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translateX(-50%); max-width: min(520px, 92vw); padding: 14px 20px; border-radius: 14px; background: var(--hivis); color: var(--ink); font-weight: 700; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3); }
.rv { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.stk.rv.in { transform: rotate(var(--rot, 0deg)); }
/* ---------- responsive y movimiento reducido ---------- */
@media (max-width: 1320px) { .nav-links { display: none; } }
@media (max-width: 1100px) { .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .hero-grid, .leader, .cinfo, .grid2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(64px, 21vw, 120px); white-space: normal; }
  .hero-grid { min-height: 0; }
  .hero-photo { max-width: 420px; } .seal { left: auto; right: -18px; top: -40px; }
  .stats ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; } .stats li:nth-child(3) { padding-left: 0; }
  .svc-row { grid-template-columns: 48px minmax(0, 1fr); } .svc-ph { grid-column: 2; }
  .nav-cta { display: none; } .brand-name { font-size: 22px; }
  .est-prog { font-size: 10px; }
}
@media (max-width: 560px) { .notes { grid-template-columns: 1fr; } .stk { min-width: 150px; padding: 16px 22px; } .stk b { font-size: 34px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .rv { opacity: 1; transform: none; } .stk.rv { transform: rotate(var(--rot, 0deg)); } }
.pill, .brand-name, .nav-links a { white-space: nowrap; }

/* ================= marca real, intro y héroe cinematográfico ================= */
.sym { height: 38px; width: auto; flex: none; } .sym-ink { display: none; }
body[data-theme="concrete"] .nav .sym-lime, body[data-theme="lime"] .nav .sym-lime { display: none; }
body[data-theme="concrete"] .nav .sym-ink, body[data-theme="lime"] .nav .sym-ink { display: block; }
.gc-intro { position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; background: var(--asphalt); transition: transform 0.95s cubic-bezier(0.76, 0, 0.24, 1); }
.gc-intro.done { transform: translateY(-100%); }
.gc-intro img { width: clamp(84px, 9vw, 130px); height: auto; clip-path: inset(100% 0 0 0); animation: gc-stack 1.05s cubic-bezier(0.65, 0, 0.35, 1) 0.15s forwards; }
@keyframes gc-stack { 40% { clip-path: inset(62% 0 0 0); } 70% { clip-path: inset(30% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.gc-intro p { position: absolute; bottom: 12vh; margin: 0; font: 900 clamp(18px, 1.8vw, 26px) var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--hivis); opacity: 0; animation: gc-fade 0.6s ease 0.95s forwards; }
@keyframes gc-fade { to { opacity: 1; } }
.hx { position: relative; height: 215vh; padding: 0; }
.hx-pin { position: sticky; top: 0; display: grid; align-items: end; height: 100vh; height: 100svh; overflow: hidden; padding: 0 var(--pad) clamp(44px, 9vh, 100px); }
.hx-media { position: absolute; inset: 0; clip-path: inset(calc(var(--k, 0) * 10%) calc(var(--k, 0) * 7%) calc(var(--k, 0) * 10%) calc(var(--k, 0) * 7%) round calc(var(--k, 0) * 30px)); will-change: clip-path; background: #1B1E17; }
.hx-media video { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.1 - var(--k, 0) * 0.1)); }
.hx-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 24, 15, 0.55) 0%, rgba(22, 24, 15, 0.12) 38%, rgba(22, 24, 15, 0.88) 100%); opacity: calc(1 - var(--k, 0) * 0.35); }
.hx-sym { position: absolute; z-index: 2; right: var(--pad); top: calc(84px + 6vh); width: clamp(70px, 6.5vw, 116px); height: auto; opacity: calc(1 - var(--k, 0) * 1.4); filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4)); }
.hx-copy { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; color: var(--concrete); transform: translateY(calc(var(--k, 0) * -12vh)); opacity: calc(1 - var(--k, 0) * 1.8); }
.hx-copy .tag { color: rgba(242, 241, 236, 0.78); }
.hx-copy h1 { display: grid; margin: 18px 0 22px; font: 900 clamp(76px, 11.5vw, 228px)/0.8 var(--display); text-transform: uppercase; letter-spacing: -0.01em; }
.hx-copy h1 .ln { display: block; animation: rise 1.1s var(--ease) 1.3s both; } .hx-copy h1 .ln + .ln { animation-delay: 1.42s; }
.hx-copy .hl { color: var(--hivis); }
.hx-copy .lede { max-width: 50ch; color: rgba(242, 241, 236, 0.88); font-size: clamp(17px, 1.3vw, 20px); }
.hx-copy .link-u { color: var(--concrete); }
.hx-scroll { position: absolute; z-index: 2; right: var(--pad); bottom: 30px; display: flex; align-items: center; gap: 10px; margin: 0; font: 800 12px var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(242, 241, 236, 0.82); opacity: calc(1 - var(--k, 0) * 2); }
.hx-scroll i { width: 40px; height: 2px; background: var(--hivis); transform-origin: left; animation: gc-line 2s var(--ease) infinite; }
@keyframes gc-line { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.hx + .stats, .hx .tick { position: relative; z-index: 3; }
.foot-logo { display: block; width: min(980px, 92%); height: auto; margin: 10px auto 0; }
@media (max-width: 860px) { .hx { height: 180vh; } .hx-copy h1 { font-size: clamp(64px, 19vw, 120px); } .hx-sym { top: calc(76px + 3vh); } .hx-scroll { display: none; } }
@media (prefers-reduced-motion: reduce) { .gc-intro { display: none; } .hx { height: auto; } .hx-pin { position: relative; } .hx-copy h1 .ln { animation: none; } }
.hx + .tick { margin: 0; position: relative; z-index: 3; }

/* ================= fluidez y color: fotos reales, todo por GPU, sin bucles ni desenfoques ================= */
.nav { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--bg) 95%, transparent); }
body { transition: background-color 0.35s ease, color 0.35s ease; }
.hx-media { clip-path: none; transform: scale(calc(1 - var(--k, 0) * 0.13)); border-radius: calc(var(--k, 0) * 28px); overflow: hidden; will-change: transform; }
.hx-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: hx-fade 24s linear infinite, hx-kb 24s ease-in-out infinite; }
.hx-slide:nth-child(1) { animation-delay: 0s, 0s; } .hx-slide:nth-child(2) { animation-delay: 6s, 6s; } .hx-slide:nth-child(3) { animation-delay: 12s, 12s; } .hx-slide:nth-child(4) { animation-delay: 18s, 18s; }
@keyframes hx-fade { 0% { opacity: 0; } 4% { opacity: 1; } 25% { opacity: 1; } 29% { opacity: 0; } 100% { opacity: 0; } }
@keyframes hx-kb { 0% { transform: scale(1.12) translate3d(1.5%, 1%, 0); } 29% { transform: scale(1.02) translate3d(-1%, -0.5%, 0); } 100% { transform: scale(1.02); } }
.hx-shade { background: linear-gradient(180deg, rgba(22, 24, 15, 0.5) 0%, rgba(22, 24, 15, 0.08) 36%, rgba(22, 24, 15, 0.82) 100%); }
.tick-track { animation: tick-run 46s linear infinite; }
@keyframes tick-run { to { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .hx-slide { animation: none; } .hx-slide:first-child { opacity: 1; } .tick-track { animation: none; } }
.hx-shade { background: linear-gradient(90deg, rgba(22, 24, 15, 0.78) 0%, rgba(22, 24, 15, 0.42) 42%, rgba(22, 24, 15, 0) 72%), linear-gradient(180deg, rgba(22, 24, 15, 0.45) 0%, rgba(22, 24, 15, 0) 30%, rgba(22, 24, 15, 0.7) 100%); }

/* ---------- servicios nuevos y formulario con foto (2026-10-07) ---------- */
.svc-call { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 15px; border-radius: 999px; background: var(--orange); color: var(--ink); font: 800 13px/1 var(--text); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; transition: transform 0.4s var(--ease), background-color 0.25s; }
.svc-call::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: svcpulse 1.6s ease-in-out infinite; }
.svc-call:hover { background: var(--hivis); transform: translateY(-2px); }
@keyframes svcpulse { 50% { transform: scale(1.7); opacity: 0.4; } }
.opts-img { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }  /* 7 tipos: 4 + 3 */
.opts-img .opt { align-content: start; padding: 10px 10px 16px; }
.opts-img .opt b, .opts-img .opt small { padding: 0 6px; }
.opt-ph { display: block; margin-bottom: 10px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 9px; background: rgba(242, 241, 236, 0.06); }
.opt-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease), filter 0.4s; filter: saturate(0.9); }
.opt:hover .opt-ph img { transform: scale(1.05); filter: none; }
.opt:has(input:checked) .opt-ph img { filter: none; }
.em-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 22px; margin: 0 0 24px; padding: 16px 18px; border: 2px solid var(--orange); border-radius: 14px; background: rgba(255, 106, 31, 0.1); }
.em-note[hidden] { display: none; }
.em-note p { margin: 0; max-width: 62ch; font-size: 15px; }
.em-note b { display: block; margin-bottom: 6px; font: 900 24px/1 var(--display); text-transform: uppercase; color: var(--orange); }
.em-call { flex: none; }
@media (max-width: 760px) { .opts-img { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .opts-img .opt b { font-size: 15px; } .opts-img .opt small { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .svc-call::before { animation: none; } }

/* ---------- pulido general (2026-10-07) ---------- */
/* Héroe: cada diapositiva es un <picture> (versión vertical liviana en celulares) */
.hx-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hx-em { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--concrete); font: 800 13px/1 var(--text); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.hx-em::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(255, 106, 31, 0.6); animation: empulse 1.8s ease-out infinite; }
.hx-em:hover { color: var(--hivis); }
@keyframes empulse { 0% { box-shadow: 0 0 0 0 rgba(255, 106, 31, 0.6); } 80%, 100% { box-shadow: 0 0 0 12px rgba(255, 106, 31, 0); } }
/* Filtros de obras en fila (una regla genérica de .head-row > div los convertía en columna) */
.head-row > .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { white-space: nowrap; }
/* Menú para pantallas medianas y celulares */
.menu-btn { display: none; }
.menu { position: fixed; inset: 0; z-index: 95; display: grid; align-content: space-between; gap: 32px; padding: calc(98px + env(safe-area-inset-top)) var(--pad) calc(28px + env(safe-area-inset-bottom)); overflow-y: auto; background: var(--asphalt); color: var(--concrete); }
.menu[hidden] { display: none; }
.menu-links { display: grid; justify-items: start; gap: 2px; }
.menu-links a { color: var(--concrete); font: 900 clamp(42px, 9vw, 84px)/1 var(--display); text-transform: uppercase; text-decoration: none; transition: color 0.2s; }
.menu-links a:hover, .menu-links a:focus-visible { color: var(--hivis); }
.menu-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.menu-call { color: var(--orange); font: 800 14px var(--text); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }
.menu-mail { color: rgba(242, 241, 236, 0.75); font-size: 14px; }
body.menu-open { overflow: hidden; }
body.menu-open .nav { --bg: var(--asphalt); --fg: var(--concrete); --line: rgba(242, 241, 236, 0.16); color: var(--concrete); background: var(--asphalt); border-color: transparent; }
body.menu-open .nav .sym-lime { display: block; } body.menu-open .nav .sym-ink { display: none; }
body.menu-open .voice { display: none; }
@media (max-width: 1320px) { .menu-btn { display: inline-flex; align-items: center; letter-spacing: 0.06em; text-transform: uppercase; } }
/* Talk to Green: botón compacto en celulares y se aparta mientras el formulario está en pantalla */
.voice-btn { transition: opacity 0.35s, visibility 0.35s, transform 0.45s var(--ease); }
.voice.is-tucked .voice-btn { opacity: 0; visibility: hidden; transform: translateY(14px); pointer-events: none; }
.est-now { display: none; }
@media (max-width: 860px) {
  .voice { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); }
  .voice-btn { width: 58px; height: 58px; min-height: 58px; padding: 0; gap: 0; font-size: 0; justify-content: center; }
  .voice-btn .leaf { width: 31px; height: 25px; }
  .voice-panel { width: calc(100vw - 28px); padding: 18px 18px 16px; }
  .vp-head h2 { font-size: 29px; }
  .vp-orb { width: 84px; height: 84px; margin: 26px auto 22px; }
  .vp-orb svg { width: 30px; height: 30px; }
  .vp-actions { gap: 8px; }
  .vp-actions .pill { padding: 0 16px; font-size: 12px; letter-spacing: 0.05em; }
  .head-row > .chips { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 2 * var(--pad)); margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad) 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .head-row > .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; scroll-snap-align: start; }
  .svc-call, .hx-em { letter-spacing: 0.03em; font-size: 12px; }
}
@media (max-width: 560px) {
  .est-prog { gap: 6px; margin-bottom: 12px; } .est-prog .ep-l { display: none; }
  .est-now { display: block; margin: 0 0 24px; color: var(--fg); font: 700 12px var(--text); letter-spacing: 0.08em; text-transform: uppercase; }
  .est-now .mono { color: var(--muted); margin-right: 6px; }
}
@media (prefers-reduced-motion: reduce) { .hx-em::before { animation: none; } }
/* Barra en celulares: el menú reemplaza al sonido y todo cabe desde 360 px */
@media (max-width: 560px) {
  .nav { gap: 10px; }
  .nav .snd { display: none; }
  .nav-tools { gap: 8px; }
  .nav .tool { min-width: 42px; height: 42px; }
  .menu-btn { padding: 0 12px; }
}
@media (max-width: 400px) { .brand-name { font-size: 19px; } .brand { gap: 9px; } .sym { height: 34px; } }
/* Sin los enlaces (≤1320 px) nada empujaba las herramientas a la derecha */
@media (max-width: 1320px) { .nav-tools { margin-left: auto; } }
/* Etiqueta de categoría en las tarjetas de obras: la larga («Government, infrastructure & utilities») se parte con gracia */
.cat { display: inline-block; max-width: 100%; line-height: 1.3; border-radius: 12px; }
.lead-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; }
/* Títulos de servicio en celulares: la palabra más larga («Infraestructura», «Reparaciones») cabe desde 320 px */
@media (max-width: 560px) { .svc-txt h3 { font-size: clamp(30px, 10.2vw, 46px); line-height: 0.9; } }
@media (max-width: 380px) { .giant { font-size: clamp(44px, 15.5vw, 60px); } }

/* ---------- rendimiento y fluidez (2026-10-10) ---------- */
/* Las imágenes van en <picture> (AVIF + WebP): el contenedor no genera caja, así el diseño no cambia. */
picture { display: contents; }
/* Intro más corta y animada por GPU (transform y opacidad en vez de clip-path). */
.gc-intro { transition-duration: 0.7s; }
.gc-intro img { clip-path: none; animation: gc-in 0.6s cubic-bezier(0.22, 0.8, 0.16, 1) 0.05s both; }
@keyframes gc-in { from { opacity: 0; transform: translateY(22px) scale(0.92); } }
.gc-intro p { animation: gc-fade 0.4s ease 0.3s forwards; }
.hx-copy h1 .ln { animation-delay: 0.5s; } .hx-copy h1 .ln + .ln { animation-delay: 0.6s; }
/* Pulso de emergencias por GPU: un anillo que crece y se desvanece, sin repintar la sombra en cada cuadro. */
.hx-em { position: relative; }
.hx-em::before { box-shadow: none; animation: none; }
.hx-em::after { content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: rgba(255, 106, 31, 0.55); pointer-events: none; animation: em-ring 1.8s ease-out infinite; }
@keyframes em-ring { from { transform: scale(1); opacity: 0.9; } 80%, to { transform: scale(3.2); opacity: 0; } }
/* Fuera de pantalla, las animaciones continuas se detienen (app.js pone .is-off). */
.is-off .hx-slide, .is-off .hx-scroll i, .is-off .hx-em::after, .tick.is-off .tick-track { animation-play-state: paused; }
/* Secciones lejanas: el navegador no las dibuja hasta que se acercan a la pantalla. */
.services, .ba, .work, .green, .certs, .leader, .contact { content-visibility: auto; contain-intrinsic-size: auto 900px; }
@media (prefers-reduced-motion: reduce) { .hx-em::after { animation: none; display: none; } }
/* Intro: se retira sola por CSS a los 0,75 s, aunque el JavaScript llegue tarde en una red lenta; si ya se vio en la sesión, no aparece. */
.gc-intro { animation: gc-out 0.7s cubic-bezier(0.76, 0, 0.24, 1) 0.75s forwards; }
@keyframes gc-out { to { transform: translateY(-100%); visibility: hidden; } }
.gc-seen .gc-intro { display: none; }
.gc-seen .hx-copy h1 .ln { animation-delay: 0.05s; } .gc-seen .hx-copy h1 .ln + .ln { animation-delay: 0.15s; }
