/* ============================================================
   GV INGENIEROS — Styles v2
   ============================================================ */

/* ---- Custom Properties ---- */
:root {
  --bg:        #07090f;
  --bg-2:      #0c0f18;
  --bg-3:      #111520;
  --bg-card:   #0f1219;
  --border:    rgba(255,255,255,0.07);
  --border-h:  rgba(255,255,255,0.14);

  /* Brand */
  --brand-blue:  #1a56db;
  --brand-teal:  #0ea5e9;
  --brand-cyan:  #06b6d4;
  --brand-orange:#f97316;
  --brand-green: #22c55e;
  --brand-purple:#a855f7;

  --accent:     var(--brand-blue);
  --accent-glow:rgba(26,86,219,0.35);

  --text:  #eef0f8;
  --text-2:#8b91a8;
  --text-3:#4e5568;

  --radius:    14px;
  --radius-sm:  8px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --font:      'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow:    0 4px 32px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 64px rgba(0,0,0,0.7);

  --header-h: 72px;
  --t: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --spring: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Light theme overrides ---- */
[data-theme="light"] {
  --bg:        #f4f6fc;
  --bg-2:      #edf0f8;
  --bg-3:      #e4e8f3;
  --bg-card:   #ffffff;
  --border:    rgba(0,0,0,0.08);
  --border-h:  rgba(0,0,0,0.16);
  --text:      #0d1117;
  --text-2:    #4b5467;
  --text-3:    #8892a8;
  --shadow:    0 4px 32px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 64px rgba(0,0,0,0.16);
  --accent-glow: rgba(26,86,219,0.15);
}

/* Elements with hardcoded dark RGBA — override in light mode */

/* ---- Header scrolled (subpages always; landing when y>20): Liquid Glass white ---- */
[data-theme="light"] .header.scrolled {
  background: rgba(255,255,255,0.52);
  backdrop-filter: blur(32px) saturate(1.8) brightness(1.02);
  -webkit-backdrop-filter: blur(32px) saturate(1.8) brightness(1.02);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
/* Dark text on white glass header */
[data-theme="light"] .header.scrolled .nav__link { color: var(--text); }
[data-theme="light"] .header.scrolled .nav__link:hover,
[data-theme="light"] .header.scrolled .nav__link--active { color: var(--text); background: rgba(0,0,0,0.06); }
[data-theme="light"] .header.scrolled .nav__dropdown-btn { color: var(--text); }
[data-theme="light"] .header.scrolled .nav__dropdown-btn:hover { color: var(--text); background: rgba(0,0,0,0.06); }
[data-theme="light"] .header.scrolled .logo__ingenieros { color: var(--text); }
[data-theme="light"] .header.scrolled .logo__sep { background: rgba(0,0,0,0.12); }
[data-theme="light"] .header.scrolled .theme-toggle { color: var(--text-2); border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .header.scrolled .theme-toggle:hover { background: rgba(0,0,0,0.05); }

/* ---- Header at TOP (landing only, y≤20): transparent — nav stays white over dark hero ---- */
[data-theme="light"] .header:not(.scrolled) .nav__link,
[data-theme="light"] .header:not(.scrolled) .nav__dropdown-btn { color: rgba(238,240,248,0.75); }
[data-theme="light"] .header:not(.scrolled) .nav__link:hover,
[data-theme="light"] .header:not(.scrolled) .nav__dropdown-btn:hover,
[data-theme="light"] .header:not(.scrolled) .nav__dropdown.open .nav__dropdown-btn {
  color: #eef0f8; background: rgba(255,255,255,0.07);
}
[data-theme="light"] .header:not(.scrolled) .logo__sep { background: rgba(255,255,255,0.2); }
[data-theme="light"] .header:not(.scrolled) .theme-toggle {
  border-color: rgba(255,255,255,0.15); color: rgba(238,240,248,0.72);
}
[data-theme="light"] .header:not(.scrolled) .theme-toggle:hover { background: rgba(255,255,255,0.07); }

/* INGENIEROS: same dark color as nav links in scrolled light mode */
[data-theme="light"] .logo__ingenieros { color: var(--text); }
/* At top (not scrolled) in light mode: keep white to match nav white text */
[data-theme="light"] .header:not(.scrolled) .logo__ingenieros { color: rgba(238,240,248,0.85); }

/* Dropdown active button: remove background box, use color only */
[data-theme="light"] .nav__dropdown-btn.nav__link--active { background: none !important; color: var(--brand-blue); }

/* Mobile nav panel — light mode background (only applies on small screens) */
[data-theme="light"] .nav {
  background: rgba(244,246,252,0.98) !important;
  border-bottom-color: rgba(0,0,0,0.08);
}
/* On desktop the nav is inline inside the header — no background needed */
@media (min-width: 769px) {
  [data-theme="light"] .nav { background: none !important; }
}

/* Hero & section banners sit on dark images — keep text always white */
[data-theme="light"] .hero {
  --text:   #eef0f8;
  --text-2: #b0b8cc;
  --text-3: #6a7080;
}
[data-theme="light"] .svc-section__banner-content {
  --text:   #eef0f8;
  --text-2: #b0b8cc;
}
/* Hero overlay: keep dark enough for text readability */
[data-theme="light"] .hero__overlay { opacity: 0.62; }
/* svc-items: flip the rgba white tints to rgba black */
[data-theme="light"] .svc-item {
  background: rgba(0,0,0,0.025);
  border-color: rgba(0,0,0,0.07);
}
[data-theme="light"] .svc-item:hover {
  background: rgba(0,0,0,0.045);
  border-color: rgba(0,0,0,0.13);
}
/* Bento cards: keep border visible */
[data-theme="light"] .bento__card { border-color: rgba(0,0,0,0.08); }
/* Report card inside trace section */
[data-theme="light"] .report-card {
  background: var(--bg-card);
  border-color: rgba(0,0,0,0.09);
}
[data-theme="light"] .report-card__header { background: var(--bg-3); }
[data-theme="light"] .report-row { border-bottom-color: rgba(0,0,0,0.06); }
/* ART banner */
[data-theme="light"] .art-banner { background: var(--bg-2); border-color: rgba(0,0,0,0.08); }
/* Nav toggle bars */
[data-theme="light"] .nav__toggle span { background: var(--text); }
/* Splash stays dark regardless */

/* ---- Theme Toggle Button ---- */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: color var(--t), border-color var(--t), background var(--t);
  padding: 0;
  margin-right: 4px;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border-color: var(--border-h);
}
[data-theme="light"] .theme-toggle:hover { background: rgba(0,0,0,0.05); }
/* Show sun in dark mode (click → go light), moon in light mode (click → go dark) */
.theme-toggle__sun  { display: block; }
.theme-toggle__moon { display: none; }
[data-theme="light"] .theme-toggle__sun  { display: none; }
[data-theme="light"] .theme-toggle__moon { display: block; }

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden; /* corta cualquier overflow horizontal global */
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Utilities ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-teal) 50%, var(--brand-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  background: rgba(255,255,255,0.04);
}

.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pill--blue   { background: rgba(26,86,219,.15); color: #60a5fa; border: 1px solid rgba(26,86,219,.3); }
.pill--teal   { background: rgba(14,165,233,.15); color: #38bdf8; border: 1px solid rgba(14,165,233,.3); }
.pill--orange { background: rgba(249,115,22,.15); color: #fb923c; border: 1px solid rgba(249,115,22,.3); }

.section-label {
  display: block;           /* siempre ocupa línea propia */
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.section-subtitle {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: min(600px, 100%); /* 600px unificado, sin overflow en mobile */
  line-height: 1.7;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-subtitle { margin-inline: auto; }

/* mono */
.mono { font-family: var(--font-mono); font-size: 0.8rem; }
.ok   { color: var(--brand-green); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--t);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn--primary {
  background: var(--brand-blue);
  color: #fff;
}
.btn--primary:hover {
  background: #1447c0;
  box-shadow: 0 0 28px var(--accent-glow);
  transform: translateY(-1px);
}
.btn--ghost {
  background: rgba(255,255,255,0.09);
  backdrop-filter: blur(24px) saturate(180%) brightness(1.08);
  -webkit-backdrop-filter: blur(24px) saturate(180%) brightness(1.08);
  color: rgba(238,240,248,0.96);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    0 4px 20px rgba(0,0,0,0.22);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.15);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 6px 28px rgba(0,0,0,0.28);
  transform: translateY(-1px);
}
.btn--white {
  background: #fff;
  color: #07090f;
  font-weight: 700;
}
.btn--white:hover { background: #eef0f8; transform: translateY(-1px); }
.btn--lg  { padding: 14px 30px; font-size: 0.98rem; }
.btn--full { width: 100%; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--spring), transform var(--spring);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for siblings */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.18s; }
.reveal:nth-child(4) { transition-delay: 0.26s; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--header-h);
  transition: background var(--t), box-shadow var(--t), backdrop-filter var(--t);
}
.header.scrolled {
  background: rgba(7, 9, 15, 0.42);
  backdrop-filter: blur(32px) saturate(1.6) brightness(1.05);
  -webkit-backdrop-filter: blur(32px) saturate(1.6) brightness(1.05);
  box-shadow: 0 8px 40px rgba(0,0,0,0.28);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font);
  text-decoration: none;
}
.logo__gv {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #1a56db 0%, #0ea5e9 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo__sep {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.2);
  margin: 0 10px;
}
.logo__ingenieros {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--text);
  text-transform: uppercase;
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: color var(--t), background var(--t);
}
.nav__link:hover,
.nav__link--active {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.nav__cta { margin-left: 8px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--t);
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-h);
  overflow: hidden;
  background: var(--bg);
}

/* background image layer — solo extiende verticalmente para el parallax;
   NUNCA horizontalmente para evitar overflow en mobile */
.hero__bg {
  position: absolute;
  top: -50px;
  bottom: -50px;
  left: 0;
  right: 0;
  z-index: 0;
  will-change: transform;
}
.hero__bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.35) saturate(0.7);
}

