body {
  background-color: #d2d1d1;
}

section {
  padding: 0;
}

:root {
  --verde-principal: #4d8b31;
  --verde-secundario: #3a6a25;
  --gris-claro: #f5f5f5;
  --gris-oscuro: #333;
  --verde-check: #4caf50;
}

.pallets-header {
  position: relative;
  padding-left: 20px;
  padding-right: 20px;
  height: 100vh;
  animation: fadeInDown 1.2s;
  text-align: center;
  background-color: #d2d1d1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pallets-content {
  position: relative;
  z-index: 2;
  transform: translateY(49.5px);
}

.pallets-background {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 1200px;
  height: 70vh;
  background-image: url("../img/hero_2.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translate(-50%, calc(-50% + 49.5px));
  z-index: 1;
  opacity: 0.3;
  border-radius: 5px;
}

.pallets-header h1,
.pallets-header h2,
.pallets-icons {
  position: relative;
  z-index: 2;
  margin: 10px 0;
}

.pallets-header h1 {
  color: var(--gris-oscuro);
  font-size: 41px;
  font-weight: 700;
}

.pallets-header h2 {
  color: var(--gris-oscuro);
  font-size: 23px;
  font-weight: 400;
  max-width: 1000px;
  margin-left: 20px;
  margin-right: 20px;
}

.pallets-header h2:after {
  content: "";
  width: 80px;
  height: 4px;
  background: transparent;
  position: absolute;
  bottom: -15px;
  left: 50%;
}

.technical-features-wrapper {
  width: 100%;
  position: relative;
}

.technical-features {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding-top: 150px;
  padding-bottom: 150px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 1;
}

.technical-features-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/Fondo-productos-pagina-2.webp");
  position: fixed;
  background-size: cover;
  background-position: bottom;
  opacity: 0.3;
  z-index: -1;
}

.tech-feature {
  background-color: #f9f9f9;
  padding: 20px 15px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  text-align: center;
  animation: zoomIn 0.8s;
  animation-fill-mode: both;
  height: 225px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.tech-feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  background-color: #fff8f2;
  border-bottom: 3px solid var(--verde-principal);
}

.tech-feature i {
  font-size: 41px;
  color: var(--verde-principal);
  margin-bottom: 15px;
  transition: transform 0.5s;
}

.tech-feature:hover i {
  transform: rotate(360deg);
}

.tech-feature h4 {
  color: var(--verde-secundario);
  font-size: 18px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tech-feature p {
  font-size: 16px;
  color: var(--gris-oscuro);
}

@keyframes staggeredAppear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tech-feature:nth-child(1) {
  animation-delay: 0.1s;
}
.tech-feature:nth-child(2) {
  animation-delay: 0.2s;
}
.tech-feature:nth-child(3) {
  animation-delay: 0.3s;
}
.tech-feature:nth-child(4) {
  animation-delay: 0.4s;
}
.tech-feature:nth-child(5) {
  animation-delay: 0.5s;
}
.tech-feature:nth-child(6) {
  animation-delay: 0.6s;
}

.tech-feature.touch-active {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  background-color: #fff8f2;
  border-bottom: 3px solid var(--verde-principal);
}

.tech-feature.touch-active i {
  transform: rotate(360deg);
}

.products-gallery {
  animation: fadeIn 1.8s;
  margin: auto;
  padding-top: 150px;
  padding-bottom: 150px;
  background-color: #d2d1d1;
}

.gallery-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2.5rem;
  color: var(--gris-oscuro);
  position: relative;
  padding-bottom: 10px;
}

.gallery-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--verde-secundario);
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  width: 90%;
  margin: auto;
}

@media (max-width: 900px) {
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery-item {
  position: relative;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.5s;
  animation: fadeInUp 1s;
  animation-fill-mode: both;
  aspect-ratio: 1/1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s;
}

.gallery-item:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--verde-principal);
}

.gallery-item:hover img {
  transform: scale(1.15);
}

.gallery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
  transition: background-color 0.3s;
}

.btn-cotizar {
  background-color: var(--verde-principal);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s;
  width: 50%;
}

.btn-cotizar:hover {
  background-color: var(--verde-secundario);
}

.gallery-item:hover .gallery-info {
  background-color: rgba(255, 248, 242, 0.9);
}

.gallery-info h4 {
  font-size: 20px;
  margin-bottom: 5px;
  color: var(--gris-oscuro);
}

.gallery-info p {
  color: var(--verde-principal);
  font-weight: 600;
}

.gallery-item:nth-child(1) {
  animation-delay: 0.1s;
}
.gallery-item:nth-child(2) {
  animation-delay: 0.3s;
}
.gallery-item:nth-child(3) {
  animation-delay: 0.5s;
}
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.animate__fadeIn {
  animation-name: fadeIn;
  animation-duration: 1s;
}

.animate__fadeInUp {
  animation-name: fadeInUp;
  animation-duration: 1s;
}

@media (max-width: 768px) {
  .technical-features {
    background-attachment: scroll;
  }

  .technical-features {
    grid-template-columns: repeat(1, 1fr);
  }

  .pallets-header h1 {
    font-size: 28px;
  }

  .pallets-header h2 {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .gallery-container {
    grid-template-columns: 1fr;
  }

  .gallery-title {
    font-size: 1.5rem;
  }

  .certifications {
    justify-content: center;
  }

  .certification-item {
    max-width: 80px;
  }

  .pallets-header h1 {
    font-size: 24px;
  }

  .pallets-header h2 {
    font-size: 14px;
  }
}
.contacto {
  padding-top: 120px;
  padding-bottom: 120px;
}
.pallets-icons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.pallets-icons i {
  font-size: 80px;
  color: var(--verde-secundario);
  transition: transform 0.3s ease;
}

.pallets-icons i:hover {
  transform: scale(1.2);
}
