/* ===== Enfoque Ambiental — Landing oficial ===== */
html, body { margin: 0; padding: 0; }
body { font-family: 'Montserrat', system-ui, sans-serif; background: #F5F5F0; overflow-x: hidden; }
#root { }

.ea-root {
  --navy: #0B1D2E;
  --green: #4CAF50;
  --green-d: #3E8E41;
  --gray: #6B7280;
  --bg: #FFFFFF;
  --bg-soft: #F7F5EE;
  --line: #E5E5DC;

  background: var(--bg);
  color: var(--navy);
  font-family: 'Montserrat', system-ui, sans-serif;
  overflow-x: hidden;
}
.ea-root * { box-sizing: border-box; }

/* Common */
.ea-kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  color: var(--gray); text-transform: uppercase; margin-bottom: 14px;
  display: inline-block;
}
.green-kicker { color: var(--green); }
.ea-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 24px; font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  font-family: 'Montserrat', sans-serif;
}
.ea-btn-dark { background: var(--navy); color: #fff; }
.ea-btn-dark:hover { background: var(--green); transform: translateX(2px); }
.ea-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 12px;
}

/* ============ NAV ============ */
.ea-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  isolation: isolate;
}
.ea-nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px; gap: 28px;
}
.ea-nav-mid { display: flex; gap: 30px; }
.ea-nav-mid a {
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
  color: var(--navy); text-decoration: none;
  padding: 6px 0; position: relative; transition: color 0.2s;
}
.ea-nav-mid a:hover { color: var(--green); }
.ea-nav-mid a.active { color: var(--green); }
.ea-nav-mid a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--green);
}
.ea-lang {
  background: none; border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px;
  font-family: 'Montserrat', sans-serif; font-size: 11px;
  color: var(--gray); cursor: pointer;
  display: flex; gap: 6px; align-items: center;
}
.ea-lang .act { color: var(--navy); font-weight: 700; }
.ea-lang .sl { opacity: 0.4; }

/* Hamburger button */
.ea-hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px; width: 36px; height: 36px;
}
.ea-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: all 0.2s;
}

/* Mobile dropdown nav */
.ea-nav-mobile {
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: 16px 20px 20px;
  display: flex; flex-direction: column; gap: 4px;
  z-index: 49;
  box-shadow: 0 12px 30px rgba(11,29,46,0.1);
}
.ea-nav-mobile a {
  font-size: 13px; font-weight: 600; letter-spacing: 1.2px;
  color: var(--navy); text-decoration: none;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}
.ea-nav-mobile a:last-child { border-bottom: none; }
.ea-nav-mobile a:hover { color: var(--green); }

@media (max-width: 980px) {
  .ea-nav-mid { display: none; }
  .ea-nav-inner { padding: 14px 20px; }
  .ea-hamburger { display: flex; }
  .ea-nav-phone { display: none; }
}
@media (max-width: 600px) {
  .ea-nav-phone { display: none !important; }
}

/* ============ HERO ============ */
.ea-hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ea-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 115%;
  object-fit: cover; object-position: center;
  top: -7%;
}
.ea-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(11,29,46,0.92) 0%,
    rgba(11,29,46,0.70) 55%,
    rgba(11,29,46,0.18) 100%
  );
}
.ea-hero-content {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto;
  padding: 120px 40px;
  width: 100%;
  display: flex; align-items: center; gap: 28px;
}
.ea-hero-side-bar {
  width: 4px; height: 80px;
  background: var(--green); flex-shrink: 0;
}
.ea-hero-text { max-width: 620px; }
.ea-hero-text h1 {
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.5px;
  margin: 0 0 24px; color: #fff;
}
.ea-hero-text h1 .green { color: var(--green); }
.ea-hero-text p {
  font-size: 15px; line-height: 1.7;
  color: rgba(255,255,255,0.8);
  max-width: 460px; margin: 0 0 36px;
}
.ea-btn-hero { background: var(--green); color: #fff; }
.ea-btn-hero:hover { background: #fff; color: var(--navy); transform: translateX(2px); }
.ea-btn-hero .ea-arrow { background: rgba(255,255,255,0.25); }

@media (max-width: 980px) {
  .ea-hero { min-height: 520px; }
  .ea-hero-content { padding: 80px 24px; gap: 16px; }
  .ea-hero-side-bar { display: none; }
}
@media (max-width: 600px) {
  .ea-hero { min-height: 420px; }
  .ea-hero-content { padding: 60px 20px; }
}

/* ============ SERVICES ============ */
.ea-serv {
  max-width: 1280px; margin: 0 auto;
  padding: 80px 40px 60px;
  text-align: center;
}
.ea-serv-head { margin-bottom: 60px; }
.ea-serv-head h2 {
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 600;
  line-height: 1.3; margin: 0; color: var(--navy);
}
.ea-serv-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.ea-serv-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 16px 8px;
  transition: transform 0.3s;
}
.ea-serv-card:hover { transform: translateY(-4px); }
.ea-serv-ic { margin-bottom: 18px; }
.ea-serv-card h3 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.8px;
  color: var(--navy); text-transform: uppercase; margin: 0 0 12px;
  line-height: 1.4;
}
.ea-serv-card p {
  font-size: 11px; line-height: 1.55; color: var(--gray);
  margin: 0; max-width: 180px;
}