/* dark gradient overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(7,9,15,0.85) 40%, rgba(7,9,15,0.5) 100%),
    linear-gradient(to bottom, transparent 50%, var(--bg) 100%);
}

/* animated grid lines */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(26,86,219,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,86,219,0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  animation: gridDrift 25s linear infinite;
}
@keyframes gridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 72px 72px; }
}

.hero__content {
  position: relative;
  z-index: 3;
  padding-block: 80px;
  max-width: 740px;
  width: auto;           /* override container width:100% so margin-auto can center */
  margin-inline: auto;
  text-align: center;
}

/* eyebrow */
.hero__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.78rem;
  color: var(--text-2);
  letter-spacing: 0.05em;
}
.eyebrow-dot {
  display: inline-block;
  position: relative;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--brand-teal);
  box-shadow: 0 0 10px var(--brand-teal), 0 0 20px rgba(14,165,233,0.4);
  animation: dotPulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
.eyebrow-dot::before,
.eyebrow-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brand-teal);
}
.eyebrow-dot::before {
  animation: dotPing 1.8s ease-out infinite;
}
.eyebrow-dot::after {
  animation: dotPing 1.8s ease-out 0.6s infinite;
}
@keyframes dotPulse {
  0%,100% { box-shadow: 0 0 8px var(--brand-teal), 0 0 18px rgba(14,165,233,0.3); transform: scale(1); }
  50%      { box-shadow: 0 0 18px var(--brand-teal), 0 0 35px rgba(14,165,233,0.5); transform: scale(1.2); }
}
@keyframes dotPing {
  0%   { transform: scale(1); opacity: 0.6; }
  80%  { transform: scale(3.5); opacity: 0; }
  100% { transform: scale(3.5); opacity: 0; }
}

.hero__title {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text);
}

.hero__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-2);
  max-width: min(600px, 100%);
  line-height: 1.72;
  margin-bottom: 16px;
  margin-inline: auto;
}

.hero__norms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
}
.hero__norms span {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--brand-teal);
  padding: 4px 10px;
  border: 1px solid rgba(14,165,233,0.25);
  border-radius: 100px;
  background: rgba(14,165,233,0.07);
  letter-spacing: 0.04em;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 200px));
  gap: 16px;
  justify-content: center;
}
.stat { display: flex; flex-direction: column; align-items: center; }

/* wrapper garantiza que número y signo estén en la misma línea */
.stat__value {
  display: flex;
  align-items: baseline;
  gap: 1px;
  line-height: 1;
}
.stat__number {
  font-size: 2.2rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: rgba(238,240,248,0.96);
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat__plus {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--brand-teal);
  font-family: var(--font-mono);
  line-height: 1;
  align-self: flex-start;
  margin-top: 2px;
}
.stat__label {
  font-size: 0.72rem;
  color: rgba(238,240,248,0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 4px;
  text-align: center;
}
.stat__divider {
  display: none;
}

.hero__scroll-cue {
  position: absolute;
  bottom: 32px; right: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  z-index: 3;
}
.hero__scroll-line {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, var(--text-3), transparent);
  animation: scrollFade 2s ease-in-out infinite;
}
@keyframes scrollFade {
  0%,100% { opacity: .4; transform: scaleY(1); }
  50%      { opacity: 1; transform: scaleY(1.15); }
}

/* ============================================================
   NORMATIVE STRIP — layout centrado vertical
   ============================================================ */
.norm-strip {
  background: var(--bg-2);
  border-top:    1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.norm-strip__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.norm-strip__label {
  font-size: 0.82rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  font-weight: 600;
}
.norm-strip__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.norm-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  cursor: default;
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.norm-badge:hover {
  border-color: rgba(26,86,219,0.5);
  background: rgba(26,86,219,0.07);
  transform: translateY(-2px);
}
.norm-badge__code {
  font-size: 1rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--text);
  letter-spacing: 0.04em;
}
.norm-badge__sub {
  font-size: 0.72rem;
  color: var(--text-2);
  white-space: nowrap;
  margin-top: 2px;
}

/* ============================================================
   SERVICES BENTO
   ============================================================ */
.services { padding: 96px 0; }

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bento__card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  min-height: 340px; /* space for full-height icon bg */
}
.bento__card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Icon area: full card, but z-index:1 creates its own stacking context.
   All children (::before, ::after, SVG) live INSIDE that context (max z:3).
   Content panel at z-index:2 slides over and covers icon+glow+image. */
.bento__card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  height: 100%;
  padding-bottom: 100px;   /* center SVG in the visible area above content panel */
  z-index: 1;              /* ← stacking context; content panel (z:2) will cover it */
  overflow: hidden;
  transition: background var(--t);
}
/* Background image: blurred and very dim — pure ambiance */
.bento__card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.10;
  filter: blur(4px);
  transform: scale(1.06); /* avoid visible blur edges */
  z-index: 0;
  transition: opacity var(--t), filter var(--t);
}
.bento__card:hover .bento__card-bg { opacity: 0.18; filter: blur(3px); }

/* Subtle base tint (fallback when no image loads) */
.bento__card-icon--blue   { background: rgba(26,86,219,0.07); }
.bento__card-icon--teal   { background: rgba(14,165,233,0.07); }
.bento__card-icon--orange { background: rgba(249,115,22,0.07); }

/* Color gradient overlay on top of image (z-index 1) */
.bento__card-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: background var(--t);
}
.bento__card-icon--blue::before   { background: linear-gradient(160deg, rgba(5,15,60,0.72) 0%, rgba(26,86,219,0.28) 100%); }
.bento__card-icon--teal::before   { background: linear-gradient(160deg, rgba(5,30,50,0.72) 0%, rgba(14,165,233,0.28) 100%); }
.bento__card-icon--orange::before { background: linear-gradient(160deg, rgba(40,18,5,0.72)  0%, rgba(249,115,22,0.28)  100%); }
.bento__card:hover .bento__card-icon--blue::before   { background: linear-gradient(160deg, rgba(5,15,60,0.80) 0%, rgba(26,86,219,0.36) 100%); }
.bento__card:hover .bento__card-icon--teal::before   { background: linear-gradient(160deg, rgba(5,30,50,0.80) 0%, rgba(14,165,233,0.36) 100%); }
.bento__card:hover .bento__card-icon--orange::before { background: linear-gradient(160deg, rgba(40,18,5,0.80)  0%, rgba(249,115,22,0.36)  100%); }

/* Radial glow halo centered behind the icon (z-index 2) */
.bento__card-icon::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  z-index: 2;
  top: 36%;              /* ~SVG center accounting for padding-bottom:100px */
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.45s ease;
}
.bento__card-icon--blue::after   { background: radial-gradient(circle, rgba(96,165,250,0.50) 0%, rgba(96,165,250,0.12) 45%, transparent 70%); }
.bento__card-icon--teal::after   { background: radial-gradient(circle, rgba(56,189,248,0.50) 0%, rgba(56,189,248,0.12) 45%, transparent 70%); }
.bento__card-icon--orange::after { background: radial-gradient(circle, rgba(251,146,60,0.50)  0%, rgba(251,146,60,0.12)  45%, transparent 70%); }
.bento__card:hover .bento__card-icon::after { transform: translate(-50%, -50%) scale(1.22); }

