/* --- RESET --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  overflow-x: hidden;
  font-family: "Montserrat", sans-serif;
  background-color: #f1f7ec;
  scroll-behavior: smooth;
}

/* --- ANIMACIONES --- */
@keyframes premiumJump {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* EFECTO NEONSITO PARA PRODUCTOS */
@keyframes neonGlow {
  0% {
    box-shadow:
      0 0 10px rgba(111, 186, 36, 0.5),
      0 0 20px rgba(111, 186, 36, 0.3);
    border-color: #6fba24;
  }
  100% {
    box-shadow:
      0 0 20px rgba(111, 186, 36, 0.9),
      0 0 40px rgba(111, 186, 36, 0.6),
      0 0 60px rgba(111, 186, 36, 0.3);
    border-color: #90e030;
  }
}

/* --- TOP BAR --- */
.top-bar {
  background-color: #4a7d18;
  color: white;
  padding: 8px 0;
  z-index: 110;
  position: relative;
}
.top-bar-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  padding: 0 40px;
}
.top-right-group {
  display: flex;
  align-items: center;
  gap: 30px;
}
.jump-container {
  display: inline-block;
  position: relative;
  /* OPTIMIZACIÓN: Prepara la GPU para la animación del hijo */
  will-change: transform;
}
.jump-trigger {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  /* OPTIMIZACIÓN: Solo animamos lo que cambia */
  transition:
    color 0.3s ease,
    text-shadow 0.3s ease;
}
.jump-trigger i {
  margin-right: 10px;
  font-size: 0.9rem;
}
.jump-trigger span {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}
.jump-container:hover .jump-trigger {
  animation: premiumJump 0.4s ease-in-out;
  text-shadow: 0 0 10px #fff;
}
.top-social {
  display: flex;
  gap: 25px;
}

/* --- MAIN HEADER --- */
.main-header {
  width: 100%;
  height: 100px;
  background: #6fba24 url("../svg/header-svg.svg") no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.header-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
}

.brand-logo {
  height: 80px;
  width: auto;
  display: block;
}

.nav-list {
  list-style: none;
  display: flex;
  height: 100px;
}
.nav-list li {
  height: 100px;
  display: flex;
  align-items: center;
}

.nav-list li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  transition:
    background-color 0.4s ease,
    text-shadow 0.4s ease;
}

.nav-list li a:hover {
  background-color: rgba(74, 125, 24, 0.9);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* LA LÍNEA NEÓN QUE AHORA ES DIRECTA, SIN REBOTE */
.nav-list li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #fff;
  box-shadow:
    0 0 5px #fff,
    0 0 12px #fff;
  transform: scaleX(0);
  transform-origin: center;
  /* CAMBIO APLICADO AQUÍ: ease-out para una transición fluida y directa */
  transition: transform 0.3s ease-out;
  will-change: transform;
}

.nav-list li a:hover::after {
  transform: scaleX(1);
}

/* --- INDEX - SECCIÓN PRODUCTOS --- */
.products-carousel-section {
  padding: 30px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 550px;
  display: flex;
  align-items: center;
}
.carousel-svg-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.35;
  pointer-events: none;
}
.carousel-svg-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 300;
  color: #4a7d18;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 15px;
}
.underline-title {
  width: 80px;
  height: 3px;
  background: #6fba24;
  margin: 0 auto 30px;
  border-radius: 10px;
}

/* Tarjetas de Producto */
.product-card {
  padding: 15px 10px;
  background: transparent;
}
.product-img-container {
  position: relative;
  padding: 5px;
}
.product-img-wrapper {
  width: 190px;
  height: 190px;
  margin: 0 auto;
  border-radius: 50%;
  border: 4px solid #fff;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    border-color 0.5s ease,
    box-shadow 0.5s ease;
  background-color: #fff;
  will-change: transform, border-color, box-shadow;
}
.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
}
.product-card h3 {
  margin-top: 20px;
  font-weight: 500;
  color: #333;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ANIMACIÓN NEÓN APLICADA */
.product-card:hover .product-img-wrapper {
  transform: scale(1.08) translateY(-8px);
  animation: neonGlow 1s ease-in-out infinite alternate;
}

/* Botón Ver Todos */
.view-all-container {
  margin-top: 40px;
}
.btn-premium-light {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 35px;
  background-color: #6fba24;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 3px;
  border-radius: 50px;
  transition:
    background-color 0.4s ease,
    color 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    transform 0.4s ease;
  box-shadow: 0 5px 15px rgba(111, 186, 36, 0.2);
  border: 2px solid transparent;
  will-change: transform;
}
.btn-premium-light:hover {
  background-color: #fff;
  color: #6fba24;
  border-color: #6fba24;
  box-shadow:
    0 0 15px #fff,
    0 0 20px rgba(111, 186, 36, 0.5);
  transform: translateY(-3px) scale(1.02);
}

/* --- RESPONSIVIDAD --- */
#menu-check {
  display: none;
}
.menu-tablet-icon {
  display: none;
  cursor: pointer;
  color: white;
  font-size: 1.8rem;
}

@media (max-width: 992px) {
  .menu-tablet-icon {
    display: block;
  }
  .main-header {
    height: 90px;
  }
  .header-container {
    padding: 0 20px;
  }
  .brand-logo {
    height: 70px;
  }

  .main-nav {
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    background-color: #4a7d18;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    z-index: 999;
  }
  #menu-check:checked ~ .main-nav {
    max-height: 450px;
  }
  .nav-list {
    flex-direction: column;
    height: auto;
  }
  .nav-list li {
    width: 100%;
    height: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .nav-list li a {
    width: 100%;
    justify-content: center;
    height: 100%;
    font-size: 1rem;
  }
  .nav-list li a::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .product-img-wrapper {
    width: 170px;
    height: 170px;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .top-bar {
    padding: 5px 0;
  }
}
