/* ═══════════════════════════════════════════════════════════════════════════
   AGDRONEC S.A. — style.css
   Barlow + Barlow Condensed · #4CB748 verde · #222 negro · #3a3a3a nav/footer
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Anti horizontal-scroll ───────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Contención de widgets externos (Elfsight, reCAPTCHA) que pueden
   renderizar contenido más ancho que el viewport */
.elfsight-app-9d0d9eed-4c01-424a-953e-82cb309f9f45,
iframe,
.g-recaptcha {
  max-width: 100% !important;
  overflow: hidden !important;
}

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 75px;
}

body {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  color: #222;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ── CSS Variables ────────────────────────────────────────────────────────── */
:root {
  --green: #4CB748;
  --green-dark: #3a9c36;
  --dark: #222222;
  --nav-bg: #3a3a3a;
  --gray-light: #f4f5f7;
  --gray-mid: #888;
  --white: #ffffff;
  --wa-green: #25D366;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.18);
  --transition: .25s ease;
  --container: 1200px;
}

/* ── Typography helpers ───────────────────────────────────────────────────── */
.text-green { color: var(--green); }
.font-condensed { font-family: 'Barlow Condensed', sans-serif; }

/* ── Container ────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Section Defaults ─────────────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section__header { text-align: center; margin-bottom: 3.5rem; }
.section__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: #222;
  margin-bottom: .75rem;
}
.section__title--light { color: #fff; }
.section__subtitle { font-size: 1.05rem; color: var(--gray-mid); max-width: 580px; margin: 0 auto; }
.section__subtitle--light { color: #aaa; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  border-radius: 6px;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }

.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-dark); }

.btn--whatsapp { background: var(--wa-green); color: #fff; }
.btn--whatsapp:hover { background: #1ebe5a; }

.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.6);
}
.btn--outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.btn--outline-dark {
  background: transparent;
  color: #222;
  border: 2px solid #ccc;
}
.btn--outline-dark:hover { border-color: var(--green); color: var(--green); }

.btn--full { width: 100%; justify-content: center; }
.btn--sm { padding: .6rem 1.2rem; font-size: .875rem; }

.whatsapp-icon { width: 22px; height: 22px; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════════════════ */
/*  NAV                                                                       */
/* ══════════════════════════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.nav__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo NAV — imagen real */
.nav__logo img {
  height: 44px;
  width: auto;
  display: block;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  color: #ccc;
  font-size: .9rem;
  font-weight: 500;
  padding: .4rem .75rem;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover { color: #fff; background: rgba(255,255,255,.08); }

.nav__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--wa-green);
  color: #fff;
  font-weight: 600;
  font-size: .88rem;
  padding: .5rem 1rem;
  border-radius: 6px;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.nav__whatsapp:hover { background: #1ebe5a; transform: translateY(-1px); }
.nav__whatsapp .whatsapp-icon { width: 18px; height: 18px; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  cursor: pointer;
}

/* Hamburguesa oculta en desktop por defecto */
#nav-hamburger {
  display: none;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ccc;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════════════════════ */
/*  HERO                                                                       */
/* ══════════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: calc(100vh - 70px);
  min-height: 580px;
  display: flex;
  flex-direction: column;
  background: url('../assets/fumigacion_t100.jpg') center center / cover no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  /* Oscuro a la izquierda → transparente a la derecha para ver el dron */
  background: linear-gradient(to right,
    rgba(0,0,0,.90) 0%,
    rgba(0,0,0,.72) 35%,
    rgba(0,0,0,.25) 65%,
    transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  /* 55% izquierdo del hero */
  max-width: 660px;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 64px 20px 64px;
}

.hero__eyebrow {
  display: inline-block;
  color: var(--green);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border-left: 3px solid var(--green);
  padding-left: .75rem;
}

.hero__h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3rem, 5.5vw, 5rem); /* ≈80px en desktop */
  font-weight: 800;
  color: #fff;
  line-height: 1.02;
  margin-bottom: 1.75rem;
  max-width: 620px;
}

.hero__highlight { color: var(--green); }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem .85rem;
  border-radius: 20px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Stats bar — último hijo del .hero, pegado al fondo vía flexbox */
.hero__stats {
  position: relative;
  z-index: 2;
  width: 100%;
  flex-shrink: 0;
  background: var(--green);
  display: flex;
  justify-content: center;
  gap: 0;
}

.hero__stat {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,.2);
  text-align: center;
}
.hero__stat:last-child { border-right: none; }