/* SVG: above all layers, colored + drop-shadow glow */
.bento__card-icon svg {
  position: relative;
  z-index: 3;
  width: 110px;
  height: 110px;
  stroke-width: 2.2;        /* más grueso → más notorio */
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.45s ease, filter 0.45s ease;
}
.bento__card:hover .bento__card-icon svg { transform: scale(1.06) translateY(-6px); }
.bento__card-icon--blue   svg { color: #7ab8ff; filter: drop-shadow(0 0 16px rgba(96,165,250,0.75)) drop-shadow(0 0 4px rgba(96,165,250,0.50)); }
.bento__card-icon--teal   svg { color: #5cd5ff; filter: drop-shadow(0 0 16px rgba(56,189,248,0.75)) drop-shadow(0 0 4px rgba(56,189,248,0.50)); }
.bento__card-icon--orange svg { color: #ffaa55; filter: drop-shadow(0 0 16px rgba(251,146,60,0.75))  drop-shadow(0 0 4px rgba(251,146,60,0.50)); }
.bento__card:hover .bento__card-icon--blue   svg { filter: drop-shadow(0 0 28px rgba(96,165,250,0.95))  drop-shadow(0 0 10px rgba(96,165,250,0.60)); }
.bento__card:hover .bento__card-icon--teal   svg { filter: drop-shadow(0 0 28px rgba(56,189,248,0.95))  drop-shadow(0 0 10px rgba(56,189,248,0.60)); }
.bento__card:hover .bento__card-icon--orange svg { filter: drop-shadow(0 0 28px rgba(251,146,60,0.95))  drop-shadow(0 0 10px rgba(251,146,60,0.60)); }

/* Content panel anchored at bottom, slides up on hover.
   z-index:2 > icon div z-index:1 → covers image/icon/glow as it expands */
.bento__card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 18px 24px 22px;
  display: flex;
  flex-direction: column;
}
.bento__card-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 10px 0 0;
  letter-spacing: -0.02em;
}

/* Extra content (description + link): smooth slide reveal */
.bento__card-extra {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.42s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.32s ease,
    margin-top 0.38s ease;
  margin-top: 0;
}
.bento__card-extra > div { overflow: hidden; }
.bento__card-content p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
  margin: 14px 0 12px;
}

.bento__card:hover .bento__card-extra,
.bento__card.is-open .bento__card-extra {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 10px;
}

/* Subtle chevron hint below title */
.bento__card-hint {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) scale(0.7);
  color: var(--text-3);
  margin-top: 10px;
  align-self: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.bento__card:hover .bento__card-hint,
.bento__card.is-open .bento__card-hint {
  opacity: 0;
  transform: rotate(45deg) scale(0.3);
}

.feat-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 22px;
  flex: 1;
}
.feat-list li {
  font-size: 0.82rem;
  color: var(--text-2);
  padding-left: 16px;
  position: relative;
}
.feat-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
}
.bento__card--izaje   .feat-list li::before { background: #60a5fa; }
.bento__card--higiene .feat-list li::before { background: #38bdf8; }
.bento__card--presion .feat-list li::before { background: #fb923c; }

.card-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-teal);
  transition: color var(--t);
  margin-top: auto;
}
.card-link:hover { color: var(--brand-cyan); }

/* ============================================================
   SERVICE DETAIL SECTIONS
   ============================================================ */
.svc-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

/* Banner with image */
.svc-section__banner {
  position: relative;
  height: 340px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.svc-section__banner-bg {
  position: absolute;
  inset: 0;
}
.svc-section__banner-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.35) saturate(0.6);
  animation: kenBurns 18s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  0%   { transform: scale(1);    object-position: center center; }
  100% { transform: scale(1.07); object-position: 60% 40%; }
}

.svc-section__banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.svc-section--blue   .svc-section__banner-overlay { background: linear-gradient(135deg, rgba(26,86,219,0.35) 0%, rgba(7,9,15,0.6) 100%); }
.svc-section--teal   .svc-section__banner-overlay { background: linear-gradient(135deg, rgba(14,165,233,0.35) 0%, rgba(7,9,15,0.6) 100%); }
.svc-section--orange .svc-section__banner-overlay { background: linear-gradient(135deg, rgba(249,115,22,0.35) 0%, rgba(7,9,15,0.6) 100%); }

.svc-section__banner-content {
  position: relative;
  z-index: 2;
  padding-bottom: 40px;
}
.svc-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}
.svc-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.svc-subtitle {
  margin-top: 10px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}

/* Section body */
.svc-section__body {
  padding: 56px 0 72px;
  display: flex;
  flex-direction: column;
  gap: 0; /* gaps manejados por svc-group + svc-group border */
}

/* ASME note */
.asme-note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  margin-bottom: 40px; /* espacio antes del primer svc-group */
  background: rgba(26,86,219,0.08);
  border: 1px solid rgba(26,86,219,0.2);
  border-radius: var(--radius);
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.6;
}
.asme-note svg { flex-shrink: 0; color: var(--brand-teal); margin-top: 2px; }
.asme-note strong { color: var(--text); }

