/* ============================================================
   BioCivil M&M S.A.S — main.css v2
   "Cimientos para un planeta sostenible"
   Civil Engineering + Environmental Management
   Palette: OKLCH — bright metallic green + dark steel navy
   Fonts: Sora (display) + Plus Jakarta Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Green palette */
  --g1: oklch(38% 0.18 142);
  --g2: oklch(52% 0.22 145);
  --g3: oklch(65% 0.20 147);
  --g4: oklch(80% 0.12 148);
  --g5: oklch(94% 0.05 148);

  /* Navy palette */
  --n1: oklch(16% 0.06 248);
  --n2: oklch(24% 0.08 248);
  --n3: oklch(36% 0.09 245);

  /* Backgrounds */
  --bg-0: oklch(100% 0 0);
  --bg-1: oklch(98.5% 0.005 145);
  --bg-2: oklch(96% 0.009 145);

  /* Text */
  --text-1: oklch(14% 0.04 248);
  --text-2: oklch(38% 0.05 248);
  --text-3: oklch(62% 0.03 248);

  /* Typography */
  --font-display: 'Sora', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Easing */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.0, 0, 0.2, 1);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-1);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Desactiva el highlight azul al tocar en mobile */
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--g2);
  color: white;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button {
  font-family: var(--font-body);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--g2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--g1); }

/* ============================================================
   3. SCROLL PROGRESS BAR
   ============================================================ */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--g2);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px oklch(52% 0.22 145 / 0.6);
}

/* ============================================================
   4. CUSTOM CURSOR
   ============================================================ */
.cur-dot {
  position: fixed;
  top: 0; left: 0;
  width: 7px; height: 7px;
  background: var(--g2);
  border-radius: 50%;
  z-index: 9998;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: width 0.3s var(--ease-expo), height 0.3s var(--ease-expo);
}

.cur-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid oklch(52% 0.22 145 / 0.4);
  border-radius: 50%;
  z-index: 9997;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition:
    width 0.35s var(--ease-expo),
    height 0.35s var(--ease-expo),
    border-color 0.25s;
}

.cur-dot.hover  { width: 12px; height: 12px; }
.cur-ring.hover { width: 60px; height: 60px; border-color: oklch(52% 0.22 145 / 0.6); }

/* ============================================================
   5. NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 5%;
  transition: all 0.4s var(--ease-expo);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px; /* mobile base */
}

@media (min-width: 641px) {
  .nav-inner { height: 90px; }
}

/* Transparent on hero, opaque when scrolled or on inner pages */
.nav-transparent {
  background: transparent;
}

.nav.scrolled {
  background: oklch(100% 0 0 / 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid oklch(52% 0.22 145 / 0.12);
  box-shadow: 0 2px 20px oklch(0% 0 0 / 0.06);
}

/* Logo as image */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 641px) {
  .nav-logo-img { height: 52px; }
}

/* Fallback text logo (when img not loaded) */
.nav-logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--g2), var(--g1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo-text .brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--n1);
  letter-spacing: -0.02em;
  display: block;
  line-height: 1.2;
}

.nav-logo-text .tagline {
  font-size: 0.65rem;
  color: var(--g2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  line-height: 1;
}

/* Invert logo text to white when nav is transparent (over dark hero) */
.nav-transparent .nav-logo-text .brand { color: white; }
.nav-transparent .nav-logo-text .tagline { color: var(--g4); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.975rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.25s;
  position: relative;
}

.nav-transparent .nav-links a { color: oklch(100% 0 0 / 0.75); }
.nav-transparent .nav-links a:hover,
.nav-transparent .nav-links a.active { color: white; }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--g2);
  transition: width 0.3s var(--ease-expo);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-links a:hover,
.nav-links a.active { color: var(--g2); }

.nav-transparent .nav-links a::after { background: var(--g4); }

.nav-cta {
  padding: 0.62rem 1.6rem;
  background: var(--g2);
  color: white;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s var(--ease-expo);
}

.nav-cta:hover {
  background: var(--g1);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px oklch(52% 0.22 145 / 0.35);
}

/* ============================================================
   6. HERO SECTION — full-bleed with background image
   ============================================================ */
.hero {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 55fr 45fr;
  align-items: center;
  padding: 110px 5% 70px;
  position: relative;
  overflow: hidden;
  gap: 3rem;
}

/* Background video layer */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Video de fondo — cubre todo como background-size:cover */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Sin animación: el video ya tiene movimiento propio */
}

/* Dark gradient overlay — navy left, green-tint right */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      oklch(12% 0.05 248 / 0.93) 0%,
      oklch(16% 0.06 248 / 0.85) 45%,
      oklch(25% 0.12 162 / 0.65) 100%
    );
  z-index: 1;
}

.hero-content {
  z-index: 3;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.45rem 1.1rem;
  background: oklch(100% 0 0 / 0.1);
  border: 1px solid oklch(100% 0 0 / 0.22);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: oklch(100% 0 0 / 0.85);
  margin-bottom: 2rem;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
}

.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--g3);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7.2rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: white;
  margin-bottom: 1.8rem;
  overflow: hidden;
}

.hero-title .line { overflow: hidden; display: block; }

