/* ============================================================
   Green Networld v3 — Enterprise Trust Dashboard
   Paleta: Navy primary + Blue accent + Verde brand + cream neutros.
   Tipografía: Poppins (display) + Open Sans (body) + JetBrains Mono.
   ============================================================ */

:root {
  /* Paleta principal */
  --navy:        #0F172A;
  --navy-2:      #1E293B;
  --navy-3:      #334155;
  --navy-4:      #475569;
  --blue:        #0369A1;
  --blue-dark:   #075985;
  --blue-soft:   #E0F2FE;
  --green:       #2D732D;   /* brand corporativo preservado */
  --green-dark:  #1F5720;
  --green-soft:  #E7F2E7;
  --yellow:      #F5B301;

  /* Neutros — eco-tech sage cream con tinte verdoso */
  --bg:          #EEF2EA;   /* sage cream — moderno, futurista, ecológico */
  --bg-2:        #F6F8F2;   /* surface elevated */
  --bg-muted:    #DEE5D6;   /* chips y bg-muted con tinte verde */
  --bg-card:     #FFFFFF;   /* cards permanecen blancas para contraste */
  --bg-mesh-1:   rgba(45, 115, 45, .055);  /* halo verde corporativo */
  --bg-mesh-2:   rgba(3, 105, 161, .055);  /* halo azul */
  --bg-mesh-3:   rgba(245, 179, 1, .04);   /* halo amarillo sutil */
  --fg:          #0C1410;
  --fg-2:        #2A3D2F;
  --fg-3:        #5C6E60;
  --border:      #D8DFD0;
  --border-2:    #BBC5B0;
  --destructive: #DC2626;

  /* Tipografía */
  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;

  /* Radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadow */
  --sh-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --sh-sm: 0 2px 8px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --sh-md: 0 6px 20px rgba(15, 23, 42, .08), 0 2px 4px rgba(15, 23, 42, .04);
  --sh-lg: 0 18px 40px rgba(15, 23, 42, .12), 0 6px 12px rgba(15, 23, 42, .06);
  --sh-navy: 0 10px 30px rgba(15, 23, 42, .18);

  /* Layout */
  --container: 1220px;
  --nav-h: 90px;
  --section-y: clamp(4rem, 8vw, 7rem);

  /* Easing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background:
    radial-gradient(at 12% 0%,   var(--bg-mesh-1) 0, transparent 45%),
    radial-gradient(at 92% 18%,  var(--bg-mesh-2) 0, transparent 50%),
    radial-gradient(at 50% 100%, var(--bg-mesh-3) 0, transparent 40%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--navy);
}
p { margin: 0 0 1em; color: var(--fg-2); }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-dark); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

/* ============================================================
   Primitives
   ============================================================ */

/* Kbd / mono label chip */
.kbd {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 0;
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .3em .7em;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--bg-muted);
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.chip-accent {
  background: var(--green-soft);
  color: var(--green-dark);
}
.chip-dark {
  background: rgba(255, 255, 255, .08);
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, .12);
}
.chip-over {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: rgba(15, 23, 42, .85);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.chip-line {
  background: transparent;
  border: 1px solid var(--border-2);
  padding: .4em .75em;
  gap: .6em;
}
.chip-line .chip-code {
  font-weight: 700;
  color: var(--navy);
}
.chip-line .chip-label {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--fg-3);
  font-size: .72rem;
}

/* Dot */
.dot {
  color: var(--border-2);
  font-size: .7em;
  opacity: .7;
}
.dot-live {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 115, 45, .2);
  position: relative;
}
.dot-live::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--green);
  opacity: .6;
  animation: livePulse 1.8s var(--ease-out) infinite;
}
@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: .5; }
  50%      { transform: scale(2.2); opacity: 0; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .85em 1.35em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .94rem;
  line-height: 1;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background .2s var(--ease-out), border-color .2s, color .2s, transform .15s, box-shadow .2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn svg { width: 1em; height: 1em; transition: transform .25s var(--ease-out); }
.btn:hover svg { transform: translateX(.2em); }

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--sh-sm);
}
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-primary:active { transform: translateY(1px); }

.btn-accent {
  background: var(--blue);
  color: #fff;
}
.btn-accent:hover { background: var(--blue-dark); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border-2);
}
.btn-ghost:hover { background: var(--bg-muted); border-color: var(--navy); }

.btn-sm { padding: .6em 1em; font-size: .85rem; }
.btn-block { width: 100%; }

/* Link arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--blue);
  transition: gap .25s var(--ease-out), color .2s;
}
.link-arrow svg { width: 1em; height: 1em; transition: transform .3s var(--ease-out); }
.link-arrow:hover { color: var(--navy); gap: .75em; }
.link-arrow:hover svg { transform: translateX(.2em); }

/* Section */
.section { padding: var(--section-y) 0; }
.section-muted { background: var(--bg-muted); }
.section-dark {
  background: var(--navy);
  color: #E2E8F0;
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: #CBD5E1; }

.section-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 3rem;
}
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; gap: 1rem; } }
.section-head-dark .kbd { color: #94A3B8; }
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -.025em;
  margin: .5rem 0 0;
  max-width: 24ch;
  color: var(--navy);
}
.section-head-dark .section-title { color: #fff; }
.section-lead {
  max-width: 50ch;
  color: var(--fg-3);
  margin: 0;
  font-size: 1.02rem;
}
.section-head-dark .section-lead { color: #94A3B8; }
.section-foot {
  margin-top: 2.5rem;
  text-align: center;
}

/* Focus ring */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(238, 242, 234, .85);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.navbar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .78rem;
  color: var(--fg-3);
}
.navbar-top-meta {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
}
.navbar-top-meta strong { color: var(--navy); font-weight: 600; }
@media (max-width: 820px) { .navbar-top { display: none; } }

.navbar-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .9rem 0;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--navy);
  font-weight: 600;
  flex-shrink: 0;
  transition: transform .25s var(--ease-out);
}
.navbar-brand:hover { color: var(--navy); transform: translateY(-1px); }
.navbar-logo {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 4px 14px rgba(45, 115, 45, .18),
    0 1px 3px rgba(15, 23, 42, .08),
    inset 0 0 0 1px rgba(45, 115, 45, .15);
  flex-shrink: 0;
  transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}
