/* ═══════════════════════════════════════════════════════════════
   RENPAGF — styles.css
   Stack: HTML5 + CSS3 custom properties + Vanilla JS
   No frameworks, no build step — open index.html directly
═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   0. CUSTOM PROPERTIES
───────────────────────────────────────── */
:root {
  /* Brand palette */
  --green-dark:    #1b4332;
  --green-darker:  #152f24;
  --green-mid:     #2d6a4f;
  --green-light:   #52b788;
  --green-pale:    #d1e8d8;
  --yellow:        #d4a017;
  --yellow-pale:   #fef3c7;
  --cream:         #f8f5ef;
  --cream-dark:    #ece8e0;
  --white:         #ffffff;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'DM Sans', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container-max: 1280px;
  --container-px:  2rem;
  --nav-h:         80px;
  --section-py:    8rem;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: auto; /* JS handles smooth scroll */
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--cream);
  color: var(--green-dark);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* Focus visible — accessibility */
:focus-visible {
  outline: 2px solid var(--green-light);
  outline-offset: 3px;
}

/* ─────────────────────────────────────────
   2. LAYOUT UTILITIES
───────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--container-px);
}

/* Eyebrow labels */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 0.75rem;
}
.eyebrow--light { color: var(--green-light); }

/* Section title */
.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1.15;
  color: var(--green-dark);
  margin-bottom: 1.25rem;
}
.section-title--light { color: var(--cream); }

/* Section subtitle */
.section-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--green-pale);
  max-width: 52ch;
}
.section-sub--dark {
  color: #4a6741;
}
.section-sub--light {
  color: var(--green-pale);
}

/* Section header block */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header .section-title { margin-bottom: 0.75rem; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms var(--ease-out) var(--delay, 0ms),
              transform 800ms var(--ease-out) var(--delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pill base */
.pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid;
  white-space: nowrap;
}
.pill--green {
  background: rgba(82,183,136,0.10);
  border-color: var(--green-light);
  color: var(--green-dark);
}
.pill--amber {
  background: rgba(212,160,23,0.10);
  border-color: var(--yellow);
  color: #7c4a00;
}
.pill--gold {
  background: var(--yellow-pale);
  border-color: var(--yellow);
  color: #7c4a00;
}

/* ─────────────────────────────────────────
   3. NAVBAR
───────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  background: rgba(27,67,50,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 24px rgba(0,0,0,0.18);
}

.nav-container {
  max-width: var(--container-max);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--container-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(248,245,239,0.85);
  transition: color 0.2s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--green-light);
}

.nav-cta {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--green-dark);
  background: var(--green-light);
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: #3da670; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
#navLinks.is-open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--green-dark);
  padding: 1.5rem 2rem 2rem;
  gap: 0;
  border-top: 1px solid rgba(82,183,136,0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  z-index: 999;
}
#navLinks.is-open li {
  border-bottom: 1px solid rgba(82,183,136,0.1);
}
#navLinks.is-open .nav-link {
  display: block;
  padding: 0.9rem 0;
  font-size: 16px;
}

/* ─────────────────────────────────────────
   4. HERO
───────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg svg {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 5rem);
  padding-bottom: 4rem;
}

.hero-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 17px;
  font-weight: 300;
  color: rgba(248,245,239,0.82);
  max-width: 50ch;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Primary button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--green-dark);
  background: var(--green-light);
  border-radius: 999px;
  padding: 0.85rem 2rem;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover {
  background: #3da670;
  transform: translateY(-1px);
}

/* Ghost button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--cream);
  border: 2px solid var(--green-light);
  border-radius: 999px;
  padding: 0.85rem 2rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn-ghost:hover {
  background: rgba(82,183,136,0.12);
  transform: translateY(-1px);
}

/* Metrics strip */
.hero-metrics {
  position: relative;
  z-index: 1;
  background: var(--green-darker);
  border-top: 1px solid rgba(82,183,136,0.2);
  padding: 2rem;
  width: 100%;
}

.metrics-grid {
  padding-inline: var(--container-px);
  max-width: var(--container-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  position: relative;
}
.metric + .metric::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(82,183,136,0.15);
}

.metric__num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--green-light);
  line-height: 1;
}

.metric__label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(248,245,239,0.6);
  text-align: center;
}