.hero-title .line-inner {
  display: block;
  transform: translateY(110%);
  opacity: 0;
  transition:
    transform 0.9s var(--ease-expo),
    opacity 0.9s var(--ease-expo);
}

.hero-title .line-inner.in {
  transform: translateY(0);
  opacity: 1;
}

.hero-title .accent-word { color: var(--g3); }

.hero-sub {
  font-size: 1.1rem;
  color: oklch(100% 0 0 / 0.72);
  line-height: 1.75;
  max-width: 46ch;
  margin-bottom: 2.8rem;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s var(--ease-expo),
    transform 0.8s var(--ease-expo);
}

.hero-sub.in { opacity: 1; transform: translateY(0); }

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  opacity: 0;
  transition: opacity 0.8s var(--ease-expo);
}

.hero-actions.in { opacity: 1; }

/* Hero stat strip */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  border-top: 1px solid oklch(100% 0 0 / 0.14);
  padding-top: 1.8rem;
}

.stat-item .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--g3);
  line-height: 1;
}

.stat-item .label {
  font-size: 0.72rem;
  color: oklch(100% 0 0 / 0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* ============================================================
   7. HERO VISUAL (right side) — glass cards over bg
   ============================================================ */
.hero-visual {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero-blob {
  position: absolute;
  width: 380px; height: 380px;
  background: linear-gradient(135deg, oklch(65% 0.20 147 / 0.3), oklch(52% 0.22 145 / 0.15));
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: morph 9s ease-in-out infinite;
  z-index: 0;
  filter: blur(40px);
}

.hero-cards {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
}

.h-card {
  background: oklch(100% 0 0 / 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid oklch(100% 0 0 / 0.18);
  border-radius: 18px;
  padding: 1.5rem 1.8rem;
  box-shadow: 0 8px 32px oklch(0% 0 0 / 0.25);
  display: flex;
  align-items: center;
  gap: 1.1rem;
  transition: all 0.4s var(--ease-expo);
}

.h-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 50px oklch(0% 0 0 / 0.35);
  border-color: oklch(100% 0 0 / 0.3);
  background: oklch(100% 0 0 / 0.15);
}

.h-card:nth-child(2) { margin-left: 2rem; }

.h-card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.h-card-icon.green {
  background: oklch(52% 0.22 145 / 0.25);
  color: var(--g3);
}

.h-card-icon.navy {
  background: oklch(100% 0 0 / 0.12);
  color: white;
}

.h-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: white;
}

.h-card-sub {
  font-size: 0.78rem;
  color: oklch(100% 0 0 / 0.55);
  margin-top: 0.2rem;
}

#leaf-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;   /* above hero-overlay (1), below content (3) */
}

/* Leaf canvas for inner page heroes */
.page-hero-leaves {
  position: absolute !important;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* ============================================================
   8. STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--n1);
  padding: 3.5rem 5%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.stats-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, oklch(52% 0.22 145 / 0.5), transparent);
}

.stat-card {
  text-align: center;
  padding: 1.5rem 1rem;
}

.stat-card .big-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--g3);
  line-height: 1;
}

.stat-card .sfx { color: var(--g2); }

.stat-card .desc {
  color: oklch(100% 0 0 / 0.55);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.6rem;
}

.stat-card + .stat-card {
  border-left: 1px solid oklch(100% 0 0 / 0.08);
}

/* ============================================================
   9. SECTION BASE STYLES
   ============================================================ */
.section {
  padding: 6rem 5%;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--g2);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-label::before {
  content: '';
  width: 24px; height: 1.5px;
  background: var(--g2);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--n1);
  margin-bottom: 1.2rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 52ch;
}

/* ============================================================
   10. ABOUT SECTION — image + text
   ============================================================ */
.about {
  background: var(--bg-0);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
  padding: 7rem 5%;
}

.about-text .big-quote {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.2vw, 3.2rem);
  font-weight: 800;
  color: var(--n1);
  line-height: 1.14;
  margin-bottom: 1.8rem;
  letter-spacing: -0.028em;
}

.about-text p {
  color: var(--text-2);
  line-height: 1.9;
  font-size: 1.08rem;
  margin-bottom: 1.3rem;
}

/* Image side — 16:9 landscape fills the column width */
.about-img-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16/9;
  width: 100%;
  box-shadow: 0 32px 80px oklch(0% 0 0 / 0.16);
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--ease-expo);
}

.about-img-wrap:hover img {
  transform: scale(1.04);
}

/* Accent tag on image */
.about-img-tag {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  background: oklch(100% 0 0 / 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid oklch(100% 0 0 / 0.2);
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-img-tag-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--g2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.about-img-tag-text strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: white;
  display: block;
}

.about-img-tag-text span {
  font-size: 0.78rem;
  color: oklch(100% 0 0 / 0.65);
}

/* Value pills (used in about section) */
.value-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.4rem;
  border-radius: 14px;
  background: var(--bg-1);
  border: 1px solid oklch(52% 0.22 145 / 0.12);
  transition: all 0.35s var(--ease-expo);
}

.value-pill:hover {
  background: oklch(52% 0.22 145 / 0.06);
  border-color: oklch(52% 0.22 145 / 0.3);
  transform: translateX(6px);
}

