:root {
  --ink: #102e27;
  --forest: #145b46;
  --leaf: #2c9a64;
  --mist: #eef4ee;
  --cream: #f8f7f1;
  --paper: #fffefa;
  --sage: #d6e7d3;
  --line: rgba(16, 46, 39, .16);
  --muted: #587069;
  /* Acentos y WhatsApp (ajustar aquí la paleta del logo) */
  --accent: #b7e38e;
  --footer: #09241d;
  --wa: #178f4a;
  --wa-dark: #0f7a3d;
  /* Iconos usados como máscara: toman el color del texto del botón */
  --icon-wa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z'/%3E%3C/svg%3E");
  --icon-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
  --icon-tel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
  --display: Georgia, 'Times New Roman', serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 135px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--body);
}

button, input, select, textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

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

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  text-wrap: balance;
}

h1, h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: -60px;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 0 4px 18px #0003;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(16, 46, 39, .07);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1200px, calc(100% - 40px));
  height: 124px;
  margin: auto;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: auto;
  height: 110px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  font-size: 1rem;
  font-weight: 650;
}

.main-nav > a:not(.nav-cta) {
  position: relative;
}

.main-nav > a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: var(--leaf);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}

.main-nav > a:not(.nav-cta):hover::after, .main-nav > a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 0;
  background: none;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--ink);
  transition: transform .25s;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border: 1px solid var(--forest);
  border-radius: 99px;
  font-size: .84rem;
  font-weight: 760;
  cursor: pointer;
  transition: transform .2s, background-color .2s;
}

.button-accent {
  border-color: var(--leaf);
  background: var(--leaf);
  color: var(--mist);
}

.button-accent:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-2px);
}

.button-light {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--forest);
}

.button-light:hover {
  transform: translateY(-2px);
}

/* Botones redondos con icono (WhatsApp, correo y teléfono) */
.wa-button, .contact-btn {
  --icon: var(--icon-wa);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--wa-dark);
  color: #fff;
  transition: transform .2s, background-color .2s;
}

.wa-button::before, .contact-btn::before {
  content: '';
  width: 54%;
  height: 54%;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.wa-button:hover {
  transform: translateY(-2px);
}

.wa-sm {
  width: 46px;
  height: 46px;
}

.wa-lg {
  width: 64px;
  height: 64px;
}

.text-link {
  display: inline-block;
  margin-top: 16px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--forest);
  color: var(--forest);
  font-size: .85rem;
  font-weight: 800;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--forest);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 29px;
  height: 1px;
  background: currentColor;
}

.eyebrow-light {
  color: #d4ebda;
}

.descripcion {
  text-align: justify;
}

.hero {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 670px;
  overflow: hidden;
  color: #fff;
}

.hero-image, .hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  background: url('fondos/fondo1.webp') center 43% / cover no-repeat;
  filter: saturate(.72) contrast(.95);
}

.hero-shade {
  background: linear-gradient(90deg, rgba(5, 28, 23, .91), rgba(9, 45, 35, .68) 38%, rgba(12, 43, 34, .18) 78%), linear-gradient(0deg, rgba(5, 28, 23, .68), transparent 42%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding-top: 62px;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  line-height: 1.1;
}

.hero-logo {
  width: min(440px, 100%);
  height: auto;
  margin-bottom: 18px;
  background: none;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .35));
}

.hero h1 em {
  display: block;
  color: #c4e6b5;
}

.hero-summary {
  max-width: 480px;
  margin-bottom: 31px;
  color: #eff7ed;
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-foot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding: 21px 0;
  border-top: 1px solid #ffffff66;
  color: #e8f4e7;
  font-size: .77rem;
}

.hero-foot p {
  margin: 0;
}

.hero-foot strong {
  margin-right: 9px;
  color: var(--accent);
  font-size: .67rem;
  letter-spacing: .1em;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 126px);
  align-items: center;
  padding-top: 137px;
  padding-bottom: 137px;
}