.navbar-logo::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--r-md) + 3px);
  background: conic-gradient(from 180deg, var(--green) 0%, var(--blue) 35%, var(--yellow) 65%, var(--green) 100%);
  z-index: -1;
  opacity: 0;
  filter: blur(8px);
  transition: opacity .35s var(--ease-out);
}
.navbar-brand:hover .navbar-logo {
  transform: scale(1.04) rotate(-1.5deg);
  box-shadow:
    0 8px 22px rgba(45, 115, 45, .28),
    0 2px 6px rgba(15, 23, 42, .12),
    inset 0 0 0 1px rgba(45, 115, 45, .25);
}
.navbar-brand:hover .navbar-logo::after { opacity: .55; }
.navbar-logo img { width: 100%; height: 100%; object-fit: cover; }
.navbar-brand-text {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  line-height: 1;
  padding-left: 1rem;
  border-left: 2px solid;
  border-image: linear-gradient(180deg, var(--green) 0%, var(--blue) 100%) 1;
}
.navbar-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--navy) 0%, var(--green-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.navbar-brand-tag {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-dark);
}
@media (max-width: 720px) {
  .navbar-logo { width: 54px; height: 54px; }
  .navbar-brand-name { font-size: 1.05rem; }
  .navbar-brand-tag { display: none; }
}
.nav-links {
  display: flex;
  gap: .25rem;
  margin: 0 auto;
}
.nav-links a {
  display: inline-block;
  padding: .55rem .9rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .9rem;
  color: var(--navy-3);
  border-radius: var(--r-sm);
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--bg-muted); color: var(--navy); }
.nav-links a.is-active { color: var(--navy); background: var(--bg-muted); }
.navbar-actions {
  display: flex;
  gap: .6rem;
  align-items: center;
  flex-shrink: 0;
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  background: var(--bg-muted);
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 20px; }
.menu-toggle span:nth-child(3) { top: 26px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   Hero (home)
   ============================================================ */
.hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 0;
  background: var(--bg);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
/* Banner image como fondo del hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/img/baner.jpg") center/cover no-repeat;
  background-attachment: scroll;
  z-index: -2;
  opacity: .88;
}
/* Overlay protector: difumina la imagen donde va el texto y hace fade hacia la siguiente sección */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg,
      rgba(238, 242, 234, .82) 0%,
      rgba(238, 242, 234, .60) 32%,
      rgba(238, 242, 234, .25) 62%,
      rgba(238, 242, 234, .08) 100%),
    radial-gradient(ellipse at 90% 10%, rgba(3, 105, 161, .28), transparent 52%),
    linear-gradient(180deg, transparent 55%, var(--bg) 100%);
  z-index: -1;
  pointer-events: none;
}

/* ── Hero orbit rotativo (decoración de fondo) ── */
.hero-orbit {
  position: absolute;
  top: 50%;
  right: -18%;
  transform: translateY(-52%);
  width: clamp(520px, 68vw, 900px);
  aspect-ratio: 1 / 1;
  z-index: 0;
  pointer-events: none;
  opacity: .85;
  filter: drop-shadow(0 20px 60px rgba(15, 23, 42, .08));
}
@media (max-width: 1000px) {
  .hero-orbit {
    top: auto;
    bottom: -25%;
    right: -35%;
    width: 620px;
    transform: none;
    opacity: .5;
  }
}
.hero-orbit-svg { width: 100%; height: 100%; }
.hero-orbit-svg g { transform-origin: 300px 300px; transform-box: fill-box; }
.hero-orbit-outer { animation: heroOrbitSpin 80s linear infinite; }
.hero-orbit-mid   { animation: heroOrbitSpin 60s linear infinite reverse; }
.hero-orbit-inner { animation: heroOrbitSpin 40s linear infinite; }
.hero-orbit-logo  { animation: heroOrbitLogoPulse 5s ease-in-out infinite; transform-origin: 300px 300px; transform-box: fill-box; }
@keyframes heroOrbitLogoPulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.04); opacity: .98; }
}

@keyframes heroOrbitSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Asegura que el contenido del hero quede sobre el orbit */
.hero .container, .hero-inner, .hero-marquee { position: relative; z-index: 1; }
.hero-panel { position: relative; z-index: 2; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-bottom: 3.5rem;
}
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}
.hero-kbd { margin-bottom: 1.2rem; display: inline-flex; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  margin: 0 0 1.2rem;
  color: var(--navy);
}
.hero-hl { color: var(--green); }
.hero-hl-blue { color: var(--blue); }
.hero-hl-underline {
  background: linear-gradient(transparent 65%, var(--green-soft) 65%, var(--green-soft) 95%, transparent 95%);
  padding: 0 .1em;
}
.hero-lead {
  max-width: 54ch;
  font-size: 1.08rem;
  color: var(--fg-2);
  margin: 0 0 1.8rem;
}
.hero-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
  padding: 0;
}

