:root {
  --navy: #073b63;
  --navy-2: #0a4b7c;
  --green: #2f9b5f;
  --green-2: #49b978;
  --ink: #102337;
  --muted: #5f7180;
  --line: #dbe6ed;
  --soft: #f2f8f6;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(7, 59, 99, .16);
  --radius: 26px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 12px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}
.narrow { max-width: 850px; text-align: center; }
.section-pad { padding: 88px 0; }
.soft-bg { background: linear-gradient(180deg, #f7fbfb 0%, #edf7f4 100%); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid rgba(219, 230, 237, .9);
}
.navbar {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
  color: var(--navy);
  letter-spacing: -.02em;
}
.brand img {
  width: 58px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  font-weight: 850;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
}
.nav-links a:hover,
.nav-links a:focus {
  color: var(--navy);
  background: var(--soft);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--navy);
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  border-radius: 2px;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(47, 155, 95, .15), transparent 32%),
    radial-gradient(circle at 92% 18%, rgba(7, 59, 99, .17), transparent 34%),
    linear-gradient(135deg, #eef9f6 0%, #ffffff 45%, #edf5fb 100%);
}
.hero::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  right: -180px;
  bottom: -190px;
  border-radius: 50%;
  background: rgba(47, 155, 95, .14);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 58px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  color: var(--navy);
  font-size: clamp(2.45rem, 5vw, 5.1rem);
  line-height: .98;
  letter-spacing: -.065em;
  margin-bottom: 24px;
}
h2 {
  color: var(--navy);
  font-size: clamp(2rem, 3.5vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -.045em;
  margin-bottom: 18px;
}
h3 {
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 12px;
}
.hero-subtitle,
.narrow p,
.section-intro p:last-child,
.copy-block p,
.solution-card p,
.feature-card p,
.pest-card p,
.why-item p,
.info-card p,
.local-card p,
.cta-copy p,
.contact-cards p,
figcaption {
  color: var(--muted);
}
.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.34rem);
  max-width: 680px;
  margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 950;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--navy));
  box-shadow: 0 14px 34px rgba(47, 155, 95, .25);
}
.btn-ghost {
  color: var(--navy);
  background: rgba(255,255,255,.75);
  border-color: var(--line);
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.trust-list li {
  color: var(--navy);
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 850;
  font-size: .92rem;
}
.hero-visual { position: relative; display: grid; gap: 18px; }
.logo-panel,
.visual-card,
.solution-card,
.feature-card,
.pest-card,
.why-item,
.info-card,
.table-wrap,
.contact-cards article {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(219, 230, 237, .9);
  box-shadow: var(--shadow);
}
.logo-panel {
  border-radius: var(--radius);
  padding: 18px;
}
.logo-panel img {
  width: 100%;
  max-height: 285px;
  object-fit: contain;
  margin: auto;
}
.visual-card {
  position: relative;
  border-radius: var(--radius);
  padding: 12px;
  overflow: hidden;
  transform: translateX(-22px);
}
.visual-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 10px);
}
.badge {
  position: absolute;
  left: 28px;
  bottom: 28px;
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(7, 59, 99, .25);
}

.split-grid,
.services-layout,
.two-col,
.results-grid,
.contact-grid {
  display: grid;
  gap: 44px;
  align-items: center;
}
.split-grid { grid-template-columns: minmax(0, .95fr) minmax(320px, .85fr); }
.services-layout { grid-template-columns: minmax(320px, .84fr) minmax(0, 1fr); }
.two-col { grid-template-columns: minmax(320px, .95fr) minmax(0, 1fr); }
.results-grid { grid-template-columns: minmax(260px, .55fr) minmax(0, 1fr); }
.contact-grid { grid-template-columns: minmax(0, .8fr) minmax(320px, 1fr); }

.solution-card,
.info-card,
.feature-card,
.pest-card,
.why-item {
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
}
.solution-card { border-top: 7px solid var(--navy); }
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}
.mini-grid span {
  background: var(--soft);
  border-radius: 18px;
  padding: 13px 10px;
  text-align: center;
  font-weight: 950;
  color: var(--green);
}
.section-heading { max-width: 780px; margin-bottom: 34px; }
.cards-2,
.cards-3 {
  display: grid;
  gap: 22px;
}
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.info-card,
.feature-card,
.pest-card,
.why-item {
  transition: transform .25s ease, border-color .25s ease;
}
.info-card:hover,
.feature-card:hover,
.pest-card:hover,
.why-item:hover {
  transform: translateY(-6px);
  border-color: rgba(47, 155, 95, .34);
}
.service-list { display: grid; gap: 16px; }
.icon,
.pest-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--soft);
  color: var(--green);
  font-size: 1rem;
  font-weight: 950;
  margin-bottom: 18px;
}
.pest-card { text-align: center; }
.pest-icon { margin-inline: auto; color: var(--navy); }
.image-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  padding: 12px;
  border: 1px solid var(--line);
  margin: 0;
}
.image-frame img {
  border-radius: calc(var(--radius) - 12px);
  min-height: 310px;
  width: 100%;
  object-fit: cover;
}
figcaption {
  font-size: .9rem;
  margin-top: 10px;
  font-weight: 700;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}
