/* =====================================================================
   ing.cmae — styles.css
   Concepto: "juego de láminas" de un proyecto de ingeniería. Papel de
   plano con cuadrícula, cotas, rótulos en tipografía técnica (IBM Plex
   Mono), cajetín en el pie y lecturas tipo instrumento.
   Mobile-first: estilos base = móvil; @media (min-width) amplía.
   Colores de marca en :root.
   ===================================================================== */

:root {
  --navy: #0A1A2B;
  --navy-2: #0f2338;
  --navy-3: #16314f;
  --blue: #0B74BC;
  --blue-d: #085a93;
  --blue-l: #6db8ec;
  --gold: #D9A441;
  --gold-l: #e9c272;
  --gold-ink: #8a5f12;          /* dorado legible sobre fondos claros */
  --paper: #f3f6f9;
  --paper-2: #e8eef4;
  --ink: #13202e;
  --muted: #566577;
  --line: rgba(10, 26, 43, .14);
  --line-l: rgba(255, 255, 255, .14);
  --wa: #25D366;
  --r: 4px;                     /* esquinas casi rectas: lenguaje de plano */
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --max: 1220px;
  --shadow: 0 18px 40px -18px rgba(10, 26, 43, .35);
}

/* ---------------- Base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 1rem; overflow-x: hidden; }
img, video, svg { max-width: 100%; display: block; }
img, video { height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.015em; }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.7rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1.04rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 6px var(--gold); }
[hidden] { display: none !important; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.hp { display: none; }
.center { text-align: center; margin-top: 2.2rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono-k { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .8rem; color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--gold); color: var(--navy); padding: .5rem 1rem; font-weight: 700; }
.skip-link:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Aparición al hacer scroll (solo si hay JS) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------- Botones ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .8rem 1.35rem; border: 2px solid transparent; border-radius: var(--r); font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s, box-shadow .15s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 24px -10px rgba(217, 164, 65, .8); }
.btn-gold:hover { background: var(--gold-l); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-d); }
.btn-wa { background: var(--wa); color: #05301a; }
.btn-wa:hover { background: #1fc05a; }
.btn-line { border-color: currentColor; color: #fff; background: transparent; }
.btn-line:hover { background: rgba(255, 255, 255, .08); }
.paper .btn-line { color: var(--navy); }
.btn-sm { min-height: 42px; padding: .5rem .95rem; font-size: .86rem; }
.btn-lg { min-height: 54px; padding: 1rem 1.7rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------------- Cabecera ---------------- */
.site-header { position: sticky; top: 0; z-index: 80; background: rgba(10, 26, 43, .82); backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%); transition: background .3s; }
.site-header.scrolled { background: rgba(10, 26, 43, .96); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text > span { font-size: 1.28rem; font-weight: 600; letter-spacing: -.01em; }
.brand-text b { color: var(--gold); font-weight: 800; }
.brand-text small { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #9fb4c8; margin-top: 3px; }
.nav-toggle { width: 46px; height: 46px; display: grid; place-content: center; gap: 6px; background: none; border: 1px solid var(--line-l); border-radius: var(--r); cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav { position: fixed; inset: 66px 0 0 0; background: var(--navy); padding: 1.5rem 20px; clip-path: inset(0 0 0 100%); visibility: hidden; transition: clip-path .35s ease, visibility 0s .35s; overflow-y: auto; }
.nav.open { clip-path: inset(0); visibility: visible; transition: clip-path .35s ease; }
.nav ul { list-style: none; display: grid; gap: .2rem; counter-reset: n; }
.nav li { counter-increment: n; }
.nav a { display: flex; align-items: baseline; gap: .8rem; color: #e8eef5; text-decoration: none; font-weight: 600; font-size: 1.25rem; padding: .7rem .3rem; border-bottom: 1px solid var(--line-l); }
.nav ul a::before { content: "0" counter(n); font-family: var(--mono); font-size: .72rem; color: var(--gold); }
.nav a:hover, .nav a.active { color: var(--gold); }
.nav .nav-cta:hover, .nav .nav-cta.active { color: var(--navy); }
.nav .nav-cta { margin-top: .8rem; border: 0; background: var(--gold); color: var(--navy); justify-content: center; border-radius: var(--r); }
.nav .nav-cta::before { color: var(--navy); }
.nav-social { display: flex; gap: .6rem; margin-top: 1.4rem; }
.nav-social a, .tb-social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-l); border-radius: 50%; color: #fff; padding: 0; }
.nav-social svg, .tb-social svg { width: 18px; height: 18px; }
.nav-social a:hover, .tb-social a:hover { border-color: var(--gold); color: var(--gold); }
body.menu-open { overflow: hidden; }
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .nav { position: static; clip-path: none; visibility: visible; background: none; padding: 0; overflow: visible; display: flex; align-items: center; gap: 1.2rem; }
  .nav ul { display: flex; align-items: center; gap: .1rem; }
  .nav a { font-size: .9rem; padding: .5rem .7rem; border: 0; }
  .nav ul a::before { font-size: .72rem; }
  .nav .nav-cta { margin: 0 0 0 .5rem; padding: .55rem 1.1rem; }
  .nav-social { margin: 0; gap: .35rem; }
  .nav-social a { width: 34px; height: 34px; }
  .nav-social svg { width: 15px; height: 15px; }
}
/* Regla de avance (cota) */
.ruler { position: relative; height: 6px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .28) 0 1px, transparent 1px 10px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .45) 0 1px, transparent 1px 100px); background-size: auto 3px, auto 6px; background-repeat: repeat-x; background-position: bottom; }
.ruler-fill { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.ruler-val { position: absolute; right: 8px; bottom: 7px; font-weight: 600; font-family: var(--mono); font-size: .7rem; color: var(--gold); letter-spacing: .1em; }
.ruler-val::after { content: " %"; }

/* ---------------- Encabezados de lámina ---------------- */
.section { padding: 4.5rem 0; position: relative; }
@media (min-width: 900px) { .section { padding: 6.5rem 0; } }
.paper { background-color: var(--paper); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 120px 120px; background-position: -1px -1px; }
.paper::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(10, 26, 43, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 26, 43, .05) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
.paper > .container { position: relative; }
.dark { background: var(--navy); color: #dde6ef; background-image: linear-gradient(var(--line-l) 1px, transparent 1px), linear-gradient(90deg, var(--line-l) 1px, transparent 1px); background-size: 120px 120px; }
.dark h2, .dark h3 { color: #fff; }
.section-head { max-width: 50rem; margin-bottom: 2.6rem; }
.section-head > p:last-child { color: var(--muted); font-size: 1.05rem; }
.dark .section-head > p:last-child { color: #a9bccf; }
.sheet { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin: 0 0 1.1rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.sheet span { white-space: nowrap; padding: .3rem .7rem; border: 1px solid var(--line); margin-right: -1px; color: var(--muted); background: rgba(255, 255, 255, .6); }
.sheet span:first-child { background: var(--navy); color: var(--gold); border-color: var(--navy); font-weight: 600; }
.dark .sheet span, .contact .sheet span, .page-hero .sheet span { border-color: var(--line-l); color: #dce9f5; background: rgba(255, 255, 255, .03); }
.dark .sheet span:first-child, .contact .sheet span:first-child, .page-hero .sheet span:first-child { background: var(--gold); color: var(--navy); border-color: var(--gold); }
/* Cota bajo cada h2 */
.section-head h2 { position: relative; padding-bottom: .9rem; }
.section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: min(260px, 60%); height: 9px; border-left: 1px solid currentColor; border-right: 1px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat; opacity: .35; }

/* ---------------- HERO ---------------- */
.hero { position: relative; min-height: min(calc(100svh - 72px), 980px); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; background: var(--navy); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -3; }
.hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-poster { animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.12) translate(-2%, -2%); } }
.hero-video { opacity: 0; transition: opacity 1.2s ease; }
.hero-video.on { opacity: 1; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(10, 26, 43, .55) 0%, rgba(10, 26, 43, .35) 40%, rgba(10, 26, 43, .92) 88%), linear-gradient(90deg, rgba(10, 26, 43, .85) 0%, rgba(10, 26, 43, .2) 70%); }
.topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: .9; }
.hero .topo { mix-blend-mode: screen; opacity: .55; }
.hero-blueprint { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46%; z-index: -1; pointer-events: none; opacity: .5; }
.bp-lines path { fill: none; stroke: #9fd0f5; stroke-width: 1.6; }
.bp-water { stroke: var(--blue-l) !important; stroke-dasharray: 6 6; }
.bp-dim path { fill: none; stroke: var(--gold); stroke-width: 1.4; }
.bp-dim text { fill: var(--gold); font-family: var(--mono); font-size: 15px; letter-spacing: .08em; }
.js .draw .bp-lines path:not(.bp-water), .js .draw .bp-dim path { stroke-dasharray: 2400; stroke-dashoffset: 2400; }
.js .draw.in .bp-lines path:not(.bp-water), .js .draw.in .bp-dim path { animation: drawline 3.2s .3s cubic-bezier(.6, .1, .2, 1) forwards; }
.js .draw .bp-dim text { opacity: 0; }
.js .draw.in .bp-dim text { animation: fadein .8s 2.6s forwards; }
@keyframes drawline { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
.hero-inner { display: grid; gap: 2.2rem; padding-top: 3.5rem; padding-bottom: 2rem; }
.hero-coords { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.4rem; font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #cfe2f3; }
.hero-coords span { padding: .28rem .6rem; border: 1px solid rgba(255, 255, 255, .25); background: rgba(10, 26, 43, .35); }
.hero-coords .clock { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.hero h1 { font-size: clamp(1.85rem, 3.9vw, 3.05rem); font-weight: 900; letter-spacing: -.025em; max-width: 21ch; text-wrap: balance; }
.hero h1 .hl { color: transparent; -webkit-text-stroke: 1.2px #fff; background: linear-gradient(90deg, #fff, #fff) left bottom / 0 100% no-repeat; -webkit-background-clip: text; background-clip: text; animation: fillin 1.6s .6s forwards cubic-bezier(.6, .1, .2, 1); }
@keyframes fillin { to { background-size: 100% 100%; } }
@supports not (-webkit-text-stroke: 1px #fff) { .hero h1 .hl { color: #fff; } }
.hero-lema { font-size: clamp(1.15rem, 3.4vw, 1.55rem); font-weight: 700; color: var(--gold); margin-bottom: .4rem; }
.hero-rotator { color: #cfe2f3; font-size: 1.05rem; margin-bottom: 1.8rem; }
.rotate { display: inline-block; color: #fff; font-weight: 700; border-bottom: 2px solid var(--gold); transition: opacity .35s, transform .35s; }
.rotate.out { opacity: 0; transform: translateY(8px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
/* Cotizador */
.quick-quote { align-self: end; background: rgba(10, 26, 43, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .16); border-top: 3px solid var(--gold); padding: 1.3rem; display: grid; gap: .35rem; }
.qq-head, .form-head { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; color: #a9bccf; border-bottom: 1px dashed rgba(255, 255, 255, .2); padding-bottom: .6rem; margin-bottom: .5rem; }
.qq-head b { color: var(--gold); font-weight: 600; }
.qq-title { font-size: 1.15rem; color: #fff; margin: .2rem 0 .4rem; }
.quick-quote label { font-size: .78rem; font-weight: 600; color: #cfe2f3; margin-top: .3rem; }
.quick-quote select, .quick-quote input { width: 100%; min-height: 46px; padding: .6rem .8rem; background: rgba(255, 255, 255, .95); color: var(--ink); border: 1px solid transparent; border-radius: var(--r); }
.quick-quote .btn { margin-top: .7rem; }
.qq-foot { margin: .3rem 0 0; font-family: var(--mono); font-size: .75rem; color: #9fb4c8; text-align: center; letter-spacing: .06em; }
.hero-bottom { position: relative; padding-bottom: 1.6rem; }
.reel { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin: 0 0 1rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #cfe2f3; min-height: 1.6em; }
.reel-tag { color: var(--gold); font-weight: 600; }
.reel-caption { opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.reel-caption.show { opacity: 1; transform: none; }
.reel-dots { display: inline-flex; gap: 5px; margin-left: .3rem; }
.reel-dots i { width: 18px; height: 2px; background: rgba(255, 255, 255, .3); }
.reel-dots i.on { background: var(--gold); }
.readouts { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.readouts div { padding: .9rem .2rem .9rem 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.readouts div:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .12); }
.readouts div:nth-child(even) { padding-left: 1rem; }
.readouts dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #9fb4c8; margin-bottom: .2rem; }
.readouts dd { margin: 0; display: flex; align-items: baseline; gap: .35rem; }
.readouts b { font-family: var(--mono); font-weight: 600; font-size: clamp(1.5rem, 4.6vw, 2.3rem); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.readouts small { font-family: var(--mono); color: var(--gold); font-size: .8rem; text-transform: uppercase; }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); align-items: end; gap: 3.5rem; padding-top: 3.2rem; }
  .readouts { grid-template-columns: repeat(4, 1fr); }
  .readouts div { border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, .12); padding-left: 1.1rem !important; }
  .readouts div:first-child { padding-left: 0 !important; }
  .readouts div:last-child { border-right: 0; }
}

/* Franja de entidades */
.trust { background: var(--gold); color: var(--navy); overflow: hidden; border-top: 1px solid rgba(0, 0, 0, .1); }
.trust-track, .marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.trust-track span { font-family: var(--mono); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; padding: .85rem 1.6rem; white-space: nowrap; display: flex; align-items: center; gap: 1.6rem; }
.trust-track span::after { content: "■"; font-size: .55rem; opacity: .6; }
.trust:hover .trust-track, .marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- SERVICIOS ---------------- */
.svc-tabs { display: flex; gap: 0; overflow-x: auto; margin-bottom: 1.6rem; border: 1px solid var(--line); background: #fff; width: max-content; max-width: 100%; }
.svc-tabs button { flex: none; display: flex; align-items: center; gap: .55rem; min-height: 50px; padding: .6rem 1.1rem; background: none; border: 0; border-right: 1px solid var(--line); font-weight: 700; font-size: .9rem; cursor: pointer; color: var(--muted); }
.svc-tabs button:last-child { border-right: 0; }
.svc-tabs button span { display: grid; place-items: center; width: 26px; height: 26px; font-family: var(--mono); font-size: .8rem; border: 1px solid currentColor; }
.svc-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.svc-tabs button[aria-selected="true"] span { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; padding: 1.5rem 1.3rem 1.2rem; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s; }
/* Marcas de corte en las esquinas */
.card::before, .card::after { content: ""; position: absolute; width: 14px; height: 14px; border: 0 solid var(--blue); transition: width .25s, height .25s, border-color .25s; }
.card::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.card::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(11, 116, 188, .35); }
.card:hover::before, .card:hover::after { width: 34px; height: 34px; border-color: var(--gold); }
.card-code { position: absolute; top: 1rem; right: 1rem; font-family: var(--mono); font-size: .78rem; color: var(--muted); letter-spacing: .08em; }
.card-ico { width: 46px; height: 46px; padding: 10px; background: var(--paper); border: 1px solid var(--line); fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; transition: stroke .25s, background .25s; }
.card:hover .card-ico { stroke: var(--navy); background: var(--gold); border-color: var(--gold); }
.card p { color: var(--muted); font-size: .92rem; margin: 0 0 1rem; flex: 1; }
.card-more, .link-more { font-family: var(--mono); font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.card-feature { background: var(--navy); color: #fff; border-color: var(--navy); }
.card-feature p { color: #b7c7d7; }
.card-feature .card-ico { background: rgba(255, 255, 255, .06); border-color: var(--line-l); stroke: var(--gold); }
.card-feature .card-code { color: var(--gold); }
.card-feature .card-more { color: var(--gold); }
@media (min-width: 1040px) { .card-feature { grid-row: span 2; background: linear-gradient(180deg, var(--navy) 30%, rgba(10, 26, 43, .55) 70%, rgba(10, 26, 43, .2)), url("../assets/img/obras/losa-trasvase-machangara.webp") center bottom / cover; } }

.svc-extra { display: grid; gap: 1.2rem; margin-top: 2.4rem; }
@media (min-width: 1000px) { .svc-extra { grid-template-columns: 1.15fr .85fr; } }
.section-cut, .gantt { margin: 0; background: var(--navy); color: #cfe2f3; padding: 1.3rem; border: 1px solid var(--navy); }
.section-cut .mono-k, .gantt .mono-k { color: var(--gold); }
.cut-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; align-items: center; margin-bottom: .6rem; }
.cut-head .mono-k { margin: 0; }
.cut-toggles { display: flex; flex-wrap: wrap; gap: .35rem; }
.cut-toggles button { font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; padding: .4rem .6rem; min-height: 34px; background: transparent; color: #9fb4c8; border: 1px solid var(--line-l); cursor: pointer; }
.cut-toggles button[aria-pressed="true"] { color: var(--navy); background: var(--gold); border-color: var(--gold); }
.cut-svg { width: 100%; height: auto; }
.cut-svg text { font-family: var(--mono); font-size: 11px; fill: #cfe2f3; letter-spacing: .05em; }
.cut-layer { transition: opacity .35s; }
.cut-layer.off { opacity: 0; }
.cut-dim { fill: none; stroke: #9fb4c8; stroke-width: 1; }
.section-cut figcaption { font-size: .82rem; color: #9fb4c8; margin-top: .5rem; }
.gantt { display: flex; flex-direction: column; }
.g-head, .g-row { display: grid; grid-template-columns: 9.5rem repeat(8, 1fr); align-items: center; }
.g-head span { font-family: var(--mono); font-size: .72rem; color: #7f95ab; text-align: center; border-left: 1px dashed var(--line-l); padding: .2rem 0; }
.g-head span:first-child { border: 0; }
.g-row { min-height: 46px; border-top: 1px solid var(--line-l); background: repeating-linear-gradient(90deg, transparent 0 calc((100% - 9.5rem) / 8 - 1px), rgba(255, 255, 255, .06) calc((100% - 9.5rem) / 8 - 1px) calc((100% - 9.5rem) / 8)) 9.5rem 0 / calc(100% - 9.5rem) 100% no-repeat; }
.g-row b { font-size: .82rem; font-weight: 600; color: #fff; }
.g-row i { grid-column: calc(var(--s) + 1) / calc(var(--e) + 1); height: 14px; background: var(--blue); transform-origin: left; }
.g-row i.g-gold { background: var(--gold); }
.js .gantt.reveal .g-row i { transform: scaleX(0); transition: transform 1s cubic-bezier(.6, .1, .2, 1); }
.js .gantt.in .g-row i { transform: scaleX(1); }
.js .gantt.in .g-row:nth-of-type(3) i { transition-delay: .2s; } .js .gantt.in .g-row:nth-of-type(4) i { transition-delay: .4s; } .js .gantt.in .g-row:nth-of-type(5) i { transition-delay: .6s; }
.g-note { font-size: .82rem; color: #9fb4c8; margin: .9rem 0 1.1rem; }
.gantt .btn { align-self: flex-start; margin-top: auto; }

/* ---------------- PRODUCTOS ---------------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line-l); border-bottom: 1px solid var(--line-l); margin-bottom: 2rem; }
.marquee-track { animation-duration: 45s; }
.marquee-track span { font-size: clamp(1.4rem, 4vw, 2.4rem); font-weight: 800; padding: .6rem 1.4rem; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .35); display: flex; align-items: center; gap: 1.4rem; }
.marquee-track span::after { content: "▽"; -webkit-text-stroke: 0; color: var(--gold); font-size: .5em; }
.cat-tiles { display: grid; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 800px) { .cat-tiles { grid-template-columns: repeat(3, 1fr); } }
.cat-tile { position: relative; display: block; padding: 1.6rem 1.4rem 1.4rem; border: 1px solid var(--line-l); background: linear-gradient(160deg, rgba(11, 116, 188, .18), rgba(255, 255, 255, .02)); color: #dde6ef; text-decoration: none; overflow: hidden; transition: border-color .25s, transform .25s; }
.cat-tile:hover { border-color: var(--gold); transform: translateY(-3px); }
.cat-num { position: absolute; right: .6rem; top: -.4rem; font-size: 5.5rem; font-weight: 900; color: transparent; -webkit-text-stroke: 1px rgba(217, 164, 65, .45); line-height: 1; }
.cat-tile h3 { font-size: 1.35rem; position: relative; z-index: 1; max-width: calc(100% - 4.5rem); }
.cat-tile p { color: #a9bccf; font-size: .92rem; max-width: 26ch; }
.cat-tile .card-more { color: var(--gold); }
.products { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .products { grid-template-columns: repeat(4, 1fr); } }
.product { display: flex; flex-direction: column; background: #fff; color: var(--ink); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product[hidden] { display: none; }
.product-media { display: block; overflow: hidden; background: var(--navy-2); }
.product-media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .5s; }
.product:hover .product-media img { transform: scale(1.05); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem 1.15rem; }
.product-body h3 { font-size: 1.02rem; margin-bottom: .4rem; color: var(--navy) !important; }
.product-body h3 a { color: inherit; text-decoration: none; }
.product-body h3 a:hover { color: var(--blue); }
.product-body p { color: var(--muted); font-size: .88rem; flex: 1; margin-bottom: .8rem; }
.product-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .8rem; padding-top: .6rem; border-top: 1px dashed var(--line); }
.price { font-weight: 800; color: var(--navy); }
.sku { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.product-actions { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.tag { align-self: flex-start; font-family: var(--mono); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); border: 1px solid rgba(11, 116, 188, .35); padding: .18rem .5rem; margin-bottom: .6rem; }
.tag-gold { color: var(--gold-ink); border-color: rgba(217, 164, 65, .6); background: rgba(217, 164, 65, .12); }
.dark .center .muted { color: #9fb4c8; margin-left: .6rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------------- PORTAFOLIO ---------------- */
.portfolio-grid { display: grid; gap: 1.6rem; margin-bottom: 3rem; }
@media (min-width: 1000px) { .portfolio-grid { grid-template-columns: .9fr 1.1fr; align-items: start; } .map { position: sticky; top: 92px; } }
.map { margin: 0; background: #fff; border: 1px solid var(--line); padding: 1rem; color: var(--navy); }
.map-svg { width: 100%; height: auto; }
.map-land { fill: rgba(11, 116, 188, .07); stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; }
.js .map-land.draw { stroke-dasharray: 3000; stroke-dashoffset: 3000; }
.js .map-land.draw.in { animation: drawline 2.6s ease forwards; }
.map-andes { fill: none; stroke: #b48a4a; stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; opacity: .7; }
.map-eq { stroke: var(--gold); stroke-width: 1.4; stroke-dasharray: 8 6; }
.map-lbl { font-family: var(--mono); font-size: 14px; fill: var(--muted); letter-spacing: .08em; }
.map-region { font-size: 17px; fill: rgba(10, 26, 43, .6); font-weight: 600; letter-spacing: .3em; }
.map-city { fill: var(--muted); }
.map-pin { cursor: pointer; outline: none; }
.map-pin .hit { fill: transparent; stroke: none; }
.map-pin circle { fill: var(--gold); stroke: var(--navy); stroke-width: 2; transition: r .2s; }
.map-pin .pulse { fill: rgba(217, 164, 65, .25); stroke: none; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.map-pin text { font-family: var(--mono); font-size: 19px; font-weight: 600; fill: var(--navy); paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.map-pin .pin-n { fill: var(--navy); stroke: none; font-size: 15px; }
.map-pin.hl circle:not(.pulse):not(.hit), .map-pin:focus-visible circle:not(.pulse):not(.hit) { fill: var(--blue); }
.map-pin:focus-visible circle:not(.pulse):not(.hit) { stroke: var(--navy); stroke-width: 5; }
.map-pin.hl .pin-n, .map-pin:focus-visible .pin-n { fill: #fff; }
.map figcaption { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; color: var(--muted); border-top: 1px dashed var(--line); padding-top: .7rem; margin-top: .4rem; }
.map figcaption b { color: var(--navy); }
.projects { list-style: none; display: grid; gap: .9rem; }
.project { background: #fff; border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s; }
.project.hl, .project:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.project-open { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 1fr; width: 100%; cursor: pointer; }
.project-open:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.project-img { overflow: hidden; background: var(--navy); }
.project-img img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s; }
.project:hover .project-img img { transform: scale(1.06); }
.project-info { display: grid; gap: .25rem; padding: 1rem 1.2rem 1.1rem; align-content: center; }
.project-num { font-family: var(--mono); font-size: .78rem; color: var(--gold-ink); font-weight: 600; letter-spacing: .1em; }
.project-tag { font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.project-name { font-size: 1.12rem; font-weight: 800; color: var(--navy); line-height: 1.2; }
.project-amount { font-family: var(--mono); font-size: 1.15rem; font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; }
@media (min-width: 620px) { .project-open { grid-template-columns: 210px 1fr; } .project-img img { aspect-ratio: auto; min-height: 150px; } }
.media-tabs { display: flex; gap: 0; border: 1px solid var(--line); background: #fff; width: max-content; max-width: 100%; margin-bottom: 1.4rem; }
.media-tabs button { min-height: 50px; padding: .6rem 1.2rem; border: 0; background: none; font-weight: 700; cursor: pointer; color: var(--muted); display: flex; gap: .5rem; align-items: center; }
.media-tabs button + button { border-left: 1px solid var(--line); }
.media-tabs button small { font-family: var(--mono); font-size: .78rem; border: 1px solid currentColor; padding: 0 .35rem; }
.media-tabs button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.gallery { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(4, 1fr); } .gallery li:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; } }
.gallery a { position: relative; display: block; height: 100%; overflow: hidden; background: var(--navy); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s, opacity .3s; }
.gallery a:hover img { transform: scale(1.06); opacity: .85; }
.gallery a::after { content: "+"; position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; display: grid; place-items: center; background: var(--gold); color: var(--navy); font-weight: 800; opacity: 0; transition: opacity .25s; }
.gallery a:hover::after, .gallery a:focus-visible::after { opacity: 1; }
.strip-title { font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); font-weight: 600; margin: 1.8rem 0 .7rem; display: flex; align-items: baseline; gap: .7rem; }
.strip-title::before { content: "▽"; color: var(--gold-ink); }
.strip-title small { color: var(--muted); font-weight: 400; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 320px); gap: .7rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .8rem; scrollbar-width: thin; }
.strip-tall { grid-auto-columns: min(56vw, 230px); }
.strip > * { scroll-snap-align: start; margin: 0; }
.clip video, .vcard video { width: 100%; background: var(--navy); object-fit: cover; }
.clip video { aspect-ratio: 16 / 9; }
.vcard video { aspect-ratio: 9 / 16; }
.clip figcaption, .vcard figcaption { font-size: .8rem; color: var(--muted); padding-top: .4rem; }

/* ---------------- SOBRE MÍ ---------------- */
.about-sec { overflow: hidden; }
.about { position: relative; display: grid; gap: 2.4rem; }
@media (min-width: 900px) { .about { grid-template-columns: 380px 1fr; gap: 4rem; align-items: start; } }
.portrait { position: relative; margin: 0; padding: 14px; border: 1px solid var(--line-l); max-width: 420px; }
.portrait::before, .portrait::after { content: ""; position: absolute; width: 28px; height: 28px; border: 0 solid var(--gold); }
.portrait::before { top: -1px; left: -1px; border-top-width: 3px; border-left-width: 3px; }
.portrait::after { bottom: -1px; right: -1px; border-bottom-width: 3px; border-right-width: 3px; }
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(.92); }
.portrait figcaption { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; color: var(--gold); padding-top: .7rem; }
.about-role { color: var(--gold); font-weight: 700; font-family: var(--mono); font-size: .9rem; letter-spacing: .04em; }
.about .lead { font-size: 1.08rem; color: #e8eef5; }
.about strong { color: #fff; }
.steps { list-style: none; display: grid; gap: .5rem; counter-reset: s; margin: 1.4rem 0; }
@media (min-width: 600px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.steps li { counter-increment: s; display: flex; align-items: center; gap: .8rem; border: 1px solid var(--line-l); padding: .75rem 1rem; background: rgba(255, 255, 255, .03); }
.steps li::before { content: "0" counter(s); font-family: var(--mono); color: var(--gold); font-weight: 600; }
.steps b { color: #fff; }
.mv { display: grid; gap: 1rem; margin: 1.4rem 0; }
@media (min-width: 700px) { .mv { grid-template-columns: 1fr 1fr; } }
.mv div { border-left: 3px solid var(--gold); padding: .2rem 0 .2rem 1rem; }
.mv h3 { font-size: .8rem; font-family: var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold) !important; margin-bottom: .3rem; }
.mv p { color: #b7c7d7; font-size: .93rem; margin: 0; }
.topo-soft { opacity: .8; }

/* ---------------- NOTAS ---------------- */
.notes-wrap { max-width: 900px; margin-left: 0; }
.notes { display: grid; gap: .6rem; }
.note { background: #fff; border: 1px solid var(--line); }
.note summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .9rem; padding: 1.1rem 3rem 1.1rem 1.2rem; font-weight: 700; position: relative; }
.note summary::-webkit-details-marker { display: none; }
.note summary::after { content: "+"; position: absolute; right: 1.1rem; font-family: var(--mono); font-size: 1.3rem; color: var(--blue); transition: transform .25s; }
.note[open] summary::after { transform: rotate(45deg); }
.note[open] { border-color: var(--blue); }
.note .n { font-family: var(--mono); font-size: .78rem; color: var(--gold-ink); font-weight: 600; flex: none; }
.note p { padding: 0 1.2rem 1.2rem 4.1rem; margin: 0; color: var(--muted); }

/* ---------------- CONTACTO / FORMULARIOS ---------------- */
.contact { background: linear-gradient(135deg, var(--blue-d), var(--navy) 75%); color: #dce9f5; overflow: hidden; }
.contact h2 { color: #fff; }
.contact-grid, .join-grid { position: relative; display: grid; gap: 2.4rem; }
@media (min-width: 900px) { .contact-grid, .join-grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 4rem; } }
.contact-list { list-style: none; display: grid; gap: .9rem; margin: 1.6rem 0 2rem; }
.contact-list li { display: flex; align-items: center; gap: .8rem; font-weight: 600; }
.contact-list svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.contact-list a { color: #fff; }
.form { display: grid; gap: .3rem; background: #fff; color: var(--ink); padding: 1.4rem; border-top: 3px solid var(--gold); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.form .form-head { color: var(--muted); border-bottom-color: var(--line); }
.form label { font-size: .8rem; font-weight: 700; margin-top: .45rem; }
.form input, .form select, .form textarea { width: 100%; min-height: 46px; padding: .65rem .8rem; border: 1px solid #c9d4df; border-radius: var(--r); background: var(--paper); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); background: #fff; outline: 2px solid rgba(11, 116, 188, .25); outline-offset: 0; }
.form input[type=file] { padding: .55rem; background: #fff; }
.form-row { display: grid; gap: .3rem; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; gap: .8rem; } }
.form-row > div { display: grid; gap: .3rem; }
.privacy { font-size: .74rem; color: var(--muted); margin: .7rem 0 .3rem; }
.form .btn { margin-top: .4rem; }
.form-status { min-height: 1.4em; font-size: .9rem; margin: .5rem 0 0; font-weight: 600; color: var(--blue-d); }
.form.sent { border-top-color: var(--wa); }
.join .form { border-top-color: var(--blue); }

/* ---------------- PIE: CAJETÍN ---------------- */
.site-footer { background: var(--navy); color: #a9bccf; padding: 3rem 0 6.5rem; }
.titleblock { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line-l); }
.titleblock > * { border-bottom: 1px solid var(--line-l); padding: 1rem 1.1rem; }
.tb-brand .brand-text > span { font-size: 1.4rem; }
.tb-lema { margin: .8rem 0 0; color: var(--gold); font-weight: 700; }
.tb-cell { display: flex; flex-direction: column; gap: .2rem; font-size: .9rem; }
.tb-cell > span { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #7f95ab; margin-bottom: .2rem; }
.tb-cell b { color: #fff; font-weight: 600; }
.tb-cell small { font-size: .8rem; }
.tb-cell a { color: #dce9f5; text-decoration: none; }
.tb-cell a:hover { color: var(--gold); }
.tb-nav em { font-style: normal; font-family: var(--mono); font-size: .72rem; color: var(--gold); border: 1px solid rgba(217, 164, 65, .5); padding: 0 .3rem; margin-left: .3rem; text-transform: uppercase; }
.tb-social p { display: flex; gap: .5rem; margin: 0; }
.tb-meta { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 !important; border-bottom: 0 !important; }
.tb-meta > span { padding: .8rem 1rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #7f95ab; border-right: 1px solid var(--line-l); }
.tb-meta > span:last-child { border-right: 0; }
.tb-meta b { display: block; color: #fff; font-size: .9rem; letter-spacing: .04em; margin-top: .15rem; font-weight: 600; }
@media (min-width: 900px) {
  .titleblock { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .titleblock > * { border-right: 1px solid var(--line-l); }
  .tb-brand { grid-row: span 2; }
  .tb-nav { grid-column: span 2; display: grid; grid-template-columns: repeat(2, auto); justify-content: start; column-gap: 2rem; }
  .tb-nav > span { grid-column: 1 / -1; }
  .tb-meta { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); border-right: 0 !important; }
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; margin: 1.2rem 0 0; font-size: .8rem; }
.to-top { color: var(--gold); font-family: var(--mono); font-size: .74rem; text-decoration: none; letter-spacing: .08em; }

/* ---------------- FLOTANTES ---------------- */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 70; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0, 0, 0, .3); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }
.chat-launcher { position: fixed; right: 20px; bottom: 88px; z-index: 70; display: grid; place-items: center; width: 50px; height: 50px; padding: 0; background: var(--navy); color: #fff; border: 1px solid rgba(217, 164, 65, .8); border-radius: 50%; cursor: pointer; box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }
.chat-launcher svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-launcher .chat-dot { position: absolute; top: 3px; right: 3px; }
.chat-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.chat-panel { position: fixed; left: 12px; right: 12px; bottom: 146px; z-index: 85; display: flex; flex-direction: column; max-height: min(600px, calc(100svh - 226px)); background: #fff; border-top: 3px solid var(--gold); box-shadow: 0 30px 60px rgba(10, 26, 43, .4); }
.chat-panel[hidden] { display: none; }
@media (min-width: 520px) { .chat-panel { left: auto; width: 380px; right: 16px; } }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1rem; background: var(--navy); color: #fff; }
.chat-head strong { display: block; }
.chat-head small { font-family: var(--mono); font-size: .72rem; color: var(--gold); letter-spacing: .06em; }
.chat-close { background: none; border: 0; color: #fff; font-size: 1.6rem; width: 40px; height: 40px; cursor: pointer; }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem; display: grid; align-content: start; gap: .55rem; background: var(--paper); }
.chat-msg { max-width: 88%; background: #fff; border: 1px solid var(--line); padding: .65rem .85rem; font-size: .9rem; }
.chat-msg.user { justify-self: end; background: var(--blue); color: #fff; border-color: var(--blue); }
.chat-options { display: grid; gap: .4rem; }
.chat-options button { text-align: left; padding: .6rem .8rem; min-height: 44px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: .87rem; }
.chat-options button:hover { border-color: var(--blue); color: var(--blue); }
.chat-body .btn { justify-self: start; }
.chat-input { display: flex; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; min-height: 50px; padding: .6rem .9rem; border: 0; }
.chat-input button { width: 54px; border: 0; background: var(--gold); color: var(--navy); font-size: 1.1rem; cursor: pointer; }

/* ---------------- DIÁLOGOS ---------------- */
.modal { width: min(760px, calc(100% - 24px)); max-height: calc(100svh - 32px); padding: 0; border: 0; border-top: 4px solid var(--gold); background: #fff; color: var(--ink); overflow: auto; box-shadow: 0 40px 80px rgba(0, 0, 0, .5); }
.modal::backdrop, .lightbox::backdrop { background: rgba(6, 14, 24, .86); backdrop-filter: blur(3px); }
.modal-body img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; background: var(--navy); }
.modal-body { padding: 0; }
.modal-body > :not(img) { margin-left: 1.4rem; margin-right: 1.4rem; }
.modal-kicker { font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; color: var(--gold-ink); margin: 1.3rem 0 .4rem; font-weight: 600; }
.modal h3 { font-size: 1.5rem; color: var(--navy); }
.modal dl { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); margin-bottom: 1.2rem; }
.modal dt, .modal dd { padding: .55rem .8rem; border-bottom: 1px solid var(--line); margin: 0; }
.modal dt { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.modal dd { font-weight: 700; }
.modal > .btn { margin: 0 1.4rem 1.4rem; }
.modal-close { position: sticky; top: 0; float: right; margin: .5rem .5rem -3rem 0; z-index: 2; width: 44px; height: 44px; border: 0; background: var(--navy); color: #fff; font-size: 1.6rem; cursor: pointer; }
.modal-sm { width: min(440px, calc(100% - 24px)); padding: 1.2rem 1.4rem 1.4rem; }
.modal-sm .modal-close { margin: -.7rem -.9rem 0 0; }
.offeris-state { font-family: var(--mono); font-weight: 600; padding: .1rem .5rem; background: rgba(217, 164, 65, .18); color: var(--gold-ink); }
.offeris-state.on { background: rgba(37, 211, 102, .2); color: #0d6b33; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 94vw; max-height: 82vh; width: auto; margin: 0 auto; }
.lightbox figcaption { color: #cfe2f3; font-family: var(--mono); font-size: .76rem; margin-top: .7rem; letter-spacing: .04em; }
.lb-close, .lb-nav { position: fixed; z-index: 2; width: 50px; height: 50px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(10, 26, 43, .6); color: #fff; font-size: 1.8rem; cursor: pointer; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-nav:hover { background: var(--gold); color: var(--navy); }

/* ---------------- PÁGINAS INTERIORES ---------------- */
.page-hero { position: relative; background: var(--navy); color: #fff; padding: 3.2rem 0 2.6rem; overflow: hidden; isolation: isolate; }
.page-hero .topo { opacity: .6; }
.page-hero h1 { font-size: clamp(1.9rem, 5.2vw, 3.2rem); font-weight: 900; max-width: 22ch; }
.page-hero p { color: #b7c7d7; max-width: 48rem; font-size: 1.05rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.2rem; color: #9fb4c8; }
.crumbs a { color: var(--gold); text-decoration: none; }
.crumbs span::before { content: "/"; margin-right: .4rem; color: #6b8299; }
/* Catálogo */
.toolbar { display: grid; gap: .8rem; padding: 1rem; background: #fff; border: 1px solid var(--line); margin-bottom: 1.4rem; position: sticky; top: 72px; z-index: 20; }
@media (min-width: 900px) { .toolbar { grid-template-columns: 1fr auto auto; align-items: center; } }
.search { position: relative; }
.search input { width: 100%; min-height: 48px; padding: .6rem .9rem .6rem 2.6rem; border: 1px solid #c9d4df; border-radius: var(--r); background: var(--paper); }
.search svg { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; }
.chips { display: flex; gap: .4rem; overflow-x: auto; }
.chips button { flex: none; min-height: 42px; padding: .4rem .9rem; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .86rem; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.sort { display: flex; align-items: center; gap: .5rem; font-size: .85rem; }
.sort select { min-height: 42px; padding: .4rem .6rem; border: 1px solid #c9d4df; border-radius: var(--r); background: #fff; }
.cat-count { font-family: var(--mono); font-size: .74rem; color: var(--muted); letter-spacing: .06em; margin: 0 0 1rem; }
.cmp { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.cmp input { width: 18px; height: 18px; accent-color: var(--blue); }
.empty { grid-column: 1 / -1; padding: 2rem; background: #fff; border: 1px dashed var(--line); text-align: center; }
.compare-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 72; display: flex; align-items: center; gap: .6rem; padding: .5rem .5rem .5rem 1rem; background: var(--navy); color: #fff; border: 1px solid var(--gold); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); width: max-content; max-width: calc(100% - 150px); }
.compare-bar[hidden] { display: none; }
.cmp-count { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; }
.cmp-clear { background: none; border: 0; color: #9fb4c8; cursor: pointer; font-size: .8rem; text-decoration: underline; }
.compare-table { overflow-x: auto; padding: 1rem 1.4rem 1.4rem; }
.compare-table table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: .88rem; }
.compare-table th, .compare-table td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.compare-table thead th { background: var(--paper); }
.compare-table thead img { width: 100%; max-width: 140px; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: .4rem; }
.compare-table tbody th { font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--paper); width: 9rem; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: .7rem 1rem; font-size: .88rem; opacity: 0; transition: opacity .3s, transform .3s; z-index: 90; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* Ficha de producto */
.pdetail { display: grid; gap: 2rem; }
@media (min-width: 900px) { .pdetail { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; } }
.pd-media { position: relative; margin: 0; border: 1px solid var(--line); padding: 12px; background: #fff; }
.pd-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pd-media figcaption { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; color: var(--muted); padding-top: .6rem; text-transform: uppercase; }
.pd-price { font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); margin: .3rem 0 1rem; font-weight: 600; }
.pd-price::before { content: "PRECIO · "; color: var(--muted); }
.pd-form { display: grid; gap: .3rem; background: #fff; border: 1px solid var(--line); padding: 1.1rem; margin: 1.2rem 0; }
.pd-form label { font-size: .8rem; font-weight: 700; margin-top: .4rem; }
.pd-form select, .pd-form input { min-height: 46px; padding: .55rem .8rem; border: 1px solid #c9d4df; border-radius: var(--r); background: var(--paper); }
.pd-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.specs { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); background: #fff; margin: 0 0 1rem; }
@media (min-width: 560px) { .specs { grid-template-columns: 1fr 1fr; } }
.specs div { display: grid; grid-template-columns: 9rem 1fr; border-bottom: 1px solid var(--line); }
.specs dt { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--paper); padding: .6rem .8rem; }
.specs dd { margin: 0; padding: .6rem .8rem; font-weight: 600; font-size: .9rem; }
.btn-ghost-dk { background: transparent; border-color: var(--line); color: var(--navy); }
.btn-ghost-dk:hover { border-color: var(--navy); }
/* Ficha de servicio */
.sdetail { display: grid; gap: 2.4rem; }
@media (min-width: 1000px) { .sdetail { grid-template-columns: 1fr 300px; gap: 3.5rem; } .s-aside { position: sticky; top: 92px; align-self: start; } }
.s-desc { font-size: 1.12rem; color: var(--ink); }
.checklist { list-style: none; display: grid; gap: .5rem; margin: 0 0 2rem; }
@media (min-width: 640px) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li { display: flex; gap: .7rem; background: #fff; border: 1px solid var(--line); padding: .8rem 1rem; font-weight: 600; font-size: .92rem; }
.checklist li::before { content: "✓"; color: var(--navy); background: var(--gold); width: 22px; height: 22px; flex: none; display: grid; place-items: center; font-size: .8rem; }
.timeline { list-style: none; display: grid; gap: 0; margin: 0 0 2rem; border-left: 2px solid var(--blue); }
.timeline li { position: relative; display: flex; gap: 1rem; align-items: baseline; padding: .7rem 0 .7rem 1.4rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 1.05rem; width: 12px; height: 12px; background: var(--gold); border: 2px solid var(--navy); }
.timeline span { font-family: var(--mono); color: var(--blue); font-weight: 600; }
.s-gallery { display: grid; gap: .6rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 2rem; }
.s-gallery .svc-video { grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--navy); }
.s-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.s-aside { background: #fff; border: 1px solid var(--line); padding: 1.2rem; }
.s-aside h2 { font-size: .8rem; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.s-aside ul { list-style: none; display: grid; }
.s-aside a { display: flex; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; }
.s-aside a span { font-family: var(--mono); font-size: .76rem; color: var(--muted); padding-top: .15rem; white-space: nowrap; flex: none; }
.s-aside a:hover { color: var(--blue); }
.s-cta { background: var(--navy); color: #fff; padding: 1.4rem; margin-top: 1rem; border-top: 3px solid var(--gold); }
.s-cta p { color: #b7c7d7; font-size: .9rem; }
.h-sub { font-size: .78rem; font-family: var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .9rem; display: flex; gap: .6rem; align-items: center; }
.h-sub::before { content: "▽"; color: var(--gold-ink); }
.notfound { min-height: 60vh; display: grid; place-content: center; text-align: center; }
.notfound .big { font-family: var(--mono); font-size: clamp(4rem, 18vw, 9rem); color: var(--navy); line-height: 1; font-weight: 600; }

/* Red de seguridad: si el JS no llegara a ejecutarse, el contenido aparece igual a los 2,5 s */
.js .reveal:not(.in) { animation: revealSafe 0s 2.5s forwards; }
@keyframes revealSafe { to { opacity: 1; transform: none; } }

/* ===== Ajustes tras la revisión multidisciplinaria ===== */
@media (max-width: 619px) { .cut-svg text { font-size: 19px; } .cut-svg .cut-txt { font-size: 22px; } }
@media (max-width: 899px) { .toolbar { position: static; } }
.chips, .svc-tabs, .media-tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
@media (min-width: 760px) { .svc-tabs, .media-tabs { -webkit-mask-image: none; mask-image: none; } }
.gallery { grid-auto-flow: dense; }
[data-p="rel"] { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.link-btn { background: none; border: 0; padding: .4rem 0; color: var(--blue); font-family: var(--mono); font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: underline; cursor: pointer; }
.form input[type=file]::file-selector-button { margin-right: .8rem; padding: .45rem .9rem; border: 1px solid var(--navy); background: var(--navy); color: #fff; font-weight: 700; cursor: pointer; border-radius: var(--r); }
/* Productos en móvil: fila con miniatura (más compacto) */
@media (max-width: 559px) {
  .products .product { flex-direction: row; }
  .products .product-media { flex: 0 0 104px; }
  .products .product-media img { height: 100%; aspect-ratio: auto; }
  .products .product-body p { display: none; }
}
/* Tarjetas de servicio como "llamada de detalle" de plano */
.card-ico { border-radius: 50%; }
.card-callout { position: relative; display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.card-callout .card-ico { margin: 0; flex: none; }
.card-callout::after { content: attr(data-det); font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; color: var(--muted); border-top: 1px solid var(--line); padding-top: .25rem; flex: 1; }
.card-feature .card-callout::after { color: #9fb4c8; border-color: var(--line-l); }
/* Cuadro de contratos (sustituye a la cinta animada) */
.register { background: var(--navy-2); color: #cfe2f3; border-top: 1px solid var(--line-l); border-bottom: 3px solid var(--gold); }
.register .container { overflow-x: auto; padding-bottom: 1rem; }
.register table { width: 100%; min-width: 680px; border-collapse: collapse; font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; }
.register caption { text-align: left; padding: .9rem 0 .5rem; font-size: .75rem; letter-spacing: .16em; color: var(--gold); font-weight: 600; }
.register th, .register td { padding: .55rem .8rem; border: 1px solid var(--line-l); text-align: left; white-space: nowrap; }
.register thead th { color: #7f95ab; font-weight: 500; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.register td:last-child, .register th:last-child { text-align: right; color: #fff; font-weight: 600; }
.register tfoot td { color: var(--gold) !important; font-weight: 600; }
.register tbody tr:hover { background: rgba(217, 164, 65, .08); }
/* Lámina: marco con zonas en las secciones de papel */
.paper::after { content: ""; position: absolute; inset: 14px; border: 1px solid var(--line); pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 6)) top / 100% 8px no-repeat,
              repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px calc(100% / 4)) left / 8px 100% no-repeat; }
/* Cota bajo el h2 que se dibuja al hacer scroll (navegadores compatibles) */
@supports (animation-timeline: view()) {
  .section-head h2::after { transform-origin: left; animation: dimgrow linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
  @keyframes dimgrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
/* Transición suave entre páginas (navegadores recientes) */
@view-transition { navigation: auto; }
/* Dibujo técnico en las cabeceras interiores */
.page-hero .ph-draw { position: absolute; right: -30px; bottom: 0; width: min(600px, 55%); height: auto; opacity: .45; z-index: -1; pointer-events: none; }
@media (max-width: 760px) { .page-hero .ph-draw { opacity: .18; width: 95%; } }
/* Mapa: ríos y detalle de Quito */
.map-river { fill: none; stroke: var(--blue-l); stroke-width: 2.4; stroke-linecap: round; opacity: .9; }
.map-detail { fill: #fff; stroke: var(--navy); stroke-width: 1.5; }
.map-leader { fill: none; stroke: var(--navy); stroke-width: 1; stroke-dasharray: 4 4; }
.map-dlbl { font-family: var(--mono); font-size: 14px; fill: var(--navy); font-weight: 600; letter-spacing: .08em; }
.map-detail-pin circle { fill: var(--gold); stroke: var(--navy); stroke-width: 2; }
.map-detail-pin text { font-family: var(--mono); font-size: 13px; fill: var(--navy); font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.h3 { font-size: 1.15rem; }

/* Pausa global de animaciones (botón "Pausar animación") */
.paused *, .paused *::before, .paused *::after { animation-play-state: paused !important; }
.motion-toggle { margin-left: .6rem; background: transparent; border: 1px solid rgba(255, 255, 255, .3); color: #dce9f5; font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .6rem; min-height: 32px; cursor: pointer; }
.motion-toggle:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 899px) { .hero-rotator { min-height: 3.4em; } }

/* Registro de obras */
.registry-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem 1.5rem; margin: 1rem 0 .8rem; }
.registry-head h3 { margin: 0; font-size: 1.35rem; color: var(--navy); }
.registry-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.registry-head b { color: var(--navy); }
.w-chips { margin-bottom: .8rem; }
.w-chips small { font-family: var(--mono); font-size: .76rem; opacity: .75; margin-left: .2rem; }
.registry { display: grid; gap: .45rem; margin-bottom: 1.4rem; }
.work { background: #fff; border: 1px solid var(--line); }
.work[open] { border-color: var(--blue); box-shadow: var(--shadow); }
.work summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 64px 1fr auto; grid-template-areas: "img main amount" "img main year"; gap: .1rem .8rem; align-items: center; padding: .55rem .8rem .55rem .55rem; }
.work summary::-webkit-details-marker { display: none; }
.work summary img, .work .w-noimg { grid-area: img; width: 64px; height: 56px; object-fit: cover; background: var(--navy); }
.work .w-noimg { display: grid; place-items: center; color: var(--gold); }
.w-n { display: none; }
.w-main { grid-area: main; min-width: 0; }
.w-main b { display: block; font-size: .9rem; line-height: 1.3; color: var(--navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.w-main small { display: block; font-size: .76rem; color: var(--muted); margin-top: .15rem; }
.w-year { grid-area: year; font-family: var(--mono); font-size: .78rem; color: var(--muted); text-align: right; }
.w-amount { grid-area: amount; font-family: var(--mono); font-weight: 600; font-size: .86rem; color: var(--blue); text-align: right; white-space: nowrap; }
@media (min-width: 760px) {
  .work summary { grid-template-columns: 96px 3.4rem 1fr 4rem 9rem; grid-template-areas: "img n main year amount"; padding: .55rem 1rem .55rem .55rem; }
  .work summary img, .work .w-noimg { width: 96px; height: 72px; }
  .w-n { display: block; grid-area: n; font-family: var(--mono); font-size: .76rem; font-weight: 600; color: var(--gold-ink); }
  .w-main b { font-size: .95rem; }
  .w-amount { font-size: .95rem; }
}
.w-body { padding: .2rem 1rem 1.1rem; border-top: 1px dashed var(--line); }
.w-body dl { display: grid; grid-template-columns: 1fr; margin: .8rem 0; border: 1px solid var(--line); }
@media (min-width: 640px) { .w-body dl { grid-template-columns: repeat(2, 1fr); } }
.w-body dt, .modal dt { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--paper); padding: .45rem .7rem; border-bottom: 1px solid var(--line); margin: 0; }
.w-body dd { margin: 0; padding: .45rem .7rem; font-weight: 600; font-size: .88rem; border-bottom: 1px solid var(--line); }
.typo { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .9rem; padding: 0; }
.typo li { font-size: .74rem; padding: .2rem .5rem; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.modal .typo { margin: 0 1.4rem 1.2rem; }
.w-svcs { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: 0; }
.w-svcs a { font-weight: 700; font-size: .85rem; }
.parts { background: #fff; border: 1px solid var(--line); margin-bottom: 2.6rem; }
.parts summary { cursor: pointer; padding: .9rem 1rem; font-weight: 700; color: var(--navy); display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; }
.parts summary .mono-k { margin: 0; color: var(--gold-ink); }
.parts summary small { font-weight: 400; color: var(--muted); font-size: .82rem; }
.parts-table { overflow-x: auto; padding: 0 1rem 1rem; }
.parts-table table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .82rem; }
.parts-table th, .parts-table td { border: 1px solid var(--line); padding: .45rem .6rem; text-align: left; vertical-align: top; }
.parts-table th { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--paper); font-weight: 600; }
.parts-table td:last-child { font-family: var(--mono); text-align: right; white-space: nowrap; }
.register tfoot a { color: var(--gold); }
/* Obras relacionadas en fichas de servicio */
.rel-works { list-style: none; display: grid; gap: .45rem; margin: 0 0 2rem; padding: 0; }
.rel-works a { display: grid; grid-template-columns: 3rem 1fr; grid-template-rows: auto auto; gap: .1rem .6rem; padding: .7rem .9rem; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.rel-works a:hover { border-color: var(--blue); }
.rel-works span { grid-row: span 2; font-family: var(--mono); font-size: .76rem; font-weight: 600; color: var(--gold-ink); padding-top: .1rem; }
.rel-works b { font-size: .9rem; color: var(--navy); }
.rel-works small { font-size: .78rem; color: var(--muted); }
/* Redes */
.nav-social .nav-res { border-color: rgba(217, 164, 65, .6); color: var(--gold); }
.tb-social p { flex-wrap: wrap; }
.contact-social { display: flex; flex-wrap: wrap; gap: .45rem; margin: -.8rem 0 1rem; }
.contact-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); color: #fff; }
.contact-social a:hover { border-color: var(--gold); color: var(--gold); }
.contact-social svg { width: 18px; height: 18px; }
.review-cta { margin: 0 0 1.6rem; }
.review-cta a { color: var(--gold); font-weight: 700; font-size: .92rem; }
.footer-bottom { padding-right: 84px; }
/* Portal de residentes */
.res-grid { display: grid; gap: 1.6rem; }
@media (min-width: 960px) { .res-grid { grid-template-columns: 1.3fr .7fr; align-items: start; } }
.res-modules { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .res-modules { grid-template-columns: repeat(2, 1fr); } }
.res-mod { background: #fff; border: 1px solid var(--line); padding: 1.1rem 1.1rem 1rem; position: relative; }
.res-mod .card-code { position: static; display: block; margin-bottom: .4rem; color: var(--gold-ink); font-weight: 600; }
.res-mod h3 { font-size: 1.02rem; color: var(--navy); margin-bottom: .3rem; }
.res-mod p { color: var(--muted); font-size: .88rem; margin: 0; }
.res-mod .state { position: absolute; top: .9rem; right: .9rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: .1rem .35rem; }
.res-login { background: var(--navy); color: #cfe2f3; padding: 1.4rem; border-top: 3px solid var(--gold); }
.res-login h2 { color: #fff; font-size: 1.2rem; }
.res-login label { display: block; font-size: .78rem; font-weight: 700; margin: .6rem 0 .25rem; }
.res-login input { width: 100%; min-height: 46px; padding: .6rem .8rem; border: 1px solid var(--line-l); background: rgba(255, 255, 255, .06); color: #fff; border-radius: var(--r); }
.res-login input:disabled, .res-login button:disabled { opacity: .55; cursor: not-allowed; }
.res-login .btn { margin-top: 1rem; }
.res-note { font-size: .8rem; color: #9fb4c8; margin: .9rem 0 0; }

.nav-social .nav-res { width: auto; height: 34px; border-radius: 999px; padding: 0 .7rem; gap: .35rem; display: inline-flex; align-items: center; font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
@media (max-width: 999px) { .nav-social .nav-res { height: 42px; font-size: .8rem; } }
.cut-svg text { letter-spacing: .06em; }

/* ===== Contraste reforzado de textos claros sobre fondos oscuros ===== */
.hero::before { background: linear-gradient(180deg, rgba(10, 26, 43, .62) 0%, rgba(10, 26, 43, .5) 40%, rgba(10, 26, 43, .95) 86%), linear-gradient(90deg, rgba(10, 26, 43, .92) 0%, rgba(10, 26, 43, .35) 72%); }
.hero .topo { opacity: .32; }
.hero-blueprint { opacity: .38; }
.hero-copy, .hero-bottom { text-shadow: 0 1px 14px rgba(0, 0, 0, .55); }
.hero-coords { color: #fff; }
.hero-coords span { background: rgba(10, 26, 43, .7); border-color: rgba(255, 255, 255, .4); }
.hero-rotator { color: #eef4fa; }
.reel { color: #fff; font-size: .8rem; }
.reel-caption { font-weight: 600; }
.readouts dt { color: #e3ecf5; font-size: .76rem; }
.readouts small { color: var(--gold-l); }
.qq-head, .form-head { color: #d6e3ef; }
.qq-foot { color: #d6e3ef; }
.quick-quote label { color: #eef4fa; }
.motion-toggle { color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(10, 26, 43, .6); }
.brand-text small { color: #c9d7e4; }
.dark .section-head > p:last-child, .page-hero p, .cat-tile p, .card-feature p, .mv p { color: #d3dfeb; }
.section-cut figcaption, .g-note, .crumbs { color: #c6d4e2; }
.g-head span, .register thead th, .tb-cell > span, .tb-meta > span { color: #b5c6d6; }
.cut-toggles button { color: #d6e3ef; }
.site-footer { color: #cdd9e5; }
.tb-cell small { color: #c6d4e2; }
.contact p, .contact-list li { color: #eef4fa; }
.about .lead { color: #f2f6fa; }
.steps li, .portrait figcaption { color: #e3ecf5; }
.form .form-head { color: var(--muted); }
.hero h1 .hl { text-shadow: none; -webkit-text-stroke-width: 1.4px; }
.nav a { white-space: nowrap; }
@media (min-width: 1000px) and (max-width: 1199px) {
  .nav ul a::before { display: none; }
  .nav a { padding: .5rem .55rem; font-size: .86rem; }
  .brand-text small { display: none; }
}
/* Servicios: galería de esquemas a todo el ancho y cronograma debajo */
.svc-extra { grid-template-columns: 1fr !important; }
.svc-extra .gantt { max-width: 760px; }
/* Título: resaltado sólido (más legible que el contorno) */
.hero h1 .hl { color: #9fd3f7; -webkit-text-stroke: 0; background: none; animation: none; text-shadow: 0 1px 14px rgba(0, 0, 0, .55); }