.hero-panel {
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--sh-navy);
  position: relative;
  overflow: hidden;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(3, 105, 161, .72), transparent 65%);
  pointer-events: none;
}
.hero-panel > * { position: relative; }
.hero-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  margin-bottom: 1.2rem;
}
.hero-panel-head .kbd { color: #94A3B8; }
.hero-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
}
.hero-panel-grid .stat {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .6rem 0;
}
.hero-panel-grid .stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -.03em;
  color: #fff;
}
.hero-panel-grid .stat-label {
  font-size: .78rem;
  color: #94A3B8;
  line-height: 1.35;
}
.hero-panel-foot {
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.panel-bar {
  height: 4px;
  background: rgba(255, 255, 255, .08);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin-bottom: .55rem;
}
.panel-bar-fill {
  height: 100%;
  width: var(--pct, 0%);
  background: linear-gradient(90deg, var(--green), #6BCB5E);
  border-radius: var(--r-pill);
  transition: width 1.4s var(--ease-out);
}
.panel-bar-meta {
  display: flex;
  gap: .6rem;
  align-items: center;
  font-size: .82rem;
  color: #CBD5E1;
}
.panel-bar-meta .kbd { color: #94A3B8; }

/* ============================================================
   Indicadores — sección final home (section-dark)
   ============================================================ */
.indicadores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 2.5rem;
}
.indicador-item {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 2rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.indicador-item:last-child { border-right: none; }
.indicador-item--wide {
  grid-column: 1 / -1;
  border-right: none;
  border-bottom: none;
  padding-top: 1.8rem;
  padding-bottom: 2rem;
}
.indicador-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1;
  color: var(--green);
  letter-spacing: -.02em;
}
.indicador-label {
  font-size: .85rem;
  color: #94A3B8;
  line-height: 1.4;
  max-width: 18ch;
}
.indicador-bar-wrap { max-width: 480px; }
.indicador-bar-track {
  height: 5px;
  background: rgba(255,255,255,.08);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin-bottom: .7rem;
}
.indicador-bar-fill {
  height: 100%;
  width: var(--pct, 0%);
  background: linear-gradient(90deg, var(--green), #6BCB5E);
  border-radius: var(--r-pill);
  transition: width 1.4s var(--ease-out);
}
.indicador-bar-meta {
  display: flex;
  gap: .7rem;
  align-items: center;
  font-size: .85rem;
  color: #CBD5E1;
}
.indicador-bar-meta .kbd { color: #94A3B8; font-size: .72rem; }
@media (max-width: 900px) {
  .indicadores-grid { grid-template-columns: repeat(2, 1fr); }
  .indicador-item:nth-child(2) { border-right: none; }
}
@media (max-width: 500px) {
  .indicadores-grid { grid-template-columns: 1fr; }
  .indicador-item { border-right: none; }
}

/* Hero marquee */
.hero-marquee {
  background: var(--navy);
  color: #fff;
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
  border-top: 3px solid var(--green);
}
.hero-marquee-track {
  display: flex;
  gap: 1.5rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  animation: marquee 32s linear infinite;
  width: max-content;
}
.hero-marquee-track span { flex-shrink: 0; color: #94A3B8; }
.hero-marquee-track span:nth-child(odd):not(:has(+ *)) { color: #fff; }
.hero-marquee-track span:not(:nth-child(2n)) { color: #fff; letter-spacing: -.01em; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   Bento grid (home services)
   ============================================================ */
.section-bento { background: var(--bg); }
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem;
}
@media (max-width: 1000px) { .bento-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .bento-grid { grid-template-columns: 1fr; } }

.bento {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.bento:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: var(--border-2);
}

.bento-lg {
  grid-column: span 2;
  grid-row: span 2;
  padding: 0;
}
@media (max-width: 1000px) { .bento-lg { grid-column: span 2; grid-row: auto; min-height: 360px; } }
@media (max-width: 640px)  { .bento-lg { grid-column: 1; min-height: 320px; } }

.bento-feature {
  background: var(--navy);
  color: #fff;
  border: 0;
  min-height: 420px;
}
.bento-feature-bg {
  position: absolute;
  inset: 0;
  opacity: .35;
  z-index: 0;
}
.bento-feature-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.8);
}
.bento-feature-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, .92) 0%, rgba(15, 23, 42, .6) 60%, rgba(15, 23, 42, .85) 100%);
}
.bento-feature-inner {
  position: relative;
  z-index: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  height: 100%;
  justify-content: flex-end;
}
.bento-feature-inner .chip-accent {
  align-self: flex-start;
  margin-bottom: auto;
}
.bento-feature-inner h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: #fff;
  margin: 0;
  max-width: 18ch;
}
.bento-feature-inner p { color: #CBD5E1; margin: 0 0 .5rem; max-width: 42ch; }
.bento-feature-chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .8rem; }
.bento-feature .chip { background: rgba(255, 255, 255, .08); color: #E2E8F0; border: 1px solid rgba(255, 255, 255, .12); }
.bento-feature .btn-primary { align-self: flex-start; background: #fff; color: var(--navy); }
.bento-feature .btn-primary:hover { background: var(--bg-muted); color: var(--navy); }

.bento-sm { min-height: 200px; }
.bento-sm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .25rem;
}
.bento-sm h3 {
  font-size: 1.15rem;
  margin: 0;
  color: var(--navy);
}
.bento-sm p {
  font-size: .94rem;
  margin: 0;
  color: var(--fg-3);
}
.bento-sm .link-arrow { margin-top: auto; font-size: .85rem; }
.svc-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.svc-card-icon img { width: 60%; height: 60%; }

/* ============================================================
   Proceso
   ============================================================ */
.proceso-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: proceso;
}
@media (max-width: 1000px) { .proceso-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .proceso-list { grid-template-columns: 1fr; } }
.proceso-step {
  padding: 1.5rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: .7rem;
  transition: background .3s, border-color .3s, transform .3s;
}
.proceso-step:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(45, 115, 45, .4);
  transform: translateY(-3px);
}
.proceso-step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
.proceso-step h3 { color: #fff; font-size: 1.15rem; margin: 0 0 .3rem; }
.proceso-step p { font-size: .94rem; margin: 0 0 .6rem; color: #CBD5E1; }
.proceso-step .kbd { color: #94A3B8; margin-top: auto; }

/* ============================================================
   Cards grid (servicios / proyectos)
   ============================================================ */
.cards-grid {
  display: grid;
  gap: 1.25rem;
}
.cards-grid-svc { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards-grid-prj { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }

/* Servicio card */
.svc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s;
  position: relative;
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: var(--border-2);
}
.svc-card-top { display: flex; justify-content: space-between; align-items: center; }
.svc-card-body { display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.svc-card h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin: .3rem 0 0;
  line-height: 1.2;
}
.svc-card p { font-size: .92rem; color: var(--fg-3); margin: 0; line-height: 1.55; }
.svc-card-link {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .9rem;
  transition: gap .25s var(--ease-out);
}
.svc-card-link svg { width: 1em; height: 1em; transition: transform .25s var(--ease-out); }
.svc-card-link:hover { color: var(--navy); gap: .75em; }
.svc-card-link:hover svg { transform: translateX(.2em); }

/* Proyecto card */
.prj-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s;
}
.prj-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: var(--border-2);
}
.prj-card-media {
  position: relative;
  aspect-ratio: 16 / 11;
  background: var(--bg-muted);
  overflow: hidden;
}
.prj-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease-out);
}
.prj-card:hover .prj-card-media img { transform: scale(1.05); }
.prj-card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  flex: 1;
}
.prj-card-meta {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.prj-card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin: 0;
  line-height: 1.25;
}
.prj-card p {
  font-size: .9rem;
  color: var(--fg-3);
  margin: 0 0 .4rem;
  line-height: 1.55;
}
.prj-card-link {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .88rem;
  color: var(--blue);
  margin-top: auto;
}
.prj-card-link svg { width: 1em; height: 1em; transition: transform .25s var(--ease-out); }
.prj-card-link:hover { color: var(--navy); }
.prj-card-link:hover svg { transform: translateX(.2em); }
.prj-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ============================================================
   Filters bar — Tab cards
   ============================================================ */