@media (max-width: 980px) {
  .ea-serv-grid { grid-template-columns: repeat(3, 1fr); }
  .ea-serv { padding: 60px 24px 40px; }
}
@media (max-width: 600px) {
  .ea-serv-grid { grid-template-columns: 1fr 1fr; }
}

/* ============ EXPERIENCE (dark) ============ */
.ea-exp {
  background: var(--navy); color: #fff;
  padding: 70px 40px;
}
.ea-exp-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px;
  align-items: center;
}
.ea-exp-text h2 {
  font-size: clamp(24px, 2.4vw, 30px); font-weight: 600;
  line-height: 1.35; margin: 0 0 18px;
}
.ea-exp-text p {
  font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.7);
  margin: 0;
}
.ea-exp-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.ea-exp-stat {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 16px 8px;
}
.ea-exp-stat-ic { margin-bottom: 10px; }
.ea-exp-stat-num {
  font-size: 36px; font-weight: 700; color: #fff;
  letter-spacing: -1px; line-height: 1; margin-bottom: 8px;
}
.ea-exp-stat-l {
  font-size: 10px; font-weight: 600; letter-spacing: 1.2px;
  color: rgba(255,255,255,0.7); line-height: 1.4;
}

@media (max-width: 980px) {
  .ea-exp-grid { grid-template-columns: 1fr; gap: 32px; }
  .ea-exp-stats { grid-template-columns: 1fr 1fr; }
  .ea-exp { padding: 50px 24px; }
}

/* ============ PROJECTS — marquee deslizante ============ */
.ea-proj {
  padding: 80px 0;
  background: var(--bg-soft);
  overflow: hidden;
}
.ea-proj-head {
  max-width: 1280px; margin: 0 auto 36px;
  padding: 0 40px;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px;
}
.ea-proj-head h2 {
  font-size: clamp(24px, 2.6vw, 32px); font-weight: 700;
  line-height: 1.2; margin: 0; color: var(--navy);
}
.ea-proj-count {
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  color: var(--green); text-transform: uppercase;
  border: 1.5px solid var(--green); padding: 8px 16px; border-radius: 999px;
  white-space: nowrap;
}