.hero__stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hero__stat-label {
  font-size: .75rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  margin-top: .2rem;
}

/* ══════════════════════════════════════════════════════════════════════════ */
/*  SERVICIOS                                                                  */
/* ══════════════════════════════════════════════════════════════════════════ */
.servicios { background: #fff; }

.servicios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card-servicio {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.card-servicio:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: var(--green);
}

.card-servicio__icon {
  width: 56px;
  height: 56px;
  background: rgba(76,183,72,.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.6rem;
  color: var(--green);
}

.card-servicio__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #222;
  margin-bottom: .6rem;
}

.card-servicio__desc {
  font-size: .9rem;
  color: #666;
  line-height: 1.55;
}

/* ══════════════════════════════════════════════════════════════════════════ */
/*  POST VENTA                                                                 */
/* ══════════════════════════════════════════════════════════════════════════ */
.postventa { padding: 0; overflow: hidden; }

.postventa__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
}

.postventa__image-col {
  overflow: hidden;
  position: relative;
}

.postventa__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
}
.postventa__image-col:hover .postventa__img { transform: scale(1.03); }

.postventa__content {
  background: #111;
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.postventa__eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .75rem;
}

.postventa__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.postventa__intro {
  font-size: .925rem;
  color: #aaa;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.postventa__list {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  margin-bottom: 2rem;
}

.postventa__list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .9rem;
  color: #ccc;
  line-height: 1.5;
}

.check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  color: #fff;
  margin-top: 2px;
}