.about-image {
  height: 520px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--mist);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about h2 {
  margin-bottom: 26px;
  font-size: clamp(2.3rem, 4.2vw, 4.2rem);
}

.about-copy p:not(.eyebrow) {
  max-width: 520px;
  color: var(--muted);
}

.brand-name {
  color: var(--leaf);
  font-weight: 700;
}

.gallery h2, .contact h2 {
  margin-bottom: 0;
  font-size: clamp(2.55rem, 5vw, 5rem);
}

.gallery-heading > p {
  max-width: 430px;
  color: var(--muted);
}

.card {
  position: relative;
  background: var(--paper);
}

.card-img {
  width: 100%;
  height: 250px;
  margin-bottom: 18px;
  border-radius: 18px;
  object-fit: cover;
}

.card-number {
  display: block;
  color: var(--leaf);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.card h3 {
  margin: 10px 0 8px;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: -.04em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: .87rem;
}

.sector-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 70px;
}

.sector-grid .card {
  flex: 0 0 calc((100% - 72px) / 4);
  padding: 14px 14px 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  transition: transform .25s, box-shadow .25s;
}

.sector-grid .card > :not(.card-img) {
  margin-left: 12px;
  margin-right: 12px;
}

.sector-grid .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(16, 46, 39, .12);
}

.solutions {
  padding: 125px 0;
  background: var(--mist);
}

.solutions-heading {
  display: grid;
  justify-items: center;
  margin-bottom: 70px;
  text-align: center;
}

.solutions-heading .eyebrow {
  justify-content: center;
}

.solutions h2, .service-notes h2, .faq h2, .pests h2 {
  margin: 0;
  font-size: clamp(2.55rem, 4.6vw, 4.8rem);
}

.solution-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card-soft {
  padding: 14px 14px 32px;
  border-radius: 32px;
  box-shadow: 0 10px 30px rgba(16, 46, 39, .08);
}

.card-soft > :not(.card-img) {
  margin-left: 14px;
  margin-right: 14px;
}

.card-soft h3 {
  margin-top: 4px;
}

.pests {
  padding-top: 130px;
  padding-bottom: 130px;
}

.pests-heading {
  margin-bottom: 56px;
  text-align: center;
}

.pests .eyebrow {
  justify-content: center;
}

.pest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 20px;
}

.pest-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--cream);
  transition: transform .25s, box-shadow .25s;
}

.pest-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(16, 46, 39, .12);
}

.pest-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--mist);
}

.pest-grid div {
  padding: 18px 20px 22px;
}

.pest-grid h3 {
  margin-bottom: 6px;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
}

.pest-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
}

.process {
  padding: 122px 0;
  background: var(--ink);
  color: #fff;
}

.process-layout {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 10%;
}

.process-heading h2 {
  font-size: clamp(2.7rem, 4.5vw, 4.9rem);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #ffffff3a;
}

.steps li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  padding: 22px 0 25px;
  border-bottom: 1px solid #ffffff3a;
}

.steps li > span {
  color: #9bd589;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.steps h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.steps p {
  max-width: 470px;
  margin: 0;
  color: #bcd2c6;
  font-size: .9rem;
}

.process-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  margin-top: 40px;
  border-radius: 28px;
  object-fit: cover;
  background: var(--forest);
}

.gallery {
  padding: 120px 0;
  background: #f9f9f9;
}

.gallery-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 50px;
}

.gallery-stage {
  padding-top: 6px;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 60px;
  width: max-content;
  animation: drift 70s linear infinite;
}

.gallery-stage:has(.gallery-card:focus-visible) .gallery-track {
  animation-play-state: paused;
}

.gallery-card {
  position: relative;
  flex: 0 0 280px;
  height: 340px;
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, .1);
  cursor: pointer;
}

.gallery-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.gallery-card:nth-child(even) {
  margin-top: 56px;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
}

.gallery-controls p {
  margin: 0 6px;
  color: var(--muted);
  font-size: .83rem;
}

.gallery-controls p span:first-child {
  color: var(--forest);
  font-weight: 850;
}