.filters-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  width: 100%;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  box-shadow: var(--sh-sm);
  cursor: pointer;
  text-align: left;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease, background .22s ease;
  position: relative;
  overflow: hidden;
}
/* accent stripe en la parte superior (invisible por defecto) */
.filter-btn::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--r-xs) var(--r-xs) 0 0;
  background: var(--filter-color, var(--navy));
  opacity: 0;
  transition: opacity .22s ease;
}
.filter-btn:hover { box-shadow: var(--sh-md); transform: translateY(-2px); border-color: var(--border-2); }
.filter-btn:hover::before { opacity: .4; }

/* ── Ícono ── */
.filter-btn-icon {
  flex-shrink: 0;
  width: 3rem; height: 3rem;
  border-radius: var(--r-md);
  background: var(--bg-muted);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-3);
  transition: background .22s ease, color .22s ease;
}
.filter-btn-icon svg { width: 1.35rem; height: 1.35rem; }

/* ── Texto ── */
.filter-btn-body { display: flex; flex-direction: column; gap: .18rem; min-width: 0; }
.filter-btn-label {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  color: var(--fg-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .22s ease;
}
.filter-btn-count {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  color: var(--fg-3);
  transition: color .22s ease;
}

/* ── Colores por categoría ── */
.filter-btn[data-cat="all"]                { --filter-color: var(--navy); }
.filter-btn[data-cat="solar"]              { --filter-color: #D97706; }
.filter-btn[data-cat="telecomunicaciones"] { --filter-color: var(--blue); }
.filter-btn[data-cat="electricas"]         { --filter-color: var(--green); }

/* ── Estado activo ── */
.filter-btn.is-active {
  border-color: var(--filter-color);
  box-shadow: 0 4px 20px rgba(0,0,0,.1), 0 0 0 1px var(--filter-color);
  transform: translateY(-2px);
}
.filter-btn.is-active::before { opacity: 1; }
.filter-btn.is-active .filter-btn-icon {
  background: var(--filter-color);
  color: #fff;
}
.filter-btn.is-active .filter-btn-label { color: var(--filter-color); }
.filter-btn.is-active .filter-btn-count { color: var(--filter-color); opacity: .75; }

/* ============================================================
   Page hero (internal)
   ============================================================ */
.page-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(3, 105, 161, .06), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero .kbd { margin-bottom: .7rem; display: inline-flex; }
.page-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -.03em;
  line-height: 1;
  margin: 0 0 .8rem;
  color: var(--navy);
}
.page-hero-lead {
  max-width: 60ch;
  font-size: 1.05rem;
  color: var(--fg-3);
  margin: 0;
}

/* ============================================================
   Detail (project + service)
   ============================================================ */
.detail-hero {
  padding: clamp(2rem, 4vw, 3rem) 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--fg-3);
  margin-bottom: 1.5rem;
}
.crumbs a { color: var(--fg-3); }
.crumbs a:hover { color: var(--blue); }
.crumbs span:not([aria-hidden]) { color: var(--navy); font-weight: 500; }
.detail-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}
@media (max-width: 900px) {
  .detail-hero-grid { grid-template-columns: 1fr; }
  .detail-hero-visual { order: -1; max-width: 500px; }
}
.detail-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: -.025em;
  line-height: 1.08;
  margin: .6rem 0 1rem;
  color: var(--navy);
}
.detail-hero-lead {
  font-size: 1.08rem;
  color: var(--fg-2);
  max-width: 56ch;
}
.detail-hero-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}
.detail-hero-meta > span {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  font-weight: 500;
  color: var(--navy);
}
.detail-hero-meta .kbd { color: var(--fg-3); font-weight: 500; }
.detail-hero-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-muted);
  box-shadow: var(--sh-md);
}
.detail-hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero-visual-svc {
  background: var(--bg-card);
  aspect-ratio: 1 / 1;
  position: relative;
  border: 1px solid var(--border);
}
.detail-hero-visual-svc img { width: 100%; height: 100%; object-fit: cover; padding: 0; }
.detail-hero-icon {
  position: absolute;
  bottom: 1.2rem;
  left: 1.2rem;
  width: 56px;
  height: 56px;
  border-radius: var(--r-sm);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-sm);
}
.detail-hero-icon img { width: 55%; height: 55%; padding: 0; filter: brightness(0) invert(1); }