/* Service group — separador visual entre grupos */
.svc-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 40px;
}
.svc-group:last-child { padding-bottom: 0; }
.svc-group + .svc-group {
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.svc-group__header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.svc-group__header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.svc-group__icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.svc-group__icon svg { width: 18px; height: 18px; }
.svc-group__icon--blue   { background: rgba(26,86,219,.12); border: 1px solid rgba(26,86,219,.25); color: #60a5fa; }
.svc-group__icon--teal   { background: rgba(14,165,233,.12); border: 1px solid rgba(14,165,233,.25); color: #38bdf8; }
.svc-group__icon--orange { background: rgba(249,115,22,.12); border: 1px solid rgba(249,115,22,.25); color: #fb923c; }

/* Service items grid */
.svc-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.svc-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.svc-item:hover {
  border-color: var(--border-h);
  background: rgba(255,255,255,0.045);
  transform: translateY(-2px);
}
.svc-item svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--text-3);
  margin-top: 2px;
}
.svc-section--blue   .svc-item:hover svg { color: #60a5fa; }
.svc-section--teal   .svc-item:hover svg { color: #38bdf8; }
.svc-section--orange .svc-item:hover svg { color: #fb923c; }
.svc-item strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.svc-item p {
  font-size: 0.8rem;
  color: var(--text-3);
  line-height: 1.5;
}

/* ============================================================
   TRAZABILIDAD
   ============================================================ */
.trace {
  padding: 96px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.trace__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px); /* gap elástico, no tan agresivo en laptop */
  align-items: center;
}
.trace__lead {
  margin-top: 20px;
  margin-bottom: 36px;
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.72;
}
.trace__feats {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.trace__feat {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.trace__feat-icon {
  width: 38px; height: 38px;
  background: rgba(26,86,219,.1);
  border: 1px solid rgba(26,86,219,.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-teal);
  flex-shrink: 0;
}
.trace__feat-icon svg { width: 17px; height: 17px; }
.trace__feat strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.trace__feat p {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.55;
}

/* Report Card mockup */
.trace__visual { position: relative; }

.report-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.report-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
}
.report-card__dots { display: flex; gap: 5px; }
.report-card__dots span {
  display: block;
  width: 9px; height: 9px;
  border-radius: 50%;
}
.report-card__dots span:nth-child(1) { background: #ff5f57; }
.report-card__dots span:nth-child(2) { background: #febc2e; }
.report-card__dots span:nth-child(3) { background: #28c840; }
.report-card__title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  flex: 1;
  text-align: center;
}
.report-card__id {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--brand-teal);
}
.report-card__body { padding: 8px 20px; }
.report-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.82rem;
}
.report-row:last-child { border-bottom: none; }
.report-row > span:first-child { color: var(--text-3); }
.report-card__footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  gap: 12px;
}
.report-card__footer > span:first-child { font-size: 0.75rem; color: var(--text-3); white-space: nowrap; }
.report-progress {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}
.report-progress__bar {
  height: 100%;
  width: 0; /* animated via JS */
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.trace__visual-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 50% 50%, rgba(26,86,219,0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}

/* ============================================================
   ART BANNER
   ============================================================ */
.art-banner {
  padding: 40px 0;
  background: linear-gradient(135deg, #0c1428 0%, #08101e 100%);
  border-top: 1px solid rgba(26,86,219,0.2);
  border-bottom: 1px solid rgba(26,86,219,0.2);
}
.art-banner__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.art-banner__icon { color: var(--brand-teal); flex-shrink: 0; }
.art-banner__icon svg { width: 40px; height: 40px; }
.art-banner__text {
  flex: 1;
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.65;
  min-width: 220px;
}
.art-banner__text strong { color: var(--text); }

/* ============================================================
   CAPACITACIÓN
   ============================================================ */
.training { padding: 96px 0; background: var(--bg-2); border-top: 1px solid var(--border); }
.training__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.training__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.training__card:hover {
  border-color: rgba(26,86,219,0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(26,86,219,0.12);
}
.training__card svg { color: var(--brand-teal); flex-shrink: 0; }
.training__card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.training__card p {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact { padding: 96px 0; border-top: 1px solid var(--border); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 16px;
  align-items: start;
}
.contact__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--t), box-shadow var(--t);
}
.contact__card:hover {
  border-color: var(--border-h);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.contact__avatar {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.contact__avatar--blue   { background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal)); }
.contact__avatar--purple { background: linear-gradient(135deg, #7c3aed, var(--brand-purple)); }

.contact__role {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-teal);
}
.contact__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.contact__spec {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 10px;
}
.contact__actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.contact__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: border-color var(--t), background var(--t), color var(--t);
}
.contact__btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.contact__btn:hover { border-color: var(--border-h); background: rgba(255,255,255,0.05); color: var(--text); }
.contact__btn--wa { color: #4ade80; border-color: rgba(74,222,128,0.2); background: rgba(74,222,128,0.05); }
.contact__btn--wa:hover { border-color: #4ade80; background: rgba(74,222,128,0.1); }

/* Quick form */
.contact__form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact__form-wrap h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
}
.cform { display: flex; flex-direction: column; gap: 14px; }
.cform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cform__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cform__field label { font-size: 0.78rem; font-weight: 500; color: var(--text-2); }
.cform__field input,
.cform__field select,
.cform__field textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-size: 0.855rem;
  font-family: var(--font);
  color: var(--text);
  transition: border-color var(--t), background var(--t);
  resize: vertical;
  outline: none;
}
.cform__field input::placeholder,
.cform__field textarea::placeholder { color: var(--text-3); }
.cform__field select option { background: var(--bg-3); }
.cform__field input:focus,
.cform__field select:focus,
.cform__field textarea:focus {
  border-color: var(--brand-blue);
  background: rgba(26,86,219,0.05);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-top: 64px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer__brand .logo { margin-bottom: 14px; }
.footer__brand p {
  font-size: 0.83rem;
  color: var(--text-3);
  line-height: 1.65;
  margin-bottom: 18px;
}
.footer__norms { display: flex; gap: 6px; flex-wrap: wrap; }
.footer__norms span {
  font-size: 0.64rem;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-3);
}
.footer__col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col li a {
  font-size: 0.86rem;
  color: var(--text-2);
  transition: color var(--t);
}
.footer__col li a:hover { color: var(--text); }
.footer__col--contact h4 { margin-bottom: 16px; }
.footer__col--contact a {
  display: block;
  font-size: 0.86rem;
  color: var(--text-2);
  margin-bottom: 8px;
  transition: color var(--t);
}
.footer__col--contact a:hover { color: var(--brand-teal); }
.footer__col--contact span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 10px;
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}
.footer__bottom .container {
  font-size: 0.78rem;
  color: var(--text-3);
  text-align: center;
}

/* ============================================================
   WHATSAPP FLOATING BTN
   ============================================================ */
/* ===== SCROLL PROGRESS BAR ===== */
#scrollProgressBar {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(to right, var(--brand-blue), var(--brand-teal));
  z-index: 9999;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ===== TIMELINE FILL & ACTIVE ===== */
.timeline__fill {
  position: absolute;
  left: 7px; top: 8px;
  width: 2px;
  height: 0%;
  background: linear-gradient(to bottom, var(--brand-blue), var(--brand-teal));
  border-radius: 2px;
  z-index: 1;
  transition: height 0.15s ease-out;
}
.timeline__item.is-active .timeline__dot {
  background: var(--brand-teal);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--brand-teal), 0 0 18px rgba(14,165,233,0.5);
  transform: scale(1.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline__item.is-active .timeline__year {
  color: var(--brand-blue);
}
.timeline__item.is-active .timeline__title {
  color: var(--brand-teal);
}
.timeline__dot {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

/* ===== TYPING CURSOR ===== */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--text);
  margin-left: 3px;
  vertical-align: middle;
  animation: blink 0.75s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

.wa-btn {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 300;
  width: 58px; height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform var(--t), box-shadow var(--t);
  opacity: 0;
  transform: scale(0.5);
}
.wa-btn.visible { opacity: 1; transform: scale(1); }
.wa-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.6);
}
.wa-btn__tip {
  position: absolute;
  right: calc(100% + 12px);
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity 0.2s, transform 0.2s;
}
.wa-btn:hover .wa-btn__tip { opacity: 1; transform: translateX(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .training__grid { grid-template-columns: repeat(2, 1fr); }
  .trace__inner { gap: 48px; } /* refuerzo a clamp en pantallas medianas */
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .trace__inner { grid-template-columns: 1fr; gap: 48px; }
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .contact__form-wrap { grid-column: 1 / -1; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__brand { grid-column: 1 / -1; }
  .cform__row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  /* ---- NAV MOBILE: opacity/visibility en lugar de transform
         para evitar que el borde inferior del menú se asoma
         sobre el header cuando translateY no basta ---- */
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(7, 9, 15, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px;
    /* Hidden state — invisible, not interactable */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    z-index: 150;
    /* clamp height so it never bleeds past viewport */
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
  }
  .nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav__link {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav__link:last-of-type { border-bottom: none; }
  .nav__cta {
    margin-left: 0;
    margin-top: 12px;
    width: 100%;
    justify-content: center;
  }
  .nav__toggle { display: flex; }

  /* ---- Content ---- */
  .container { padding-inline: 18px; }
  .bento { grid-template-columns: 1fr; }
  .training__grid { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__form-wrap { grid-column: auto; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
  .hero__scroll-cue { display: none; }
  .art-banner__inner { flex-direction: column; text-align: center; }
  /* norm-strip ya es columna centrada — en mobile solo ajustar logos */
  .norm-strip__logos { gap: 6px; }
  .svc-section__banner { height: 240px; }

  /* Banners de servicio: centrar texto en mobile */
  .svc-section__banner-content { text-align: center; }

  /* Footer: centrar columnas en mobile */
  .footer__col { text-align: center; }
  .footer__col ul { align-items: center; }
  .footer__col--contact { text-align: center; }
  .footer__col--contact span { justify-content: center; }
  .footer__brand { text-align: center; }
  .footer__brand .logo { justify-content: center; }
  .footer__norms { justify-content: center; }

  /* Ocultar <br> del hero title en mobile para que fluya naturalmente */
  .hero__title br { display: none; }

  /* ---- Hero: centrar en mobile ---- */
  .hero__content { text-align: center; max-width: 100%; }
  .hero__eyebrow { justify-content: center; }
  .hero__norms { justify-content: center; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }
  /* cada stat centrado individualmente */
  .stat { align-items: center; text-align: center; }
  .stat__label { text-align: center; }

  /* ---- Bento cards: en mobile vuelven a layout normal (sin slide) ---- */
  .bento__card { min-height: auto; display: flex; flex-direction: column; }
  .bento__card-icon { position: static; height: 190px; padding-bottom: 0; z-index: auto; overflow: hidden; border-bottom: 1px solid var(--border); }
  .bento__card-content { position: static; border-top: none; padding: 20px 20px 22px; text-align: center; align-items: center; }
  .bento__card-extra { grid-template-rows: 1fr; opacity: 1; margin-top: 10px; }
  .bento__card-hint { display: none; }
  /* feat-list centrado: items como flex row centrado */
  .feat-list { align-items: center; width: 100%; }
  .feat-list li {
    padding-left: 0;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
  }
  .feat-list li::before { position: static; flex-shrink: 0; transform: none; }

  /* ---- Service groups: centrar en mobile ---- */
  .svc-group { text-align: center; }
  /* Ícono ARRIBA del texto en mobile */
  .svc-group__header { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .svc-item { flex-direction: column; align-items: center; text-align: center; }
  .svc-item svg { margin-top: 0; }

  /* ---- Trazabilidad: centrar texto en mobile ---- */
  .trace__text { text-align: center; }
  .trace__lead { text-align: center; }
  .trace__feats { align-items: center; }
  .trace__feat { flex-direction: column; align-items: center; text-align: center; }
  .trace__feat-icon { flex-shrink: 0; }

  /* ---- Training cards: centrar en mobile ---- */
  .training__card { align-items: center; text-align: center; }

  /* ---- Contact cards: centrar contenido en mobile ---- */
  .contact__card {
    align-items: center;
    text-align: center;
  }
  /* avatar centrado */
  .contact__avatar { margin-inline: auto; }
  /* acciones full-width centradas */
  .contact__actions { width: 100%; }
  .contact__btn { justify-content: center; }

  /* ---- WA button: moverlo un poco más arriba en mobile
         para no tapar botones de contacto ---- */
  .wa-btn {
    bottom: 20px;
    right: 18px;
    width: 52px;
    height: 52px;
  }
  /* Extra padding en la sección de contacto para dejar espacio al WA btn */
  .contact { padding-bottom: 88px; }
}

@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  .hero__content { padding-block: 56px 48px; }
  .hero__title { font-size: 2.4rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__stats { grid-template-columns: 1fr; max-width: 280px; margin-inline: auto; }
  .stat__divider { display: none; }
  .training__grid { grid-template-columns: 1fr; }
  .svc-section__banner { height: 200px; }
  .svc-title { font-size: 1.75rem; }
  .norm-strip__logos { gap: 6px; }
  .norm-badge { padding: 6px 12px; }
  .services { padding: 64px 0; }
  .trace { padding: 64px 0; }
  .training { padding: 64px 0; }
  .contact { padding: 64px 0 100px; } /* clearance WA btn */
  .section-header { margin-bottom: 36px; }

  /* Cards padding reducido en pantallas muy chicas */
  .contact__card { padding: 24px 20px; }
  .contact__form-wrap { padding: 24px 20px; }
  /* padding ya fijado arriba en la regla mobile de bento */
}

/* ============================================================
   SPLASH SCREEN
   ============================================================ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #07090f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  /* grid background same as hero */
  background-image:
    linear-gradient(rgba(26,86,219,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,86,219,0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  background-color: #07090f;
}
.splash.out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Animated glow blob behind logo */
.splash::before {
  content: '';
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,86,219,0.18) 0%, transparent 70%);
  animation: splashBlob 3s ease-in-out infinite alternate;
}
@keyframes splashBlob {
  0%   { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.1); opacity: 1; }
}

.splash__logo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: splashLogoIn 0.8s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes splashLogoIn {
  from { opacity: 0; transform: scale(0.75) translateY(24px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.splash__gv {
  font-size: clamp(5rem, 20vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.9;
  background: linear-gradient(135deg, #1a56db 0%, #0ea5e9 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.splash__name {
  font-size: clamp(0.75rem, 3vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.3em;
  color: #eef0f8;
  text-transform: uppercase;
}
.splash__bar {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
  border-radius: 2px;
  animation: splashBarGrow 0.7s 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  margin-top: 6px;
}
@keyframes splashBarGrow {
  from { width: 0; }
  to   { width: 160px; }
}

.splash__tagline {
  margin-top: 24px;
  font-size: clamp(0.72rem, 2.5vw, 0.82rem);
  color: rgba(238,240,248,0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: splashTagIn 0.6s 1.1s ease both;
}
@keyframes splashTagIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   NAV DROPDOWN
   ============================================================ */
.nav__dropdown { position: relative; }

.nav__dropdown-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font);
  color: var(--text-2);
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  cursor: pointer;
  transition: color var(--t), background var(--t);
  white-space: nowrap;
}
.nav__dropdown-btn:focus,
.nav__dropdown-btn:focus-visible {
  outline: none;
  box-shadow: none;
}
.nav__dropdown-btn:hover,
.nav__dropdown.open .nav__dropdown-btn {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
[data-theme="light"] .nav__dropdown-btn:hover,
[data-theme="light"] .nav__dropdown.open .nav__dropdown-btn { background: rgba(0,0,0,0.05); }

.nav__dropdown-btn svg { transition: transform 0.2s; flex-shrink: 0; }
.nav__dropdown:hover .nav__dropdown-btn svg,
.nav__dropdown.open .nav__dropdown-btn svg { transform: rotate(180deg); }

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 210px;
  background: rgba(13,17,23,0.65);
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  z-index: 300;
}
.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown.open .nav__dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--t), background var(--t);
}
.nav__dropdown-menu a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
/* Dropdown light mode: frosted white glass panel */
[data-theme="light"] .nav__dropdown-menu {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(32px) saturate(1.8);
  -webkit-backdrop-filter: blur(32px) saturate(1.8);
  box-shadow: 0 20px 60px rgba(0,0,0,0.09);
}
[data-theme="light"] .nav__dropdown-menu a { color: var(--text-2); }
[data-theme="light"] .nav__dropdown-menu a:hover { color: var(--text); background: rgba(0,0,0,0.05); }

/* ============================================================
   LIQUID GLASS — Details throughout the UI
   ============================================================ */

/* Ghost button: glass backdrop, no border */
.btn--ghost {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border: none;
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.09);
  border: none;
}
/* Light mode ghost (outside hero): Apple Glass with dark text */
[data-theme="light"] .btn--ghost {
  background: rgba(255,255,255,0.52);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.80),
    0 4px 20px rgba(0,0,0,0.08);
}
[data-theme="light"] .btn--ghost:hover {
  background: rgba(255,255,255,0.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.90),
    0 6px 28px rgba(0,0,0,0.10);
}
/* Hero ghost button: inherits base .btn--ghost Apple Glass; light mode override to stay white */
[data-theme="light"] .hero .btn--ghost {
  background: rgba(255,255,255,0.09);
  color: rgba(238,240,248,0.96);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    0 4px 20px rgba(0,0,0,0.22);
}
[data-theme="light"] .hero .btn--ghost:hover {
  background: rgba(255,255,255,0.15);
}

/* Cards: glass in dark mode */
.team-card, .value-card, .project-card, .info-card {
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.team-card:hover, .value-card:hover, .project-card:hover {
  border: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
}

/* Cards in light mode: frosted glass, no border */
[data-theme="light"] .team-card,
[data-theme="light"] .value-card,
[data-theme="light"] .project-card,
[data-theme="light"] .info-card {
  background: rgba(255,255,255,0.68);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
[data-theme="light"] .team-card:hover,
[data-theme="light"] .value-card:hover,
[data-theme="light"] .project-card:hover {
  background: rgba(255,255,255,0.85);
  border: none;
  box-shadow: 0 8px 32px rgba(26,86,219,0.1);
}

/* Pills: glass, no border */
.pill { backdrop-filter: blur(8px) saturate(1.4); -webkit-backdrop-filter: blur(8px) saturate(1.4); }
.pill--blue, .pill--teal, .pill--orange { border: none; }
[data-theme="light"] .pill--blue  { background: rgba(26,86,219,0.1); color: #1a56db; }
[data-theme="light"] .pill--teal  { background: rgba(14,165,233,0.1); color: #0284c7; }
[data-theme="light"] .pill--orange { background: rgba(249,115,22,0.1); color: #c2410c; }

/* WA button: glass tint */
.wa-btn {
  box-shadow: 0 8px 32px rgba(37,211,102,0.35);
}
.wa-btn:hover {
  box-shadow: 0 12px 48px rgba(37,211,102,0.5);
}

/* Section stats: Apple Liquid Glass chip */
.stat {
  background: rgba(255,255,255,0.09);
  backdrop-filter: blur(28px) saturate(180%) brightness(1.08);
  -webkit-backdrop-filter: blur(28px) saturate(180%) brightness(1.08);
  border: none;
  border-radius: 20px;
  padding: 18px 24px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    0 4px 24px rgba(0,0,0,0.22);
}
/* Stats are always inside the dark hero, keep white text in light mode too */
[data-theme="light"] .hero .stat {
  background: rgba(255,255,255,0.09);
  backdrop-filter: blur(28px) saturate(180%) brightness(1.08);
  -webkit-backdrop-filter: blur(28px) saturate(180%) brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    0 4px 24px rgba(0,0,0,0.22);
}

/* ============================================================
   SUBHERO — dark hero for subpages (always dark, like main hero)
   ============================================================ */
.subhero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  background: #07090f;
}
.subhero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.subhero__bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.62) saturate(0.85);
}
.subhero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(7,9,15,0.95) 35%, rgba(7,9,15,0.55) 100%),
    linear-gradient(to bottom, transparent 55%, rgba(7,9,15,1) 100%);
}
.subhero__grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(26,86,219,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,86,219,0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  animation: gridDrift 25s linear infinite;
}
.subhero__content {
  position: relative;
  z-index: 3;
  padding: 80px 0;
  width: 100%;
}
.subhero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.subhero__breadcrumb a { color: rgba(255,255,255,0.35); transition: color var(--t); }
.subhero__breadcrumb a:hover { color: rgba(255,255,255,0.65); }
.subhero__breadcrumb .sep { color: rgba(255,255,255,0.15); }
.subhero__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-bottom: 14px;
}
.subhero__title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #eef0f8;
  margin-bottom: 20px;
}
.subhero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.5);
  max-width: 580px;
  line-height: 1.8;
}

/* ---- Feature image (for section illustrations) ---- */
.img-feature {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
}
.img-feature img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.img-feature:hover img { transform: scale(1.04); }
.img-feature__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,9,15,0.5) 0%, transparent 50%);
}

/* ---- Responsive 2-col grid ---- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ---- Info card (used in mission/vision etc.) ---- */
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.info-card__divider {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ---- Bullet list ---- */
.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.bullet-list__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.bullet-list__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-teal);
  margin-top: 8px;
  flex-shrink: 0;
}
.bullet-list__text {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ============================================================
   TEAM CARDS
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--t), box-shadow var(--t);
}
.team-card:hover { border-color: var(--border-h); box-shadow: var(--shadow); }
.team-card__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.team-card__name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.team-card__role {
  font-size: 0.72rem; color: var(--brand-teal); font-weight: 700;
  margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.07em;
}
.team-card__desc { font-size: 0.86rem; color: var(--text-2); line-height: 1.65; }

