@font-face {
  font-family: "AmasisMT";
  src: url("../font/amasis-mt.ttf") format("truetype");
}

@font-face {
  font-family: "FiraSansRegular";
  src: url("../font/FiraSans-Regular.ttf") format("truetype");
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
  background-color: #4d8b31;
  border-radius: 4px;
  border: 2px solid #f0f0f0;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #3a6d25;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #4d8b31 #f0f0f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "FiraSansRegular", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

h2 {
  font-size: 3rem;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}

h2:after {
  content: "";
  width: 80px;
  height: 4px;
  background: #4d8b31;
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

p {
  line-height: 1.7;
  color: #666;
  font-size: 1.1rem;
}

hr {
  color: #ffffff;
  opacity: 0.3;
}

.btn {
  display: inline-block;
  background: #4d8b31;
  color: white;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.3rem !important;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background: #3a6a25;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

img {
  max-width: 100%;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s;
}

header.nav-top {
  background-color: rgb(113, 113, 113);
  transition: background-color 0.3s;
}

.header-top {
  background-color: #4d8b31;
  color: white;
  padding: 10px 0;
}

.header-top .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.contact-top {
  display: flex;
  align-items: center;
}

.contact-top a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  margin-left: 20px;
  font-size: 0.9rem;
}

.contact-top a i {
  margin-right: 5px;
  font-size: 1.2rem;
}

nav {
  background-color: rgba(82, 82, 82, 0.9);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 1px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 90px;
  width: 90px;
  margin-top: 5px;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: auto;
}

.nav-links li {
  margin-left: 45px;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 20px;
  position: relative;
  padding: 5px 0;
  transition: all 0.3s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #fff;
  bottom: 0;
  left: 0;
  transition: width 0.3s;
}

.nav-links a:hover:after {
  width: 100%;
}

.navbar-whatsapp {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: auto;
  margin-right: 20px;
}

.navbar-whatsapp a.whatsapp-btn,
.navbar-whatsapp a.whatsapp-phone {
  display: block;
  text-align: center;
}

.navbar-whatsapp a.whatsapp-btn {
  background-color: #25d366;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
  text-decoration: none;
  width: 150px;
  margin-bottom: 10px;
}

.navbar-whatsapp a.whatsapp-phone {
  margin-top: 5px;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: #ffff;
  margin: 5px;
  transition: all 0.3s;
}

.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: #000;
  padding: 0;
}

.hero-slider {
  height: 100%;
  width: 100%;
  position: absolute;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s, transform 5s;
  transform: scale(1.1);
}

.slide.active {
  opacity: 0.7;
  transform: scale(1);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: left;
  color: white;
  z-index: 10;
  width: 90%;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-box {
  padding: 30px;
  border-radius: 10px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-box h1 {
  color: #fff;
  text-shadow: none;
  font-size: 3.5rem;
  font-family: "AmasisMT", sans-serif;
}

.hero-box p {
  color: #fff;
  text-shadow: none;
  margin: 0;
  font-size: 2rem;
  font-family: "AmasisMT", sans-serif;
}

.nosotros {
  position: relative;
  overflow: hidden;
  background-color: #d2d1d1;
}

.nosotros-container {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 100px;
  margin-bottom: 100px;
}

.nosotros-img {
  flex: 1;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 10px 30px rgba(0, 0, 0, 0.07);
}

.nosotros-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nosotros-content {
  flex: 1;
  text-align: justify;
}

.nosotros p {
  font-size: 1.2rem;
}

.nosotros h2 {
  text-align: left;
}

.nosotros h3 {
  font-size: 1.6rem;
}

.nosotros h2:after {
  left: 0;
  transform: none;
}

.productos {
  position: relative;
  overflow: hidden;
}

.bg-fixed {
  background-image: url("../img/Fondo-productos-pagina-1.webp");
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  z-index: -1;
}

.productos-container {
  position: relative;
  z-index: 1;
}

.productos-container h2 {
  color: #fff;
  font-size: 2.8rem;
}

.productos-container h2:after {
  background: #311f02;
}

.productos-container p {
  text-align: center;
  color: #fff;
  font-weight: 700;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.producto-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.producto-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.producto-img {
  height: 200px;
  overflow: hidden;
}

.producto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.producto-card:hover .producto-img img {
  transform: scale(1.1);
}

.producto-info {
  padding: 20px;
}

.producto-info h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #333;
}

.producto-info p {
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.certificaciones {
  background-color: #d2d1d1;
}

.cert-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 100px;
  margin-bottom: 100px;
}

.cert-content {
  text-align: justify;
  max-width: 800px;
  margin-bottom: 40px;
}

.cert-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

.cert-logo {
  max-width: 400px;
  transition: all 0.3s;
}

.cert-logo:hover {
  transform: scale(1.1);
}

.contacto {
  background-color: #f9f9f9;
  background-image: url("../img/viruta-oscura.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  height: fit-content;
}

.contact-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: #4d8b31;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 20px;
}

.contact-text h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #311f02;
}

.contact-text p {
  color: #333;
}

.contact-content {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr 2fr;
    grid-template-areas: "contact form";
  }
  .contact-info {
    grid-area: contact;
  }
  .form-container {
    grid-area: form;
  }
}

.contacto-container {
  max-width: 900px;
  margin: 0 auto;
}

.contacto-container h2 {
  color: #fff;
}

.contactanos {
  font-size: 1rem;
}

.form-container {
  background-color: white;
  border-radius: 10px;
  padding: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-control:focus {
  border-color: #4d8b31;
  outline: none;
  box-shadow: 0 0 0 3px rgba(77, 139, 49, 0.2);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.form-check input {
  margin-right: 10px;
}

.g-recaptcha {
  margin: 20px 0;
}

footer {
  background-color: #333;
  color: white;
  padding: 50px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  text-align: center;
}

.footer-col h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3:after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background: #4d8b31;
  bottom: 0;
  left: 0;
}

.footer-col h3:after {
  left: 50%;
  transform: translateX(-50%);
}

.footer-col p {
  color: #ccc;
  margin-bottom: 15px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s;
}

.footer-col ul li a:hover {
  color: #4d8b31;
  padding-left: 5px;
}

.footer-col .social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-contact-link {
  text-decoration: none;
  color: inherit;
  margin-left: 5px;
  transition: all 0.3s;
}

.footer-contact-link:hover {
  color: #4d8b31;
  padding-left: 5px;
}

.social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: #4d8b31;
  color: white;
  border-radius: 50%;
  transition: all 0.3s;
  text-decoration: none;
}

.social-links a:hover {
  background: #3a6a25;
  transform: translateY(-5px);
}

.footer-col .social-links {
  justify-content: center;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a {
  color: #666;
  text-decoration: none;
}

.whatsapp-float {
  position: fixed;
  bottom: 45px;
  right: 20px;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 999;
  transition: all 0.3s;
}

.whatsapp-float:hover {
  background: #1fba58;
  transform: scale(1.1);
}

.animate-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s;
}

.animate-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s;
}

