/* =========================================================
   EXORA — Manejo Integrado de Plagas
   ========================================================= */

:root {
  /* Colores del logo */
  --green-dark: #00502a;
  --green:      #006837;
  --green-light:#3aaa35;
  --green-bg:   #eef6ee;
  --black:      #111;
  --text:       #333;
  --muted:      #666;
  --line:       #e2e2e2;
  --gray-bg:    #f4f5f4;
  --white:      #fff;
  --wa:         #25d366;

  --radius: 6px;
  --container: 1180px;
  --header-h: 86px;

  --font-head: "Montserrat", Arial, sans-serif;
  --font-body: "Open Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--white); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--black); line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--green-light); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-only:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 999; background: #fff; padding: 8px 14px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: .92rem;
  transition: background-color .2s, color .2s, border-color .2s; white-space: nowrap;
}
.btn svg { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #1db954; }
.btn--ghost { border-color: #fff; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--black); }
.btn--outline { border-color: var(--green); color: var(--green); background: #fff; }
.btn--outline:hover { background: var(--green); color: #fff; }

/* ---------- Encabezados de sección ---------- */
.section { padding: 90px 0; }
.section--gray { background: var(--gray-bg); }
.kicker {
  font-family: var(--font-head); font-weight: 700; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--green-light); margin-bottom: 6px;
}
.kicker--light { color: #8fd18a; }
.head { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: end; margin-bottom: 44px; }
.head h2 { margin: 0; }
.head__text { color: var(--muted); margin: 0; }

/* ---------- Topbar ---------- */
.topbar { background: var(--green-dark); color: #fff; font-size: .84rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar__info, .topbar__social { display: flex; align-items: center; gap: 24px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { text-decoration: underline; }
.topbar svg { width: 15px; height: 15px; }
.topbar__social { gap: 14px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.header.is-scrolled { box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; }
.nav__link { padding: 8px 13px; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--black); }
.nav__link:hover, .nav__link.is-active { color: var(--green); }
.nav__cta { margin-left: 12px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; color: var(--black); }
.nav-toggle span { display: block; width: 26px; height: 3px; background: currentColor; margin: 5px 0; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 600px; display: flex; align-items: center; color: #fff; background: #1a1a1a; overflow: hidden; }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; transform: scale(1.04); }
.hero__slide.is-active { opacity: 1; animation: zoom 9s ease-out forwards; }
@keyframes zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.15) 100%); }
.hero__inner { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; }
.hero__kicker { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; border-left: 4px solid var(--green-light); padding-left: 12px; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; max-width: 760px; margin-bottom: 18px; }
.hero__lead { font-size: 1.1rem; max-width: 600px; color: rgba(255,255,255,.88); margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__dots { display: flex; gap: 8px; margin-top: 46px; }
.hero__dots button { width: 34px; height: 4px; border: 0; padding: 0; background: rgba(255,255,255,.4); transition: background .3s; }
.hero__dots button.is-active { background: var(--green-light); }

/* ---------- Franja de contacto ---------- */
.infobar { background: var(--green); color: #fff; }
.infobar__grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; }
.infobar__title { padding: 24px 20px 24px 0; display: flex; flex-direction: column; justify-content: center; }
.infobar__title strong { font-family: var(--font-head); font-size: 1.2rem; }
.infobar__title span { font-size: .9rem; opacity: .85; }
.infobar__item { display: flex; align-items: center; gap: 14px; padding: 24px 20px; border-left: 1px solid rgba(255,255,255,.2); font-weight: 600; font-size: .95rem; min-width: 0; }
.infobar__item svg { width: 28px; height: 28px; flex-shrink: 0; color: #9be096; }
.infobar__item small { display: block; font-weight: 400; font-size: .78rem; opacity: .8; text-transform: uppercase; letter-spacing: .05em; }
.infobar__item span { overflow-wrap: anywhere; }
a.infobar__item:hover { background: var(--green-dark); }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s; }
.service:hover { box-shadow: 0 10px 30px rgba(0,0,0,.1); }
.service img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--gray-bg); }
.service__body { padding: 24px 24px 22px; display: flex; flex-direction: column; flex: 1; border-top: 4px solid var(--green-light); }
.service h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service p { font-size: .93rem; color: var(--muted); }
.service ul { margin-bottom: 18px; }
.service li { position: relative; padding-left: 18px; font-size: .9rem; margin-bottom: 4px; }
.service li::before { content: ""; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; background: var(--green-light); }
.service__link { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-head); font-weight: 700; font-size: .88rem; color: var(--green); }
.service__link svg { width: 16px; height: 16px; transition: transform .2s; }
.service__link:hover svg { transform: translateX(3px); }

.more { margin-top: 40px; padding: 30px 34px; background: var(--green-bg); border-left: 5px solid var(--green); border-radius: var(--radius); }
.more h3 { font-size: 1.15rem; }
.more ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 36px; }
.more li { position: relative; padding-left: 18px; font-size: .95rem; }
.more li::before { content: "›"; position: absolute; left: 0; top: -1px; color: var(--green); font-weight: 700; font-size: 1.2rem; line-height: 1.5; }