/* ============================================================
   VALUE CARDS
   ============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--t);
}
.value-card:hover { border-color: var(--border-h); }
.value-card__icon {
  width: 44px; height: 44px;
  background: var(--accent-glow);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  color: var(--brand-blue);
}
.value-card__title { font-size: 0.96rem; font-weight: 700; margin-bottom: 8px; }
.value-card__text { font-size: 0.85rem; color: var(--text-2); line-height: 1.65; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 44px;
  max-width: 720px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand-blue), var(--brand-teal));
  border-radius: 2px;
}
.timeline__item {
  position: relative;
  padding-bottom: 44px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute;
  left: -40px; top: 5px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--brand-blue);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--brand-blue);
}
.timeline__year {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brand-teal);
  margin-bottom: 6px; font-family: var(--font-mono);
}
.timeline__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 7px; }
.timeline__desc { font-size: 0.87rem; color: var(--text-2); line-height: 1.65; }

/* ============================================================
   PROJECT CARDS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.project-card:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.project-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.project-card__client {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brand-teal); margin-bottom: 4px;
}
.project-card__title { font-size: 0.97rem; font-weight: 700; line-height: 1.35; }
.project-card__year {
  font-size: 0.7rem; color: var(--text-3); font-family: var(--font-mono);
  white-space: nowrap; padding: 3px 8px;
  background: var(--bg-3); border-radius: 4px; align-self: flex-start; flex-shrink: 0;
}
.project-card__desc {
  font-size: 0.86rem; color: var(--text-2); line-height: 1.65; margin-bottom: 16px;
}
.project-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ============================================================
   MOBILE: nav dropdown inline
   ============================================================ */