.value-pill-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: oklch(52% 0.22 145 / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--g2);
  flex-shrink: 0;
}

.value-pill-text strong {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--n1);
  display: block;
}

.value-pill-text span {
  font-size: 0.8rem;
  color: var(--text-3);
}

/* ============================================================
   11. SERVICES SECTION
   ============================================================ */
.services-section {
  background: var(--n1);
  padding: 7rem 5%;
}

.services-section .section-label { color: var(--g3); }
.services-section .section-label::before { background: var(--g3); }
.services-section .section-title { color: white; }

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3.5rem;
}

/* Card with image header + content body */
.service-card {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  transition: all 0.45s var(--ease-expo);
  display: flex;
  flex-direction: column;
  background: oklch(100% 0 0 / 0.05);
  border: 1px solid oklch(100% 0 0 / 0.1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 80px oklch(0% 0 0 / 0.4);
  border-color: oklch(100% 0 0 / 0.2);
}

/* Image header */
.service-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s var(--ease-expo);
}

.service-card:hover .service-card-img img {
  transform: scale(1.07);
}

.service-card-img-overlay {
  position: absolute;
  inset: 0;
}

.service-card.civil .service-card-img-overlay {
  background: linear-gradient(to bottom, oklch(16% 0.06 248 / 0.3) 0%, oklch(16% 0.06 248 / 0.85) 100%);
}

.service-card.ambiental .service-card-img-overlay {
  background: linear-gradient(to bottom, oklch(38% 0.18 142 / 0.3) 0%, oklch(38% 0.18 142 / 0.85) 100%);
}

/* Content area */
.service-card-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: oklch(100% 0 0 / 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
}

.service-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.service-card-sub {
  color: oklch(100% 0 0 / 0.6);
  font-size: 0.9rem;
  margin-bottom: 1.8rem;
  line-height: 1.5;
}

/* ── Services Showcase Carousel ─────────────────── */
.svc-showcase {
  display: grid;
  grid-template-columns: 1fr 1.55fr;  /* wider panel so text never clips */
  gap: 4rem;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
}

/* LEFT info column */
.svc-info { color: white; }

.svc-info .section-title {
  color: white;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
}

.svc-info .section-sub {
  color: oklch(100% 0 0 / 0.62);
  font-size: 0.95rem;
  margin-top: 1rem;
  max-width: 34ch;
  line-height: 1.75;
}

.svc-disciplines {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.svc-disc-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.svc-disc-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.svc-disc-item strong {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
}

.svc-disc-item span {
  font-size: 0.75rem;
  color: oklch(100% 0 0 / 0.45);
  letter-spacing: 0.04em;
}

/* RIGHT panel */
.svc-panel {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 90px oklch(0% 0 0 / 0.45);
}

.svc-panel-bg {
  position: absolute !important;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: background-image 0.6s ease, opacity 0.6s ease;
}

.svc-panel-overlay {
  position: absolute !important;
  inset: 0;
  z-index: 1;
  transition: background 0.7s ease;
}

/* civil tint */
.svc-panel-overlay.is-civil {
  background: linear-gradient(
    160deg,
    oklch(12% 0.05 248 / 0.82) 0%,
    oklch(16% 0.06 248 / 0.65) 100%
  );
}

/* ambiental tint */
.svc-panel-overlay.is-ambiental {
  background: linear-gradient(
    160deg,
    oklch(18% 0.12 148 / 0.82) 0%,
    oklch(30% 0.15 145 / 0.55) 100%
  );
}

.svc-panel-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 2.5rem;
  flex: 1;
}

/* Big decorative number */
.svc-panel-num {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 800;
  color: oklch(100% 0 0 / 0.06);
  line-height: 1;
  letter-spacing: -0.04em;
  user-select: none;
  position: absolute;
  top: 1.5rem; right: 2rem;
  transition: color 0.4s;
}

/* Category badge */
.svc-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 1.5rem;
  transition: background 0.4s, border-color 0.4s;
}

.svc-cat-badge.is-civil {
  background: oklch(100% 0 0 / 0.1);
  border: 1px solid oklch(100% 0 0 / 0.2);
  color: oklch(100% 0 0 / 0.75);
}

.svc-cat-badge.is-ambiental {
  background: oklch(52% 0.22 145 / 0.25);
  border: 1px solid oklch(65% 0.20 147 / 0.45);
  color: var(--g4);
}

/* Slides viewport — fixed-height clipping window, shows ONE slide at a time */
.svc-slides-viewport {
  height: 160px;
  overflow: hidden;
  position: relative;
  /* soft fade top/bottom so slides blend in/out */
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%, black 18%, black 82%, transparent 100%);
  mask-image: linear-gradient(to bottom,
    transparent 0%, black 18%, black 82%, transparent 100%);
}

/* Sliding track — JS sets translateY via lerp */
.svc-slides-track {
  display: flex;
  flex-direction: column;
  width: 100%;
  will-change: transform;
}

.svc-slide {
  height: 160px;          /* must match viewport height */
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.svc-slide-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  letter-spacing: -0.028em;
  will-change: opacity, transform;
  transition: opacity 0.3s ease, transform 0.4s var(--ease-expo);
}

