/* ============================================================
   OSSA Ingeniería & Construcción — Sistema de diseño
   Paleta: Azul técnico + grafito + naranja energía
   Tipografía: Barlow (títulos/marca) · Inter (cuerpo) · Roboto Mono (datos)
   ============================================================ */

:root {
  /* Colores de marca */
  --azul: #1565c0;
  --azul-profundo: #0d47a1;
  --azul-claro: #42a5f5;
  --acero: #37474f;
  --grafito: #263238;
  --energia: #f57f17;
  --energia-claro: #ffb74d;

  /* Fondos oscuros */
  --bg: #080c14;
  --bg-2: #0a0e17;
  --bg-card: #0d1117;
  --bg-card-hover: #111827;

  /* Texto */
  --text: #ffffff;
  --text-mute: rgba(255, 255, 255, 0.55);
  --text-faint: rgba(255, 255, 255, 0.35);
  --line: rgba(255, 255, 255, 0.07);

  /* Medidas */
  --maxw: 1240px;
  --pad-x: clamp(20px, 5vw, 64px);
  --radius: 12px;
  --radius-sm: 6px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}

/* Lenis */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

/* ---------- Tipografía ---------- */
h1,
h2,
h3,
h4,
.wordmark {
  font-family: "Barlow", sans-serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.mono {
  font-family: "Roboto Mono", monospace;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
.section {
  padding-block: clamp(64px, 10vw, 130px);
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Barlow", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--energia);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--energia);
}
.eyebrow.center::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--energia);
}

.section-title {
  font-size: clamp(28px, 4.5vw, 46px);
  margin-bottom: 12px;
}
.section-sub {
  color: var(--text-faint);
  font-size: clamp(13px, 1.6vw, 16px);
  margin-bottom: 56px;
}
.section-head.center {
  text-align: center;
}
.section-head.center .eyebrow {
  justify-content: center;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Barlow", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
}
.btn-main {
  background: var(--azul);
  color: #fff;
}
.btn-main:hover {
  background: var(--azul-profundo);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(21, 101, 192, 0.35);
}
.btn-accent {
  background: var(--energia);
  color: #fff;
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(245, 127, 23, 0.35);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-outline:hover {
  border-color: #fff;
  transform: translateY(-2px);
}
.btn-ghost {
  padding-inline: 0;
}
.btn .arrow {
  transition: transform 0.3s;
}
.btn:hover .arrow {
  transform: translateX(4px);
}

/* ============================================================
   Cursor personalizado
   ============================================================ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--azul);
  transition:
    width 0.25s,
    height 0.25s,
    background 0.25s;
}
.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(21, 101, 192, 0.5);
  transition:
    width 0.25s,
    height 0.25s,
    border-color 0.25s,
    background 0.25s;
}
.cursor-ring.hover {
  width: 56px;
  height: 56px;
  border-color: var(--energia);
  background: rgba(245, 127, 23, 0.06);
}
.cursor-dot.hover {
  background: var(--energia);
}
@media (hover: none) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad-x);
  transition:
    padding 0.4s,
    background 0.4s,
    border-color 0.4s,
    backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  padding: 18px var(--pad-x);
  background: rgba(8, 12, 20, 0.85);
  border-bottom-color: var(--line);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-mark {
  width: 38px;
  height: 43px;
  object-fit: contain;
  transition: transform 0.4s;
}
.navbar.scrolled .nav-mark {
  width: 32px;
  height: 36px;
}
.nav-word .wm {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--azul);
  line-height: 1;
}
.nav-word .wt {
  font-size: 8px;
  letter-spacing: 1.6px;
  color: var(--text-faint);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-family: "Barlow", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-mute);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--energia);
  transition: width 0.3s;
}
.nav-links a:hover {
  color: #fff;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-links a.active {
  color: #fff;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: 0;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: #fff;
  transition: 0.3s;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 90px;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(21, 101, 192, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 101, 192, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(
    ellipse 80% 70% at 62% 45%,
    #000 0%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 80% 70% at 62% 45%,
    #000 0%,
    transparent 100%
  );
}
.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}
.hero-title {
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 18px;
}
.hero-title .blue {
  color: var(--azul);
}
.hero-title .amp {
  font-weight: 300;
  color: var(--text-faint);
}
.hero-line {
  overflow: hidden;
}
.hero-slogan {
  font-size: clamp(14px, 1.8vw, 17px);
  font-style: italic;
  color: var(--text-mute);
  padding-left: 16px;
  border-left: 2px solid var(--energia);
  margin-bottom: 26px;
}
.hero-desc {
  font-size: clamp(14px, 1.6vw, 16px);
  color: var(--text-mute);
  max-width: 460px;
  margin-bottom: 34px;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero visual (logo real) */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}