.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--ink);
  font-weight: 850;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--navy));
}
.metric {
  color: var(--navy);
  text-align: center;
}
.metric span {
  display: block;
  font-weight: 950;
  font-size: clamp(5rem, 12vw, 9rem);
  line-height: .82;
  letter-spacing: -.09em;
}
.metric p {
  color: var(--green);
  font-size: 1.15rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.impact-graph {
  margin-top: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
}
.impact-graph svg { width: 100%; height: auto; overflow: visible; }
.impact-graph text { font-size: 15px; fill: var(--muted); font-weight: 800; }
.impact-graph small { display: block; color: var(--muted); font-weight: 800; margin-top: 8px; }
.table-wrap {
  border-radius: var(--radius);
  overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; min-width: 660px; background: var(--white); }
th {
  text-align: left;
  background: var(--navy);
  color: var(--white);
  padding: 22px;
  font-size: .94rem;
}
td { padding: 20px 22px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--muted); }
tbody tr:nth-child(even) { background: #f1f5f8; }
.local {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.local-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(7,59,99,.42), rgba(7,59,99,.65)), url('../assets/images/paisaje-la-paz-bcs.webp') center/cover no-repeat;
}
.local-card {
  position: relative;
  z-index: 1;
  max-width: 800px;
  background: rgba(7,59,99,.82);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 56px);
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow);
}
.local-card h2,
.local-card p { color: var(--white); }
.local-card .eyebrow { color: #a8edc3; }
.final-cta {
  background:
    radial-gradient(circle at top left, rgba(47,155,95,.15), transparent 30%),
    linear-gradient(135deg, var(--navy), #052b47);
  color: var(--white);
}
.final-cta h2,
.final-cta h3,
.final-cta p { color: var(--white); }
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.contact-cards article {
  border-radius: 22px;
  padding: 24px 16px;
  text-align: center;
  box-shadow: none;
}
.contact-cards span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: var(--soft);
  color: var(--green);
  font-size: 1.2rem;
  font-weight: 950;
}
.contact-cards h3 { font-size: 1.05rem; }
.contact-cards p { color: var(--muted); margin: 0; font-weight: 800; }
.site-footer {
  background: #041d30;
  color: var(--white);
  padding: 26px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-inner p { margin: 0; font-weight: 800; }
.footer-inner a { color: #a8edc3; font-weight: 900; }
.floating-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--navy));
  font-size: 1.35rem;
  box-shadow: 0 16px 35px rgba(7, 59, 99, .28);
}

/* Importante para Cloudflare: el contenido queda visible aun si JavaScript no carga. */
.reveal { opacity: 1; transform: none; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Animación ligera sin ocultar contenido, para evitar pantalla en blanco en Cloudflare. */
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .hero-grid,
  .split-grid,
  .services-layout,
  .two-col,
  .results-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .cards-3,
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards-2 { grid-template-columns: 1fr; }
  .visual-card { transform: none; }
  .section-pad { padding: 74px 0; }
}

@media (max-width: 720px) {
  .container,
  .navbar { width: min(100% - 28px, var(--max)); }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 82px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: rgba(255,255,255,.98);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 14px 16px; }
  .brand span { font-size: .92rem; }
  .brand img { width: 50px; }
  .section-pad { padding: 60px 0; }
  .hero { padding-top: 24px; }
  .cards-3,
  .contact-cards,
  .mini-grid {
    grid-template-columns: 1fr;
  }
  .logo-panel { padding: 14px; }
  .visual-card img { height: 230px; }
  .metric { text-align: left; }
  .local { min-height: 470px; }
  .footer-inner { display: grid; }
  h1 { font-size: clamp(2.3rem, 13vw, 3.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-ready .reveal,
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover,
  .info-card:hover,
  .feature-card:hover,
  .pest-card:hover,
  .why-item:hover { transform: none; }
}