.round-control {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--forest);
  border-radius: 50%;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  transition: background .2s, color .2s;
}

.round-control:hover {
  background: var(--forest);
  color: #fff;
}

.service-notes {
  padding: 132px 0;
  background: var(--sage);
}

.notes-layout {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 10%;
}

.service-notes .eyebrow, .service-notes .note-list span {
  color: var(--forest);
}

.service-notes .note-list p {
  color: #3f5a52;
}

.note-list, .faq-list {
  border-top: 1px solid var(--line);
}

.note-list article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 19px;
  padding: 23px 0 26px;
  border-bottom: 1px solid var(--line);
}

.note-list span {
  color: var(--leaf);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .1em;
}

.note-list h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.note-list p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}

.faq {
  padding: 120px 0;
  background: var(--mist);
}

.faq-layout {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 10%;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 21px 0;
  font-size: .96rem;
  font-weight: 760;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary span {
  color: var(--leaf);
  font-size: 1.4rem;
  font-weight: 400;
  transition: transform .2s;
}

.faq details[open] summary span {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 610px;
  margin: -5px 0 22px;
  color: var(--muted);
  font-size: .88rem;
}

.why {
  padding-top: 120px;
  padding-bottom: 120px;
}

.why-heading {
  margin-bottom: 56px;
  text-align: center;
}

.why .eyebrow {
  justify-content: center;
}

.why h2 {
  margin: 0;
  font-size: clamp(2.55rem, 4.6vw, 4.8rem);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.why-grid article {
  padding: 34px 26px 38px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--mist);
  transition: transform .25s, box-shadow .25s;
}

.why-grid article::before {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 22px;
  border-radius: 3px;
  background: var(--leaf);
}

.why-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(16, 46, 39, .12);
}

.why-grid h3 {
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -.03em;
}

.why-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.clients {
  padding: 100px 0;
  background: var(--cream);
}

.clients-heading {
  margin-bottom: 48px;
  text-align: center;
}

.clients .eyebrow {
  justify-content: center;
}

.clients h2, .reviews h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4.4vw, 4.4rem);
}

.stars {
  margin: 0 0 14px;
  color: #e0a100;
  letter-spacing: .12em;
}

.reviews {
  padding: 120px 0;
}

.reviews-heading {
  margin-bottom: 48px;
  text-align: center;
}

.reviews .eyebrow {
  justify-content: center;
}

.review-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.review-track {
  display: flex;
  width: max-content;
  padding: 6px 0 18px;
}

.review-track.is-ready {
  animation: reviews var(--duration, 120s) linear infinite;
}

.review {
  display: flex;
  flex: 0 0 340px;
  flex-direction: column;
  margin: 0 18px 0 0;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--mist);
}

.review .stars {
  margin-bottom: 14px;
}

.review footer {
  margin-top: auto;
  padding-top: 18px;
  font-size: .85rem;
  font-weight: 760;
}

.review p:not(.stars) {
  color: var(--muted);
  font-size: .92rem;
}

.reviews-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.button-outline {
  background: transparent;
  color: var(--forest);
}

.button-outline:hover {
  background: var(--forest);
  color: #fff;
}

.contact {
  padding: 104px 0;
  background: var(--forest);
  color: #fff;
}

.contact-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 11%;
  align-items: center;
}

.contact h2 {
  margin-bottom: 20px;
  font-size: clamp(2.8rem, 4.6vw, 5rem);
}

.contact-lead {
  max-width: 380px;
  margin-bottom: 0;
  color: #d8efca;
}

.contact-note {
  max-width: 380px;
  margin: 18px 0 0;
  color: #d8efca;
  font-size: .85rem;
}