.hero-glow {
  position: absolute;
  width: 460px;
  height: 460px;
  background: radial-gradient(
    circle,
    rgba(21, 101, 192, 0.18) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.hero-orbit {
  position: absolute;
  width: 380px;
  height: 380px;
  border: 1px dashed rgba(245, 127, 23, 0.16);
  border-radius: 50%;
}
.hero-orbit::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4px;
  background: var(--energia);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--energia);
  transform-origin: 4px 195px;
  animation: orbit 16s linear infinite;
}
.hero-mark {
  width: clamp(220px, 26vw, 320px);
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.6));
  will-change: transform;
  animation: floaty 6s ease-in-out infinite;
}

.hero-geo {
  position: absolute;
  bottom: 36px;
  left: var(--pad-x);
  z-index: 2;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.geo-pill {
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  color: var(--text-mute);
  background: rgba(21, 101, 192, 0.1);
  border: 1px solid rgba(21, 101, 192, 0.28);
  border-radius: 20px;
  padding: 5px 13px;
}
.scroll-cue {
  position: absolute;
  bottom: 36px;
  right: var(--pad-x);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-cue span {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
}
.scroll-cue i {
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
  animation: scrollpulse 2s infinite;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}
@keyframes orbit {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes scrollpulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* ============================================================
   Stats
   ============================================================ */
.stats {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  text-align: center;
  padding: 44px 20px;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border-right: 0;
}
.stat-num {
  font-family: "Barlow", sans-serif;
  font-size: clamp(34px, 4.5vw, 48px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--azul);
}
.stat-num.accent {
  color: var(--energia);
}
.stat-num .u {
  font-size: 0.55em;
}
.stat-label {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 8px;
}

/* ============================================================
   Ramas (servicios)
   ============================================================ */
.ramas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.rama {
  background: var(--bg-card);
  padding: clamp(28px, 4vw, 44px);
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}
.rama::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0.55;
  transition: opacity 0.4s;
}
.rama.hdd::before {
  background: linear-gradient(90deg, var(--azul), var(--azul-claro));
}
.rama.gas::before {
  background: linear-gradient(90deg, var(--energia), var(--energia-claro));
}
.rama:hover {
  background: var(--bg-card-hover);
}
.rama:hover::before {
  opacity: 1;
}
/* Fondo fotográfico sutil de cada rama */
.rama::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.07;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.rama.hdd::after {
  background-image: url(../img/rama-hdd.jpg);
}
.rama.gas::after {
  background-image: url(../img/rama-gas.jpg);
}
.rama:hover::after {
  opacity: 0.14;
}
.rama > * {
  position: relative;
  z-index: 1;
}
.rama-num {
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: "Barlow", sans-serif;
  font-size: 80px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.035);
}
.rama-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 26px;
  margin-bottom: 22px;
}
.rama.hdd .rama-icon {
  background: rgba(21, 101, 192, 0.14);
  border: 1px solid rgba(21, 101, 192, 0.3);
}
.rama.gas .rama-icon {
  background: rgba(245, 127, 23, 0.14);
  border: 1px solid rgba(245, 127, 23, 0.3);
}
.rama h3 {
  font-size: clamp(20px, 2.6vw, 26px);
  margin-bottom: 6px;
}
.rama-tag {
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--text-faint);
  margin-bottom: 22px;
  text-transform: uppercase;
}
.rama ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
}
.rama li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-mute);
}
.rama li::before {
  content: "→";
  flex-shrink: 0;
}
.rama.hdd li::before {
  color: var(--azul);
}
.rama.gas li::before {
  color: var(--energia);
}
.rama-link {
  font-family: "Barlow", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.rama.hdd .rama-link {
  color: var(--azul-claro);
}
.rama.gas .rama-link {
  color: var(--energia-claro);
}
.rama-link .arrow {
  transition: transform 0.3s;
}
.rama:hover .rama-link .arrow {
  transform: translateX(6px);
}

/* ============================================================
   Obras
   ============================================================ */
.obras-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.obra {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.4s,
    border-color 0.4s;
}
.obra:hover {
  transform: translateY(-6px);
  border-color: rgba(21, 101, 192, 0.4);
}
.obra-img {
  height: 180px;
  position: relative;
  overflow: hidden;
  background: var(--grafito);
}
.obra-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.obra:hover .obra-img img {
  transform: scale(1.07);
}
.obra-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13, 17, 23, 0.92) 0%,
    rgba(13, 17, 23, 0.25) 60%,
    rgba(13, 17, 23, 0.1) 100%
  );
}
.obra-body {
  padding: 18px 20px 22px;
}
.obra-tag {
  font-family: "Roboto Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--energia);
  margin-bottom: 8px;
}
.obra h4 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}
.obra-meta {
  font-size: 12px;
  color: var(--text-faint);
}
.obras-cta {
  text-align: center;
  margin-top: 44px;
}