/* Bottom controls row */
.svc-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid oklch(100% 0 0 / 0.1);
}

.svc-counter-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.svc-counter-cur {
  color: white;
  font-size: 1.1rem;
}

.svc-counter-sep {
  color: oklch(100% 0 0 / 0.3);
}

.svc-counter-tot {
  color: oklch(100% 0 0 / 0.4);
}

.svc-progress-track {
  flex: 1;
  height: 2px;
  background: oklch(100% 0 0 / 0.12);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.svc-progress-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  border-radius: 2px;
  background: oklch(100% 0 0 / 0.6);
  transition: background 0.4s;
}

.svc-progress-fill.is-ambiental {
  background: var(--g3);
}

.svc-arrows {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.svc-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid oklch(100% 0 0 / 0.2);
  background: oklch(100% 0 0 / 0.08);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
  flex-shrink: 0;
}

.svc-arrow:hover {
  background: oklch(100% 0 0 / 0.2);
  border-color: oklch(100% 0 0 / 0.45);
  transform: scale(1.1);
}

@media (max-width: 1024px) {
  .svc-showcase {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .svc-panel {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .svc-panel-num { font-size: 4rem; }
  .svc-slides-viewport { height: 130px; }
  .svc-slide { height: 130px; }
  .svc-slide-title { font-size: clamp(1.5rem, 7vw, 2rem); }
  .svc-panel-body { padding: 1.8rem; }
  .svc-panel { min-height: 380px; }
}

.service-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  background: oklch(100% 0 0 / 0.12);
  border: 1.5px solid oklch(100% 0 0 / 0.25);
  transition: all 0.3s var(--ease-expo);
  width: fit-content;
  margin-top: auto;
}

.service-card-cta:hover {
  background: oklch(100% 0 0 / 0.2);
  border-color: oklch(100% 0 0 / 0.5);
  gap: 0.9rem;
}

/* Legacy service-list (used in servicios.html) */
.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.87rem;
  opacity: 0.82;
  line-height: 1.4;
  color: white;
}

.service-list li::before {
  content: '→';
  opacity: 0.55;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   12. MISSION / VISION SECTION
   ============================================================ */
.mission-section {
  background: var(--n2);
  padding: 7rem 5%;
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.mv-card {
  padding: 3rem;
  border: 1px solid oklch(100% 0 0 / 0.1);
  border-radius: 20px;
  position: relative;
  background: oklch(100% 0 0 / 0.03);
  overflow: hidden;
}

.mv-card::before {
  position: absolute;
  top: -1rem; left: 2rem;
  font-family: var(--font-display);
  font-size: 9rem;
  font-weight: 800;
  color: oklch(100% 0 0 / 0.04);
  line-height: 1;
  pointer-events: none;
}

.mv-card.mision::before { content: 'M'; }
.mv-card.vision::before  { content: 'V'; }

.mv-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--g3);
  margin-bottom: 1rem;
  font-weight: 700;
}

.mv-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.mv-text {
  color: oklch(100% 0 0 / 0.72);
  line-height: 1.85;
  font-size: 0.95rem;
}

/* ============================================================
   13. VALUES GRID SECTION
   ============================================================ */
.values-section {
  background: var(--bg-0);
  padding: 7rem 5%;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.val-card {
  padding: 2.2rem;
  border-radius: 20px;
  border: 1px solid oklch(52% 0.22 145 / 0.1);
  background: var(--bg-1);
  transition: all 0.4s var(--ease-expo);
  position: relative;
  overflow: hidden;
}

.val-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--g2), var(--g3));
  transition: width 0.4s var(--ease-expo);
}

.val-card:hover::after { width: 100%; }

.val-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px oklch(52% 0.22 145 / 0.12);
  border-color: oklch(52% 0.22 145 / 0.3);
  background: white;
}

.val-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: oklch(52% 0.22 145 / 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--g2);
  margin-bottom: 1.2rem;
}

.val-icon svg { width: 26px; height: 26px; }

.val-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--n1);
  margin-bottom: 0.6rem;
}

.val-desc {
  font-size: 0.84rem;
  color: var(--text-3);
  line-height: 1.68;
}

/* ============================================================
   14. CTA SECTION
   ============================================================ */
