/* ============================================================
   BIOSFERA — CONSULTORÍA AMBIENTAL
   biosferapy.com — CSS Global
   AranduCAD — Mayo 2026
   ============================================================ */

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

/* ── VARIABLES ── */
:root {
  --g1:        #2ECC40;
  --g2:        #1A8A2A;
  --g3:        #0D5C1A;
  --g4:        #A8E063;
  --g5:        #E8F5E9;
  --dark:      #060E06;
  --dark2:     #0C1A0C;
  --dark3:     #132213;
  --dark4:     #1A2E1A;
  --text:      #1A2A1A;
  --muted:     #5A7A5A;
  --border:    #D4E8D4;
  --light:     #F4FBF4;
  --white:     #FFFFFF;
  --font-h:    'Playfair Display', serif;
  --font-b:    'DM Sans', sans-serif;
  --nav-h:     76px;
  --max-w:     1200px;
  --pad-x:     60px;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── UTILITIES ── */
.inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--g1);
  margin-bottom: 16px;
}
.tag::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--g1);
  display: inline-block;
  opacity: 0.6;
}
.tag.light { color: var(--g4); }
.tag.light::before { background: var(--g4); }

.green-bar {
  width: 48px;
  height: 3px;
  background: var(--g1);
  margin: 20px 0 32px;
}

/* ── BOTONES ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 2px;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn-green {
  background: var(--g1);
  color: var(--white);
  border: 2px solid var(--g1);
}
.btn-green:hover { background: var(--g2); border-color: var(--g2); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline-white:hover { border-color: var(--g1); color: var(--g1); }
.btn-outline-dark {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-outline-dark:hover { border-color: var(--g1); color: var(--g1); }

/* ── FADE IN ── */
.fade {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.fade.on { opacity: 1; transform: translateY(0); }
.fade-d1 { transition-delay: 0.1s; }
.fade-d2 { transition-delay: 0.2s; }
.fade-d3 { transition-delay: 0.3s; }

/* ============================================================
   NAVBAR
   ============================================================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  background: rgba(6,14,6,0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(46,204,64,0.1);
  transition: height 0.3s, border-color 0.3s, background 0.3s;
}
#nav.scrolled {
  height: 62px;
  background: rgba(6,14,6,0.98);
  border-bottom-color: rgba(46,204,64,0.25);
}
.nav-logo img { height: 46px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--g1);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--g1); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  background: var(--g1) !important;
  color: var(--white) !important;
  padding: 9px 22px !important;
  font-weight: 700 !important;
  border-radius: 2px !important;
  letter-spacing: 1px !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--g2) !important; }
.nav-cta::after { display: none !important; }

/* Hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.25s;
}
.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); }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--dark2);
  border-bottom: 1px solid rgba(46,204,64,0.15);
  padding: 20px var(--pad-x);
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--g1); }
.nav-mobile a:last-child {
  border-bottom: none;
  margin-top: 10px;
  text-align: center;
  background: var(--g1);
  color: var(--white) !important;
  padding: 14px;
  border-radius: 2px;
}

/* ============================================================
   HERO INTERNO
   ============================================================ */
.inner-hero {
  height: 400px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: var(--nav-h);
}
.inner-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.inner-hero:hover .inner-hero-bg { transform: scale(1); }
.inner-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6,14,6,0.95) 0%,
    rgba(6,14,6,0.55) 50%,
    rgba(6,14,6,0.2) 100%
  );
}
.inner-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x) 52px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--g1); }
.breadcrumb span { color: var(--g4); }
.inner-hero h1 {
  font-family: var(--font-h);
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 12px;
}
.inner-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  max-width: 500px;
}

/* ============================================================
   SECCIONES
   ============================================================ */
.section { padding: 110px 0; }
.section-dark  { background: var(--dark); }
.section-dark2 { background: var(--dark2); }
.section-dark3 { background: var(--dark3); }
.section-light { background: var(--light); }
.section-white { background: var(--white); }
.section-green { background: var(--g1); }

.sec-title {
  font-family: var(--font-h);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.08;
  margin-bottom: 14px;
}
.sec-title.light { color: var(--white); }
.sec-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
  max-width: 480px;
}
.sec-sub.light { color: rgba(255,255,255,0.55); }

.sec-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  gap: 24px;
  flex-wrap: wrap;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar { background: var(--dark2); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid rgba(46,204,64,0.08);
  transition: background 0.25s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(46,204,64,0.05); }