/* ============================================================
   Clientes
   ============================================================ */
.clientes {
  background: var(--bg-2);
}
.clientes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.cliente {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--text-mute);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  transition: all 0.3s;
}
.cliente:hover {
  background: rgba(21, 101, 192, 0.14);
  border-color: rgba(21, 101, 192, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   Nosotros strip
   ============================================================ */
.nosotros-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  background: linear-gradient(
    135deg,
    rgba(21, 101, 192, 0.12),
    rgba(13, 71, 161, 0.04)
  );
  border: 1px solid rgba(21, 101, 192, 0.18);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
}
.nosotros-num {
  font-family: "Barlow", sans-serif;
  font-size: clamp(56px, 9vw, 90px);
  font-weight: 900;
  color: var(--azul);
  line-height: 0.9;
  letter-spacing: -2px;
}
.nosotros-text h3 {
  font-size: clamp(18px, 2.4vw, 24px);
  margin-bottom: 8px;
}
.nosotros-text p {
  font-size: 14px;
  color: var(--text-mute);
  max-width: 560px;
}

/* ============================================================
   CTA Contacto
   ============================================================ */
.cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  width: 760px;
  height: 420px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse,
    rgba(21, 101, 192, 0.14) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
}
.cta h2 {
  font-size: clamp(30px, 5vw, 52px);
  margin-bottom: 14px;
}
.cta p {
  color: var(--text-mute);
  font-size: clamp(14px, 1.8vw, 17px);
  margin-bottom: 36px;
}
.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: #050709;
  border-top: 1px solid var(--line);
  padding-block: 48px 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.footer-brand img {
  width: 200px;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--text-faint);
  max-width: 320px;
}
.footer-col h5 {
  font-family: "Barlow", sans-serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-col a,
.footer-col p {
  display: block;
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 10px;
  transition: color 0.3s;
}
.footer-col a:hover {
  color: var(--azul-claro);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
  color: var(--text-faint);
}

/* ============================================================
   Animaciones de revelado (GSAP las activa; fallback visible)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
}
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
    min-height: 260px;
  }
  .hero-mark {
    width: 200px;
  }
  .hero-orbit {
    width: 260px;
    height: 260px;
  }
  .stats .wrap {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .ramas-grid {
    grid-template-columns: 1fr;
  }
  .obras-grid {
    grid-template-columns: 1fr;
  }
  .nosotros-strip {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-geo,
  .scroll-cue {
    display: none;
  }

  /* ===== Menú móvil ===== */

  .navbar {
    z-index: 1000;
  }

  .nav-toggle {
    display: flex;
    z-index: 1002;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;

    width: min(78vw, 320px);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;

    background: rgba(8, 12, 20, 0.97);
    backdrop-filter: blur(16px);

    border-left: 1px solid var(--line);

    transform: translateX(100%);
    transition: transform 0.35s ease;

    z-index: 1001;
  }

  .nav-links.open {
    transform: translateX(0);
  }
}