/* ─────────────────────────────────────────
   5. CERTIFICACIONES
───────────────────────────────────────── */
.certs {
  background: var(--cream);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--cream-dark);
}

.certs-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(27,67,50,0.45);
  text-align: center;
  margin-bottom: 1.5rem;
}

.certs-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border-radius: 10px;
  padding: 0.55rem 1rem;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(27,67,50,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: default;
}
.cert-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(27,67,50,0.12);
}

.cert-badge--gold  { border: 1.5px solid var(--yellow);     color: #7c4a00; }
.cert-badge--green { border: 1.5px solid var(--green-light); color: var(--green-dark); }
.cert-badge--blue  { border: 1.5px solid #3b82f6;            color: #1e3a8a; }

/* ─────────────────────────────────────────
   6. QUIÉNES SOMOS
───────────────────────────────────────── */
.about {
  background: var(--white);
  padding: var(--section-py) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-intro {
  font-size: 17px;
  font-weight: 300;
  color: #4a6741;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.mv-list { display: flex; flex-direction: column; gap: 1.75rem; }

.mv-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.mv-icon-box {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(82,183,136,0.10);
  border-radius: 8px;
}

.mv-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-light);
  margin-bottom: 0.35rem;
}

.mv-text {
  font-size: 15px;
  font-weight: 300;
  color: #4a6741;
  line-height: 1.65;
}

/* Valores grid */
.valores-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.valor-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 1.5rem;
  border-left: 3px solid var(--green-light);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.valor-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(27,67,50,0.10);
}

.valor-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(82,183,136,0.10);
  border-radius: 8px;
  margin-bottom: 0.875rem;
}

.valor-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.valor-text {
  font-size: 14px;
  font-weight: 300;
  color: #4a6741;
  line-height: 1.6;
}

/* ─────────────────────────────────────────
   7. SERVICIOS
───────────────────────────────────────── */
.services {
  background: var(--green-dark);
  padding: var(--section-py) 0;
}

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

.service-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(82,183,136,0.15);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s var(--ease-out),
              background 0.3s,
              border-color 0.3s,
              box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.07);
  border-color: var(--yellow);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.service-icon-box {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(82,183,136,0.12);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.service-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--cream);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}
.service-list li {
  position: relative;
  font-size: 14px;
  font-weight: 300;
  color: rgba(248,245,239,0.75);
  padding-left: 1.1rem;
  line-height: 1.5;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--green-light);
  border-radius: 50%;
}

.service-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--green-light);
  background: rgba(82,183,136,0.10);
  border: 1px solid rgba(82,183,136,0.2);
  border-radius: 4px;
  padding: 3px 8px;
}

/* ─────────────────────────────────────────
   8. PROYECTOS
───────────────────────────────────────── */
.projects {
  background: var(--cream);
  padding: var(--section-py) 0;
}

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

.project-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(27,67,50,0.08);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(27,67,50,0.14);
}

.project-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.project-img svg {
  width: 100%;
  height: 100%;
  display: block;
}

.project-tags {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  display: flex;
  gap: 6px;
}

.project-tag {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.project-tag--status {
  background: var(--green-dark);
  color: var(--cream);
}
.project-tag--type {
  background: rgba(27,67,50,0.8);
  color: var(--green-light);
}

.project-body { padding: 1.5rem; }

.project-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--green-dark);
  line-height: 1.35;
  margin-bottom: 1rem;
}

.project-stats {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.project-stat {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 300;
  color: #5a7a62;
}
.project-stat strong { font-weight: 500; color: var(--green-dark); }

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--cream-dark);
  padding-top: 1rem;
}

.project-link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--green-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.project-link:hover { gap: 8px; }
.project-link .arrow { transition: transform 0.2s; }
.project-link:hover .arrow { transform: translateX(3px); }

/* Map placeholder */
.map-placeholder {
  border: 2px dashed rgba(82,183,136,0.35);
  background: rgba(82,183,136,0.03);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.map-placeholder__title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  color: var(--green-dark);
}

.map-placeholder__sub {
  font-size: 13px;
  font-weight: 300;
  color: rgba(27,67,50,0.5);
  max-width: 42ch;
  line-height: 1.6;
}