.detail-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 1000px) {
  .detail-body { grid-template-columns: 1fr; }
}
.detail-main { min-width: 0; }
.detail-block { margin-bottom: 2.5rem; }
.detail-block .kbd { margin-bottom: .3rem; display: inline-flex; }
.detail-block h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin: .3rem 0 .8rem;
  max-width: 24ch;
  color: var(--navy);
}
.detail-block p {
  color: var(--fg-2);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 62ch;
}

/* Subsvc list */
.subsvc-list {
  display: grid;
  gap: .75rem;
}
.subsvc {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  padding: 1.25rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.subsvc[data-sol-img] { position: relative; cursor: pointer; }
.subsvc-num { color: var(--blue); font-size: .9rem; font-weight: 600; padding-top: .35em; }
.subsvc h3 { font-size: 1.1rem; margin: 0 0 .2rem; color: var(--navy); }
.subsvc p { margin: 0; color: var(--fg-3); font-size: .92rem; line-height: 1.55; }
.subsvc-img-hint {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--fg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s, border-color .2s;
  flex-shrink: 0;
}
.subsvc-img-hint svg { width: .85rem; height: .85rem; }

/* Sol visor (modal flotante soluciones) */
.sol-visor {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(15, 23, 42, .72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
}
.sol-visor.is-open { opacity: 1; pointer-events: auto; }
.sol-visor-inner {
  position: relative;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  max-width: min(680px, 94vw);
  width: 100%;
  box-shadow: 0 24px 64px rgba(15, 23, 42, .28);
  transform: translateY(20px) scale(.96);
  transition: transform .28s var(--ease-out);
}
.sol-visor.is-open .sol-visor-inner { transform: none; }
.sol-visor-img { width: 100%; height: auto; display: block; }
.sol-visor-body { padding: 1.2rem 1.5rem 1.5rem; }
.sol-visor-title { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: 0 0 .3rem; }
.sol-visor-desc { margin: 0; color: var(--fg-2); font-size: .88rem; line-height: 1.55; }
.sol-visor-close {
  position: absolute;
  top: .6rem;
  right: .6rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(15, 23, 42, .55);
  border: none;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 1;
}
.sol-visor-close:hover { background: rgba(15, 23, 42, .88); }

/* Bene list */
.bene-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: .8rem;
}
.bene-list li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .95rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: .95rem;
  color: var(--fg);
}
.check {
  width: 1.05em;
  height: 1.05em;
  padding: .15em;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  flex-shrink: 0;
  margin-top: .15em;
}

/* Spec card (sidebar) */
.detail-aside { position: sticky; top: calc(var(--nav-h) + 1rem); }
@media (max-width: 1000px) { .detail-aside { position: static; } }
.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--sh-xs);
}
.spec-title {
  font-size: 1.2rem;
  margin: .5rem 0 1rem;
  color: var(--navy);
}
.spec-lead { color: var(--fg-3); font-size: .92rem; margin: 0 0 1.2rem; }
.spec-list { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.2rem; }
.spec {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding-bottom: .7rem;
  border-bottom: 1px dashed var(--border);
}
.spec:last-child { border-bottom: 0; padding-bottom: 0; }
.spec-v { font-weight: 500; color: var(--navy); font-size: .95rem; }
.spec-rel {
  padding: 1rem 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.spec-actions { display: flex; flex-direction: column; gap: .5rem; }
.spec-actions-label { font-size: .72rem; color: var(--text-muted); margin-top: .3rem; }
.spec-actions-label:first-child { margin-top: 0; }
.spec-actions-sep { border: none; border-top: 1px solid var(--border); margin: .2rem 0 0; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: .8rem;
}
.gallery-item {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--bg-muted);
  cursor: zoom-in;
  border: 1px solid var(--border);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: none;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.is-open { display: flex; animation: lbFadeIn .3s; }
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--r-md);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .4);
}
.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .2); }

/* ============================================================
   About + stats + mv + valores
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-text .kbd { display: inline-flex; margin-bottom: .7rem; }
.about-text h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0 0 1rem;
  max-width: 20ch;
}
.about-text p { color: var(--fg-2); font-size: 1.02rem; line-height: 1.65; }
.about-text strong { color: var(--navy); font-weight: 600; }
.about-visual {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  position: relative;
  box-shadow: var(--sh-md);
  border: 1px solid var(--border);
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
.about-visual figcaption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, .85);
  color: #fff;
  padding: .45rem .8rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--r-xs);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--green);
}
.stat-label {
  font-size: .92rem;
  color: var(--fg-3);
  line-height: 1.45;
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 900px) { .mv-grid { grid-template-columns: 1fr; } }
.mv-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.mv-card .kbd { display: inline-flex; margin-bottom: .3rem; }
.mv-card h3 {
  font-size: 1.35rem;
  margin: 0 0 .4rem;
  max-width: 24ch;
  color: var(--navy);
}
.mv-card p { color: var(--fg-2); margin: 0; }
.mv-card-pop {
  background: var(--navy);
  border: 0;
  box-shadow: var(--sh-navy);
}
.mv-card-pop h3 { color: #fff; }
.mv-card-pop p { color: #CBD5E1; }
.mv-card-pop .kbd { color: #94A3B8; }

.valores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 1000px) { .valores-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .valores-grid { grid-template-columns: 1fr; } }
.valor {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--r-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  transition: background .3s, border-color .3s, transform .3s;
}
.valor:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(45, 115, 45, .4);
  transform: translateY(-3px);
}
.valor-num { color: var(--green); margin-bottom: .2rem; }
.valor h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 .2rem;
  color: #fff;
}
.valor p { color: #94A3B8; font-size: .88rem; margin: 0; }

/* ============================================================
   CTA card
   ============================================================ */