/* ---------- MIP ---------- */
.mip { display: grid; grid-template-columns: 1fr 1fr; background: #14231a; color: rgba(255,255,255,.85); }
.mip__img { min-height: 520px; background: url('https://images.unsplash.com/photo-1581578731548-c64695cc6952?auto=format&fit=crop&w=1200&q=70') center / cover; }
.mip__content { padding: 80px 60px; max-width: 640px; }
.mip h2 { color: #fff; }
.mip__steps { counter-reset: s; margin-top: 26px; }
.mip__steps li { counter-increment: s; position: relative; padding: 0 0 18px 52px; }
.mip__steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--green-light); color: #fff; font-family: var(--font-head); font-weight: 800; display: grid; place-items: center;
}
.mip__steps strong { color: #fff; }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.about__img { position: relative; }
.about__img img { width: 100%; border-radius: var(--radius); aspect-ratio: 6 / 7; object-fit: cover; }
.about__img::before { content: ""; position: absolute; left: -16px; bottom: -16px; width: 55%; height: 55%; background: var(--green-light); border-radius: var(--radius); z-index: -1; }
.about { position: relative; z-index: 0; }
.ticks { margin-top: 22px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: .95rem; }
.ticks svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--green-light); margin-top: 3px; }

/* ---------- Sectores ---------- */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sector { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: #ccc; }
.sector img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; transition: transform .5s ease; }
.sector:hover img { transform: scale(1.05); }
.sector figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 20px 18px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.sector strong { display: block; font-family: var(--font-head); font-size: 1.1rem; }
.sector span { font-size: .88rem; opacity: .9; }

/* ---------- Cobertura ---------- */
.zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.zone { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); border-top: 4px solid var(--green); }
.zone h3 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }
.zone h3 svg { width: 20px; height: 20px; color: var(--green-light); }
.zone p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- Banda ---------- */
.band {
  position: relative; color: #fff; padding: 70px 0;
  background: linear-gradient(rgba(0,60,30,.86), rgba(0,60,30,.86)), url('https://images.unsplash.com/photo-1628352081506-83c43123ed6d?auto=format&fit=crop&w=1600&q=60') center / cover;
}
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.band h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); max-width: 720px; }
.band p { margin: 0; opacity: .9; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 50px 18px 20px; position: relative; font-family: var(--font-head); font-weight: 700; color: var(--black); font-size: .98rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--green); }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { color: var(--green); }
.faq__body { padding: 0 20px 18px; color: var(--muted); font-size: .95rem; }
.faq__body p { margin: 0; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start; }
.contact__list { margin-top: 26px; display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list svg { width: 22px; height: 22px; color: var(--green); flex-shrink: 0; margin-top: 4px; }
.contact__list small { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.contact__list a, .contact__list span { font-weight: 600; color: var(--black); }
.contact__list a:hover { color: var(--green); }

.form { background: var(--gray-bg); padding: 34px; border-radius: var(--radius); border-top: 5px solid var(--green); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--black); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfd3cf; border-radius: 4px; background: #fff;
  font: inherit; font-size: .95rem; color: var(--black);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,104,55,.15); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #c62828; }
.field .error { font-size: .78rem; color: #c62828; min-height: 1em; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.form__actions .btn { flex: 1; min-width: 200px; }
.form__note { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
.form__note svg { width: 15px; height: 15px; }

/* ---------- Footer ---------- */
.footer { background: #0d1a12; color: rgba(255,255,255,.7); padding-top: 64px; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer__brand img { height: 58px; width: auto; margin-bottom: 18px; }
.footer h4 { color: #fff; font-size: .98rem; margin-bottom: 16px; }
.footer ul { display: grid; gap: 8px; }
.footer a:hover { color: #9be096; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; }
.footer__social a:hover { background: var(--green); border-color: var(--green); color: #fff; }
.footer__social svg { width: 16px; height: 16px; }
.footer__contact li { display: flex; gap: 10px; }
.footer__contact svg { width: 16px; height: 16px; color: #9be096; flex-shrink: 0; margin-top: 5px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: .82rem; }
.footer__bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Flotantes ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 120; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 32px; height: 32px; }
.to-top {
  position: fixed; right: 27px; bottom: 90px; z-index: 110; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--green); color: #fff; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slide.is-active { animation: none; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .nav__link { padding: 8px 9px; }
  .infobar__grid { grid-template-columns: 1fr 1fr; }
  .infobar__title { grid-column: 1 / -1; padding: 20px 0 6px; }
  .infobar__item { border-left: 0; padding-left: 0; }
  .zones { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .topbar .hide-md { display: none; }
  .brand img { height: 46px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    background: #fff; border-top: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 20px 30px; overflow-y: auto;
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s, visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav__link { padding: 15px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav__cta { margin: 22px 0 0; }
  body.nav-open { overflow: hidden; }

  .head { grid-template-columns: 1fr; gap: 12px; }
  .services { grid-template-columns: 1fr 1fr; }
  .mip { grid-template-columns: 1fr; }
  .mip__img { min-height: 280px; }
  .mip__content { padding: 56px 20px; max-width: none; }
  .about { grid-template-columns: 1fr; gap: 50px; }
  .about__img { max-width: 560px; margin-left: 16px; }
  .about__img img { aspect-ratio: 4 / 3; }
  .sectors { grid-template-columns: 1fr 1fr; }
  .band__inner { flex-direction: column; align-items: flex-start; }
  .faq-wrap, .contact { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .topbar .hide-sm, .topbar__social { display: none; }
  .topbar .container { justify-content: center; }
  .hero { min-height: 560px; }
  .hero h1 { font-size: 1.75rem; }
  .hero::after { background: rgba(0,0,0,.62); }
  .hero__actions .btn { width: 100%; }
  .infobar__grid { grid-template-columns: 1fr; }
  .infobar__item { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.2); }
  .services, .sectors, .zones, .more ul, .form__grid { grid-template-columns: 1fr; }
  .form { padding: 24px 18px; }
  .footer__grid { grid-template-columns: 1fr; }
  .band .btn { width: 100%; }
}