.cta-section {
  background:
    radial-gradient(ellipse 85% 130% at 0% 55%,   oklch(28% 0.20 220 / 0.85) 0%,  transparent 52%),
    radial-gradient(ellipse 70% 120% at 100% 45%,  oklch(46% 0.22 148 / 0.80) 0%,  transparent 52%),
    radial-gradient(ellipse 55% 70%  at 52% 108%,  oklch(18% 0.12 255 / 0.70) 0%,  transparent 55%),
    radial-gradient(ellipse 40% 50%  at 50% -10%,  oklch(20% 0.10 240 / 0.55) 0%,  transparent 55%),
    oklch(7% 0.04 255);
  padding: 7rem 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle blueprint grid on top */
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(100% 0 0 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, oklch(100% 0 0 / 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Large decorative ring accent */
.cta-section::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  border-radius: 50%;
  border: 1px solid oklch(100% 0 0 / 0.06);
  pointer-events: none;
  z-index: 0;
}

/* Extra decorative shapes via a wrapper div — injected via CSS on .cta-content */
.cta-section .cta-content::before {
  content: '';
  position: absolute;
  top: -3rem; left: -4rem;
  width: 180px; height: 180px;
  border: 1px solid oklch(52% 0.22 145 / 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.cta-section .cta-content::after {
  content: '';
  position: absolute;
  bottom: -2rem; right: -3rem;
  width: 110px; height: 110px;
  border: 1px solid oklch(36% 0.18 220 / 0.20);
  transform: rotate(45deg);
  pointer-events: none;
}

.cta-content { position: relative; z-index: 1; }

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  color: white;
  line-height: 1.08;
  margin-bottom: 1.2rem;
  letter-spacing: -0.025em;
}

.cta-sub {
  color: oklch(100% 0 0 / 0.75);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ============================================================
   15. BUTTONS
   ============================================================ */
.btn-primary {
  padding: 0.85rem 2.2rem;
  background: var(--g2);
  color: white;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.35s var(--ease-expo);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-primary:hover {
  background: var(--g1);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px oklch(52% 0.22 145 / 0.4);
}

.btn-outline {
  padding: 0.85rem 2.2rem;
  background: transparent;
  color: white;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.35s var(--ease-expo);
  border: 1.5px solid oklch(100% 0 0 / 0.35);
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-outline:hover {
  background: oklch(100% 0 0 / 0.12);
  border-color: oklch(100% 0 0 / 0.6);
  transform: translateY(-2px);
}

.btn-white {
  background: white;
  color: var(--g1);
  padding: 0.9rem 2.5rem;
  border-radius: 100px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.35s var(--ease-expo);
  font-size: 0.95rem;
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px oklch(0% 0 0 / 0.22);
}

/* Ghost / outline variant for use on dark CTA backgrounds */
.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  padding: 0.9rem 2.2rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.85);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.10);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  padding: 0.9rem 2.2rem;
  border-radius: 100px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: all 0.35s var(--ease-expo);
  font-size: 0.95rem;
  font-family: var(--font-body);
}

.btn-whatsapp:hover {
  background: #1ab958;
  transform: translateY(-3px);
  box-shadow: 0 14px 38px rgba(37, 211, 102, 0.4);
}

/* Footer WhatsApp link */
.footer-wa-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #25D366 !important;
  text-decoration: none;
  font-size: 0.83rem;
  margin-bottom: 0.8rem;
  transition: color 0.25s;
  cursor: pointer;
}

.footer-wa-link:hover {
  color: #5bde89 !important;
}

/* ============================================================
   16. FOOTER
   ============================================================ */
.footer {
  background: var(--n1);
  color: oklch(100% 0 0 / 0.7);
  padding: 5rem 5% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.75rem;
  display: block;
}

.footer-brand .brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: white;
  margin-bottom: 0.3rem;
}

.footer-brand .brand-slogan {
  font-size: 0.78rem;
  color: var(--g3);
}

.footer-brand p {
  font-size: 0.83rem;
  line-height: 1.75;
  margin-top: 1rem;
  max-width: 30ch;
}

.footer-col h4 {
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
  margin-bottom: 1.2rem;
  letter-spacing: 0.05em;
}

.footer-col a {
  display: block;
  color: oklch(100% 0 0 / 0.55);
  text-decoration: none;
  font-size: 0.83rem;
  margin-bottom: 0.65rem;
  transition: color 0.25s;
}

.footer-col a:hover { color: var(--g3); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.83rem;
  margin-bottom: 0.8rem;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--g3);
}

.footer-bottom {
  border-top: 1px solid oklch(100% 0 0 / 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

/* ============================================================
   17. REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(44px);
  transition:
    opacity 0.8s var(--ease-expo),
    transform 0.8s var(--ease-expo);
}

.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition:
    opacity 0.85s var(--ease-expo),
    transform 0.85s var(--ease-expo);
}

.reveal-left.in { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition:
    opacity 0.85s var(--ease-expo),
    transform 0.85s var(--ease-expo);
}

.reveal-right.in { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.7s var(--ease-expo),
    transform 0.7s var(--ease-expo);
}

.reveal-scale.in { opacity: 1; transform: scale(1); }

/* Delay utilities */
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }
.d6 { transition-delay: 0.48s; }

/* ============================================================
   18. KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes morph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50%       { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

@keyframes mesh-shift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes float-up {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   19. INNER PAGES — PAGE HERO with background image
   ============================================================ */
.page-hero {
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: 9rem 5% 5rem;
  position: relative;
  overflow: hidden;
  /* Fallback colour when image hasn't loaded */
  background: var(--n1);
}

/* background image layer */
.page-hero-bg {
  position: absolute !important;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: hero-zoom 24s ease-in-out infinite alternate;
  will-change: transform;
}

/* dark overlay */
.page-hero-overlay {
  position: absolute !important;
  inset: 0;
  background: linear-gradient(
    160deg,
    oklch(10% 0.04 248 / 0.9) 0%,
    oklch(16% 0.06 248 / 0.82) 50%,
    oklch(28% 0.12 162 / 0.58) 100%
  );
  z-index: 1;
}

/* Green radial accent */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 75% at 0% 85%, oklch(52% 0.22 145 / 0.22) 0%, transparent 55%);
  z-index: 2;
  pointer-events: none;
}