.section-cta { background: var(--bg); }
.cta-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-navy);
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(45, 115, 45, .3), transparent 55%);
  pointer-events: none;
}
.cta-card > * { position: relative; }
@media (max-width: 820px) { .cta-card { grid-template-columns: 1fr; gap: 1.5rem; } }
.cta-card .kbd { color: #94A3B8; display: inline-flex; margin-bottom: .3rem; }
.cta-card h2 {
  color: #fff;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  margin: 0 0 .6rem;
  max-width: 24ch;
  line-height: 1.15;
}
.cta-card p { color: #CBD5E1; margin: 0; font-size: 1.02rem; }
.cta-actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 820px) { .cta-actions { justify-content: flex-start; } }
.cta-card .btn-primary { background: #fff; color: var(--navy); }
.cta-card .btn-primary:hover { background: var(--bg-muted); }
.cta-card .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .25); }
.cta-card .btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 1000px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info {
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  box-shadow: var(--sh-navy);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (max-width: 1000px) { .contact-info { position: static; } }
.contact-info .kbd { color: #94A3B8; display: inline-flex; margin-bottom: .3rem; }
.contact-info h2 { color: #fff; font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin: 0 0 .6rem; }
.info-list { display: flex; flex-direction: column; gap: .9rem; }
.info-row {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.info-row:last-child { border-bottom: 0; }
.info-row a, .info-row > span:last-child { color: #fff; font-weight: 500; }
.info-row a:hover { color: var(--green); }
.info-socials { display: inline-flex; gap: .75rem; flex-wrap: wrap; }
.info-status {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .9rem;
  border-radius: var(--r-pill);
  background: rgba(45, 115, 45, .15);
  border: 1px solid rgba(45, 115, 45, .3);
  width: fit-content;
}
.info-status .kbd { color: #6BCB5E; margin: 0; }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form .kbd { display: inline-flex; margin-bottom: .3rem; }
.contact-form h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin: 0 0 .4rem; }
.contact-lead { color: var(--fg-3); font-size: .92rem; margin: 0 0 .5rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .88rem;
  color: var(--navy);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: .98rem;
  color: var(--fg);
  transition: border-color .2s, background .2s, box-shadow .2s;
  font-family: inherit;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(3, 105, 161, .12);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230F172A'><path d='M3 6l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px;
  padding-right: 2.5rem;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .5rem; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  position: relative;
  background: var(--navy);
  color: #CBD5E1;
  padding: clamp(3rem, 5vw, 4.5rem) 0 1.5rem;
  margin-top: var(--section-y);
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -180px;
  width: 620px;
  height: 620px;
  background-image: url("/img/logo.jpeg");
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  opacity: .055;
  filter: grayscale(1) blur(1px);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}
.footer::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -180px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 115, 45, .25) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.footer .container { position: relative; z-index: 1; }
.footer h4 {
  font-size: .88rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  letter-spacing: 0;
  text-transform: none;
}
.footer ul { display: flex; flex-direction: column; gap: .55rem; }
.footer a { color: #CBD5E1; font-size: .92rem; }
.footer a:hover { color: #fff; }
.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr; } }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 700px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-cols { grid-template-columns: 1fr; } }
.brand-footer {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  margin-bottom: 1.2rem;
}
.brand-footer img {
  width: 84px;
  height: 84px;
  border-radius: var(--r-md);
  object-fit: cover;
  background: #fff;
  flex-shrink: 0;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, .35),
    inset 0 0 0 1px rgba(255, 255, 255, .12);
  padding: 6px;
}
.brand-footer-name {
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  font-size: 1.45rem;
  letter-spacing: -.02em;
  display: block;
  line-height: 1.1;
  margin-bottom: .25rem;
}
.brand-footer-tag {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--green-soft);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
}
.footer-desc { color: #94A3B8; font-size: .92rem; max-width: 40ch; }
.footer-certs {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.footer-addr { color: #94A3B8; font-size: .85rem; margin-top: 1rem; line-height: 1.5; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  font-size: .82rem;
  color: #64748B;
}
.footer-bottom-meta { display: inline-flex; gap: 1rem; }

/* ============================================================
   WhatsApp float
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem 1rem .7rem .75rem;
  background: #25D366;
  color: #fff;
  border-radius: var(--r-pill);
  box-shadow: 0 10px 30px rgba(37, 211, 102, .4);
  z-index: 90;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .88rem;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.whatsapp-float:hover { transform: translateY(-3px); color: #fff; box-shadow: 0 14px 38px rgba(37, 211, 102, .55); }
.whatsapp-float svg { width: 22px; height: 22px; fill: currentColor; }
@media (max-width: 560px) { .whatsapp-float span { display: none; } }

/* ============================================================
   Data reveal animations
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Responsive <820px
   ============================================================ */
@media (max-width: 820px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--sh-md);
    padding: 1rem;
    gap: .3rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s var(--ease-out), opacity .3s var(--ease-out);
  }
  .nav-links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { display: block; padding: .85rem 1rem; }
  .menu-toggle { display: block; }
  .navbar-actions .btn-primary { display: none; }

  .hero-trust { gap: .4rem; }
  .filters-bar { grid-template-columns: 1fr 1fr; }
  .filter-btn-label { font-size: .82rem; }
  .filter-btn { padding: 1rem 1.1rem; gap: .75rem; }
  .filter-btn-icon { width: 2.5rem; height: 2.5rem; }
  .filter-btn-icon svg { width: 1.1rem; height: 1.1rem; }
}

@media (max-width: 480px) {
  .filters-bar { grid-template-columns: 1fr 1fr; gap: .65rem; }
  .filter-btn { padding: .9rem; gap: .6rem; flex-direction: column; align-items: flex-start; }
  .filter-btn-icon { width: 2.25rem; height: 2.25rem; }
  .filter-btn-body { gap: .1rem; }
  .filter-btn-label { font-size: .78rem; }
  .filter-btn-count { font-size: .67rem; }
}

/* ============================================================
   Accesibilidad — reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-marquee-track { animation: none !important; }
  .clientes-marquee-track { animation: none !important; }
  .dot-live::after { animation: none !important; opacity: 0; }
}

/* ============================================================
   Section header — hero variant (home: "01 · Servicios" grande)
   ============================================================ */
.section-head-hero {
  display: block;
  margin-bottom: 3.5rem;
  text-align: left;
  max-width: 64rem;
}
.section-head-hero .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-soft);
  padding: .4em .9em;
  border-radius: var(--r-pill);
  border: 1px solid rgba(45, 115, 45, .18);
  margin-bottom: 1.2rem;
}
.section-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: .95;
  letter-spacing: -.04em;
  margin: 0 0 .5rem;
  color: var(--navy);
  background: linear-gradient(135deg, var(--navy) 0%, var(--green-dark) 60%, var(--blue) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head-hero .section-sub {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--fg-2);
  margin: 0 0 1rem;
  letter-spacing: -.01em;
}
.section-head-hero .section-lead-stack {
  max-width: 56ch;
  font-size: 1rem;
  color: var(--fg-3);
  margin: 0;
}