.postventa__list strong { color: #fff; font-size: 15px; font-weight: 700; }

/* ══════════════════════════════════════════════════════════════════════════ */
/*  FUMIGACIÓN                                                                 */
/* ══════════════════════════════════════════════════════════════════════════ */
.fumigacion { background: var(--gray-light); }

.fumigacion__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.fumigacion__pasos {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.paso {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.paso__num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  flex-shrink: 0;
  width: 56px;
  text-align: center;
}

.paso__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: .4rem;
}

.paso__desc {
  font-size: .9rem;
  color: #555;
  line-height: 1.55;
}

.fumigacion__imagen {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.fumigacion__imagen img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.fumigacion__badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  padding: .4rem .9rem;
  border-radius: 20px;
  border: 1px solid rgba(76,183,72,.4);
}
.fumigacion__badge i { color: var(--green); }

/* ══════════════════════════════════════════════════════════════════════════ */
/*  VENTAJAS T100                                                              */
/* ══════════════════════════════════════════════════════════════════════════ */
.ventajas { background: #111; }

.ventajas__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #2a2a2a;
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
  overflow: hidden;
}

.metrica {
  background: #181818;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: background var(--transition);
}
.metrica:hover { background: #1e1e1e; }

.metrica__valor {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: .4rem;
}

.metrica__label {
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .4rem;
}

.metrica__desc {
  font-size: .78rem;
  color: #777;
  line-height: 1.45;
}

/* ══════════════════════════════════════════════════════════════════════════ */
/*  EVOLUCIÓN TECNOLOGÍA                                                       */
/* ══════════════════════════════════════════════════════════════════════════ */
.evolucion { background: #fff; }

.evolucion__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.evo-card {
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.evo-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

.evo-card--featured {
  border: 2px solid var(--green);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(76,183,72,.15), var(--shadow);
}

.evo-card__badge {
  position: absolute;
  top: .75rem;
  right: .75rem;
  font-size: .72rem;
  font-weight: 700;
  padding: .3rem .7rem;
  border-radius: 20px;
  letter-spacing: .03em;
  z-index: 1;
}

.evo-card__badge--red { background: #ff4444; color: #fff; }
.evo-card__badge--green-outline { border: 1.5px solid var(--green); color: var(--green); background: #fff; }
.evo-card__badge--green-solid { background: var(--green); color: #fff; }

.evo-card__img-wrap {
  background: #1a1a1a;
  height: 220px;
  overflow: hidden;
}
.evo-card__img-wrap img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.evo-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.evo-card__year {
  font-size: .8rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.evo-card__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
}

.evo-card__specs {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin: .25rem 0;
}
.evo-card__specs li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: #555;
}
.evo-card__specs i { color: var(--green); font-size: 1rem; }

.evo-card__note {
  font-size: .82rem;
  color: #888;
  line-height: 1.5;
  flex: 1;
}

/* ══════════════════════════════════════════════════════════════════════════ */
/*  CALCULADOR DE EFICIENCIA                                                   */
/* ══════════════════════════════════════════════════════════════════════════ */
.calculador { background: var(--gray-light); }

.calculador__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.calculador__form-wrap {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.calculador__form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: .35rem; }

.form-group label {
  font-size: .875rem;
  font-weight: 600;
  color: #444;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: .7rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-size: .95rem;
  color: #222;
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(76,183,72,.15);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-hint {
  font-size: .78rem;
  color: #999;
}

.form-group--captcha { align-items: flex-start; }

/* Resultado del calculador */
.calculador__resultado {
  background: #111;
  border-radius: var(--radius);
  padding: 2rem;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.resultado__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  color: #555;
}
.resultado__placeholder p { font-size: .9rem; line-height: 1.5; }
.resultado__placeholder strong { color: var(--green); }

.resultado__data { width: 100%; }

.resultado__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.resultado__modelo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
}
.resultado__cultivo {
  font-size: .85rem;
  color: #888;
  background: #1e1e1e;
  padding: .25rem .75rem;
  border-radius: 20px;
}

.resultado__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
  margin-bottom: 1.5rem;
}

.resultado__num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}

.resultado__unit {
  font-size: .85rem;
  color: #888;
  margin-top: .25rem;
}

.resultado__metricas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.res-metrica {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #1a1a1a;
  border-radius: 8px;
  padding: .75rem .5rem;
}

.res-metrica__val {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.res-metrica__label {
  font-size: .72rem;
  color: #666;
  margin-top: .15rem;
}

/* VS bar */
.resultado__vs { margin-top: .5rem; }
.resultado__vs-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
}

.resultado__vs-label { font-size: .78rem; color: #888; width: 50px; flex-shrink: 0; }

.resultado__vs-drone {
  height: 10px;
  background: var(--green);
  border-radius: 5px;
  transition: width .6s ease;
  min-width: 8px;
}

.resultado__vs-mochila {
  height: 10px;
  background: #555;
  border-radius: 5px;
  width: 20%;
}

.resultado__vs-text {
  font-size: .82rem;
  color: var(--green);
  font-weight: 600;
  margin-top: .25rem;
  text-align: center;
}

/* ══════════════════════════════════════════════════════════════════════════ */
/*  GALERÍA INSTAGRAM                                                          */
/* ══════════════════════════════════════════════════════════════════════════ */
.galeria { background: #fff; }

.galeria__carousel-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.galeria__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  transition: transform .5s ease;
}

.galeria__item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  background: #1a1a1a;
}

.galeria__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.galeria__item:hover img { transform: scale(1.06); }

.galeria__item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(76,183,72,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  font-size: 2rem;
  color: #fff;
}
.galeria__item:hover .galeria__item-overlay { opacity: 1; }

/* Placeholder items */
.galeria__placeholder {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: #555;
  font-size: .8rem;
  text-align: center;
}
.galeria__placeholder i { font-size: 2rem; color: var(--green); opacity: .5; }

.galeria__dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1rem;
}
.galeria__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.galeria__dot.is-active { background: var(--green); transform: scale(1.3); }

.galeria__cta { text-align: center; margin-top: 2rem; }

/* ══════════════════════════════════════════════════════════════════════════ */
/*  CONTACTO                                                                   */
/* ══════════════════════════════════════════════════════════════════════════ */
.contacto { background: #111; }

.contacto__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contacto__form-wrap {
  background: #1a1a1a;
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid #2a2a2a;
}

.contacto__form { display: flex; flex-direction: column; gap: 1.1rem; }

.contacto__form label { color: #bbb; }

.contacto__form input,
.contacto__form select,
.contacto__form textarea {
  background: #111;
  border-color: #333;
  color: #fff;
}

.contacto__form input:focus,
.contacto__form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(76,183,72,.15);
}

.contacto__form input::placeholder,
.contacto__form textarea::placeholder { color: #555; }

.form-success {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: rgba(76,183,72,.15);
  border: 1px solid var(--green);
  color: var(--green);
  padding: .85rem 1.1rem;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
}

/* Datos de contacto */
.contacto__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: .5rem;
}

.contacto__info-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .25rem;
}

.contacto__dato {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: opacity var(--transition);
  cursor: pointer;
}
.contacto__dato:hover { opacity: .85; }

.contacto__dato-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #222;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--green);
  flex-shrink: 0;
}

.contacto__dato-icon--wa {
  background: var(--wa-green);
  border-color: var(--wa-green);
  color: #fff;
}
.contacto__dato-icon--wa .whatsapp-icon { width: 24px; height: 24px; }

.contacto__dato-text {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.contacto__dato-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #666;
}

.contacto__dato-val {
  font-size: .925rem;
  color: #ccc;
  line-height: 1.5;
}

.contacto__redes { margin-top: .5rem; }

.contacto__redes-label {
  font-size: .8rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .75rem;
}

.contacto__redes-links {
  display: flex;
  gap: .75rem;
}

.red-social {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #1e1e1e;
  border: 1px solid #2e2e2e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #888;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.red-social:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════════════════ */
/*  FOOTER                                                                     */
/* ══════════════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--nav-bg);
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,.05);
}

.footer__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

/* Logo FOOTER — imagen real */
.footer__logo img {
  height: 56px;
  width: auto;
  max-width: 220px;
  display: block;
  margin: 0 auto;
}

.footer__copy {
  font-size: .8rem;
  color: #888;
}

.footer__badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(76,183,72,.4);
  padding: .25rem .75rem;
  border-radius: 20px;
}

/* ══════════════════════════════════════════════════════════════════════════ */
/*  ANIMATIONS / AOS lite                                                      */
/* ══════════════════════════════════════════════════════════════════════════ */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
[data-aos].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════════════════ */
/*  RESPONSIVE — TABLET (≤ 900px)                                             */
/* ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  /* Nav */
  .nav__hamburger { display: flex; }

  .nav__menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    transform: translateY(-110%);
    transition: transform .3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,.3);
  }
  .nav__menu.is-open { transform: translateY(0); }

  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    margin-bottom: 1rem;
  }
  .nav__link { padding: .75rem 1rem; }

  .nav__whatsapp { justify-content: center; padding: .75rem; }

  /* Hero */
  .hero { background-attachment: scroll; height: auto; min-height: 100vh; }
  .hero__content { max-width: 100%; padding: 3rem 24px 20px; }
  /* En tablet el overlay es más opaco para legibilidad */
  .hero__overlay { background: linear-gradient(to right, rgba(0,0,0,.88) 0%, rgba(0,0,0,.7) 50%, rgba(0,0,0,.4) 100%); }
  .hero__stats { flex-wrap: wrap; }
  .hero__stat { min-width: 50%; border-bottom: 1px solid rgba(255,255,255,.1); }
  .hero__stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.2); }
  .hero__stat:nth-child(even) { border-right: none; }
  .hero__stat:nth-last-child(-n+2) { border-bottom: none; }

  /* Grids 2→1 */
  .servicios__grid { grid-template-columns: repeat(2, 1fr); }
  .postventa__grid { grid-template-columns: 1fr; }
  .postventa__image-col { height: 300px; }
  .fumigacion__grid { grid-template-columns: 1fr; }
  .fumigacion__imagen { order: -1; }
  .fumigacion__imagen img { height: 300px; }
  .ventajas__grid { grid-template-columns: repeat(2, 1fr); }
  .evolucion__grid { grid-template-columns: 1fr 1fr; }
  .calculador__grid { grid-template-columns: 1fr; }
  .contacto__grid { grid-template-columns: 1fr; }
  .galeria__track { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════════════════════════════ */
/*  RESPONSIVE — MOBILE (≤ 560px)                                             */
/* ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 560px) {

  .section { padding: 3.5rem 0; }

  .nav__logo img { height: 38px; }

  .hero__h1 { font-size: 2.4rem; }
  .hero__content { max-width: 100%; padding: 2.5rem 1.5rem 20px; }
  .hero__badges { gap: .4rem; }
  .hero__badge { font-size: .72rem; }
  .hero__actions { flex-direction: column; gap: .75rem; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .hero__stat { min-width: 100%; border-right: none !important; border-bottom: 1px solid rgba(255,255,255,.1) !important; }
  .hero__stat:last-child { border-bottom: none !important; }

  .servicios__grid { grid-template-columns: 1fr; }
  .evolucion__grid { grid-template-columns: 1fr; }
  .ventajas__grid { grid-template-columns: repeat(2, 1fr); }
  .resultado__metricas { grid-template-columns: 1fr 1fr 1fr; }

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

  .postventa__content { padding: 2.5rem 1.5rem; }
}

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

/* Focus visible for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* Scrollbar custom */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* ══════════════════════════════════════════════════════════════════════════ */
/*  AJUSTES MOBILE ADICIONALES (≤768px / ≤480px)                              */
/*  Nota: las clases del proyecto usan nomenclatura BEM (ej. .nav__container, */
/*  .hero__content, .hero__stats, .servicios__grid, .postventa__grid, etc.)   */
/*  Estas reglas se mapean a esos nombres reales para que tengan efecto.      */
/*  No se modifica ninguna regla de escritorio existente, solo se añaden      */
/*  estas reglas adicionales al final del archivo.                           */
/* ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* NAV MOBILE: ajustar padding del contenedor */
  .nav__container {
    padding: 10px 16px;
  }

  /* HERO MOBILE */
  .hero {
    height: auto;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
  }

  .hero__content {
    padding: 24px 20px 16px 20px;
    flex: 1;
  }

  .hero__h1 {
    font-size: 44px;
    line-height: 1.05;
    margin-bottom: 16px;
  }

  /* Badges en mobile: wrap fluido */
  .hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
  }

  .hero__badge {
    font-size: 11px;
    padding: 5px 10px;
  }

  /* Botones hero en mobile: apilados full width */
  .hero__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }

  .hero__actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
    box-sizing: border-box;
  }

  /* Barra estadísticas verde: grid 2x2 en mobile */
  .hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    flex-shrink: 0;
    position: relative;
  }

  .hero__stat {
    padding: 14px 10px;
    border-right: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    text-align: center;
  }

  .hero__stat:nth-child(2n) {
    border-right: none;
  }

  .hero__stat:nth-child(3),
  .hero__stat:nth-child(4) {
    border-bottom: none;
  }

  .hero__stat-num {
    font-size: 26px;
  }

  .hero__stat-label {
    font-size: 9px;
  }

  /* SECCIONES GENERALES mobile */
  .servicios,
  .fumigacion,
  .ventajas,
  .evolucion,
  .calculador,
  .galeria,
  .contacto {
    padding: 48px 20px;
  }

  /* Grids de 2-3 columnas pasan a 1 columna en mobile */
  .servicios__grid,
  .ventajas__grid,
  .evolucion__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Layouts de 2 columnas pasan a 1 columna en mobile */
  .postventa__grid,
  .fumigacion__grid,
  .calculador__grid,
  .contacto__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Imagen de fachada en mobile: altura fija */
  .postventa__image-col {
    height: 280px;
  }

  /* Calculador resultado debajo del formulario */
  .calculador__resultado {
    margin-top: 0;
  }

  /* Títulos de sección más pequeños en mobile */
  .section__title {
    font-size: 30px;
  }

  /* Galería Instagram: 2 columnas en mobile */
  .galeria__track {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer centrado en mobile */
  .footer {
    padding: 24px 20px;
  }
  .footer__container {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero__h1 {
    font-size: 36px;
  }

  .section__title {
    font-size: 26px;
  }
}

/* ══════════════════════════════════════════════════════════════════════════ */
/*  NAV MOBILE — solo logo + hamburguesa + dropdown .nav-links                */
/*  (el toggle lo maneja #nav-hamburger en main.js)                           */
/* ══════════════════════════════════════════════════════════════════════════ */

/* Dropdown mobile oculto por defecto fuera del breakpoint */
.nav-links { display: none; }

@media (max-width: 768px) {

  /* Logo más compacto en mobile */
  .nav__logo img {
    height: 36px;
  }

  /* Ocultar el menú desktop (links + WhatsApp) — lo reemplaza .nav-links */
  .nav__menu {
    display: none !important;
  }

  /* Hamburguesa visible en mobile */
  .nav__hamburger {
    display: flex;
  }
  .nav__hamburger span {
    background: #ffffff;
  }

  /* Dropdown del menú mobile */
  .nav-links {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: #2a2a2a;
    flex-direction: column;
    z-index: 9999;
    padding: 0;
    margin: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 16px 24px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }
}
