/* Musso Fumigaciones — basado en el sistema de diseño Terra */
:root {
  --crema: #faf6f0;
  --crema-2: #f0ece4;
  --blanco: #fffdf9;
  --verde: #4a7c59;
  --verde-hover: #3d6749;
  --verde-oscuro: #2f5a3d;
  --verde-claro: #c8e8d0;
  --tierra: #705c30;
  --texto: #2e3230;
  --texto-2: #4a4e4a;
  --linea: #d9d3c7;
  --sombra: 0 4px 20px rgba(46, 50, 48, 0.06);
  --radio: 12px;
  --radio-grande: 20px;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--verde-oscuro); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; color: inherit; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); letter-spacing: -0.005em; }
h3 { font-size: 1.25rem; font-weight: 500; }
p { margin: 0; }
figure { margin: 0; }

:focus-visible { outline: 3px solid var(--tierra); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--verde-oscuro); color: var(--crema); padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .8rem 1.5rem;
  border-radius: var(--radio); border: 1.5px solid transparent;
  font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--verde); color: #fff; }
.btn-primary:hover { background: var(--verde-hover); }
.btn-secondary { background: transparent; color: var(--verde-oscuro); border-color: var(--verde); }
.btn-secondary:hover { background: var(--crema-2); }
.btn-small { min-height: 44px; padding: .55rem 1.1rem; font-size: .95rem; }
.btn-block { width: 100%; }