/* Section header — stacked (clientes) */
.section-head-stack {
  display: block;
  text-align: left;
  margin-bottom: 2.5rem;
  max-width: 56rem;
}
.section-head-stack .kbd { display: block; margin-bottom: .4rem; }
.section-head-stack .section-title { margin-top: 0; max-width: 34ch; }
.section-head-stack .section-lead { margin-top: 1rem; max-width: 60ch; }

/* ============================================================
   Cat rows / Svc rows — full-width feature blocks alternados
   ============================================================ */
.section-servicios { padding-block: var(--section-y); }

.cat-rows,
.svc-rows {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cat-row,
.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .25s;
  min-height: 360px;
}
.cat-row:hover,
.svc-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: var(--green);
}
.cat-row:nth-child(even),
.svc-row:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}
.cat-row:nth-child(even) .cat-row-media,
.svc-row:nth-child(even) .svc-row-media {
  order: 2;
}
.cat-row:nth-child(even) .cat-row-body,
.svc-row:nth-child(even) .svc-row-body {
  order: 1;
}

.cat-row-media,
.svc-row-media {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  min-height: 280px;
}
.cat-row-media img,
.svc-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.cat-row:hover .cat-row-media img,
.svc-row:hover .svc-row-media img { transform: scale(1.04); }

.cat-row-overlay,
.svc-row-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(15, 23, 42, .12) 0%,
    rgba(15, 23, 42, .04) 40%,
    rgba(15, 23, 42, .35) 100%);
  pointer-events: none;
}

.cat-row-icon,
.svc-row-icon {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 64px;
  height: 64px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(45, 115, 45, .25);
  display: grid;
  place-items: center;
  z-index: 2;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .2);
}
.cat-row-icon img,
.svc-row-icon img { width: 56%; height: 56%; }

.cat-row-body,
.svc-row-body {
  padding: clamp(1.75rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: .8rem;
  justify-content: center;
}
.cat-row-body .kbd,
.svc-row-body .kbd {
  color: var(--green-dark);
  font-weight: 600;
  letter-spacing: .1em;
  margin-bottom: .2rem;
}
.cat-row-body h3,
.svc-row-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin: 0;
  color: var(--navy);
  letter-spacing: -.02em;
  line-height: 1.15;
}
.cat-row-body p,
.svc-row-body p {
  font-size: 1rem;
  color: var(--fg-2);
  margin: 0;
  line-height: 1.65;
  max-width: 56ch;
}

.cat-row-subs,
.svc-row-items {
  list-style: none;
  margin: .8rem 0 .4rem;
  padding: 1rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem 1.25rem;
  border-top: 1px dashed var(--border-2);
}
@media (max-width: 540px) {
  .cat-row-subs,
  .svc-row-items { grid-template-columns: 1fr; }
}
.cat-row-subs li,
.svc-row-items li {
  font-size: .9rem;
  color: var(--fg-2);
  font-weight: 500;
  position: relative;
  padding-left: 1.2rem;
  line-height: 1.45;
}
.cat-row-subs li::before,
.svc-row-items li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 700;
}

.cat-row-link,
.svc-row-link {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  align-self: flex-start;
  padding: .65em 1.2em;
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  background: var(--bg-2);
  transition: background .25s, color .25s, border-color .25s, gap .25s var(--ease-out);
}
.cat-row-link svg,
.svc-row-link svg {
  width: 1em;
  height: 1em;
  transition: transform .25s var(--ease-out);
}
.cat-row:hover .cat-row-link,
.svc-row:hover .svc-row-link {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  gap: .9em;
}
.cat-row:hover .cat-row-link svg,
.svc-row:hover .svc-row-link svg { transform: translateX(.2em); }
.cat-row-link::after,
.svc-row-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

@media (max-width: 820px) {
  .cat-row,
  .svc-row,
  .cat-row:nth-child(even),
  .svc-row:nth-child(even) {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .cat-row-media,
  .svc-row-media {
    min-height: 240px;
    aspect-ratio: 16 / 10;
    order: 0 !important;
  }
  .cat-row-body,
  .svc-row-body { order: 1 !important; padding: 1.75rem; }
}

/* ============================================================
   Carrusel logos clientes (marquee infinito)
   ============================================================ */
.section-clientes {
  padding-block: var(--section-y);
  background:
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, .5) 50%, transparent 100%);
}
.clientes-marquee {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 0;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.clientes-marquee-track {
  display: flex;
  gap: 3.5rem;
  align-items: center;
  width: max-content;
  animation: clientesMarqueeScroll 36s linear infinite;
}
.clientes-marquee:hover .clientes-marquee-track { animation-play-state: paused; }
.clientes-item {
  flex: 0 0 auto;
  width: 160px;
  height: 80px;
  display: grid;
  place-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1rem 1.2rem;
  box-shadow: var(--sh-xs);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s;
  filter: grayscale(.25);
}
.clientes-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: var(--green);
  filter: grayscale(0);
}
.clientes-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
@keyframes clientesMarqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.clientes-empty {
  border: 1px dashed var(--border-2);
  border-radius: var(--r-lg);
  padding: 2rem;
  text-align: center;
  color: var(--fg-3);
  background: rgba(255, 255, 255, .5);
}
.clientes-empty .kbd { display: inline-block; margin-bottom: .6rem; color: var(--green-dark); }
.clientes-empty code {
  background: var(--bg-muted);
  padding: .15em .5em;
  border-radius: var(--r-xs);
  font-size: .9em;
  color: var(--navy);
  font-family: var(--font-mono);
}