.contact-note a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-options {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 4vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-options li {
  display: grid;
  justify-items: center;
  gap: 14px;
  font-size: .9rem;
  font-weight: 700;
}

.contact-btn {
  width: 96px;
  height: 96px;
  background: var(--cream);
  color: var(--forest);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}

.contact-btn:hover {
  background: #fff;
  transform: translateY(-3px);
}

.contact-btn-wa {
  color: var(--wa);
}

.contact-btn-mail {
  --icon: var(--icon-mail);
}

.contact-btn-tel {
  --icon: var(--icon-tel);
}

.site-footer {
  padding: 64px 0 28px;
  background: var(--footer);
  color: #cfe0d2;
  font-size: .86rem;
}

.footer-layout {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: space-between;
  gap: 36px;
}

.site-footer h3 {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer .social {
  display: flex;
  gap: 12px;
}

.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #ffffff40;
  border-radius: 50%;
  color: #fff;
  transition: background-color .2s, color .2s, transform .2s;
}

.social a:hover {
  background: var(--accent);
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-2px);
}

.social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social .ig {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.social .ig circle:last-child {
  fill: currentColor;
  stroke: none;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid #ffffff26;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: .78rem;
}

.footer-bottom a {
  color: var(--accent);
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.lightbox {
  width: min(1050px, calc(100vw - 30px));
  max-width: none;
  max-height: min(880px, calc(100vh - 30px));
  padding: 20px;
  border: 0;
  border-radius: 20px;
  background: #071f19;
  color: #fff;
  box-shadow: 0 20px 80px #0009;
}

.lightbox::backdrop {
  background: #061b16df;
}

.lightbox figure {
  display: grid;
  justify-items: center;
  margin: 0;
}

.lightbox figure img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
}

.lightbox figcaption {
  padding-top: 12px;
  font-size: .84rem;
}

.lightbox-close, .lightbox-nav {
  position: absolute;
  z-index: 1;
  border: 1px solid #fff9;
  border-radius: 50%;
  background: #0d3229d9;
  color: #fff;
  cursor: pointer;
}

.lightbox-close {
  top: 15px;
  right: 16px;
  width: 40px;
  height: 40px;
  font-size: 1.7rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  font-size: 1.2rem;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

/* Encabezado de las páginas internas: cada una define su imagen de fondo */
.page-servicios {
  --page-bg: url('fondos/servicios.webp');
}

.page-sectores {
  --page-bg: url('fondos/sectores.webp');
}

.page-blog {
  --page-bg: url('fondos/blog.webp');
}

.page-contacto, .page-privacidad {
  --page-bg: url('fondos/fondo1.webp');
}

.page-servicios, .page-sectores, .page-blog, .page-contacto, .page-privacidad {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 110px 0 100px;
  background: var(--ink);
  color: #fff;
}

:is(.page-servicios, .page-sectores, .page-blog, .page-contacto, .page-privacidad)::before, :is(.page-servicios, .page-sectores, .page-blog, .page-contacto, .page-privacidad)::after {
  content: '';
  position: absolute;
  inset: 0;
}

:is(.page-servicios, .page-sectores, .page-blog, .page-contacto, .page-privacidad)::before {
  z-index: -2;
  background: var(--page-bg, none) center 43% / cover no-repeat;
  filter: saturate(.72) contrast(.95);
}

:is(.page-servicios, .page-sectores, .page-blog, .page-contacto, .page-privacidad)::after {
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 28, 23, .91), rgba(9, 45, 35, .68) 45%, rgba(12, 43, 34, .3)), linear-gradient(0deg, rgba(5, 28, 23, .5), transparent 50%);
}

:is(.page-servicios, .page-sectores, .page-blog, .page-contacto, .page-privacidad) .eyebrow {
  color: #d4ebda;
}

:is(.page-servicios, .page-sectores, .page-blog, .page-contacto, .page-privacidad) h1 {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 6vw, 5rem);
}

:is(.page-servicios, .page-sectores, .page-blog, .page-contacto, .page-privacidad) p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: #eff7ed;
  font-size: 1.05rem;
}

.main-nav a[aria-current='page']:not(.nav-cta)::after {
  transform: scaleX(1);
}

.sectors-block {
  padding-top: 90px;
  padding-bottom: 100px;
}

.sectors-block .sector-grid {
  margin-top: 0;
}

.cta-band {
  padding: 90px 0;
  background: var(--forest);
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  max-width: 760px;
  margin: 0 auto 14px;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
}