.stat-n {
  display: block;
  font-family: var(--font-h);
  font-size: 38px;
  font-weight: 700;
  color: var(--g1);
  line-height: 1;
  font-style: italic;
}
.stat-l {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ============================================================
   SOMOS
   ============================================================ */
.somos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}
.somos-img {
  position: relative;
}
.somos-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
/* Decoración orgánica en la imagen */
.somos-img::before {
  content: '';
  position: absolute;
  inset: -12px -12px 12px 12px;
  border: 2px solid rgba(46,204,64,0.2);
  z-index: -1;
}
.somos-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 110px;
  height: 110px;
  background: var(--g1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.somos-badge b {
  font-family: var(--font-h);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  font-style: italic;
  line-height: 1.1;
  display: block;
}
.somos-badge small {
  font-size: 9px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 3px;
  display: block;
}
.somos-text p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 300;
}
.somos-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 28px;
}
.pillar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--light);
  border-left: 3px solid var(--g1);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.2s;
}
.pillar:hover { background: #e0f5e0; }
.pillar::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--g1);
  flex-shrink: 0;
}

/* Stats inline */
.stats-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0;
}
.sbox {
  padding: 18px;
  border-left: 3px solid var(--g1);
  background: var(--light);
}
.sbox .n {
  display: block;
  font-family: var(--font-h);
  font-size: 34px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  font-style: italic;
}
.sbox .l {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  display: block;
}

/* ============================================================
   MISIÓN VISIÓN
   ============================================================ */
.mv-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.mv-card {
  padding: 64px 52px;
  background: var(--dark3);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.mv-card:hover { background: var(--dark4); }
.mv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--g3), var(--g1), var(--g4));
}
.mv-bg-num {
  position: absolute;
  top: 20px; right: 32px;
  font-family: var(--font-h);
  font-size: 110px;
  font-weight: 900;
  color: rgba(46,204,64,0.05);
  line-height: 1;
  font-style: italic;
  pointer-events: none;
}
.mv-icon { font-size: 36px; margin-bottom: 20px; display: block; }
.mv-title {
  font-family: var(--font-h);
  font-size: 34px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  font-style: italic;
}
.mv-text {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  font-weight: 300;
}

/* ============================================================
   SERVICIOS CARDS
   ============================================================ */
.serv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.serv-card {
  background: var(--white);
  padding: 42px 34px;
  border-top: 3px solid transparent;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}
.serv-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 0;
  background: var(--dark);
  transition: height 0.35s var(--ease);
  z-index: 0;
}
.serv-card:hover { border-top-color: var(--g1); }
.serv-card:hover::after { height: 100%; }
.serv-card:hover .sc-num,
.serv-card:hover .sc-title,
.serv-card:hover .sc-list li { color: var(--white); }
.serv-card > * { position: relative; z-index: 1; }
.sc-num {
  display: block;
  font-family: var(--font-b);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--g1);
  margin-bottom: 14px;
  transition: color 0.3s;
}
.sc-icon {
  font-size: 30px;
  margin-bottom: 16px;
  display: block;
  transition: transform 0.3s;
}
.serv-card:hover .sc-icon { transform: scale(1.1); }
.sc-title {
  font-family: var(--font-h);
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.2;
  transition: color 0.3s;
}
.sc-list { padding: 0; }
.sc-list li {
  font-size: 13.5px;
  color: var(--muted);
  padding: 4px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color 0.3s;
}
.sc-list li:last-child { border-bottom: none; }
.sc-list li::before {
  content: '▸';
  color: var(--g1);
  font-size: 9px;
  flex-shrink: 0;
}
.sc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--g1);
  margin-top: 18px;
  transition: gap 0.2s;
}
.sc-link:hover { gap: 10px; }

/* CTA card ancho completo */
.serv-cta {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--dark3), var(--dark2));
  padding: 44px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  border-top: 3px solid var(--g1);
}
.serv-cta-text {
  font-family: var(--font-h);
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  font-style: italic;
  max-width: 560px;
}
.serv-cta-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.45);
  margin-top: 8px;
  font-weight: 300;
}

/* ============================================================
   ORGANISMOS
   ============================================================ */