/* Content wrapper — use this class on the div wrapping the title/label */
.page-hero-content {
  position: relative;
  z-index: 3;
}

.page-hero-label {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--g3);
  margin-bottom: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-hero-label::before {
  content: '';
  width: 24px; height: 1.5px;
  background: var(--g3);
  flex-shrink: 0;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  color: white;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.page-hero-sub {
  color: oklch(100% 0 0 / 0.65);
  font-size: 1.05rem;
  margin-top: 1rem;
  max-width: 52ch;
  line-height: 1.75;
}

/* ── Light variant — for inner pages (proyectos, servicios, contacto) ── */
.page-hero-light {
  background: var(--bg-1);
  min-height: 44vh;
  padding-top: 10rem;
  padding-bottom: 4rem;
}

/* Remove dark bg/overlay — just use a soft green tint */
.page-hero-light .page-hero-bg {
  opacity: 0.08;
  animation: none;
}

.page-hero-light .page-hero-overlay {
  background: none !important;
}

/* Kill green radial accent on light variant */
.page-hero-light::before { display: none; }

/* Text goes dark */
.page-hero-light .page-hero-label {
  color: var(--g2);
}

.page-hero-light .page-hero-label::before {
  background: var(--g2);
}

.page-hero-light .page-hero-title {
  color: var(--n1);
}

.page-hero-light .page-hero-sub {
  color: var(--text-2);
}

/* Decorative left accent bar */
.page-hero-light .page-hero-content {
  border-left: 4px solid var(--g2);
  padding-left: 2rem;
}

/* ============================================================
   20. PROYECTOS PAGE
   ============================================================ */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.55rem 1.3rem;
  border-radius: 100px;
  border: 1.5px solid oklch(52% 0.22 145 / 0.2);
  background: transparent;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.3s var(--ease-expo);
  font-family: var(--font-body);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--g2);
  color: white;
  border-color: var(--g2);
  box-shadow: 0 4px 16px oklch(52% 0.22 145 / 0.3);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pcard {
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-1);
  border: 1px solid oklch(52% 0.22 145 / 0.1);
  transition: all 0.45s var(--ease-expo);
  cursor: pointer;
}

.pcard:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 70px oklch(0% 0 0 / 0.14);
  border-color: oklch(52% 0.22 145 / 0.3);
}

.pcard-img {
  height: 260px;
  position: relative;
  overflow: hidden;
  background: var(--n2);
}

.pcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s var(--ease-expo);
}

.pcard-img-bg {
  width: 100%;
  height: 100%;
  transition: transform 0.7s var(--ease-expo);
  background-size: cover;
  background-position: center;
}

.pcard:hover .pcard-img img,
.pcard:hover .pcard-img-bg { transform: scale(1.08); }

.pcard-cat {
  position: absolute;
  top: 1rem; left: 1rem;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  background: oklch(100% 0 0 / 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid oklch(100% 0 0 / 0.2);
}

.pcard-body { padding: 1.8rem; }

.pcard-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--n1);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.pcard-desc {
  font-size: 0.83rem;
  color: var(--text-3);
  line-height: 1.65;
}

.pcard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid oklch(52% 0.22 145 / 0.1);
  font-size: 0.75rem;
  color: var(--text-3);
}

.pcard-footer .pcard-link {
  color: var(--g2);
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.25s;
}

.pcard-footer .pcard-link:hover { gap: 8px; }

/* ============================================================
   21. SERVICIOS PAGE
   ============================================================ */
.srv-category { margin-bottom: 5rem; }

.srv-cat-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2.5rem 2.8rem;
  border-radius: 22px;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.srv-cat-header.civil   { background: var(--n1); color: white; }
.srv-cat-header.ambiental { background: var(--g2); color: white; }

.srv-cat-icon {
  width: 68px; height: 68px;
  border-radius: 18px;
  background: oklch(100% 0 0 / 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.srv-cat-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.2;
}

.srv-cat-sub {
  opacity: 0.7;
  font-size: 0.88rem;
  margin-top: 0.3rem;
}

.srv-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.srv-item {
  padding: 1.6rem;
  border-radius: 16px;
  background: var(--bg-1);
  border: 1px solid oklch(52% 0.22 145 / 0.1);
  transition: all 0.35s var(--ease-expo);
  position: relative;
  overflow: hidden;
}

.srv-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--g2);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s var(--ease-expo);
}

.srv-item:hover::before { transform: scaleY(1); }

.srv-item:hover {
  background: white;
  border-color: oklch(52% 0.22 145 / 0.25);
  transform: translateX(6px);
  box-shadow: 0 10px 30px oklch(0% 0 0 / 0.08);
}

.srv-item-title {
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--n1);
  margin-bottom: 0.4rem;
}

.srv-item-desc {
  font-size: 0.82rem;
  color: var(--text-3);
  line-height: 1.6;
}

/* ============================================================
   22. CONTACTO PAGE — Channel Cards
   ============================================================ */