.icon, .service-icon {
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 240, .94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linea);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; min-height: 44px; flex: none; }
.brand img { display: block; height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a:not(.btn) { color: var(--texto); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:not(.btn):hover { color: var(--verde); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 10px;
  background: transparent; color: var(--texto); cursor: pointer; align-items: center; justify-content: center;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 1.4rem; }
.hero-place { color: var(--tierra); font-weight: 700; }
.lead { font-size: 1.2rem; color: var(--texto-2); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; padding-top: .4rem; }
.hero-media { border-radius: var(--radio-grande); overflow: hidden; background: var(--crema-2); box-shadow: var(--sombra); aspect-ratio: 4 / 3; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section.tone { background: var(--crema-2); }
.section.band { background: var(--verde-oscuro); color: var(--crema); }
.section-head { display: flex; flex-direction: column; gap: .9rem; max-width: 44rem; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.section-head p { color: var(--texto-2); font-size: 1.1rem; }
.band .section-head p { color: #d8e2d6; }

/* Servicios: lista con líneas, sin tarjetas */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.service { display: flex; flex-direction: column; gap: .7rem; padding-top: 1.4rem; border-top: 2px solid var(--verde); }
.service-icon { width: 30px; height: 30px; color: var(--verde); }
.service p { color: var(--texto-2); }

/* Ventajas */
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.benefit { display: flex; flex-direction: column; gap: .6rem; padding-top: 1.3rem; border-top: 1px solid rgba(250, 246, 240, .28); }
.benefit h3 { color: #fff; }
.benefit p { color: #d8e2d6; }

/* Pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: paso; }
.steps li { counter-increment: paso; display: flex; flex-direction: column; gap: .5rem; }
.steps li::before {
  content: counter(paso);
  font-family: var(--serif); font-weight: 600; font-size: 1.1rem;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--verde-claro); color: var(--verde-oscuro); margin-bottom: .5rem;
}
.steps p { color: var(--texto-2); }

/* Nosotros */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-photo { border-radius: var(--radio-grande); overflow: hidden; box-shadow: var(--sombra); }
.about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 35% center; }
.about-text { display: flex; flex-direction: column; gap: 1.1rem; }
.about-text > p { color: var(--texto-2); max-width: 36rem; }
.people { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: .6rem 0 0; }
.people dt { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.people dd { margin: 0; color: var(--texto-2); font-size: .98rem; }
.checks { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.checks li { display: flex; gap: .6rem; align-items: baseline; font-weight: 600; }
.checks li::before { content: ""; flex: none; width: 10px; height: 6px; border-left: 2.5px solid var(--verde); border-bottom: 2.5px solid var(--verde); transform: translateY(-3px) rotate(-45deg); }

/* Videos */
.videos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 1.5rem; }
.videos figure { display: flex; flex-direction: column; gap: .6rem; }
.videos video { width: 100%; border-radius: var(--radio); background: #1f2420; aspect-ratio: 16 / 9; object-fit: cover; }
.video-main { grid-row: span 2; }
.video-main video { flex: 1; }
.videos figcaption { font-weight: 600; color: var(--texto-2); }
.only-narrow { display: none !important; }

/* Equipo */
.equipment-main { border-radius: var(--radio-grande); overflow: hidden; position: relative; box-shadow: var(--sombra); }
.equipment-main img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.equipment-main figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.5rem 1.1rem;
  background: linear-gradient(to top, rgba(31, 36, 32, .72), rgba(31, 36, 32, 0));
  color: #fff; font-weight: 600;
}
.equipment { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.equipment figure { background: var(--blanco); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); }
.equipment img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.equipment figcaption { padding: 1.1rem 1.25rem 1.3rem; color: var(--texto-2); display: flex; flex-direction: column; gap: .3rem; }
.equipment strong { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--texto); }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-info > p { color: #d8e2d6; font-size: 1.1rem; max-width: 30rem; }
.contact-list { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; font-size: 1.05rem; }
.contact-list li { display: flex; align-items: center; gap: .8rem; }
.contact-list a { color: #fff; font-size: clamp(.92rem, 3.6vw, 1.05rem); text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact-list .icon { color: var(--verde-claro); }

.quote-form {
  background: var(--crema); color: var(--texto);
  border-radius: var(--radio-grande); padding: clamp(1.4rem, 3vw, 2.2rem);
  display: flex; flex-direction: column; gap: 1rem;
}
.quote-form h3 { font-size: 1.5rem; font-weight: 600; }
.form-note { color: var(--texto-2); font-size: .95rem; margin-top: -.5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem;
  font: 1rem/1.4 var(--sans); color: var(--texto);
  background: var(--blanco); border: 1.5px solid var(--linea); border-radius: 10px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(74, 124, 89, .22); }
.field input[aria-invalid="true"] { border-color: #b83230; }
.form-error { color: #b83230; font-weight: 600; }

/* Footer */
.site-footer { background: #232824; color: #c9cfc6; padding: 3rem 0 6rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.footer-logo { display: block; height: 52px; width: auto; margin-bottom: .9rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.footer-nav a { color: #c9cfc6; text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.copyright { width: 100%; font-size: .9rem; border-top: 1px solid #3a413b; padding-top: 1.2rem; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 56px; padding: 0 1.4rem 0 1.1rem;
  border-radius: 999px; border: 2px solid rgba(250, 246, 240, .9);
  background: var(--verde-oscuro); color: var(--crema);
  font: 700 1rem/1 var(--sans); text-decoration: none;
  box-shadow: 0 8px 24px rgba(31, 36, 32, .22);
  transition: background-color .15s, transform .15s;
}
.wa-float:hover { background: var(--verde); transform: translateY(-2px); }
.wa-float:focus-visible { outline-offset: 4px; border-radius: 999px; }
/* El ícono toma el color del botón: sirve el SVG oficial en negro o en cualquier color */
.wa-icon {
  width: 26px; height: 26px; flex: none; background: currentColor;
  -webkit-mask: url("../img/whatsapp.svg") center / contain no-repeat;
          mask: url("../img/whatsapp.svg") center / contain no-repeat;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--crema); border-bottom: 1px solid var(--linea);
    padding: .5rem 1.25rem 1.25rem; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--linea); }
  .nav .btn { margin-top: 1rem; }

  .hero-grid, .about, .contact { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16 / 10; }
  .videos { grid-template-columns: 1fr 1fr; }
  .video-main { grid-column: 1 / -1; grid-row: auto; }
  .equipment { grid-template-columns: 1fr; }
  .equipment-main img { aspect-ratio: 16 / 10; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .brand img { height: 38px; }
  .wa-float { width: 58px; height: 58px; padding: 0; justify-content: center; right: 1rem; bottom: 1rem; }
  .wa-label { display: none; }
  .wa-icon { width: 28px; height: 28px; }
  .services, .benefits, .steps { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .only-wide { display: none !important; }
  .only-narrow { display: block !important; aspect-ratio: 9 / 16 !important; max-height: 78vh; }
  .videos { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .wa-float:hover { transform: none; }
}

/* Encuadre de la foto del dron en su tarjeta */
.equipment figure:first-child img { object-position: center 75%; }