.org-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(46,204,64,0.06);
}
.org-item {
  background: var(--dark3);
  padding: 36px 24px;
  text-align: center;
  transition: background 0.25s;
}
.org-item:hover { background: var(--dark4); }
.org-badge {
  display: inline-block;
  font-family: var(--font-h);
  font-size: 22px;
  font-weight: 700;
  color: var(--g1);
  font-style: italic;
  margin-bottom: 10px;
}
.org-name {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ============================================================
   GALERÍA FILTRABLE
   ============================================================ */
.gallery-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-btn {
  font-family: var(--font-b);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 9px 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.22s;
}
.filter-btn:hover { border-color: var(--g1); color: var(--g1); }
.filter-btn.active {
  background: var(--g1);
  border-color: var(--g1);
  color: var(--white);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.g-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--dark3);
}
.g-item.hidden { display: none; }
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
  display: block;
}
.g-item:hover img { transform: scale(1.06); }
.g-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6,14,6,0);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  transition: background 0.3s;
}
.g-item:hover .g-overlay { background: rgba(6,14,6,0.6); }
.g-label {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s var(--ease);
}
.g-item:hover .g-label { opacity: 1; transform: translateY(0); }
.g-label span {
  display: inline-block;
  background: var(--g1);
  color: var(--white);
  font-family: var(--font-b);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
}

/* ============================================================
   SERVICIOS DETALLE (página servicios)
   ============================================================ */
.serv-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.serv-num-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.serv-num-badge span:first-child {
  background: var(--g1);
  color: var(--white);
  font-family: var(--font-b);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  letter-spacing: 2px;
}
.serv-box {
  border: 1px solid var(--border);
  padding: 36px;
  background: var(--light);
}
.serv-box-dark {
  border: 1px solid rgba(46,204,64,0.15);
  padding: 36px;
  background: var(--dark3);
}
.serv-box h4,
.serv-box-dark h4 {
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--g1);
  margin-bottom: 18px;
}
.serv-item-list { padding: 0; }
.serv-item-list li {
  font-size: 14px;
  color: var(--muted);
  padding: 7px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 10px;
}
.serv-item-list li:last-child { border-bottom: none; }
.serv-item-list.dark li { color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.05); }
.serv-item-list li::before {
  content: '✓';
  color: var(--g1);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}
.form-wrap {
  width: 100%;
  border: 1px solid rgba(46,204,64,0.15);
  overflow: hidden;
  background: rgba(13,34,13,0.4);
}
.form-wrap iframe {
  width: 100%;
  min-height: 680px;
  border: none;
  display: block;
}
.c-bar {
  width: 48px; height: 3px;
  background: var(--g1);
  margin-bottom: 36px;
}
.c-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.c-ico {
  width: 44px; height: 44px;
  background: rgba(46,204,64,0.08);
  border: 1px solid rgba(46,204,64,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  border-radius: 2px;
}
.c-lbl {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--g4);
  margin-bottom: 4px;
}
.c-val {
  display: block;
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
  line-height: 1.5;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: #030A03;
  padding: 60px var(--pad-x) 28px;
  border-top: 1px solid rgba(46,204,64,0.1);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  margin-bottom: 28px;
}
.footer-logo img { height: 50px; width: auto; margin-bottom: 16px; }
.footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  line-height: 1.75;
  font-weight: 300;
}
.footer-col h4 {
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--g4);
  margin-bottom: 18px;
}
.footer-col ul li {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  padding: 5px 0;
  font-weight: 300;
}
.footer-col ul li a {
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--g1); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.18); }
.footer-credit { font-size: 11px; color: rgba(46,204,64,0.3); }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
#wa {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 998;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s;
  animation: wap 2.5s infinite;
}
#wa:hover { transform: scale(1.1); }
#wa svg { width: 26px; height: 26px; fill: white; }
@keyframes wap {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.38); }
  50%      { box-shadow: 0 4px 32px rgba(37,211,102,0.68); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --pad-x: 40px; }
  .org-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --pad-x: 22px; --nav-h: 64px; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .inner-hero { height: 300px; }
  .inner-hero h1 { font-size: 30px; }

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

  .somos-grid { grid-template-columns: 1fr; gap: 52px; }
  .somos-badge { right: -12px; bottom: -12px; width: 90px; height: 90px; }

  .mv-wrap { grid-template-columns: 1fr; }
  .mv-card { padding: 44px 28px; }

  .serv-grid { grid-template-columns: 1fr; }
  .serv-cta { flex-direction: column; align-items: flex-start; padding: 32px 28px; }

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

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

  .serv-detail { grid-template-columns: 1fr; }
  [style*="order:2"] { order: 2; }

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

  #footer { padding: 44px var(--pad-x) 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }

  .section { padding: 72px 0; }
  .sec-header { flex-direction: column; align-items: flex-start; }
  .somos-pillars { grid-template-columns: 1fr; }
  .stats-inline { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .org-grid { grid-template-columns: 1fr 1fr; }
}