.animate-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s;
}

.animate-zoom {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s;
}

.animate-left.active,
.animate-right.active,
.animate-up.active,
.animate-zoom.active {
  opacity: 1;
  transform: translate(0) scale(1);
}

@media (max-width: 991px) {
  h2 {
    font-size: 1.5rem;
  }
  .nosotros-container {
    flex-direction: column;
  }

  .navbar-whatsapp {
    display: none;
  }

  .nosotros-img {
    order: -1;
    margin-bottom: 30px;
  }

  .nosotros h2 {
    text-align: center;
  }

  .nosotros h2:after {
    left: 50%;
    transform: translateX(-50%);
  }
  .cert-logo {
    max-width: 300px;
  }
  .nosotros-container {
    margin-top: 0px;
    margin-bottom: 0px;
  }
  .cert-container {
    margin-top: 0px;
    margin-bottom: 0px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    right: -100%;
    top: 100%;
    flex-direction: column;
    background-color: rgba(82, 82, 82, 0.9);
    width: 100%;
    text-align: center;
    transition: all 0.5s;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 0;
    padding: 15px;
    border-bottom: 1px solid #eee;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .hamburger.active .line2 {
    opacity: 0;
  }

  .hamburger.active .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-container {
    text-align: center;
  }

  .footer-col h3:after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-col .social-links {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  section {
    padding: 60px 0;
  }

  .form-container {
    padding: 30px 20px;
  }
}
.galeria-palm-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 60px 0;
}