/* ============================================================
   PÁGINAS INTERNAS — componentes reutilizables
   ============================================================ */

/* Hero compacto de página interna */
.page-hero {
  position: relative;
  padding: 160px var(--pad-x) 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    var(--bg) 0%,
    rgba(8, 12, 20, 0.6) 60%,
    rgba(8, 12, 20, 0.75) 100%
  );
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(21, 101, 192, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 101, 192, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(
    ellipse 70% 80% at 30% 30%,
    #000,
    transparent 75%
  );
  mask-image: radial-gradient(
    ellipse 70% 80% at 30% 30%,
    #000,
    transparent 75%
  );
}
.page-hero .wrap {
  position: relative;
  z-index: 2;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 20px;
}
.breadcrumb a {
  color: var(--text-faint);
  transition: color 0.3s;
}
.breadcrumb a:hover {
  color: var(--azul-claro);
}
.breadcrumb .sep {
  color: var(--azul);
}
.page-hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  max-width: 14ch;
}
.page-hero h1 .accent {
  color: var(--azul);
}
.page-hero .lead {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--text-mute);
  max-width: 620px;
  line-height: 1.7;
}

/* Texto enriquecido */
.prose {
  max-width: 760px;
}
.prose p {
  color: var(--text-mute);
  font-size: clamp(14px, 1.7vw, 16px);
  line-height: 1.85;
  margin-bottom: 18px;
}
.prose strong {
  color: #fff;
  font-weight: 600;
}
.prose .highlight {
  color: var(--azul-claro);
}

/* Sección a dos columnas (texto + visual) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split.reverse .split-visual {
  order: -1;
}
.split-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
}
.split-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-visual .vtag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(8, 12, 20, 0.7);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 4px;
  backdrop-filter: blur(6px);
}

/* Grilla de características / servicios */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition:
    transform 0.35s,
    border-color 0.35s;
  position: relative;
  overflow: hidden;
}
.feature:hover {
  transform: translateY(-5px);
  border-color: rgba(21, 101, 192, 0.4);
}
.feature .f-icon {
  font-size: 26px;
  margin-bottom: 14px;
  display: block;
}
.feature h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature p {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.6;
}
.feature .f-index {
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  color: var(--text-faint);
}

/* Proceso por pasos */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2px;
  background: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.step {
  background: var(--bg-card);
  padding: 30px 26px;
  position: relative;
  transition: background 0.35s;
}
.step:hover {
  background: var(--bg-card-hover);
}
.step .s-num {
  font-family: "Barlow", sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--azul);
  letter-spacing: 2px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.step .s-num::before {
  content: "";
  width: 30px;
  height: 30px;
  border: 1px solid var(--azul);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--azul);
}
.step h4 {
  font-size: 16px;
  margin-bottom: 8px;
}
.step p {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.65;
}