@media (max-width: 768px) {
  .nav__dropdown { width: 100%; }
  .nav__dropdown-btn {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    justify-content: space-between;
  }
  .nav__dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1;
    pointer-events: auto;
    min-width: 0;
    background: rgba(255,255,255,0.03);
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: none;
    padding: 4px 8px;
    display: none;
    margin-bottom: 4px;
  }
  .nav__dropdown.open .nav__dropdown-menu { display: flex; }
  .nav__dropdown-menu a { padding: 11px 16px; font-size: 0.95rem; border-radius: var(--radius-sm); }
  [data-theme="light"] .nav__dropdown-menu { background: rgba(255,255,255,0.08) !important; }
  .page-hero__title { font-size: 2rem; }
  .timeline { padding-left: 32px; }
  .timeline__dot { left: -28px; }
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .subhero { min-height: 340px; }
  .subhero__title { font-size: 2rem; }
  .subhero__content { padding: 48px 0; }
  .subhero__sub { font-size: 0.95rem; }
}

/* ================================================================
   LIQUID GLASS — Comprehensive (all remaining elements, no borders)
   ================================================================ */

/* Section label: teal glass pill */
.section-label {
  display: inline-block;
  background: rgba(14,165,233,0.08);
  backdrop-filter: blur(8px) saturate(1.4);
  -webkit-backdrop-filter: blur(8px) saturate(1.4);
  padding: 3px 12px;
  border-radius: 100px;
}
[data-theme="light"] .section-label { background: rgba(14,165,233,0.1); }

/* Hero eyebrow: glass strip */
.hero__eyebrow {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  padding: 5px 18px;
  border-radius: 100px;
  display: inline-flex;
  width: fit-content;
}

/* Hero norm tags: glass, no border */
.hero__norms span {
  backdrop-filter: blur(8px) saturate(1.4);
  -webkit-backdrop-filter: blur(8px) saturate(1.4);
  border: none;
  box-shadow: none;
}

/* Badge: glass, no border */
.badge {
  backdrop-filter: blur(8px) saturate(1.4);
  -webkit-backdrop-filter: blur(8px) saturate(1.4);
  border: none;
}