.galeria-palm-linea-central {
  position: absolute;
  top: 0;
  left: 50%;
  width: 6px;
  height: 100%;
  background-image: repeating-linear-gradient(
    to bottom,
    #311f02 0,
    #311f02 7px,
    transparent 7px,
    transparent 14px
  );
  transform: translateX(-50%);
  z-index: 1;
  transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.galeria-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scale(1);
  width: 20px;
  height: 20px;
  background-color: #311f02;
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.galeria-dot.active {
  transform: translateX(-50%) scale(1.5);
  background-color: #5c3d20;
}

.galeria-palm-item {
  display: flex;
  position: relative;
  width: 100%;
  min-height: 300px;
  margin: 100px 0;
  opacity: 0;
  transition: opacity 1s ease, transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.galeria-palm-imagen-container {
  width: 45%;
  height: 300px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 25px 0 25px 0;
  overflow: hidden;
  transition: all 0.4s ease, transform 0.6s ease;
  cursor: pointer;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.galeria-palm-imagen-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}

.galeria-palm-imagen-container:hover::after {
  background: rgba(0, 0, 0, 0);
}

.galeria-palm-imagen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.galeria-palm-texto {
  width: 45%;
  background-color: #d3d2d2bb;
  border-radius: 25px 0 25px 0;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.8s ease;
}

.galeria-palm-texto h2 {
  margin-bottom: 15px;
  color: #311f02;
  font-size: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.galeria-palm-texto h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: #311f02 !important;
}

.galeria-palm-texto p {
  line-height: 1.8;
  font-size: 1.15rem;
  color: rgba(31, 31, 31, 0.9);
  margin-left: 5px;
  margin-right: 5px;
}

.galeria-palm-item:nth-child(odd) .galeria-palm-imagen-container {
  margin-right: auto;
  transform: translateX(-100px) scale(0.95);
  opacity: 0;
}

.galeria-palm-item:nth-child(odd) .galeria-palm-texto {
  margin-left: auto;
  text-align: center;
  transform: translateX(100px);
  opacity: 0;
}

.galeria-palm-item:nth-child(even) .galeria-palm-imagen-container {
  margin-left: auto;
  order: 2;
  transform: translateX(100px) scale(0.95);
  opacity: 0;
}

.galeria-palm-item:nth-child(even) .galeria-palm-texto {
  margin-right: auto;
  text-align: center;
  order: 1;
  transform: translateX(-100px);
  opacity: 0;
}

.galeria-palm-item:nth-child(even) .galeria-palm-texto h2::after {
  left: auto;
  right: 0;
}

.galeria-palm-imagen-container:hover .galeria-palm-imagen {
  transform: scale(1.08);
}

.galeria-palm-visible {
  opacity: 1;
}

.galeria-palm-item.galeria-palm-visible .galeria-palm-imagen-container,
.galeria-palm-item.galeria-palm-visible .galeria-palm-texto {
  transform: translateX(0) scale(1);
  opacity: 1;
}

.galeria-palm-texto-titulo {
  font-size: 32px !important;
  color: #311f02 !important;
  margin-bottom: 10px;
  text-align: center !important;
  line-height: normal !important;
}

@media (max-width: 576px) {
  .galeria-palm-texto-titulo {
    font-size: 22px !important;
  }
}

@media (max-width: 768px) {
  .galeria-palm-item {
    flex-direction: column;
    align-items: center;
    margin: 60px 0;
  }

  .galeria-palm-imagen-container,
  .galeria-palm-texto {
    width: 90%;
    margin: 15px auto !important;
  }

  .galeria-palm-linea-central {
    margin-top: 140px;
    left: 0px;
  }

  .galeria-palm-item::before {
    left: 15px;
    top: 0;
  }

  .galeria-palm-item:nth-child(odd) .galeria-palm-imagen-container,
  .galeria-palm-item:nth-child(even) .galeria-palm-imagen-container {
    transform: translateX(0) translateY(-50px) scale(0.95);
    opacity: 0;
  }

  .galeria-palm-item:nth-child(odd) .galeria-palm-texto,
  .galeria-palm-item:nth-child(even) .galeria-palm-texto {
    transform: translateX(0) translateY(50px);
    opacity: 0;
    text-align: left;
  }

  .galeria-palm-item.galeria-palm-visible .galeria-palm-imagen-container,
  .galeria-palm-item.galeria-palm-visible .galeria-palm-texto {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 1;
  }

  .galeria-palm-item:nth-child(odd) .galeria-palm-texto,
  .galeria-palm-item:nth-child(even) .galeria-palm-texto {
    order: 1;
  }

  .galeria-palm-item:nth-child(odd) .galeria-palm-imagen-container,
  .galeria-palm-item:nth-child(even) .galeria-palm-imagen-container {
    order: 2;
  }

  .galeria-palm-texto h2::after {
    left: 0;
    right: auto;
  }
}

@media (max-width: 480px) {
  .galeria-palm-container {
    padding: 40px 0;
  }

  .galeria-palm-item {
    margin: 40px 0;
  }

  .galeria-palm-texto h2 {
    font-size: 1.3rem;
  }

  .galeria-palm-imagen-container {
    height: 250px;
  }
  .galeria-palm-linea-central {
    margin-top: 100px;
    left: 0px;
  }
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
  vertical-align: middle;
  margin-right: 10px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: background-color 0.4s;
  border-radius: 24px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: transform 0.4s;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.switch input:checked + .slider {
  background-color: #4d8b31;
}

.switch input:checked + .slider:before {
  transform: translateX(16px);
}

.switch-label {
  vertical-align: middle;
  cursor: pointer;
  font-size: 1rem;
  color: #333;
}

.formulario-web-zone {
  display: none;
}

.formulario-web-success {
  color: #0c642f;
  margin-bottom: 40px;
  text-align: center;
  font-size: large;
}

.formulario-web-error {
  color: red;
  margin-bottom: 40px;
  text-align: center;
  font-size: large;
}

.cf-turnstile {
  margin-top: 5px;
  margin-bottom: 10px;
}