/* Tabla de datos (obras) */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table thead th {
  text-align: left;
  font-family: "Barlow", sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.data-table tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--text-mute);
  vertical-align: top;
}
.data-table tbody tr {
  transition: background 0.3s;
}
.data-table tbody tr:hover {
  background: rgba(21, 101, 192, 0.06);
}
.data-table .t-obra {
  color: #fff;
  font-weight: 600;
}
.data-table .t-metric {
  font-family: "Roboto Mono", monospace;
  color: var(--azul-claro);
  white-space: nowrap;
}
.data-table .t-badge {
  display: inline-block;
  font-family: "Roboto Mono", monospace;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--energia);
  border: 1px solid rgba(245, 127, 23, 0.3);
  border-radius: 4px;
  padding: 2px 8px;
}

/* Lista con checks */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-mute);
  line-height: 1.55;
}
.check-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(21, 101, 192, 0.15);
  border: 1px solid rgba(21, 101, 192, 0.4);
  color: var(--azul-claro);
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}
.check-list li strong {
  color: #fff;
  font-weight: 600;
}

/* Caja destacada / cita técnica */
.callout {
  border-left: 3px solid var(--azul);
  background: linear-gradient(90deg, rgba(21, 101, 192, 0.08), transparent);
  padding: 24px 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p {
  font-size: clamp(16px, 2.2vw, 21px);
  line-height: 1.6;
  color: #fff;
  font-weight: 500;
}
.callout .c-author {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 12px;
  font-style: normal;
}

/* Chips genéricos (listas de obras / clientes) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips.center {
  justify-content: center;
}
.chip {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.3px;
  color: var(--text-mute);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  transition: all 0.3s;
}
.chip:hover {
  background: rgba(21, 101, 192, 0.14);
  border-color: rgba(21, 101, 192, 0.4);
  color: #fff;
  transform: translateY(-2px);
}
.chip.accent:hover {
  background: rgba(245, 127, 23, 0.14);
  border-color: rgba(245, 127, 23, 0.4);
}

/* Bloque de categoría de obras */
.cat {
  margin-bottom: 56px;
}
.cat:last-child {
  margin-bottom: 0;
}
.cat-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cat-head h3 {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 800;
}
.cat-head .cat-count {
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  color: var(--energia);
  margin-left: auto;
  white-space: nowrap;
}

/* Timeline (Nosotros) */
.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(to bottom, var(--azul), transparent);
}
.tl-item {
  position: relative;
  padding-bottom: 32px;
}
.tl-item:last-child {
  padding-bottom: 0;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--azul);
}
.tl-item h4 {
  font-size: 16px;
  margin-bottom: 6px;
}
.tl-item p {
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.6;
}

/* Tarjetas de info de contacto */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition:
    border-color 0.3s,
    transform 0.3s;
}
.info-card:hover {
  border-color: rgba(21, 101, 192, 0.4);
  transform: translateY(-4px);
}
.info-card .ic-icon {
  font-size: 24px;
  margin-bottom: 12px;
}
.info-card h4 {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
  font-family: "Barlow", sans-serif;
}
.info-card a,
.info-card p {
  font-size: 15px;
  color: #fff;
  display: block;
  line-height: 1.5;
  transition: color 0.3s;
}
.info-card a:hover {
  color: var(--azul-claro);
}

/* Formulario */
.form {
  display: grid;
  gap: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field.full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 12px;
  font-family: "Barlow", sans-serif;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-faint);
}
.field input,
.field textarea,
.field select {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  transition:
    border-color 0.3s,
    background 0.3s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--azul);
  background: #0c1422;
}
.field textarea {
  resize: vertical;
  min-height: 130px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}
.form-note {
  font-size: 12px;
  color: var(--text-faint);
}

/* Mapa */
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  line-height: 0;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  filter: grayscale(0.3) invert(0.92) hue-rotate(180deg);
}

@media (max-width: 900px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .split.reverse .split-visual {
    order: 0;
  }
  .data-table thead {
    display: none;
  }
  .data-table tbody td {
    display: block;
    padding: 6px 0;
    border: 0;
  }
  .data-table tbody tr {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
  .page-hero {
    padding-top: 130px;
  }
}