/* ============================================================
   Spec rel list (sidebar de servicio detalle — otros servicios)
   ============================================================ */
.spec-rel-list {
  list-style: none;
  margin: .6rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.spec-rel-list li {
  font-size: .88rem;
  padding: .3rem 0;
  border-bottom: 1px dashed var(--border);
}
.spec-rel-list li:last-child { border-bottom: 0; }
.spec-rel-list a { color: var(--navy); font-weight: 500; }
.spec-rel-list a:hover { color: var(--green-dark); }

/* ============================================================
   Project related links (main content area — servicio detalle)
   ============================================================ */
.prj-rel-list {
  list-style: none;
  padding: 0;
  margin: .75rem 0 1.25rem;
  display: flex;
  flex-direction: column;
}
.prj-rel-list li { border-bottom: 1px solid var(--border); }
.prj-rel-list li:last-child { border-bottom: 0; }
.prj-rel-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 0;
  color: var(--navy);
  font-weight: 500;
  transition: color .2s, gap .2s;
}
.prj-rel-list a svg { width: 1em; height: 1em; flex-shrink: 0; transition: transform .2s; }
.prj-rel-list a:hover { color: var(--green-dark); gap: 1rem; }
.prj-rel-list a:hover svg { transform: translateX(.2em); }

/* ============================================================
   Normativa — grid de items sobre fondo navy (section-dark)
   ============================================================ */
.norm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.norm-item {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--r-md);
  padding: 1.25rem 1.4rem;
  transition: background .2s;
}
.norm-item:hover { background: rgba(255, 255, 255, .09); }
.norm-codigo {
  display: block;
  color: #7DD3FC !important;
  font-size: .78rem;
  letter-spacing: .06em;
  margin-bottom: .35rem;
}
.norm-desc {
  color: #CBD5E1;
  font-size: .9rem;
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   Marcas — grupos de chips + carrusel
   ============================================================ */
.marcas-grupos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3.5rem;
  margin-bottom: 2.5rem;
}
.marcas-grupo {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.marcas-grupo-nombre { display: block; }
.marcas-items {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.marcas-marquee { margin-top: 2rem; }

/* Mantenimiento — lista de checks separada visualmente */
.mant-lista { margin-top: 2.5rem; }

/* ============================================================
   Mobile tweaks for new sections
   ============================================================ */
@media (max-width: 720px) {
  .section-display { font-size: clamp(2.6rem, 14vw, 4rem); }
  .section-head-hero .section-eyebrow { font-size: .72rem; }
  .clientes-item { width: 130px; height: 70px; padding: .7rem; }
  .clientes-marquee-track { gap: 2rem; }
  .norm-grid { grid-template-columns: 1fr; }
  .marcas-grupos { gap: 1.5rem 2rem; }
}

/* ============================================================
   Cross-browser fixes & breakpoints extra para móviles pequeños
   ============================================================ */

/* Previene scroll horizontal en todos los navegadores */
html { overflow-x: hidden; }

/* Touch: elimina delay en tap y highlight azul en iOS */
a, button, [role="button"], .btn, .filter-btn, .prj-card-link,
.cat-row-link, .svc-row-link {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Orbit: ocultar completamente en móviles muy pequeños (evita desborde) */
@media (max-width: 500px) {
  .hero-orbit { display: none; }
}

/* Cards de proyectos: columna única en móviles pequeños */
@media (max-width: 580px) {
  .cards-grid-prj { grid-template-columns: 1fr; }
}

/* Navbar: logo y nombre más compactos en pantallas muy estrechas */
@media (max-width: 380px) {
  .navbar-logo { width: 46px; height: 46px; }
  .navbar-brand-name { font-size: 1rem; }
  .navbar-brand-tag { font-size: .65rem; }
  .navbar-brand-text { padding-left: .6rem; }
}

/* Galería de proyectos: 2 col en móvil, 1 col en pantallas muy pequeñas */
@media (max-width: 580px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: .5rem; }
}
@media (max-width: 400px) {
  .gallery { grid-template-columns: 1fr; }
}

/* Hero detalle: elimina max-width fijo en móvil */
@media (max-width: 500px) {
  .detail-hero-visual { max-width: 100% !important; }
  .detail-hero-grid { gap: 1.25rem; }
}

/* Filtros: columna única en pantallas muy pequeñas */
@media (max-width: 360px) {
  .filters-bar { grid-template-columns: 1fr; }
}

/* Footer: columna única y centrado en pantallas muy pequeñas */
@media (max-width: 380px) {
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
  .footer-bottom-meta { justify-content: center; }
}

/* Lightbox: padding más pequeño en móvil */
@media (max-width: 480px) {
  .lightbox { padding: .75rem; }
}

/* Fix aspect-ratio en navegadores que no lo soportan (Samsung Internet antiguo) */
@supports not (aspect-ratio: 1) {
  .detail-hero-visual { height: 280px; }
  .gallery-item { height: 200px; }
  .prj-card-media { height: 210px; }
  .cat-row-media, .svc-row-media { height: 240px; }
}

/* Fix Safari iOS: fill-available para altura mínima */
@supports (-webkit-touch-callout: none) {
  .hero { min-height: -webkit-fill-available; }
  .lightbox { height: -webkit-fill-available; }
}

/* Firefox: scroll suave (no heredado en todas las versiones) */
@-moz-document url-prefix() {
  html { scrollbar-width: thin; scrollbar-color: var(--green) var(--bg-muted); }
}

/* Chrome/Edge/Safari: scrollbar personalizada */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-muted); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-dark); }