.cta-band p {
  margin-bottom: 28px;
  color: #d8efca;
}

.cta-band .hero-actions {
  justify-content: center;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px 24px;
  align-items: center;
  padding: 0;
  list-style: none;
}

.client-grid li {
  display: grid;
  place-items: center;
  aspect-ratio: 2 / 1;
  padding: 6px 10px;
}

.client-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .25s;
}

.client-grid li:hover img {
  transform: scale(1.06);
}

.review-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-block {
  padding-top: 90px;
  padding-bottom: 100px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  transition: transform .25s, box-shadow .25s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(16, 46, 39, .12);
}

.blog-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--mist);
}

.blog-card > div {
  padding: 22px 24px 28px;
}

.blog-meta {
  margin-bottom: 10px;
  color: var(--leaf);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.blog-card h3 {
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.post {
  max-width: 780px;
  padding-top: 70px;
  padding-bottom: 90px;
}

.post .blog-meta {
  margin-top: 28px;
}

.post h1 {
  margin: 6px 0 24px;
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.post-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin-bottom: 36px;
  border-radius: 28px;
  object-fit: cover;
  background: var(--mist);
}

.post h2 {
  margin: 36px 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.post p, .post li {
  color: #3f5a52;
  font-size: 1.02rem;
}

.post ul {
  padding-left: 1.2rem;
}

/* Aviso de privacidad */
.legal {
  padding-top: 80px;
  padding-bottom: 110px;
}

.legal-body {
  max-width: 780px;
  margin: 0 auto;
}

.legal-updated {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: .85rem;
}

.legal-body section {
  margin-bottom: 48px;
}

.legal-body section h2 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.legal-body h3 {
  margin: 24px 0 8px;
  font-size: 1rem;
}

.legal-body p, .legal-body li {
  color: #3f5a52;
  font-size: 1.02rem;
}

.legal-body ul, .legal-body ol {
  display: grid;
  gap: 6px;
  padding-left: 1.2rem;
}

.legal-body a {
  color: var(--forest);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.legal-card {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--mist);
}

.legal-card div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
}

.legal-card dt {
  color: var(--forest);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.legal-card dd {
  margin: 0;
  color: var(--ink);
}

mark.pendiente {
  padding: 1px 6px;
  border-radius: 6px;
  background: #fff1b8;
  color: var(--ink);
}

@keyframes drift {
  to {
    transform: translateX(calc(-33.3333% - 5.34px));
  }
}

@keyframes reviews {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1024px) {
  .brand img {
    height: 90px;
  }
  .main-nav {
    gap: 16px;
    font-size: .95rem;
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .solutions {
    padding: 100px 0;
  }
  .sector-grid .card {
    flex-basis: calc((100% - 48px) / 3);
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1000px) {
  .footer-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav-wrap {
    height: 100px;
  }
  .brand img {
    height: 84px;
  }
  .main-nav {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    z-index: 10;
    display: grid;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--paper);
    box-shadow: 0 15px 28px #09241d25;
    transition: max-height .35s;
  }
  .main-nav.is-open {
    max-height: 500px;
  }
  .main-nav a {
    padding: 15px 20px;
    border-bottom: 1px solid var(--line);
  }
  .main-nav .nav-cta {
    justify-self: start;
    margin: 16px 20px;
    padding: 0;
    border-bottom: 0;
  }
  .menu-toggle {
    display: block;
  }
  .menu-toggle[aria-expanded='true'] span:nth-child(2) {
    transform: translateY(4px) rotate(45deg);
  }
  .menu-toggle[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
  }
  .hero {
    min-height: 710px;
  }
  .solutions, .pests, .why, .gallery, .about, .service-notes, .faq {
    padding-top: 90px;
    padding-bottom: 90px;
  }
  .process {
    padding: 90px 0;
  }
  .contact {
    padding: 82px 0;
  }
  .about, .process-layout, .contact-layout, .notes-layout, .faq-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .solution-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  .solution-list .card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .about-image {
    height: 380px;
  }
  .gallery-heading {
    display: grid;
    gap: 22px;
  }
  .clients {
    padding: 80px 0;
  }
  .reviews {
    padding-top: 90px;
    padding-bottom: 90px;
  }
  .contact-layout {
    align-items: start;
  }
  .page-servicios, .page-sectores, .page-blog, .page-contacto, .page-privacidad {
    padding: 64px 0 56px;
  }
  .sectors-block, .cta-band {
    padding-top: 70px;
    padding-bottom: 70px;
  }
  .client-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 16px;
  }
  .blog-block {
    padding-top: 70px;
    padding-bottom: 70px;
  }
  .post {
    padding-top: 50px;
    padding-bottom: 60px;
  }
  .process-photo {
    aspect-ratio: 16 / 10;
  }
  .contact-options {
    justify-content: flex-start;
  }
  .legal {
    padding-top: 60px;
    padding-bottom: 80px;
  }
}

@media (max-width: 700px) {
  .sector-grid .card {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (max-width: 640px) {
  .client-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .client-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .legal-card div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .review {
    flex-basis: 82vw;
  }
  .container, .nav-wrap {
    width: min(100% - 28px, 1200px);
  }
  .brand img {
    height: 68px;
  }
  .hero {
    min-height: 650px;
  }
  .hero-copy {
    padding-top: 42px;
  }
  .hero h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
  .hero-foot {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 15px 0;
  }
  .hero-foot p:not(:first-child) {
    display: none;
  }
  .gallery h2, .contact h2 {
    font-size: 2.65rem;
  }
  .steps li {
    grid-template-columns: 47px 1fr;
    gap: 11px;
  }
  .gallery-card {
    flex-basis: min(76vw, 285px);
    height: 330px;
  }
  .gallery-card:nth-child(even) {
    margin-top: 36px;
  }
  .gallery-track {
    padding-bottom: 40px;
  }
  .control-label {
    display: none;
  }
  .footer-layout {
    grid-template-columns: 1fr;
  }
  .solution-list {
    grid-template-columns: 1fr;
  }
  .solution-list .card:last-child:nth-child(odd) {
    grid-column: auto;
  }
  .sector-grid {
    gap: 18px;
    margin-top: 48px;
  }
  .card-img {
    height: 220px;
  }
  .pest-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .pest-grid div {
    padding: 12px 14px 16px;
  }
  .pest-grid h3 {
    font-size: 1.1rem;
  }
  .pest-grid p {
    font-size: .78rem;
  }
  .hero-actions .button {
    flex: 1 1 0;
    min-width: 0;
  }
  .gallery-controls {
    margin-top: 32px;
  }
  .lightbox {
    padding: 14px 9px;
  }
  .lightbox-nav {
    top: auto;
    bottom: 15px;
    transform: none;
  }
  .lightbox-prev {
    left: 15px;
  }
  .lightbox-next {
    right: 15px;
  }
  .lightbox figure img {
    max-height: calc(100vh - 148px);
  }
  .sector-grid .card {
    flex-basis: 100%;
  }
  .reviews-cta .button {
    width: 100%;
  }
  .contact-options {
    gap: 20px;
  }
  .contact-btn {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 860px), (hover: none) and (pointer: coarse) {
  .gallery-stage {
    overflow-x: auto;
    padding-inline: 20px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gallery-stage::-webkit-scrollbar {
    display: none;
  }
  .gallery-track {
    animation: none;
  }
  .gallery-card {
    scroll-snap-align: center;
  }
  .review-marquee {
    overflow-x: auto;
    padding-inline: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .review-marquee::-webkit-scrollbar {
    display: none;
  }
  .review-track.is-ready {
    animation: none;
  }
  .review {
    scroll-snap-align: start;
  }
  .gallery-card[aria-hidden='true'] {
    display: none;
  }

  .review[aria-hidden='true'] {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: .01ms !important;
  }
  .gallery-stage {
    overflow-x: auto;
  }
  .review-marquee {
    overflow-x: auto;
  }
}