/* ─────────────────────────────────────────
   9. CONTACTO — full-bleed 2-column
───────────────────────────────────────── */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 680px;
}

/* Left column */
.contact-left {
  background: var(--white);
}
.contact-left__inner {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  padding-right: 4rem;
  padding-left: max(var(--container-px), calc((100vw - var(--container-max)) / 2 + var(--container-px)));
}

.contact-sub {
  font-size: 15px;
  font-weight: 300;
  color: #4a6741;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 44ch;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row { display: flex; gap: 1rem; }
.form-row--2col > .form-group { flex: 1; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--green-dark);
}
.required { color: var(--green-light); }

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--green-dark);
  background: var(--cream);
  border: 1px solid rgba(27,67,50,0.18);
  border-radius: 8px;
  padding: 0 1rem;
  height: 48px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group textarea {
  height: auto;
  padding: 0.75rem 1rem;
  min-height: 110px;
  resize: vertical;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231b4332' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-light);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(82,183,136,0.15);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229,62,62,0.12);
}

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--cream);
  background: var(--green-dark);
  border-radius: 8px;
  height: 48px;
  width: 100%;
  transition: background 0.2s, transform 0.2s;
  margin-top: 0.25rem;
}
.btn-submit:hover {
  background: var(--green-mid);
  transform: translateY(-1px);
}

.form-notice {
  min-height: 1.4em;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
}
.form-notice.success { color: var(--green-light); }
.form-notice.error   { color: #e53e3e; }

/* Right column */
.contact-right {
  background: var(--green-dark);
  padding: var(--section-py) 4rem;
}

.contact-company {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--cream);
  line-height: 1.2;
}

.contact-tagline {
  font-style: italic;
  font-size: 14px;
  font-weight: 300;
  color: var(--green-light);
  margin-top: 0.4rem;
  margin-bottom: 2rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.contact-info-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 300;
  color: rgba(248,245,239,0.82);
}
.contact-link {
  color: rgba(248,245,239,0.82);
  transition: color 0.2s;
}
.contact-link:hover { color: var(--green-light); }
.muted { opacity: 0.45; font-style: italic; }

.contact-divider {
  border: none;
  border-top: 1px solid rgba(82,183,136,0.15);
  margin: 2rem 0;
}

.contact-certs-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(248,245,239,0.4);
  margin-bottom: 0.75rem;
}

.contact-certs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cert-pill {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--green-light);
  border: 1px solid rgba(82,183,136,0.3);
  background: rgba(82,183,136,0.10);
  border-radius: 999px;
  padding: 3px 10px;
}

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

.contact-num {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.contact-num__value {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--green-light);
  line-height: 1;
}
.contact-num__label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(248,245,239,0.4);
}

/* ─────────────────────────────────────────
   10. FOOTER
───────────────────────────────────────── */
.footer {
  background: var(--green-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid rgba(82,183,136,0.12);
}

/* Brand column */
.footer-company-name {
  font-size: 13px;
  font-weight: 400;
  color: rgba(248,245,239,0.6);
  margin-bottom: 0.3rem;
}
.footer-tagline {
  font-style: italic;
  font-size: 13px;
  font-weight: 300;
  color: var(--green-light);
  margin-bottom: 0.4rem;
}
.footer-region {
  font-size: 12px;
  color: rgba(248,245,239,0.4);
  margin-bottom: 1rem;
}
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-badge {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  border-radius: 4px;
  padding: 3px 8px;
  border: 1px solid;
}
.footer-badge--green {
  background: rgba(82,183,136,0.12);
  color: var(--green-light);
  border-color: rgba(82,183,136,0.2);
}
.footer-badge--gold {
  background: rgba(212,160,23,0.12);
  color: var(--yellow);
  border-color: rgba(212,160,23,0.25);
}

/* Nav column */
.footer-col-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(248,245,239,0.4);
  margin-bottom: 1.25rem;
}

.footer-nav ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a {
  font-size: 14px;
  font-weight: 300;
  color: rgba(248,245,239,0.7);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--cream); }

/* Contact column */
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 300;
  color: rgba(248,245,239,0.7);
}
.footer-contact a {
  color: rgba(248,245,239,0.7);
  transition: color 0.2s;
}
.footer-contact a:hover { color: var(--cream); }