/* Theme toggle: glass circle, no border */
.theme-toggle {
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  border: none;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.theme-toggle:hover {
  background: rgba(255,255,255,0.11);
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
[data-theme="light"] .theme-toggle {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px) saturate(1.6);
  -webkit-backdrop-filter: blur(10px) saturate(1.6);
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
[data-theme="light"] .theme-toggle:hover { background: rgba(255,255,255,0.78); border: none; }

/* Service items: glass card, no border */
.svc-item {
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  border: none;
  box-shadow: none;
}
.svc-item:hover { border: none; background: rgba(255,255,255,0.055); }
[data-theme="light"] .svc-item {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  border: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
[data-theme="light"] .svc-item:hover { background: rgba(255,255,255,0.75); border: none; }

/* Service group icon badges: glass, no border */
.svc-group__icon--blue,
.svc-group__icon--teal,
.svc-group__icon--orange {
  backdrop-filter: blur(6px) saturate(1.3);
  -webkit-backdrop-filter: blur(6px) saturate(1.3);
  border: none;
}

/* Bento cards: glass, no border */
.bento__card {
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
[data-theme="light"] .bento__card {
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

/* Norm badge: glass, no border */
.norm-badge {
  backdrop-filter: blur(8px) saturate(1.4);
  -webkit-backdrop-filter: blur(8px) saturate(1.4);
  border: none;
}

/* Report card: glass, no border */
.report-card {
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border: none;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
[data-theme="light"] .report-card {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

/* Training card: glass, no border */
.training__card {
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border: none;
}
[data-theme="light"] .training__card {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  border: none;
}

/* Contact card: glass, no border */
.contact__card {
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: none;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}
.contact__card:hover { border: none; box-shadow: 0 12px 48px rgba(0,0,0,0.28); }
[data-theme="light"] .contact__card {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

/* Contact form wrap: glass, no border */
.contact__form-wrap {
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: none;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}
[data-theme="light"] .contact__form-wrap {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

/* Form inputs: glass, focus ring only (no border) */
.cform__field input,
.cform__field select,
.cform__field textarea {
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  border: none;
  box-shadow: none;
}
.cform__field input:focus,
.cform__field select:focus,
.cform__field textarea:focus {
  border: none;
  background: rgba(26,86,219,0.06);
  box-shadow: 0 0 0 1.5px rgba(26,86,219,0.55), 0 0 24px rgba(26,86,219,0.1);
}
[data-theme="light"] .cform__field input,
[data-theme="light"] .cform__field select,
[data-theme="light"] .cform__field textarea {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(8px) saturate(1.4);
  -webkit-backdrop-filter: blur(8px) saturate(1.4);
  color: var(--text);
  border: none;
}

/* Primary button: glass shimmer overlay */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.14), transparent);
  border-radius: inherit;
  pointer-events: none;
}

/* Timeline dot: enhanced glow */
.timeline__dot {
  box-shadow: 0 0 0 3px var(--brand-blue), 0 0 16px rgba(26,86,219,0.45);
}

/* Value card icon: glass, no border */
.value-card__icon {
  backdrop-filter: blur(6px) saturate(1.3);
  -webkit-backdrop-filter: blur(6px) saturate(1.3);
  border: none;
}

/* Subhero label (subpage label tag): glass pill */
.subhero__label {
  background: rgba(14,165,233,0.1);
  backdrop-filter: blur(8px) saturate(1.4);
  -webkit-backdrop-filter: blur(8px) saturate(1.4);
  padding: 3px 12px;
  border-radius: 100px;
  display: inline-block;
}

/* Standards row items */
.standard-item, .standards__item {
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  border: none;
}

/* Info card divider: subtle only */
.info-card__divider { border-top-color: rgba(255,255,255,0.06); }
[data-theme="light"] .info-card__divider { border-top-color: rgba(0,0,0,0.06); }

/* Bullet list dot: glow */
.bullet-list__dot {
  box-shadow: 0 0 8px rgba(14,165,233,0.5);
}

/* ============================================================
   BLUEPRINT — Esquemas Técnicos Auto-dibujados
   ============================================================ */
.blueprint-section {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  background: #030e1c;
  background-image:
    linear-gradient(rgba(26,86,219,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,86,219,0.12) 1px, transparent 1px),
    linear-gradient(rgba(26,86,219,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,86,219,0.05) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
}
[data-theme="light"] .blueprint-section {
  background-color: #e8f0fc;
  background-image:
    linear-gradient(rgba(26,86,219,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,86,219,0.1) 1px, transparent 1px),
    linear-gradient(rgba(26,86,219,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,86,219,0.04) 1px, transparent 1px);
}
.bp-stage { margin-top: 48px; }

.bp-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 768px) {
  .bp-panels { grid-template-columns: 1fr; gap: 40px; }
}

.bp-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.bp-svg-panel {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
}

.bp-svg-full {
  display: block;
  width: 100%;
  height: auto;
}

.bp-card-lbl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(100,160,255,0.7);
  text-align: center;
  width: 100%;
  opacity: 0;
  transition: opacity 0.4s ease-out var(--d, 0s);
}
.bp-card-lbl--orange { color: rgba(249,115,22,0.75); }
.bp-card-lbl--teal   { color: rgba(14,165,233,0.8); }
.bp-active .bp-card-lbl  { opacity: 1; }
.bp-erasing .bp-card-lbl { opacity: 0 !important; transition-delay: 0s !important; }
/* Default: all drawing elements hidden */
.bp-draw {
  fill: none;
  stroke: rgba(100,160,255,0.75);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.75s ease-out var(--d, 0s);
}
.bp-annot {
  fill: none;
  stroke: rgba(100,160,255,0.35);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.6s ease-out var(--d, 0s);
}
.bp-dashed {
  stroke-dasharray: 4 4;
}
/* Orange tint for presión zone */
.bp-orange { stroke: rgba(249,115,22,0.8); }
/* Teal tint for higiene zone */
.bp-teal   { stroke: rgba(14,165,233,0.85); }
/* Dividers */
.bp-divider {
  fill: none;
  stroke: rgba(100,160,255,0.22);
  stroke-width: 1;
  stroke-dasharray: 6 4;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.8s ease-out var(--d, 0s);
}
/* Text labels */
.bp-label {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: rgba(100,160,255,0.7);
  text-anchor: middle;
  letter-spacing: 0.08em;
  opacity: 0;
  transition: opacity 0.4s ease-out var(--d, 0s);
}
.bp-label--orange { fill: rgba(249,115,22,0.75); }
.bp-label--teal   { fill: rgba(14,165,233,0.8); }
.bp-dim {
  font-family: var(--font-mono);
  font-size: 8px;
  fill: rgba(100,160,255,0.45);
  text-anchor: middle;
  opacity: 0;
  transition: opacity 0.4s ease-out var(--d, 0s);
}
/* Activated state (JS adds .bp-active to #bpStage) */
.bp-active .bp-draw,
.bp-active .bp-annot,
.bp-active .bp-divider  { stroke-dashoffset: 0; }
.bp-active .bp-label,
.bp-active .bp-dim      { opacity: 1; }

/* Erasing state: override all delays and durations to erase quickly */
.bp-erasing .bp-draw,
.bp-erasing .bp-annot,
.bp-erasing .bp-divider {
  stroke-dashoffset: 1 !important;
  transition-delay: 0s !important;
  transition-duration: 0.45s !important;
  transition-timing-function: ease-in !important;
}
.bp-erasing .bp-label,
.bp-erasing .bp-dim {
  opacity: 0 !important;
  transition-delay: 0s !important;
  transition-duration: 0.2s !important;
}

[data-theme="light"] .bp-draw    { stroke: rgba(26,86,219,0.7); }
[data-theme="light"] .bp-orange  { stroke: rgba(234,88,12,0.8); }
[data-theme="light"] .bp-teal    { stroke: rgba(8,145,178,0.8); }
[data-theme="light"] .bp-annot   { stroke: rgba(26,86,219,0.3); }
[data-theme="light"] .bp-divider { stroke: rgba(26,86,219,0.18); }
[data-theme="light"] .bp-label   { fill: rgba(26,86,219,0.75); }
[data-theme="light"] .bp-dim     { fill: rgba(26,86,219,0.45); }

/* ============================================================
   GAUGES — Indicadores tipo manómetro (div-needle approach)
   ============================================================ */
.gauges-section {
  padding: 80px 0;
  background: var(--bg-2);
}
.gauges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 767px) {
  .gauges-grid { grid-template-columns: 1fr; max-width: 300px; margin-left: auto; margin-right: auto; }
}
.gauge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px 20px;
  text-align: center;
  transition: border-color var(--t), transform var(--spring), box-shadow var(--t);
}
.gauge:hover {
  transform: translateY(-5px);
  border-color: var(--gauge-col, var(--brand-blue));
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 0 0 1px var(--gauge-col, var(--brand-blue));
}
.gauge__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }

/* Face container: SVG + positioned overlays */
.gauge__face {
  position: relative;
  width: 100%;
  max-width: 220px;
}
.gauge__arcs { display: block; width: 100%; height: auto; }

/* Arc track (gray background) — butt caps para evitar blobs en los extremos */
.gauge__track {
  fill: none;
  stroke: var(--bg-3);
  stroke-width: 13;
  stroke-linecap: butt;
}
[data-theme="light"] .gauge__track { stroke: #d0d8f0; }

/* --arc-progress: registered numeric property so CSS can transition it.
   Semicírculo radio 90 → longitud total = π×90 ≈ 283px.
   El arco se rellena desde el extremo izquierdo (0%) hasta la marca de valor. */
@property --arc-progress {
  syntax: '<number>';
  initial-value: 0;
  inherits: false;
}
.gauge__arc {
  fill: none;
  stroke: var(--gauge-col, var(--brand-blue));
  stroke-width: 13;
  stroke-linecap: round;
  stroke-dasharray: var(--arc-progress) 283;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 6px var(--gauge-col, var(--brand-blue)));
  transition: --arc-progress 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.25s;
}
.gauge.active .gauge__arc { --arc-progress: var(--arc-fill, 0); }

/* Tick marks */
.gauge__tick { stroke: var(--text-3); stroke-width: 2; stroke-linecap: round; }

/* ---- Needle (div, rotates reliably via CSS transform) ----
   Pivot = SVG point (100, 105) in viewBox(0 0 200 115)
   → left: 50%,  bottom: (115-105)/115 * 100% = 8.7%            */
.gauge__needle-wrap {
  position: absolute;
  bottom: 8.7%;
  left: 50%;
  transform: translateX(-50%) rotate(-90deg);
  transform-origin: 50% 100%;   /* rotate around bottom edge = hub */
  width: 3px;
  height: 76%;
  transition: transform 1.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s;
}
.gauge.active .gauge__needle-wrap {
  transform: translateX(-50%) rotate(var(--needle-rot, 0deg));
}
.gauge__needle-line {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, var(--text) 28%, var(--text) 100%);
  border-radius: 2px 2px 0 0;
}

/* Hub dot at pivot */
.gauge__hub-dot {
  position: absolute;
  bottom: 8.7%;
  left: 50%;
  transform: translateX(-50%) translateY(50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gauge-col, var(--brand-blue));
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 10px var(--gauge-col, var(--brand-blue));
}

/* Readout: value + label, floated inside face */
.gauge__readout {
  position: absolute;
  bottom: 26%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
  white-space: nowrap;
}
.gauge__val {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2.8vw, 1.4rem);
  font-weight: 700;
  color: var(--gauge-col, var(--brand-blue));
  line-height: 1;
}
.gauge__lbl {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  color: var(--text-2);
}
.gauge__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.gauge__svc {
  font-size: 0.72rem;
  color: var(--text-3);
  font-family: var(--font-mono);
}

/* ============================================================
   COVERAGE — Mapa de cobertura operativa
   ============================================================ */
