/* ===== COMPENSACIÓN PARA LA SECCIÓN HERO ===== */

/* ===== HERO SECTION ===== */
.hero-wrapper {
  position: relative;
  background-color: #000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.hero-background {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
    url('https://apce.mx/fondos2prueba/Fondo con elemento.png') no-repeat center center;
  background-size: cover;
  z-index: 0;
}

@keyframes waveFlow {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-1.5%) scale(1.03);
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(40px, 6vh, 70px) 0;
}

/* === HERO MAIN === */
.hero-main-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(1.1);
  transform-origin: center center;
  transition: transform 0.5s ease;
  margin-bottom: 60px;
  margin-top: 100px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  margin-top: -40px;
  transform: translateX(-50px); /* Ajustado de -140px a -120px para compensar el movimiento de la imagen */
}

/* Texto principal más pequeño */
.hero-text h1 {
  font-size: clamp(2.5rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.3rem;
  text-shadow: 3px 3px 18px rgba(0,0,0,0.9);
}

/* Logo más pequeño */
.hero-logo-img {
  width: clamp(80px, 10vw, 105px);
  margin: 14px 0;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.85));
}


/* Subtítulo ajustado */
.hero-subtitle {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: #ffffff;
  margin-top: 0.6rem;
}

/* ===== IMAGEN DE BARRILES MÁS PEQUEÑA Y DESPLAZADA A LA DERECHA ===== */
.hero-image-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: auto;
  margin-top: 70px;
}

.hero-products-img {
  width: 160%;              /* ↑ antes 150% */
  height: auto;
  max-width: 1250px;        /* ↑ antes 1100px */
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.95));
  transform: scale(1.15);   /* ↑ antes 1.1 */
  transition: transform 0.8s ease, filter 0.5s ease;
  margin-right: 20px;
}

.hero-products-img:hover {
  transform: scale(1.22);   /* ↑ hover un poquito más */
  filter: drop-shadow(0 45px 85px rgba(0, 0, 0, 1));
}

.hero-subtitle-bottom {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 2.3vw, 1.25rem);
  color: #ffffff;
  text-align: right;
  z-index: 2;
  width: 100%;
}


/* === HERO FEATURES BAR === */
.features-bar-top {
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px 16px 0 0;
  padding: 1.2rem 0.8rem;
  width: 100%;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 5px 25px rgba(0,0,0,0.3);
  z-index: 5;
}

.feature-box-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  cursor: pointer;
}

.feature-box-top i {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #49ad33;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.feature-box-top:hover i {
  transform: scale(1.08);
  color: #0068ff;
}

.feature-box-top p {
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  color: #fff;
  text-align: center;
  margin: 0;
  line-height: 1.3;
  transition: all 0.3s ease;
}

.feature-box-top:hover p {
  transform: scale(1.05);
  color: #ffffff;
}