/* Section wrapper */
.contact-channels {
  background: var(--n1);
  padding: 7rem 5%;
  position: relative;
  overflow: hidden;
}

/* Giant watermark text */
.contact-channels::before {
  content: 'CONTACTO';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 15rem);
  font-weight: 800;
  color: oklch(100% 0 0 / 0.022);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -0.05em;
  user-select: none;
  z-index: 0;
}

.contact-channels-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-channels-head {
  text-align: center;
  margin-bottom: 4rem;
}

/* 2-column channel card grid */
.ch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Individual channel card */
.ch-card {
  position: relative;
  border-radius: 28px;
  padding: 2.8rem;
  display: flex;
  align-items: flex-start;
  gap: 1.8rem;
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.4s var(--ease-expo),
    box-shadow 0.4s var(--ease-expo),
    border-color 0.4s;
  background: oklch(100% 0 0 / 0.05);
  border: 1px solid oklch(100% 0 0 / 0.09);
  cursor: pointer;
}

.ch-card:hover {
  transform: translateY(-8px) scale(1.01);
}

/* Gradient border glow on hover */
.ch-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  border: 1.5px solid transparent;
  background: linear-gradient(135deg, var(--ch-glow, oklch(52% 0.22 145)), transparent 60%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.ch-card:hover::before { opacity: 1; }

/* Radial glow blob in top-right */
.ch-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -40px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, var(--ch-glow, oklch(52% 0.22 145)) 0%, transparent 70%);
  opacity: 0.06;
  filter: blur(30px);
  transition: opacity 0.45s;
  pointer-events: none;
}

.ch-card:hover::after { opacity: 0.2; }

/* Brand glow variables + shadow per channel */
.ch-card.ch-whatsapp  {
  --ch-glow: #25D366;
}
.ch-card.ch-whatsapp:hover {
  box-shadow: 0 28px 65px rgba(37, 211, 102, 0.22);
}

.ch-card.ch-instagram {
  --ch-glow: #E1306C;
}
.ch-card.ch-instagram:hover {
  box-shadow: 0 28px 65px rgba(225, 48, 108, 0.22);
}

.ch-card.ch-linkedin {
  --ch-glow: #0A66C2;
}
.ch-card.ch-linkedin:hover {
  box-shadow: 0 28px 65px rgba(10, 102, 194, 0.22);
}

.ch-card.ch-email {
  --ch-glow: #F97316;
}
.ch-card.ch-email:hover {
  box-shadow: 0 28px 65px rgba(249, 115, 22, 0.25);
}

/* Icon circle */
.ch-icon {
  width: 68px; height: 68px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: transform 0.35s var(--ease-back);
}

.ch-card:hover .ch-icon {
  transform: scale(1.1) rotate(-4deg);
}