.coverage-section {
  padding: 80px 0;
  background: var(--bg);
}
.coverage-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .coverage-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* Satellite map */
.coverage-map-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(14,165,233,0.25);
  box-shadow: 0 0 40px rgba(14,165,233,0.12);
}
#sat-map {
  width: 100%;
  height: 420px;
}
/* Leaflet dark-mode overrides */
.leaflet-container {
  background: #0d1117;
  font-family: var(--font-sans);
}
.leaflet-popup-content-wrapper {
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.leaflet-popup-tip { background: var(--bg-2); }
@media (max-width: 900px) {
  #sat-map { height: 280px; }
}
.coverage-info { max-width: 520px; }
.coverage-lead {
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 16px 0 28px;
}
.coverage-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.coverage-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-2);
}
.coverage-list li svg {
  width: 15px; height: 15px;
  stroke: var(--brand-teal);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   GV CHAT WIDGET — iOS iMessage + macOS tab
═══════════════════════════════════════════════════════════════ */

.gv-chat {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9000;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
}

/* ── macOS dock tab (minimized) ── */
.gv-chat__tab {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(22, 22, 26, 0.86);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 100px;
  padding: 9px 16px 9px 10px;
  cursor: pointer;
  transition: transform 0.38s cubic-bezier(0.34,1.56,0.64,1),
              opacity 0.28s ease,
              box-shadow 0.2s ease;
  box-shadow:
    0 4px 28px rgba(0,0,0,0.5),
    0 1px 0 rgba(255,255,255,0.07) inset;
}
.gv-chat__tab:hover {
  transform: scale(1.06) translateY(-3px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.1) inset;
}
.gv-chat__tab:active { transform: scale(0.97); }
.gv-chat__tab.gv-hidden {
  transform: scale(0.6) translateY(12px);
  opacity: 0;
  pointer-events: none;
}

.gv-chat__tab-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a56db 0%, #0ea5e9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(26,86,219,0.5);
}

.gv-chat__tab-label {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.gv-chat__tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34c759;
  flex-shrink: 0;
  margin-left: 2px;
  animation: gvDotPulse 2.4s ease infinite;
}
@keyframes gvDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.8); }
}

/* ── iOS window ── */
.gv-chat__win {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 340px;
  height: 618px;
  border-radius: 46px;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.08),
    0 32px 100px rgba(0,0,0,0.7),
    0 0 0 0.5px rgba(255,255,255,0.15) inset;
  transform-origin: bottom left;
  transition: transform 0.44s cubic-bezier(0.34,1.56,0.64,1),
              opacity 0.3s ease;
}
.gv-chat__win.gv-hidden {
  transform: scale(0.04) translate(-40px, 50px);
  opacity: 0;
  pointer-events: none;
}

/* ── Fake iOS status bar ── */
.gv-chat__sb {
  background: #ffffff;
  display: flex;
  align-items: center;
  padding: 14px 22px 2px;
  flex-shrink: 0;
  position: relative;
}
.gv-chat__sb-time {
  font-size: 15px;
  font-weight: 600;
  color: #000000;
  letter-spacing: -0.3px;
  flex: 1;
}
.gv-chat__sb-notch {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: 122px;
  height: 30px;
  background: #000;
  border-radius: 0 0 22px 22px;
}
.gv-chat__sb-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #000;
  flex: 1;
  justify-content: flex-end;
}

/* ── Chat header ── */
.gv-chat__hdr {
  background: rgba(248,248,248,0.97);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 0.5px solid rgba(0,0,0,0.1);
  padding: 8px 14px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.gv-chat__min-btn {
  background: none;
  border: none;
  color: #007aff;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  transition: background 0.15s;
  flex-shrink: 0;
}
.gv-chat__min-btn:hover { background: rgba(0,122,255,0.1); }

.gv-chat__contact {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
}
.gv-chat__av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a56db 0%, #0ea5e9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(26,86,219,0.45);
}
.gv-chat__name {
  font-size: 14.5px;
  font-weight: 600;
  color: #000;
  letter-spacing: -0.3px;
}
.gv-chat__online {
  font-size: 11px;
  color: #34c759;
  font-weight: 400;
  letter-spacing: -0.1px;
}
.gv-chat__hdr-sp { width: 34px; flex-shrink: 0; }

/* ── Messages area ── */
.gv-chat__msgs {
  flex: 1;
  overflow-y: auto;
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #ffffff;
  scroll-behavior: smooth;
}
.gv-chat__msgs::-webkit-scrollbar { width: 3px; }
.gv-chat__msgs::-webkit-scrollbar-track { background: transparent; }
.gv-chat__msgs::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 3px; }

/* Date separator */
.gv-msg-date {
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: #8e8e93;
  margin: 6px 0 8px;
  letter-spacing: 0.15px;
  text-transform: capitalize;
}

/* Message wrapper */
.gv-msg {
  display: flex;
  flex-direction: column;
  max-width: 78%;
  animation: gvMsgPop 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes gvMsgPop {
  from { opacity: 0; transform: scale(0.75) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.gv-msg.inc { align-self: flex-start; align-items: flex-start; }
.gv-msg.out { align-self: flex-end;   align-items: flex-end;   }

/* Bubble */
.gv-bubble {
  padding: 9px 14px;
  border-radius: 20px;
  font-size: 14.5px;
  line-height: 1.42;
  max-width: 100%;
  word-wrap: break-word;
}
.gv-msg.inc .gv-bubble {
  background: #e9e9eb;
  color: #000;
  border-bottom-left-radius: 6px;
}
.gv-msg.out .gv-bubble {
  background: #007aff;
  color: #fff;
  border-bottom-right-radius: 6px;
}
/* Consecutive same sender – flatten top corner */
.gv-msg.inc + .gv-msg.inc .gv-bubble { border-top-left-radius: 8px; }
.gv-msg.out + .gv-msg.out .gv-bubble { border-top-right-radius: 8px; }

.gv-msg-time {
  font-size: 10px;
  color: #8e8e93;
  margin-top: 2px;
  padding: 0 4px;
}

/* Typing indicator */
.gv-typing {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 11px 15px;
  background: #e9e9eb;
  border-radius: 20px;
  border-bottom-left-radius: 6px;
  animation: gvMsgPop 0.25s ease both;
  margin-bottom: 2px;
}
.gv-tdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8e8e93;
}
.gv-tdot:nth-child(1) { animation: gvTyping 1.2s 0s   infinite; }
.gv-tdot:nth-child(2) { animation: gvTyping 1.2s 0.2s infinite; }
.gv-tdot:nth-child(3) { animation: gvTyping 1.2s 0.4s infinite; }
@keyframes gvTyping {
  0%, 60%, 100% { transform: translateY(0);   opacity: 0.4; }
  30%           { transform: translateY(-5px); opacity: 1;   }
}

/* Quick reply buttons */
.gv-qr {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 4px 10px 2px;
  align-self: flex-start;
  animation: gvMsgPop 0.3s ease both;
}
.gv-qr-btn {
  background: none;
  border: 1.5px solid #007aff;
  color: #007aff;
  border-radius: 100px;
  padding: 7px 15px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  white-space: nowrap;
  letter-spacing: -0.1px;
}
.gv-qr-btn:hover  { background: rgba(0,122,255,0.09); }
.gv-qr-btn:active { background: #007aff; color: #fff; transform: scale(0.95); }

/* WhatsApp CTA button inside chat */
.gv-wa-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #25d366;
  color: #fff;
  padding: 11px 19px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  margin: 5px 10px;
  transition: background 0.15s, transform 0.12s;
  animation: gvMsgPop 0.3s ease both;
  line-height: 1;
}
.gv-wa-cta:hover  { background: #1dbe5a; }
.gv-wa-cta:active { transform: scale(0.96); }
.gv-wa-cta svg    { flex-shrink: 0; }

/* Input bar */
.gv-chat__bar {
  background: rgba(248,248,248,0.97);
  backdrop-filter: blur(20px);
  border-top: 0.5px solid rgba(0,0,0,0.1);
  padding: 8px 12px 18px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.gv-chat__bar.gv-hidden { display: none; }

.gv-chat__inputwrap {
  flex: 1;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.13);
  border-radius: 24px;
  display: flex;
  align-items: center;
  padding: 8px 8px 8px 15px;
  gap: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.gv-chat__input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: #000;
  caret-color: #007aff;
}
.gv-chat__input::placeholder { color: #c7c7cc; }

.gv-chat__send {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #007aff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1),
              opacity 0.18s ease,
              background 0.15s;
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
}
.gv-chat__send.gv-visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.gv-chat__send:hover  { background: #0071e3; transform: scale(1.1); }
.gv-chat__send:active { transform: scale(0.93); }

/* Mobile */
@media (max-width: 420px) {
  .gv-chat { bottom: 16px; left: 12px; }
  .gv-chat__win {
    width: calc(100vw - 24px);
    height: 82svh;
    border-radius: 38px;
  }
}
