/* =========================
   MENÚ PRINCIPAL
========================= */
/* Línea inferior */
#topMain > li > a::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #2f7d32; /* Verde UNIPLANTSA */
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

/* Hover */
#topMain > li > a:hover {
  color: #2f7d32;
}

#topMain > li > a:hover::after {
  width: 60%;
}

/* Activo */
#topMain > li.active > a {
  color: #2f7d32;
}

#topMain > li.active > a::after {
  width: 60%;
}

/* =========================
   MENÚ RESPONSIVO UNIPLANTSA
========================= */

@media (max-width: 991px) {
  /* Contenedor del menú */
  .nav-main-collapse {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
  }

  /* Lista */
  #topMain {
    padding: 10px 0;
  }

  /* Items */
  #topMain > li {
    float: none;
    text-align: center;
    border-bottom: 1px solid #f0f2f5;
  }

  #topMain > li:last-child {
    border-bottom: none;
  }

  /* Links */
  #topMain > li > a {
    padding: 18px 15px;
    font-size: 14px;
    letter-spacing: 1px;
    text-align: center;
  }

  /* Línea inferior centrada */
  #topMain > li > a::after {
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Activo */
  #topMain > li.active > a {
    color: #2f7d32;
  }

  #topMain > li.active > a::after {
    width: 40%;
  }

  /* Quitar hover raro en móvil */
  #topMain > li > a:hover::after {
    width: 40%;
  }
}

/* =========================
   OVERLAY HERO UNIPLANTSA
========================= */

#slider .overlay {
  background: linear-gradient(
    rgba(15, 40, 25, 0.55),
    rgba(15, 40, 25, 0.75)
  ) !important;
}
.img-footer {
  max-width: 120px;
  margin-bottom: 15px;
  background-color: #ffffff;
}

/* =========================
   Footer UNIPLANTSA
========================= */

.footer-logo {
  max-width: 150px;
  background-color: #ffffff;
  float: left;
  margin-right: 35px;
}
.footer-links-flex {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}

.footer-links-flex a {
  color: #cfcfcf;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links-flex a:hover {
  color: #7cff7c;
}
.footer-links-flex a:not(:last-child)::after {
  content: "|";
  margin-left: 10px;
  color: #555;
}
#footer > .container {
  padding-top: 30px !important;
  margin-bottom: 30px !important;
}

@media only screen and (max-width: 768px) {
  #footer .row > div {
    margin-bottom: 0px !important;
  }
}

/* FORZAR STICKY TAMBIÉN EN MÓVIL */
@media (max-width: 991px) {
  #header,
  #topNav {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
  }

  body {
    padding-top: 70px;
  }
}

/* =========================
   SERVICIOS - UX DESIGN
========================= */

.service-block h3 {
  font-weight: 600;
  margin-bottom: 15px;
  color: #2f2f2f;
}

.service-text {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 20px;
}

.service-list {
  list-style: none;
  padding-left: 0;
}

.service-list li {
  margin-bottom: 8px;
  color: #4a7c2a;
  font-weight: 500;
}

.service-img {
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 767px) {
  .service-block {
    text-align: center;
  }

  .service-img {
    margin-top: 20px;
  }
}
/* =========================
   AJUSTE UX SERVICIOS
========================= */

/* Espacio ENTRE servicios */
.service-spacing {
  padding: 50px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Quitar borde al último */
.service-spacing:last-child {
  border-bottom: none;
}

/* Imagen más contenida */
.service-img {
  max-height: 340px; /* 🔥 clave */
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Texto más compacto */
.service-text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Lista más limpia */
.service-list li {
  margin-bottom: 6px;
  font-size: 15px;
}

/* Mobile: orden y espacio */
@media (max-width: 767px) {
  .service-spacing {
    padding: 35px 0;
  }

  .service-img {
    max-height: 260px;
    margin-top: 20px;
  }
}
textarea {
  resize: none !important;
}
.nanogallery_gallerytheme_custom_nanogallery .nGY2PaginationNext,
.nanogallery_gallerytheme_custom_nanogallery .nGY2paginationItem,
.nanogallery_gallerytheme_custom_nanogallery .nGY2PaginationPrev {
  background: #2e7d32 !important;
}
/* Fondo transparente del visor */
.nGY2ViewerOverlay {
  background: rgba(0, 0, 0, 0) !important;
}

/* Opcional: quitar sombra alrededor */
.nGY2ViewerOverlay {
  background: rgba(0, 0, 0, 0.25) !important;
}