/* Footer bottom bar */
.footer-bottom {
  background: var(--green-darker);
  padding: 1.25rem 0;
}

.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-bottom__inner > span {
  font-size: 12px;
  font-weight: 300;
  color: rgba(248,245,239,0.4);
}

.footer-bottom-certs {
  display: flex;
  gap: 1rem;
}
.footer-bottom-certs span {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
}
.footer-bottom-certs span:nth-child(1) { color: rgba(82,183,136,0.65); }
.footer-bottom-certs span:nth-child(2) { color: rgba(212,160,23,0.65); }

/* ─────────────────────────────────────────
   11. RESPONSIVE — TABLET (≤ 1024px)
───────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-py: 5rem; }

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

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

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .contact-left__inner {
    padding-right: 2.5rem;
    padding-left: var(--container-px);
  }
  .contact-right { padding: var(--section-py) 2.5rem; }
}

/* ─────────────────────────────────────────
   12. RESPONSIVE — MOBILE (< 768px)
───────────────────────────────────────── */
@media (max-width: 767px) {
  :root { --section-py: 4rem; }

  /* Navbar */
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-headline { font-size: clamp(2rem, 8vw, 2.5rem); }
  .hero-sub { font-size: 15px; }
  .hero-ctas { flex-direction: column; align-items: center; text-align: center; }
  .btn-primary, .btn-ghost { width: auto; }

  .metrics-grid {
  padding-inline: var(--container-px); grid-template-columns: 1fr 1fr; }
  .metric + .metric::before { display: none; }
  .metric:nth-child(2n)::before { content: none; }
  .metric:nth-child(3)::before,
  .metric:nth-child(4)::before {
    display: block;
    top: 0;
    left: 20%;
    right: 20%;
    bottom: auto;
    width: auto;
    height: 1px;
    background: rgba(82,183,136,0.15);
  }

  /* Certificaciones */
  .certs-row { gap: 0.625rem; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .valores-grid { grid-template-columns: 1fr; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact { grid-template-columns: 1fr; }
  .contact-left__inner {
    padding: 4rem var(--container-px);
  }
  .contact-right { padding: 3rem var(--container-px); }
  .form-row--2col { flex-direction: column; }
  .contact-numbers { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom__inner { flex-direction: column; text-align: center; gap: 0.5rem; }
  .footer-bottom-certs { justify-content: center; }

  /* Section titles */
  .section-title { font-size: 2rem; }
}

/* ─────────────────────────────────────────
   13. UTILITIES & FIXES
───────────────────────────────────────── */

/* Scroll padding for sticky nav — prevents sections hiding under navbar */
html { scroll-padding-top: var(--nav-h); }

/* Selection color */
::selection {
  background: var(--green-light);
  color: var(--green-dark);
}

/* About section header should be left-aligned (it's inside the left column) */
.about .section-title { text-align: left; }
.about .eyebrow { text-align: left; }

/* Contact section title left-aligned */
.contact-left__inner .section-title { text-align: left; }
.contact-left__inner .eyebrow { text-align: left; }

/* Improve footer contact link color — was barely readable */
.footer-contact a { color: rgba(248,245,239,0.75); }
.footer-contact a:hover { color: var(--cream); }

/* Placeholder text color — improve contrast */
::placeholder { color: rgba(27,67,50,0.35); }

/* Select dropdown — better touch target on mobile */
@media (max-width: 767px) {
  .form-group select { height: 52px; }
  .form-group input  { height: 52px; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Print — hide nav and interactive elements */
@media print {
  #navbar, .hamburger, .hero-ctas, .btn-submit, .hero-bg { display: none; }
  body { background: #fff; color: #000; }
  .hero { min-height: auto; padding: 2rem 0; }
  .hero-headline, .section-title { color: #000; }
  .services { background: #f5f5f5; }
  .service-title, .service-list li { color: #000; }
  .footer { background: #f5f5f5; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 11px; }
  a[href^="#"]::after, a[href^="mailto"]::after { content: none; }
}

/* ─────────────────────────────────────────
   14. PERFORMANCE & LOADING
───────────────────────────────────────── */

/* Prevent layout shift while fonts load */
.hero-headline,
.section-title,
.service-title,
.project-title,
.contact-company,
.footer-tagline {
  font-display: swap;
}
