*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #123023;
  background-color: #f5f7f4;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 247, 244, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
}

.logo img {
  height: 52px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}

.main-nav a {
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  background: #e7f4ea;
  color: #0b7c4b;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #0b7c4b, #4c9b2f);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background: transparent;
  color: #0b7c4b;
  border: 1px solid rgba(11, 124, 75, 0.2);
  box-shadow: none;
}

.btn-outline:hover {
  background: #e7f4ea;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  color: #ffffff;
  background-image: url("../img/portada.jpg");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 60%),
              linear-gradient(135deg, rgba(0, 90, 60, 0.94), rgba(1, 120, 90, 0.94));
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding: 5rem 0 4rem;
}

.hero-tag {
  display: inline-block;
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 3rem);
  margin: 0.7rem 0 0.4rem;
}

.hero-text {
  max-width: 32rem;
  font-size: 1rem;
  opacity: 0.92;
}

.hero-actions {
  margin: 1.5rem 0 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-sub {
  font-size: 0.9rem;
  opacity: 0.9;
}

.hero-card {
  background: rgba(255, 255, 255, 0.97);
  color: #123023;
  padding: 1.8rem 1.6rem;
  border-radius: 1.5rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  max-width: 360px;
}

.hero-card h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

.hero-card p {
  font-size: 0.95rem;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 1.2rem;
  font-size: 0.9rem;
}

.hero-list li + li {
  margin-top: 0.3rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: #e8f3ea;
}

.section h2 {
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
}

.section-intro {
  margin-top: 0;
  max-width: 34rem;
  font-size: 0.97rem;
  color: #486155;
}

.cols-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.info-card {
  background: #ffffff;
  padding: 1.6rem 1.5rem;
  border-radius: 1.4rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  font-size: 0.95rem;
}

.info-card h3 {
  margin-top: 0;
}

.info-card ul {
  padding-left: 1.2rem;
}

.info-card .small {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #64756a;
}

.badges {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.badges span {
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #e7f4ea;
  color: #0b7c4b;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: #ffffff;
  border-radius: 1.2rem;
  padding: 1.4rem 1.3rem 1.5rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
  font-size: 0.95rem;
}

.card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.plagas-cols {
  margin-top: 1.7rem;
}

.list-check {
  list-style: none;
  padding-left: 0;
  margin: 0.8rem 0 0;
  font-size: 0.95rem;
}

.list-check li {
  position: relative;
  padding-left: 1.4rem;
}

.list-check li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #0b7c4b;
  font-size: 0.85rem;
  transform: translateY(3px);
}

.small {
  font-size: 0.85rem;
  color: #5d7265;
}

.infografia-strip {
  margin-top: 2rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(140px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.infografia-strip img {
  border-radius: 1rem;
  cursor: zoom-in;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.sanit-img-wrapper img {
  border-radius: 1.3rem;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.gallery-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  border-radius: 1rem;
  cursor: zoom-in;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.09);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gallery-grid img:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
}

.video-container {
  margin-top: 2rem;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.contacto-cols {
  gap: 2.5rem;
}

.contact-list {
  list-style: none;
  padding-left: 0;
  font-size: 0.95rem;
}

.contact-list li + li {
  margin-top: 0.4rem;
}

.contact-list a {
  color: #0b7c4b;
}

.contact-form {
  background: #ffffff;
  padding: 1.6rem 1.5rem;
  border-radius: 1.4rem;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.9rem;
}

.form-row label {
  margin-bottom: 0.25rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  border-radius: 0.7rem;
  border: 1px solid #c9d7cf;
  padding: 0.55rem 0.7rem;
  font: inherit;
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid rgba(11, 124, 75, 0.2);
  border-color: #0b7c4b;
}

.site-footer {
  background: #0b3220;
  color: #deefe5;
  padding: 1.4rem 0;
  font-size: 0.83rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer a {
  color: #a9e9c2;
}

.whatsapp-float {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.29);
  z-index: 60;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 1.5rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
}

.lightbox img {
  width: 100%;
  border-radius: 1rem;
}

.lightbox-close {
  position: absolute;
  top: -2.3rem;
  right: 0;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 880px) {
  .main-nav {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    max-width: 100%;
  }

  .cols-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .infografia-strip {
    grid-auto-columns: minmax(160px, 1fr);
  }
}

@media (max-width: 520px) {
  .header-content {
    padding-inline: 0.2rem;
  }

  .hero {
    background-position: 40% center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-card {
    padding: 1.4rem 1.2rem;
  }

  .section {
    padding: 3rem 0;
  }
}