.ch-card.ch-whatsapp  .ch-icon { background: rgba(37,211,102,0.14); color: #25D366; }
.ch-card.ch-instagram .ch-icon { background: rgba(225,48,108,0.14); color: #E1306C; }
.ch-card.ch-linkedin  .ch-icon { background: rgba(10,102,194,0.14);  color: #0A66C2; }
.ch-card.ch-email     .ch-icon { background: rgba(249,115,22,0.14); color: #F97316; }

/* Text content */
.ch-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.ch-platform {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: oklch(100% 0 0 / 0.35);
  margin-bottom: 0.4rem;
}

.ch-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin-bottom: 0.45rem;
}

.ch-handle {
  font-size: 0.92rem;
  color: oklch(100% 0 0 / 0.5);
  margin-bottom: 1.4rem;
  font-weight: 500;
}

.ch-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: white;
  background: oklch(100% 0 0 / 0.1);
  border: 1px solid oklch(100% 0 0 / 0.16);
  border-radius: 100px;
  padding: 0.45rem 1.1rem;
  transition: all 0.3s var(--ease-expo);
}

.ch-cta svg {
  transition: transform 0.3s var(--ease-expo);
}

.ch-card:hover .ch-cta {
  background: oklch(100% 0 0 / 0.18);
  border-color: oklch(100% 0 0 / 0.3);
  gap: 0.7rem;
}

.ch-card:hover .ch-cta svg {
  transform: translateX(3px);
}

/* ── Contact details strip ── */
.contact-details-strip {
  background: var(--n2);
  padding: 4.5rem 5%;
}

.contact-details-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.cdet-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cdet-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: oklch(52% 0.22 145 / 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--g3);
  flex-shrink: 0;
}

.cdet-label {
  font-size: 0.67rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: oklch(100% 0 0 / 0.32);
  font-weight: 700;
}

.cdet-value {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  line-height: 1.45;
}

/* ── Response badge ── */
.contact-response-badge {
  background: var(--n1);
  padding: 3rem 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid oklch(100% 0 0 / 0.06);
}

.crb-inner {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.3rem 2.8rem;
  background: oklch(52% 0.22 145 / 0.1);
  border: 1px solid oklch(52% 0.22 145 / 0.22);
  border-radius: 20px;
}

.crb-dot {
  width: 11px; height: 11px;
  background: var(--g3);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .contact-details-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .ch-grid {
    grid-template-columns: 1fr;
  }
  .ch-card {
    flex-direction: row;
    padding: 2rem;
    gap: 1.2rem;
  }
  .ch-icon {
    width: 54px; height: 54px;
  }
  .ch-name { font-size: 1.25rem; }
  .contact-details-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

/* ============================================================
   23. HAMBURGER (mobile nav toggle)
   ============================================================ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  width: 24px; height: 2px;
  background: white;           /* default: nav starts transparent over dark hero */
  border-radius: 2px;
  transition:
    background 0.4s var(--ease-expo),
    transform  0.3s var(--ease-expo),
    opacity    0.3s var(--ease-expo);
  display: block;
}

/* Nav is scrolled AND not over the dark proyectos stage → white nav bg,
   hamburger must be dark to contrast */
.nav.scrolled:not(.prj-nav-dark) .nav-hamburger span { background: var(--n1); }

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: oklch(100% 0 0 / 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid oklch(52% 0.22 145 / 0.12);
  padding: 1.5rem 5%;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 999;
  box-shadow: 0 8px 30px oklch(0% 0 0 / 0.1);
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 0.75rem 0;
  border-bottom: 1px solid oklch(52% 0.22 145 / 0.08);
  transition: color 0.25s;
}

.nav-mobile a:hover,
.nav-mobile a.active { color: var(--g2); }

.nav-mobile .nav-cta { margin-top: 0.5rem; text-align: center; }

/* ============================================================
   24. RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 110px 5% 60px;
  }

  .hero-visual { display: none; }

  .about {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-img-wrap {
    aspect-ratio: 16/9;
    width: 100%;
  }

  .services-grid { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr !important; }

  .values-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .stats-bar { grid-template-columns: repeat(2, 1fr); }

  .stat-card + .stat-card { border-left: none; }
  .stat-card:nth-child(2n) { border-left: 1px solid oklch(100% 0 0 / 0.08); }

  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .srv-items { grid-template-columns: 1fr; }

  .hero-title { font-size: clamp(3rem, 6vw, 5rem); }
}

/* ============================================================
   25. RESPONSIVE — 640px
   ============================================================ */
@media (max-width: 640px) {
  .nav-links  { display: none; }
  .nav-cta    { display: none; }
  .nav-hamburger { display: flex; }

  .hero {
    padding: 100px 5% 50px;
  }

  .hero-title { font-size: clamp(2.8rem, 10vw, 4rem); }

  .hero-stats { gap: 1.5rem; }

  .values-grid  { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }

  /* Ocultar columnas de nav/servicios en footer mobile —
     el hamburger menu cumple esa funcion */
  .footer-grid > .footer-col:nth-child(2),
  .footer-grid > .footer-col:nth-child(3) { display: none; }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .stats-bar {
    grid-template-columns: 1fr 1fr;
    padding: 3rem 5%;
  }

  .stat-card .big-num { font-size: 2.4rem; }

  .service-card { padding: 2.5rem; min-height: auto; }

  .about,
  .services-section,
  .mission-section,
  .values-section,
  .cta-section { padding: 5rem 5%; }

  .footer { padding: 4rem 5% 2rem; }

  .mv-card { padding: 2rem; }

  .filter-bar { gap: 0.4rem; }
  .filter-btn { font-size: 0.78rem; padding: 0.45rem 1rem; }

  .section-title { font-size: clamp(1.9rem, 7vw, 2.8rem); }

  .page-hero {
    padding: 8rem 5% 3.5rem;
    min-height: 50vh;
  }

  .page-hero-title { font-size: clamp(2.5rem, 9vw, 4rem); }

  .about-img-wrap { aspect-ratio: 3/2; }
}

/* ============================================================
   28. UNIVERSAL PAGE ENTRY ANIMATIONS
   Uses the standalone `translate` property (not `transform`)
   so card hover / 3-D tilt effects are never overridden.
   ============================================================ */

@keyframes page-entry {
  from {
    opacity: 0;
    translate: 0 32px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* ── Inner page heroes — fires automatically on all pages
      that use .page-hero (nosotros, servicios, contacto) ── */
.page-hero-label {
  animation: page-entry 0.9s var(--ease-expo) 0.10s both;
}

.page-hero-title {
  animation: page-entry 1.0s var(--ease-expo) 0.28s both;
}

.page-hero-sub {
  animation: page-entry 0.95s var(--ease-expo) 0.50s both;
}

/* ── Index page: floating service cards ── */
.hero-cards .h-card:nth-child(1) {
  animation: page-entry 0.85s var(--ease-expo) 0.55s both;
}

.hero-cards .h-card:nth-child(2) {
  animation: page-entry 0.85s var(--ease-expo) 0.72s both;
}

.hero-cards .h-card:nth-child(3) {
  animation: page-entry 0.85s var(--ease-expo) 0.89s both;
}

/* ============================================================
   26. PREFERS REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }
  .cur-dot, .cur-ring { display: none; }
  .hero-bg { animation: none; }
}

/* ============================================================
   27. TOUCH DEVICES — ocultar cursor personalizado
   pointer: coarse = pantallas tactiles (movil y tablet)
   ============================================================ */
@media (pointer: coarse) {
  .cur-dot,
  .cur-ring { display: none !important; }
}