.ea-mq-wrap {
  width: 100%; overflow: hidden;
  padding: 10px 0;
  cursor: grab;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 80px, #000 calc(100% - 80px), transparent);
          mask-image: linear-gradient(to right, transparent, #000 80px, #000 calc(100% - 80px), transparent);
  user-select: none;
  -webkit-user-select: none;
}
.ea-mq-track {
  display: flex; gap: 18px;
  width: max-content;
  will-change: transform;
}

.ea-mq-card {
  flex: 0 0 auto;
  width: 320px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 4px;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.ea-mq-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(11,29,46,0.08);
}
.ea-mq-top {
  display: flex; justify-content: space-between; align-items: center;
}
.ea-mq-cat {
  font-size: 9px; font-weight: 700; letter-spacing: 1.2px;
  color: var(--green); text-transform: uppercase;
  background: rgba(76,175,80,0.1);
  padding: 4px 8px; border-radius: 3px;
}
.ea-mq-date {
  font-size: 11px; font-weight: 600; color: var(--gray);
  letter-spacing: 0.5px;
}
.ea-mq-card h4 {
  font-size: 13px; font-weight: 700; line-height: 1.4;
  color: var(--navy); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.ea-mq-entity {
  font-size: 11px; color: var(--gray);
  line-height: 1.4; margin-top: auto;
  padding-top: 10px; border-top: 1px dashed var(--line);
  display: flex; gap: 6px; align-items: flex-start;
}
.ea-mq-pin { color: var(--green); font-size: 8px; line-height: 1.6; }

@media (max-width: 980px) {
  .ea-proj { padding: 60px 0; }
  .ea-proj-head { padding: 0 24px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .ea-mq-card { width: 280px; padding: 16px; }
}

/* ============ CTA strip ============ */
.ea-cta {
  background: var(--navy);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ea-cta::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(76,175,80,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(76,175,80,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}
.ea-cta-text {
  position: relative; z-index: 1;
  max-width: 680px; margin: 0 auto;
}
.ea-cta-text h2 {
  font-size: clamp(28px, 3vw, 42px); font-weight: 700;
  line-height: 1.2; margin: 0 0 28px; color: #fff;
}
.ea-cta-text .ea-btn-dark {
  background: var(--green); color: #fff;
  font-size: 13px; padding: 16px 28px;
}
.ea-cta-text .ea-btn-dark:hover { background: #fff; color: var(--navy); }
.ea-cta-text .green-kicker { color: var(--green); }

@media (max-width: 900px) {
  .ea-cta { padding: 60px 24px; }
}

/* ============ FOOTER ============ */
.ea-foot {
  background: var(--navy); color: #fff;
  padding: 60px 40px 24px; margin-top: 0;
}
.ea-foot-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.3fr; gap: 40px;
  padding-bottom: 32px;
}
.ea-foot-desc {
  font-size: 12px; color: rgba(255,255,255,0.7);
  line-height: 1.6; margin: 16px 0 24px; max-width: 240px;
}
.ea-foot-social { display: flex; gap: 10px; }
.ea-foot-social span {
  width: 32px; height: 32px; border-radius: 4px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; transition: background 0.2s;
}
.ea-foot-social span:hover { background: var(--green); }
.ea-foot h5 {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--green); margin: 0 0 18px; text-transform: uppercase;
}
.ea-foot a {
  display: block; font-size: 12px; color: rgba(255,255,255,0.75);
  text-decoration: none; padding: 4px 0; transition: color 0.2s;
}
.ea-foot a:hover { color: var(--green); }
.ea-foot-c {
  font-size: 12px; color: rgba(255,255,255,0.75);
  padding: 5px 0; line-height: 1.6;
  display: flex; gap: 8px; align-items: flex-start;
}
.ea-foot-ic { color: var(--green); font-size: 13px; flex-shrink: 0; }
.ea-foot-c .dim { color: rgba(255,255,255,0.5); }
.ea-foot-bottom {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between;
  font-size: 11px; color: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px;
}
.ea-foot-bottom a { display: inline; color: rgba(255,255,255,0.5); padding: 0; }

@media (max-width: 980px) {
  .ea-foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ea-foot { padding: 50px 24px 24px; }
  .ea-foot-bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 600px) {
  .ea-foot-grid { grid-template-columns: 1fr; }
}

/* ============ GEOPORTAL ============ */
.ea-geo {
  padding: 80px 0;
  background: #060f1a;
  overflow: hidden;
}
.ea-geo-head {
  max-width: 1280px; margin: 0 auto 28px;
  padding: 0 40px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.ea-geo-head h2 {
  font-size: clamp(24px, 2.6vw, 32px); font-weight: 700;
  color: #fff; margin: 0 0 8px; line-height: 1.2;
}
.ea-geo-head p {
  font-size: 13px; color: rgba(255,255,255,0.5); margin: 0; max-width: 420px;
}
.ea-geo-counter { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.ea-geo-counter-n {
  font-size: 52px; font-weight: 800; color: var(--green);
  line-height: 1; letter-spacing: -2px;
}
.ea-geo-counter-l {
  font-size: 10px; font-weight: 600; letter-spacing: 1.2px;
  color: rgba(255,255,255,0.4); text-transform: uppercase; margin-top: 4px;
}

.ea-geo-filters {
  max-width: 1280px; margin: 0 auto 24px;
  padding: 0 40px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.ea-geo-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.55);
  font-size: 11px; font-weight: 600; letter-spacing: 0.4px;
  cursor: pointer; transition: all 0.18s;
  font-family: 'Montserrat', sans-serif;
}
.ea-geo-pill:hover { background: rgba(255,255,255,0.10); color: #fff; }
.ea-geo-pill.active { background: rgba(76,175,80,0.15); border-color: var(--green); color: #fff; }
.ea-geo-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.ea-geo-body {
  max-width: 1280px; margin: 0 auto;
  padding: 0 40px;
  display: grid; grid-template-columns: 1fr 300px; gap: 20px;
  align-items: start;
}
.ea-geo-map {
  height: 500px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.ea-geo-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 6px; padding: 22px;
  position: relative; min-height: 300px;
}
.ea-geo-close {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,0.08); border: none; color: #fff;
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  font-size: 18px; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; line-height: 1;
}
.ea-geo-close:hover { background: rgba(255,255,255,0.18); }
.ea-geo-panel-cat {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
}
.ea-geo-panel h3 {
  font-size: 15px; font-weight: 700; color: #fff;
  margin: 10px 0 12px; line-height: 1.4;
}
.ea-geo-panel > p {
  font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.65; margin: 0 0 18px;
}
.ea-geo-meta > div {
  display: flex; flex-direction: column; gap: 3px;
  padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 12px; color: rgba(255,255,255,0.75);
}
.ea-geo-meta > div span {
  font-size: 9px; font-weight: 700; letter-spacing: 1.5px;
  color: rgba(255,255,255,0.35); text-transform: uppercase;
}

/* Legend panel */
.ea-geo-legend-title {
  font-size: 9px; font-weight: 700; letter-spacing: 1.8px;
  color: rgba(255,255,255,0.35); text-transform: uppercase;
  margin: 0 0 14px;
}
.ea-geo-leg-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: rgba(255,255,255,0.65);
  padding: 7px 6px; width: 100%; background: none; border: none;
  border-radius: 4px; cursor: pointer; text-align: left;
  transition: background 0.15s, color 0.15s;
  font-family: 'Montserrat', sans-serif;
}
.ea-geo-leg-row:hover { background: rgba(255,255,255,0.06); color: #fff; }
.ea-geo-leg-row.sel { background: rgba(255,255,255,0.08); color: #fff; }
.ea-geo-leg-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ea-geo-leg-count {
  margin-left: auto; font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,0.3); letter-spacing: 0.5px;
}
.ea-geo-hint {
  font-size: 11px; color: rgba(255,255,255,0.25); line-height: 1.6;
  margin: 16px 0 0; border-top: 1px solid rgba(255,255,255,0.07); padding-top: 14px;
}

/* Leaflet marker override */
.geo-marker {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2.5px solid;
  cursor: pointer; transition: transform 0.2s, opacity 0.3s;
  box-shadow: 0 0 6px currentColor, 0 2px 8px rgba(0,0,0,0.5);
}
.leaflet-marker-icon:hover .geo-marker { transform: scale(1.6); }

/* Leaflet dark overrides */
.ea-geo-map .leaflet-container { background: #060f1a; font-family: 'Montserrat', sans-serif; }
.ea-geo-map .leaflet-control-zoom a {
  background: rgba(6,15,26,0.85) !important;
  color: rgba(255,255,255,0.7) !important;
  border-color: rgba(255,255,255,0.12) !important;
}
.ea-geo-map .leaflet-control-zoom a:hover { color: #fff !important; }
.ea-geo-map .leaflet-control-attribution {
  background: rgba(0,0,0,0.55) !important;
  color: rgba(255,255,255,0.25) !important;
  font-size: 9px !important;
}
.ea-geo-map .leaflet-control-attribution a { color: rgba(255,255,255,0.35) !important; }

@media (max-width: 980px) {
  .ea-geo { padding: 60px 0; }
  .ea-geo-head { padding: 0 24px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .ea-geo-counter { align-items: flex-start; }
  .ea-geo-filters { padding: 0 24px; }
  .ea-geo-body { grid-template-columns: 1fr; padding: 0 24px; }
  .ea-geo-map { height: 360px; }
}

/* Logo styles */
.ea-logo svg { display: block; }

/* WhatsApp float */
.wa-float {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  transition: transform 0.2s;
  z-index: 100;
}
.wa-float:hover { transform: scale(1.08); }
