/* =====================================================================
   RESPONSIVE CSS MEJORADO - APC ENGINEERING
   Basado en configuración EXACTA de los archivos originales
   ===================================================================== */

/* =====================================================================
   BREAKPOINTS ESTRATÉGICOS:
   - Desktop: 1366px+
   - Laptop: 1024px - 1366px
   - Tablet Large: 900px - 1024px
   - Tablet: 768px - 900px
   - Mobile Large: 600px - 768px
   - Mobile Medium: 480px - 600px
   - Mobile Small: 320px - 480px
   ===================================================================== */


  






   /* =====================================================================
  PROPIEDADES NAV ARROW 
  
   ===================================================================== */

   /* =====================================================================
   CARRUSEL DE INDUSTRIAS - VERSIÓN FINAL OPTIMIZADA
   ===================================================================== */

.industries-content-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  /* Altura base para 5 items (90px * 5) */
  height: 450px; 
  overflow: hidden;
  display: flex;
  align-items: center;
  
  /* Máscara de transparencia para el efecto de desvanecimiento */
  -webkit-mask-image: linear-gradient(
    to bottom, 
    transparent 0%, 
    black 25%, 
    black 75%, 
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom, 
    transparent 0%, 
    black 25%, 
    black 75%, 
    transparent 100%
  );
}

.industries-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  /* Movimiento fluido con curva de aceleración personalizada */
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

.industry-item {
  width: 100%;
  height: 90px; /* Altura fija por defecto */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.4s ease;
  
  /* Estilo de los elementos fuera de foco */
  font-size: 1.4rem;
  font-weight: 300;
  color: #0066cc;
  opacity: 0.2;
  filter: blur(1px);
  transform: scale(0.95);
}

.industry-item i {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.4s ease;
  margin-right: 40px;
}

/* --- ESTADO ACTIVO (CENTRAL) --- */
.industry-item.active {
  font-size: 2.4rem;
  font-weight: 700;
  color: #0066cc;
  opacity: 1 !important;
  filter: blur(0px) !important;
  transform: scale(1.05);
}

.industry-item.active i {
  opacity: 1;
  transform: translateX(0);
}

.industry-item:hover:not(.active) {
  opacity: 0.5;
}

/* --- NAVEGACIÓN --- */
.carousel-navigation {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.nav-arrow {
  width: 50px;
  height: 50px;
  border: 2px solid #0066cc;
  background: transparent;
  color: #0066cc;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.nav-arrow:hover {
  background: #0066cc;
  color: white;
}

/* =====================================================================
   RESPONSIVE - AJUSTE DE ALTURAS PARA CENTRADO PERFECTO
   ===================================================================== */

/* DESKTOP MEDIO (1366px-1599px) - Muestra 3 items */
@media (max-width: 1599px) and (min-width: 1366px) {
  .carousel-wrapper { height: 300px; } /* 100px * 3 */
  .industry-item { height: 100px; font-size: 1.4rem; }
  .industry-item.active { font-size: 2.2rem; }
  .carousel-navigation { gap: 12px; margin-top: 40px; }
  .nav-arrow { width: 44px; height: 44px; font-size: 1.2rem; }
}

/* LAPTOP (1200px-1365px) - Muestra 3 items */
@media (max-width: 1365px) and (min-width: 1200px) {
  .carousel-wrapper { height: 279px; } /* 93px * 3 */
  .industry-item { height: 93px; font-size: 1.35rem; }
  .industry-item.active { font-size: 2.1rem; }
  .carousel-navigation { gap: 12px; margin-top: 35px; }
  .nav-arrow { width: 42px; height: 42px; }
}

/* LAPTOP PEQUEÑO (1024px-1199px) - Muestra 3 items */
@media (max-width: 1199px) and (min-width: 1024px) {
  .carousel-wrapper { height: 270px; } /* 90px * 3 */
  .industry-item { height: 90px; font-size: 1.3rem; padding-left: 35px; }
  .industry-item.active { font-size: 2rem; }
  .carousel-navigation { gap: 10px; margin-top: 30px; }
  .nav-arrow { width: 40px; height: 40px; }
}

/* TABLET (768px-1023px) - Muestra 3 items */
@media (max-width: 1023px) and (min-width: 768px) {
  .carousel-wrapper { height: 258px; } /* 86px * 3 */
  .industry-item { height: 86px; font-size: 1.25rem; padding-left: 30px; }
  .industry-item.active { font-size: 1.9rem; }
  .carousel-navigation { gap: 8px; margin-top: 25px; }
  .nav-arrow { width: 38px; height: 38px; }
}

/* MÓVIL GRANDE (480px-767px) - Muestra 3 items */
@media (max-width: 767px) and (min-width: 480px) {
  .carousel-wrapper { height: 240px; } /* 80px * 3 */
  .industry-item { height: 80px; font-size: 1.15rem; padding-left: 25px; }
  .industry-item.active { font-size: 1.7rem; }
  .carousel-navigation { gap: 6px; margin-top: 20px; }
  .nav-arrow { width: 34px; height: 34px; font-size: 0.95rem; }
}

/* MÓVIL MEDIANO (375px-479px) - Muestra 3 items */
@media (max-width: 479px) and (min-width: 375px) {
  .carousel-wrapper { height: 219px; } /* 73px * 3 */
  .industry-item { height: 73px; font-size: 1.05rem; padding-left: 20px; }
  .industry-item.active { font-size: 1.55rem; }
  .carousel-navigation { gap: 6px; margin-top: 18px; }
  .nav-arrow { width: 32px; height: 32px; }
}

/* MÓVIL PEQUEÑO (≤374px) - Muestra 3 items */
@media (max-width: 374px) {
  .carousel-wrapper { height: 198px; } /* 66px * 3 */
  .industry-item { height: 66px; font-size: 0.95rem; padding-left: 15px; }
  .industry-item.active { font-size: 1.4rem; }
  .carousel-navigation { gap: 5px; margin-top: 15px; }
  .nav-arrow { width: 30px; height: 30px; }
}













/* =====================================================================
   1. NAVBAR - RESPONSIVE PRECISO
   ===================================================================== */
/* ===== RESPONSIVE OPTIMO ===== */

/* Tablet grande y laptop pequeña (1024px - 1366px) */
@media (max-width: 1366px) and (min-width: 1025px) {
  .nav-link {
    font-size: 1.3rem;
  }

  .contact-link2 {
    font-size: 1.25rem;
    padding: 0.4rem 0.7rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
  }

  .nav-items-right {
    gap: 0.8rem;
  }

  .contact-wrapper {
    gap: 1rem;
    flex-wrap: nowrap;
    align-items: center;
  }

  .navigation-group {
    margin-right: 12px;
  }

  .contact-group {
    margin-left: 8px;
    flex-shrink: 0;
    min-width: max-content;
  }
}

/* Tablet (768px - 1024px) - SOLO FONDO FULL WIDTH */
@media (max-width: 1024px) and (min-width: 768px) {
  /* Fondo negro full width, pero contenido normal (con margen) */
  .main-navbar {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.7rem 0;
    position: relative;
    width: 100%;
    /* Importante: sacar el navbar del flujo normal para que el fondo cubra todo */
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
  }

  /* Asegura que el contenedor interno mantenga el ancho limitado normal de Bootstrap */
  .main-navbar > .container,
  .main-navbar > .container-fluid {
    width: 100%;
    max-width: 960px; /* o el valor que use tu tema Bootstrap en este breakpoint */
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* NO tocamos nada más: logo, hamburguesa y items quedan en su posición original */
  .nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 0.8rem !important;
  }

  .contact-link2 {
    font-size: 1rem;
    padding: 0.3rem 0.5rem;
    white-space: nowrap;
  }

  .contact-group {
    margin-left: 0;
    flex-shrink: 0;
  }

  .contact-wrapper {
    gap: 0.5rem;
    flex-wrap: nowrap;
  }

  .nav-items-right {
    gap: 0.5rem;
  }

  .navigation-group {
    margin-right: 8px;
  }
}

/* Tablet pequeño y móvil grande (≤767px) */
@media (max-width: 767.98px) {
  .main-navbar {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    position: relative;
    width: 100%;
    height: auto;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0;
    right: 0;
  }

  .main-navbar > .container,
  .main-navbar > .container-fluid,
  .main-navbar .container,
  .main-navbar .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .navbar-collapse,
  .navigation-group,
  .nav-items-right,
  .contact-group,
  .navbar-nav {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .navbar-collapse {
    background: rgba(0, 0, 0, 0.98);
    margin-top: 1rem;
    padding: 1.5rem 1.2rem;
    border-radius: 12px;
    margin-left: 0;
    margin-right: 0;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .flex-spacer,
  .nav-divider {
    display: none;
  }

  .social-item {
    justify-content: center;
    padding: 0 !important;
    margin-bottom: 1.5rem;
  }

  .contact-group {
    margin-left: 0;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
  }

  .contact-wrapper {
    flex-direction: column;
    gap: 1rem;
  }

  .contact-link2 {
    justify-content: center;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
  }

  .navigation-group {
    margin-right: 0;
    width: 100%;
    margin-top: 1.2rem;
  }

  .nav-items-right {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    font-size: 1.3rem;
    padding: 1rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .topbar-social a {
    width: 45px;
    height: 45px;
  }

  .topbar-social a i {
    font-size: 1.3rem;
  }
}

/* Móvil pequeño (≤480px) */
@media (max-width: 480px) {
  .navbar-collapse {
    padding: 1.3rem 1rem;
  }

  .navbar-collapse,
  .navigation-group,
  .nav-items-right,
  .contact-group,
  .navbar-nav {
    padding-left: 0.8rem !important;
    padding-right: 0.8rem !important;
  }

  .nav-link {
    font-size: 1.15rem;
    padding: 0.9rem 0 !important;
  }

  .contact-link2 {
    font-size: 1.1rem;
    padding: 0.4rem 0.8rem;
  }

  .contact-wrapper {
    gap: 0.8rem;
  }

  .topbar-social a {
    width: 42px;
    height: 42px;
  }

  .topbar-social a i {
    font-size: 1.2rem;
  }
}







/* =====================================================================
   HERO SECTION - RESPONSIVE CON WIDTH Y HEIGHT ESPECÍFICOS
   ===================================================================== */
 /* REGLAS DE ANIMACIÓN */
@keyframes entradaSuave {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes escalaSuave {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Aplicación de animaciones base */
.hero-text h1 { animation: entradaSuave 0.8s ease-out both; }
.hero-logo-img { animation: escalaSuave 0.8s ease-out 0.3s both; }











/* Tablet grande y laptop pequeña (1024px - 1366px) */
@media (max-width: 1366px) and (min-width: 1025px) {
  .hero-main-content {
    transform: scale(1.08);
    margin-top: 120px;
    margin-bottom: 60px;
  }

  .hero-text {
    margin-top: -20px;
  }

  .hero-products-img {
    width: 130%;
    max-width: 900px;
    margin-right: 60px;
    transform: scale(1.1);
  }
}







/* Tablet (768px - 1024px) - LAYOUT HORIZONTAL COMO DESKTOP */
@media (max-width: 1024px) and (min-width: 768px) and (min-height: 768px) {
  .hero-wrapper {
    min-height: 90vh;
    padding-top: 100px;
  }

  .hero-main-content {
    flex-direction: row;
    align-items: center;
    transform: scale(0.95);
    margin-top: 100px;
    margin-bottom: 50px;
  }

  .hero-text {
    text-align: left;
    order: 1;
    margin-top: -10px;
    
  }

  .hero-text h1 {
    font-size: clamp(2rem, 4.5vw, 2.4rem);
  }

  .hero-logo-img {
    width: clamp(75px, 11vw, 85px);
    margin: 10px 0;
  }

  .hero-image-container {
    order: 2;
    margin-top: 0;
  }

  .hero-products-img {
    width: 120%;
    max-width: 750px;
    margin-right: 40px;
    transform: scale(1.05);
  }

  .hero-subtitle,
  .hero-subtitle-bottom {
    text-align: left;
  }

  .features-bar-top {
    padding: 0.95rem 0.6rem;
    margin-top: 0;
  }

  .feature-box-top i {
    font-size: clamp(1.35rem, 2.8vw, 1.6rem);
  }

  .feature-box-top p {
    font-size: clamp(0.78rem, 1.5vw, 0.88rem);
  }
}
@media (max-width: 1366px) and (min-width: 1025px) {
  .hero-main-content {
    transform: scale(1.08);
    margin-top: 80px;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-text { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-text h1 { font-size: 3.5rem; }
  .hero-logo-img { width: 110px; margin: 0 auto; }
  .hero-products-img {
    width: 140%; max-width: 1000px;
    transform: scale(1.15); display: block; margin: 0 auto;
  }
}
/* Tablet estándar (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero-wrapper { min-height: 90vh; padding-top: 60px; }
  .hero-main-content { flex-direction: row; align-items: center; justify-content: center; margin-top: 50px; }
  .hero-text { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-text h1 { font-size: clamp(2.5rem, 5vw, 3rem); }
  .hero-products-img { display: block; margin: 0 auto; }
}
/* Móvil grande (768px x 1024px) - Portrait */
@media (max-width: 768px) and (min-height: 900px) {
  .hero-wrapper {
    min-height: 100vh;
    padding-top: 90px;
  }

  .hero-main-content {
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .hero-text {
    text-align: center;
    order: 1;
  }

  .hero-text h1 {
    font-size: 2rem;
    margin-bottom: 0.6rem;
    line-height: 1.2;
  }

  .hero-logo-img {
    width: 70px;
    margin: 8px auto;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .hero-image-container {
    order: 2;
    margin-top: 25px;
  }

  .hero-products-img {
    width: 75%;
    max-width: 420px;
    margin-right: 0;
    transform: scale(1);
  }

  .hero-subtitle-bottom {
    font-size: 1rem;
    margin-top: 1rem;
  }

  .features-bar-top {
    padding: 0.85rem 0.5rem;
    margin-top: 0;
  }

  .feature-box-top {
    padding: 0.7rem 0.35rem;
  }

  .feature-box-top i {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
  }

  .feature-box-top p {
    font-size: 0.8rem;
    line-height: 1.3;
  }
}
/* Móvil estándar altura media (768px x 850px) */
@media (max-width: 768px) and (max-height: 899px) and (min-height: 700px) {
  .hero-wrapper {
    min-height: 100vh;
    padding-top: 85px;
  }

  .hero-main-content {
    flex-direction: column;
    align-items: center;
    margin-top: 35px;
    margin-bottom: 35px;
  }

  .hero-text {
    text-align: center;
    order: 1;
  }

  .hero-text h1 {
    font-size: 1.85rem;
    margin-bottom: 0.55rem;
    line-height: 1.2;
  }

  .hero-logo-img {
    width: 50px;
    margin: 7px auto;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
  }

  .hero-image-container {
    order: 2;
    margin-top: 22px;
  }

  .hero-products-img {
    width: 72%;
    max-width: 390px;
    margin-right: 0;
    transform: scale(1);
  }

  .hero-subtitle-bottom {
    font-size: 0.95rem;
    margin-top: 0.9rem;
  }

  .features-bar-top {
    padding: 0.8rem 0.45rem;
    margin-top: 0;
  }

  .feature-box-top {
    padding: 0.65rem 0.32rem;
  }

  .feature-box-top i {
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
  }

  .feature-box-top p {
    font-size: 0.78rem;
    line-height: 1.3;
  }
}

/* Móvil estándar (Altura media) */
@media (max-width: 768px) and (max-height: 899px) and (min-height: 700px) {
  .hero-wrapper { min-height: 100vh; padding-top: 85px; }
  .hero-text h1 { font-size: 2.2rem; }
  .hero-image-container { order: 2; margin-top: 22px; }
  .hero-products-img { width: 85% !important; transform: scale(1.05); }
}

/* Móvil pequeño altura corta (480px x 700px) - CORRECCIÓN COMPLETA */
@media (max-width: 480px) and (max-height: 799px) {
 
  .hero-wrapper {
    min-height: 100vh;
    padding-top: 75px;
    display: flex;
    flex-direction: column;
  }

  .hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
  }

  .hero-main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 !important;
    padding: 0;
    transform: scale(1) !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
  }

  /* === TEXTO CENTRADO === */
  .hero-text {
    text-align: center !important;
    order: 1;
    width: 100%;
    margin-bottom: 20px;
    margin-top: 0 !important;
    transform: translateX(0) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-text h1 {
    font-size: 1.85rem !important;
    margin-bottom: 10px;
    line-height: 1.15;
    padding: 0 10px;
    font-weight: 700;
    text-align: center !important;
  }

  .hero-logo-img {
    width: 55px !important;
    height: auto;
    margin: 8px auto !important;
    display: block;
  }

  /* === IMAGEN CENTRADA Y MÁS GRANDE === */
  .hero-image-container {
    order: 2;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 0 !important;
  }

  .hero-products-img {
    width: 90% !important;
    max-width: 400px !important;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 15px !important;
    margin-right: 0 !important;
    transform: scale(1) translateY(0) !important;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.8));
  }


  /* SUBTÍTULO CENTRADO */
  .hero-subtitle {
    font-size: 0.88rem !important;
    margin: 10px 0 0 0 !important;
    padding: 0 20px !important;
    text-align: center !important;
    color: #e0e0e0 !important;
    line-height: 1.3 !important;
    display: block !important;
  }

  .hero-subtitle-bottom {
    font-size: 0.88rem !important;
    margin: 10px 0 0 0 !important;
    padding: 0 20px !important;
    text-align: center !important;
    color: #e0e0e0;
    line-height: 1.3;
  }

  /* === FEATURES BAR === */
  .features-bar-top {
    padding: 0.7rem 0.35rem;
    margin-top: 20px;
    flex-shrink: 0;
  }

  .feature-box-top {
    padding: 0.55rem 0.25rem;
  }

  .feature-box-top i {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
  }

  .feature-box-top p {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  /* === ANULAR BOOTSTRAP === */
  .hero-main-content.row {
    margin: 0 !important;
  }

  .hero-main-content .col-lg-6 {
    padding: 0 !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
}

/* Móvil pequeño (480px x 854px) - CORRECCIÓN COMPLETA */
@media (max-width: 480px) and (min-height: 800px) {
  .hero-wrapper {
    min-height: 100vh;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
  }

  .hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
  }

  .hero-main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 !important;
    padding: 0;
    transform: scale(1) !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
  }

  /* === TEXTO CENTRADO === */
  .hero-text {
    text-align: center !important;
    order: 1;
    width: 100%;
    margin-bottom: 20px;
    margin-top: 0 !important;
    transform: translateX(0) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-text h1 {
    font-size: 1.5rem !important;
    margin-bottom: 12px;
    line-height: 1.2;
    padding: 0 10px;
    font-weight: 700;
    text-align: center !important;
  }

  .hero-logo-img {
    width: 55px !important;
    height: auto;
    margin: 10px auto !important;
    display: block;
  }

  /* === IMAGEN CENTRADA Y MÁS GRANDE === */
  .hero-image-container {
    order: 2;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 0 !important;
  }

  .hero-products-img {
    width: 95% !important;
    max-width: 420px !important;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 15px !important;
    margin-right: 0 !important;
    transform: scale(1) translateY(0) !important;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.8));
  }


  /* SUBTÍTULO CENTRADO */
  .hero-subtitle {
    font-size: 0.92rem !important;
    margin: 10px 0 0 0 !important;
    padding: 0 20px !important;
    text-align: center !important;
    color: #e0e0e0 !important;
    line-height: 1.3 !important;
    display: block !important;
  }

  .hero-subtitle-bottom {
    font-size: 0.92rem !important;
    margin: 10px 0 0 0 !important;
    padding: 0 20px !important;
    text-align: center !important;
    color: #e0e0e0;
    line-height: 1.3;
  }

  /* === FEATURES BAR === */
  .features-bar-top {
    padding: 0.75rem 0.4rem;
    margin-top: 20px;
    flex-shrink: 0;
  }

  .feature-box-top {
    padding: 0.6rem 0.3rem;
  }

  .feature-box-top i {
    font-size: 1.25rem;
    margin-bottom: 0.3rem;
  }

  .feature-box-top p {
    font-size: 0.75rem;
    line-height: 1.25;
  }

  /* === ANULAR BOOTSTRAP === */
  .hero-main-content.row {
    margin: 0 !important;
  }

  .hero-main-content .col-lg-6 {
    padding: 0 !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
}


/* Móvil Pequeño (≤480px) - Layout según dibujo: título izq + logo der + imagen grande + distribuidor + features horizontal */
@media (max-width: 480px) {

  .hero-wrapper {
    min-height: 100vh;
    padding-top: 70px !important;           /* ajustado para navbar, puedes subir/bajar */
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
  }

  .hero-main-content {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 12px;
    transform: none !important;
    gap: 20px !important;
  }

  /* Título izquierda + logo derecha en misma fila */
  .hero-text {
    text-align: left !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .hero-text h1 {
    font-size: 1.95rem !important;
    line-height: 1.12 !important;
    margin: 0 !important;
    padding-right: 12px !important;
    flex: 1 !important;
    text-align: left !important;
    font-weight: 700 !important;
  }

  .hero-logo-img {
    width: 55px !important;
    height: auto !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    display: block !important;
  }

  /* Imagen grande de tambores */
  .hero-image-container {
    width: 100% !important;
    margin: 15px 0 25px 0 !important;
    text-align: center;
  }

  .hero-products-img {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    transform: scale(1) !important;
    filter: drop-shadow(0 12px 28px rgba(0,0,0,0.55)) !important;
  }

  /* Distribuidor autorizado (ajusta si está en .hero-subtitle o .hero-subtitle-bottom) */
  .hero-subtitle,
  .hero-subtitle-bottom {
    text-align: center !important;
    font-size: 1.05rem !important;
    margin: 8px 0 25px 0 !important;
    padding: 0 15px !important;
    line-height: 1.35 !important;
  }

  /* Features en línea horizontal con scroll */
  .features-bar-top {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 16px !important;
    justify-content: flex-start !important;
    padding: 12px 0 8px 0 !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .features-bar-top .row {
    flex-wrap: nowrap !important;
    margin: 0 !important;
  }

  .feature-box-top {
    flex: 0 0 auto !important;
    min-width: 85px !important;
    text-align: center !important;
    padding: 12px 8px !important;
    background: rgba(255,255,255,0.04) !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
  }

  .feature-box-top i {
    font-size: 2.1rem !important;
    margin-bottom: 8px !important;
    display: block !important;
  }

  .feature-box-top p {
    font-size: 0.78rem !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    white-space: normal !important;
  }

  /* Scroll bar estilo */
  .features-bar-top::-webkit-scrollbar {
    height: 5px !important;
  }

  .features-bar-top::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.25) !important;
    border-radius: 10px !important;
  }

  /* Mantén tus animaciones de entrada */
  .features-bar-top .col-6:nth-child(1) { animation: entradaSuave 0.6s ease-out 0.6s both; }
  .features-bar-top .col-6:nth-child(2) { animation: entradaSuave 0.6s ease-out 0.7s both; }
  .features-bar-top .col-6:nth-child(3) { animation: entradaSuave 0.6s ease-out 0.8s both; }
  .features-bar-top .col-6:nth-child(4) { animation: entradaSuave 0.6s ease-out 0.9s both; }
  .features-bar-top .col-12:nth-child(5) { animation: entradaSuave 0.6s ease-out 1.0s both; }

  /* Anular Bootstrap si es necesario */
  .hero-main-content.row {
    margin: 0 !important;
  }

  .hero-main-content .col-lg-6 {
    padding: 0 !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
}














/* ================================================================
   CONFIGURACIÓN: PANELES ULTRA-TENUES, ICONOS VERDES Y ANIMACIÓN
   ================================================================ */

/* Definición de la animación de aparición */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 1. Extra Small (xs): < 576px - (Vista del Video) */
@media (max-width: 575.98px) {
    .features-bar-top .row { flex-direction: column !important; align-items: center; }
    .features-bar-top [class*="col-"] { width: 90% !important; margin-bottom: 20px; }
    
    .feature-box-top {
        background: rgba(255, 255, 255, 0.03) !important; /* Ultra tenue */
        backdrop-filter: blur(3px);
        border: 1px solid rgba(255, 255, 255, 0.05);
        padding: 30px !important;
        border-radius: 15px;
        animation: fadeInUp 0.8s ease forwards; /* Animación */
    }
    .feature-box-top i { 
        font-size: 3.5rem !important; /* Más grandes */
        margin-bottom: 15px; 
        color: #28a745 !important; /* Verde característico */
    }
    .feature-box-top p { font-size: 1.1rem; color: rgba(255,255,255,0.9); font-weight: 300; }
}

/* 2. Small (sm): 576px a 767px */
@media (min-width: 576px) and (max-width: 767.98px) {
    .features-bar-top .row { flex-direction: column !important; align-items: center; }
    .feature-box-top {
        background: rgba(255, 255, 255, 0.03) !important;
        padding: 25px !important;
        animation: fadeInUp 0.9s ease forwards;
    }
    .feature-box-top i { font-size: 3.2rem !important; color: #28a745 !important; }
}

/* 3. Medium (md): 768px a 991px */
@media (min-width: 768px) and (max-width: 991.98px) {
    .feature-box-top {
        background: rgba(255, 255, 255, 0.02) !important;
        animation: fadeInUp 1s ease forwards;
    }
    .feature-box-top i { font-size: 3rem !important; color: #28a745 !important; }
}

/* 4. Large (lg): 992px a 1199px */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .feature-box-top {
        background: rgba(255, 255, 255, 0.02) !important;
        animation: fadeInUp 1.1s ease forwards;
    }
    .feature-box-top i { font-size: 2.8rem !important; color: #28a745 !important; }
}

/* 5. Extra Large (xl): 1200px a 1399px */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .feature-box-top {
        background: transparent !important;
        border: 1px solid rgba(255, 255, 255, 0.03);
        animation: fadeInUp 1.2s ease forwards;
    }
    .feature-box-top i { font-size: 2.5rem !important; color: #28a745 !important; }
}

/* 6. Extra Extra Large (xxl): > 1400px */
@media (min-width: 1400px) {
    .feature-box-top {
        background: transparent !important;
        animation: fadeInUp 1.3s ease forwards;
    }
    .feature-box-top i { font-size: 2.5rem !important; color: #28a745 !important; }
    .feature-box-top:hover { background: rgba(40, 167, 69, 0.05) !important; } /* Destello verde al hover */
}




/* Tablet grande y laptop pequeña (1025px - 1366px) */
@media (max-width: 1366px) and (min-width: 1025px) {
  .hero-main-content {
    transform: scale(1.08);
    margin-top: 80px;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-text h1 { font-size: 3.5rem; }
  .hero-logo-img { width: 110px; margin: 0 auto; }
  .hero-products-img {
    width: 140%; 
    max-width: 1000px;
    transform: scale(1.15);
    display: block;
    margin: 0 auto;
  }
}

/* Tablet (768px - 1024px) - LAYOUT HORIZONTAL */
@media (max-width: 1024px) and (min-width: 768px) {
  .hero-wrapper {
    min-height: 90vh;
    padding-top: 60px;
  }
  .hero-main-content {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
  }
  .hero-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-text h1 { font-size: clamp(2.5rem, 5vw, 3rem); }
  .hero-products-img {
    display: block;
    margin: 0 auto;
  }
}


/* 1. Ajuste para 1600px (Desktop Pro) */
@media (max-width: 1600px) and (min-width: 1441px) {
  .hero-text {
    /* Empujamos logo y texto hacia la derecha para que no se peguen al borde */
    transform: translateX(80px); 
  }

  .hero-logo-img {
    width: 100px; /* Mantener logo con buen tamaño */
    margin-bottom: 20px;
  }

  .hero-products-img {
    /* Reducimos los barriles para que el texto tenga aire */
    width: 90%; 
    max-width: 780px;
    margin-right: 30px;
  }

   .hero-main-content {
    margin-top: 110px;
  }
  
}

/* 2. Ajuste para 1440px (Laptop Wide) */
@media (max-width: 1440px) and (min-width: 1281px) {
  .hero-text {
    transform: translateX(60px) scale(0.95);
  }

  .hero-products-img {
    width: 85%;
    max-width: 700px;
    margin-right: 20px;
  }
}

/* 3. Ajuste para 1280px (Laptop Standard) */
@media (max-width: 1280px) and (min-width: 1025px) {
  .hero-text {
    /* En pantallas más chicas, el empuje a la derecha es menor para no chocar con barriles */
    transform: translateX(40px) scale(0.9);
  }

  .hero-logo-img {
    width: 85px;
  }

  .hero-products-img {
    width: 80%;
    max-width: 620px;
    margin-right: 15px;
  }

  .hero-main-content {
    margin-top: 80px;
  }
}

/* Esta regla cubre el espacio entre tus 1600px y la resolución de 1900px */
@media (min-width: 1601px) and (max-width: 1899px) {
  .hero-main-content {
    /* Limitamos el ancho para que no se desparrame a los lados */
    max-width: 1450px; 
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 120px;
  }

  .hero-text {
    /* Mantenemos el empuje a la derecha para que se vea como en 1900px */
    transform: translateX(10px); 
  }

  .hero-products-img {
    max-width: 850px;
    width: 100%;
  }
}











/* ========================================
   DESACTIVAR ANIMACIONES EN MÓVILES
   ======================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 768px) and (min-height: 768px) {
  .hero-products-img {
    animation: none !important;
  }
}

/* Móvil grande (768px x 1024px) - Portrait */
@media (max-width: 768px) and (min-height: 900px) {
  .hero-products-img {
    animation: none !important;
    transition: none !important;
  }
  
  
}

/* Móvil estándar altura media (768px x 850px) */
@media (max-width: 768px) and (max-height: 899px) and (min-height: 700px) {
  .hero-products-img {
    animation: none !important;
    transition: none !important;
  }
  

}

/* Móvil pequeño altura corta (480px x 700px) */
@media (max-width: 480px) and (max-height: 799px) {
  .hero-products-img {
    animation: none !important;
    transition: none !important;
  }
  

}

/* Móvil pequeño (480px x 854px) */
@media (max-width: 480px) and (min-height: 800px) {
  .hero-products-img {
    animation: none !important;
    transition: none !important;
  }
  

}

















/* =====================================================================
   UNIFIED SECTION - RESPONSIVE ADAPTADO AL SERVIDOR
   ===================================================================== */

/* Laptop (1024px - 1366px) */
@media (max-width: 1366px) and (min-width: 1025px) {
  .industries-half {
    padding: 80px 0 40px 0;
  }

  .industries-content-wrapper {
    height: 50vh;
  }

  .industries-image-overlay {
    top: -80px;
    height: calc(100% + 120px);
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.589) 10%,
      rgba(255, 255, 255, 0) 100%
    );
  }

  .industries-bg-image {
    width: 110%;
    height: 110%;
    top: -8px;
    left: 0;
    object-fit: cover;
    object-position: center;
  }

  .industries-bg-image[data-industry="construccion"] {
    width: 220%;
    height: 220%;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
  }

  .carousel-wrapper {
    height: 420px;
    padding-bottom: 70px;
  }

  .industries-content-side {
    padding: 0 40px 0 100px;
  }

  .industry-item {
    height: 85px;
    padding-left: 40px;
  }

  .industries-overlay {
    top: 50%;
    left: 60px;
  }

  .carousel-navigation {
    bottom: 10px;
    left: 33%;
  }
}

/* ============================================================
   TABLET (768px - 1024px) CON ALTURA ESPECÍFICA
   ============================================================ */
@media (max-width: 1024px) and (min-width: 768px) and (min-height: 768px) {

  /* ================= INDUSTRIAS ================= */

  .industries-half {
    padding: 70px 0 40px 0;
  }

  .industries-content-wrapper {
    flex-direction: column;
    height: auto;
    min-height: 55vh;
    gap: 0;
  }

  /* IMAGEN INDUSTRIAS */
  .industries-image-side {
    flex: none;
    width: 100vw;
    height: 320px;
    min-height: 320px;
    position: relative;
    overflow: hidden;
    margin-top: -40px;
    margin-bottom: 35px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }

  .industries-bg-image {
    position: absolute;
    top: -8px;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translateX(-50%);
    object-fit: cover;
    object-position: center;
  }

  .industries-bg-image[data-industry="construccion"] {
    width: 180%;
    height: 180%;
    top: 90%;
    left: 50%;
    object-fit: contain;
    transform: translate(-50%, -50%);
  }

  .industries-image-overlay {
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: calc(100% + 20px);
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.6) 30%,
      rgba(0, 0, 0, 0.3) 60%,
      transparent 90%
    );
    z-index: 2;
    pointer-events: none;
  }

  .industries-overlay {
    position: absolute;
    top: 50%;
    left: 35px;
    transform: translateY(-50%);
    z-index: 4;
    width: 68%;
  }

  .industries-overlay h2 {
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  }

  /* ================= SOBRE NOSOTROS ================= */

  .about-content-wrapper {
    flex-direction: column;
    gap: 50px;
    padding: 35px 35px 55px;
    align-items: center;
    justify-content: center;
    min-height: 60vh; /* CENTRADO VISUAL */
  }

  .about-content-side {
    text-align: center;
    margin: 0 auto;
    width: 100%;
    max-width: 90%;
    box-sizing: border-box;
  }

  .about-content-side h3 {
    margin-top: 0;
  }

  .about-image-side {
    width: 100%;
    max-width: 650px;
    display: flex;
    justify-content: center;
  }

  .about-bg-image {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
  }
}


/* Móvil grande (768px x 1024px) - Portrait */
@media (max-width: 768px) and (min-height: 900px) {
  .industries-half {
    padding: 65px 0 40px 0;
  }

  .industries-content-wrapper {
    flex-direction: column;
    height: auto;
    min-height: 50vh;
    gap: 0;
  }

  /* IMAGEN MÓVIL - Contenedor completo hacia arriba */
  .industries-image-side {
    flex: none;
    width: 100vw;
    height: 280px;
    min-height: 280px;
    position: relative;
    overflow: hidden;
    margin-top: -35px;
    margin-bottom: 28px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }

  .industries-bg-image {
    position: absolute;
    top: -8px;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translateX(-50%);
    object-fit: cover;
    object-position: center;
  }

  .industries-bg-image[data-industry="construccion"] {
    width: 180%;
    height: 180%;
    top: 90%;
    left: 50%;
    object-fit: contain;
    transform: translate(-50%, -50%);
  }

  .industries-image-overlay {
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: calc(100% + 15px);
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.6) 25%,
      rgba(0, 0, 0, 0.3) 55%,
      transparent 85%
    );
    z-index: 2;
    pointer-events: none;
  }

  .industries-overlay {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    z-index: 4;
    width: 78%;
  }

  .industries-overlay h2 {
    font-size: 1.6rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  }

  /* CARRUSEL MÓVIL */
  .industries-content-side {
    padding: 0 15px 75px;
    width: 100%;
  }

  .carousel-wrapper {
    height: 310px;
    max-width: 100%;
    padding-bottom: 75px;
  }

  .industry-item {
    height: 65px;
    padding-left: 14px;
    padding-right: 14px;
    font-size: 1.2rem;
  }

  .industry-item.active {
    font-size: 1.6rem;
  }

  .carousel-navigation {
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    gap: 9px;
  }

  .nav-arrow {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }

  /* SOBRE NOSOTROS MÓVIL */
  .about-content-wrapper {
    flex-direction: column;
    gap: 38px;
    padding: 28px 0 48px;
    align-items: flex-start;
  }

  .about-content-side {
    text-align: left;
    order: 1;
    margin-top: 0;
    padding-left: 22px;
    padding-right: 22px;
    width: 100%;
    box-sizing: border-box;
  }

  .about-content-side h3 {
    margin-top: 0;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.7rem;
  }

  .about-image-side {
    margin-left: 0;
    width: 100%;
    order: 2;
  }

  .about-bg-image {
    max-height: 260px;
    width: 100%;
    object-fit: contain;
  }
}

/* Móvil pequeño (480px x 854px) */
@media (max-width: 480px) and (min-height: 800px) {
  .industries-half {
    padding: 60px 0 35px 0;
  }

  .industries-content-wrapper {
    flex-direction: column;
    height: auto;
    min-height: 50vh;
    gap: 0;
  }

  /* IMAGEN - Arriba en columna */
  .industries-image-side {
    flex: none;
    width: 100vw;
    height: 250px;
    min-height: 250px;
    position: relative;
    overflow: hidden;
    margin-top: -30px;
    margin-bottom: 25px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }

  .industries-bg-image {
    position: absolute;
    top: -8px;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translateX(-50%);
    object-fit: cover;
    object-position: center;
  }

  .industries-bg-image[data-industry="construccion"] {
    width: 170%;
    height: 170%;
    top: 85%;
    left: 50%;
    object-fit: contain;
    transform: translate(-50%, -50%);
  }
  
  /* FIX IMÁGENES QUE SE VAN A LA DERECHA */
  .industries-bg-image[data-industry="energia"],
  .industries-bg-image[data-industry="grado-alimenticio"],
  .industries-bg-image[data-industry="manufactura"] {
    left: 0 !important;
    transform: none !important;
    object-position: left center;
  }

  .industries-image-overlay {
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: calc(100% + 12px);
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.65) 20%,
      rgba(0, 0, 0, 0.35) 50%,
      transparent 80%
    );
    z-index: 2;
    pointer-events: none;
  }

  .industries-overlay {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    z-index: 4;
    width: 82%;
  }

  .industries-overlay h2 {
    font-size: 1.45rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  }

  /* CARRUSEL - Abajo en columna */
  .industries-content-side {
    padding: 0 12px 65px;
    width: 100%;
  }

  .carousel-wrapper {
    height: 290px;
    max-width: 100%;
    padding-bottom: 65px;
  }

  .industry-item {
    height: 62px;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 1.15rem;
  }

  .industry-item.active {
    font-size: 1.5rem;
  }

  .carousel-navigation {
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    gap: 9px;
  }

  .nav-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  /* SOBRE NOSOTROS */
  .about-content-wrapper {
    flex-direction: column;
    gap: 35px;
    padding: 25px 0 42px;
    align-items: flex-start;
  }

  .about-content-side {
    text-align: left;
    order: 1;
    margin-top: 0;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .about-content-side h3 {
    margin-top: 0;
    text-align: center;
    margin-bottom: 22px;
    font-size: 1.9rem;
  }

  .about-image-side {
    margin-left: 0;
    width: 100%;
    order: 2;
  }

  .about-bg-image {
    max-height: 230px;
    width: 100%;
    object-fit: contain;
  }
}

/* Móvil pequeño altura corta (480px x 700px) */
@media (max-width: 480px) and (max-height: 799px) {
  .industries-half {
    padding: 55px 0 30px 0;
  }

  .industries-content-wrapper {
    flex-direction: column;
    height: auto;
    min-height: 45vh;
    gap: 0;
  }

  /* IMAGEN - Arriba en columna */
  .industries-image-side {
    flex: none;
    width: 100vw;
    height: 230px;
    min-height: 230px;
    position: relative;
    overflow: hidden;
    margin-top: -28px;
    margin-bottom: 22px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }

  .industries-bg-image {
    position: absolute;
    top: -8px;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translateX(-50%);
    object-fit: cover;
    object-position: center;
  }

  .industries-bg-image[data-industry="construccion"] {
    width: 165%;
    height: 165%;
    top: 90%;
    left: 50%;
    object-fit: contain;
    transform: translate(-50%, -50%);
  }

  /* FIX IMÁGENES QUE SE VAN A LA DERECHA */
  .industries-bg-image[data-industry="energia"],
  .industries-bg-image[data-industry="grado-alimenticio"],
  .industries-bg-image[data-industry="manufactura"] {
    left: 0 !important;
    transform: none !important;
    object-position: left center;
  }

  .industries-image-overlay {
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: calc(100% + 12px);
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.65) 20%,
      rgba(0, 0, 0, 0.35) 50%,
      transparent 80%
    );
    z-index: 2;
    pointer-events: none;
  }

  .industries-overlay {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    z-index: 4;
    width: 84%;
  }

  .industries-overlay h2 {
    font-size: 1.35rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  }

  /* CARRUSEL - Abajo en columna */
  .industries-content-side {
    padding: 0 10px 60px;
    width: 100%;
  }

  .carousel-wrapper {
    height: 275px;
    max-width: 100%;
    padding-bottom: 60px;
  }

  .industry-item {
    height: 60px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 1.1rem;
  }

  .industry-item.active {
    font-size: 1.4rem;
  }

  .carousel-navigation {
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    gap: 8px;
  }

  .nav-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }

  /* SOBRE NOSOTROS */
  .about-content-wrapper {
    flex-direction: column;
    gap: 32px;
    padding: 22px 0 38px;
    align-items: flex-start;
  }

  .about-content-side {
    text-align: left;
    order: 1;
    margin-top: 0;
    padding-left: 18px;
    padding-right: 18px;
    width: 100%;
    box-sizing: border-box;
  }

  .about-content-side h3 {
    margin-top: 0;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.85rem;
  }

  .about-image-side {
    margin-left: 0;
    width: 100%;
    order: 2;
  }

  .about-bg-image {
    max-height: 210px;
    width: 100%;
    object-fit: contain;
  }
}


/* Base para móviles medianos y pequeños */
@media (max-width: 767px) {
  .about-content p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .about-content h2 {
    text-align: center;
  }
}

/* Ajustes extra solo para ~480px (teléfonos pequeños) */
@media (max-width: 480px) {
  .about-content-side {
    padding-left: 18px;
    padding-right: 18px;
  }

  .about-content p {
    font-size: 1.05rem;      /* opcional: un poco más legible */
    line-height: 1.6;
    text-align-last: left;
  }

  .about-content h2 {
    font-size: 1.7rem;       /* ajusta según tu diseño */
    margin-bottom: 1.2rem;
  }
}


@media (max-width: 767px) {
  .btn-conocenos {
    display: block !important;
    width: fit-content;
    margin: 2rem auto 0 auto !important;
    padding: 14px 32px;
    text-align: center;
  }

  .btn-conocenos i {
    margin-right: 8px;
  }
}

@media (max-width: 480px) {
  .btn-conocenos {
    padding: 16px 36px;
    font-size: 1.1rem;
    margin-top: 2.5rem;
  }
}






 /* =====================================================================
   ENERGY SECTION - VERSIÓN MEJORADA Y OPTIMIZADA
   ===================================================================== */

@media (max-width: 1024px) {
    .energy-container-apce {
        max-width: 95%;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 0 20px;
    }
    
    .energy-slide-apce[data-slide="1"] .energy-container-apce {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .energy-slide-apce[data-slide="2"] .energy-container-apce,
    .energy-slide-apce[data-slide="3"] .energy-container-apce,
    .energy-slide-apce[data-slide="4"] .energy-container-apce {
        grid-template-columns: 40% 60%;
        gap: 25px;
    }
    
    /* MODIFICACIÓN: Barriles grandes en Tablet */
    .energy-slide-apce[data-slide="1"] .energy-barrel-image-apce {
        max-width: 440px !important;
    }
    .energy-slide-apce[data-slide="1"] .energy-img-principal-apce {
        transform: scale(1.1);
    }
    /* MODIFICACIÓN: Otros slides normales */
    .energy-slide-apce:not([data-slide="1"]) .energy-barrel-image-apce {
        max-width: 280px;
    }
    
    .energy-engine-image-apce {
        width: 65%;
        bottom: -12%;
        right: -10%;
    }
    
    .energy-carousel-nav-apce {
        bottom: 30px;
        gap: 25px;
    }
    
    .energy-nav-btn-apce {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .energy-section, .energy-carousel-container-apce, .energy-slide-apce {
        height: 85dvh;
    }
    
    .energy-container-apce {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 30px;
        max-width: 100%;
    }
    
    .energy-slide-apce[data-slide="1"] .energy-container-apce {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .energy-slide-apce[data-slide="1"] .energy-left-section1 {
        order: 1;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .energy-slide-apce[data-slide="1"] .energy-right-section {
        order: 2;
    }
    
    /* MODIFICACIÓN: Barriles destacados en Portrait */
    .energy-slide-apce[data-slide="1"] .energy-barrel-image-apce {
        max-width: 480px !important;
        margin: 0 auto;
    }
    .energy-slide-apce[data-slide="1"] .energy-img-principal-apce {
        transform: scale(1.08);
    }

    .energy-slide-apce:not([data-slide="1"]) .energy-barrel-image-apce {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .energy-engine-image-apce {
        width: 70%;
        max-width: 500px;
        bottom: 0;
        right: -5%;
        opacity: 0.7;
    }
    
    .energy-carousel-nav-apce {
        bottom: 25px;
        gap: 20px;
    }
}


@media (max-width: 480px) {
    .energy-section, .energy-carousel-container-apce, .energy-slide-apce {
        height: 100dvh;
    }
    
    /* MODIFICACIÓN: Barriles Móvil Grande */
    .energy-slide-apce[data-slide="1"] .energy-barrel-image-apce {
        max-width: 340px !important; 
        margin: 0 auto;
        display: flex;
    }
    .energy-slide-apce[data-slide="1"] .energy-img-principal-apce {
        transform: scale(1.05);
        margin-bottom: 5px;
    }
    
    /* 👈 SLIDES 2, 3, 4: Barriles más grandes */
    .energy-slide-apce[data-slide="2"] .energy-barrel-image-apce,
    .energy-slide-apce[data-slide="3"] .energy-barrel-image-apce,
    .energy-slide-apce[data-slide="4"] .energy-barrel-image-apce {
        max-width: 280px !important;
        margin-top: -40px !important;
    }
    
    /* 👈 SLIDES 2, 3, 4: Botón más arriba */
    .energy-slide-apce[data-slide="2"] .energy-cta-button-apce,
    .energy-slide-apce[data-slide="3"] .energy-cta-button-apce,
    .energy-slide-apce[data-slide="4"] .energy-cta-button-apce {
        margin-top: -25px !important;
    }
    
    /* 👈 SLIDES 2, 3, 4: Textos más arriba */
    .energy-slide-apce[data-slide="2"] .energy-content-apce,
    .energy-slide-apce[data-slide="3"] .energy-content-apce,
    .energy-slide-apce[data-slide="4"] .energy-content-apce {
        margin-top: -20px !important;
    }
    
    /* 👈 SLIDE 2: Imagen de fondo más grande y un poco abajo */
    .energy-slide-apce[data-slide="2"] .energy-bg-image-apce {
        transform: scale(3.2) translateY(30px) !important;
        opacity: 0.45 !important;
    }
    
    /* 👈 SLIDE 3: Imagen de fondo más grande y MÁS abajo que la 2 */
    .energy-slide-apce[data-slide="3"] .energy-bg-image-apce {
        transform: scale(3.2) translateY(20px) !important;
        opacity: 0.45 !important;
    }
    
    /* 👈 SLIDE 4: Imagen de fondo más grande y posición como la 2 */
    .energy-slide-apce[data-slide="4"] .energy-bg-image-apce {
        transform: scale(3.2) translateY(30px) !important;
        opacity: 0.45 !important;
    }
}

@media (max-width: 390px) {
    .energy-section, .energy-carousel-container-apce, .energy-slide-apce {
        height: 100dvh;
    }
    
    /* MODIFICACIÓN: Barriles Móvil Mediano */
    .energy-slide-apce[data-slide="1"] .energy-barrel-image-apce {
        max-width: 300px !important;
        display: flex !important;
    }
    .energy-slide-apce[data-slide="1"] .energy-img-principal-apce {
        transform: scale(1.03);
    }
    
    /* 👈 SLIDES 2, 3, 4: Barriles más grandes */
    .energy-slide-apce[data-slide="2"] .energy-barrel-image-apce,
    .energy-slide-apce[data-slide="3"] .energy-barrel-image-apce,
    .energy-slide-apce[data-slide="4"] .energy-barrel-image-apce {
        max-width: 260px !important;
        margin-top: -35px !important;
    }
    
    /* 👈 SLIDES 2, 3, 4: Botón más arriba */
    .energy-slide-apce[data-slide="2"] .energy-cta-button-apce,
    .energy-slide-apce[data-slide="3"] .energy-cta-button-apce,
    .energy-slide-apce[data-slide="4"] .energy-cta-button-apce {
        margin-top: -20px !important;
    }
    
    /* 👈 SLIDES 2, 3, 4: Textos más arriba */
    .energy-slide-apce[data-slide="2"] .energy-content-apce,
    .energy-slide-apce[data-slide="3"] .energy-content-apce,
    .energy-slide-apce[data-slide="4"] .energy-content-apce {
        margin-top: -18px !important;
    }
    
    /* 👈 SLIDE 2: Imagen de fondo más grande y un poco abajo */
    .energy-slide-apce[data-slide="2"] .energy-bg-image-apce {
        transform: scale(3.0) translateY(25px) !important;
        opacity: 0.4 !important;
    }
    
    /* 👈 SLIDE 3: Imagen de fondo más grande y MÁS abajo que la 2 */
    .energy-slide-apce[data-slide="3"] .energy-bg-image-apce {
        transform: scale(3.0) translateY(55px) !important;
        opacity: 0.4 !important;
    }
    
    /* 👈 SLIDE 4: Imagen de fondo más grande y posición como la 2 */
    .energy-slide-apce[data-slide="4"] .energy-bg-image-apce {
        transform: scale(3.0) translateY(25px) !important;
        opacity: 0.4 !important;
    }
}

@media (max-width: 375px) {
    .energy-section, .energy-carousel-container-apce, .energy-slide-apce {
        height: 100dvh;
    }
    
    /* MODIFICACIÓN: En lugar de ocultar, lo dejamos pequeño pero visible */
    .energy-slide-apce[data-slide="1"] .energy-barrel-image-apce {
        display: flex !important;
        max-width: 260px !important;
        margin: 0 auto;
    }
    
    /* 👈 SLIDES 2, 3, 4: Barriles más grandes */
    .energy-slide-apce[data-slide="2"] .energy-barrel-image-apce,
    .energy-slide-apce[data-slide="3"] .energy-barrel-image-apce,
    .energy-slide-apce[data-slide="4"] .energy-barrel-image-apce {
        max-width: 240px !important;
        margin-top: -30px !important;
    }
    
    /* 👈 SLIDES 2, 3, 4: Botón más arriba */
    .energy-slide-apce[data-slide="2"] .energy-cta-button-apce,
    .energy-slide-apce[data-slide="3"] .energy-cta-button-apce,
    .energy-slide-apce[data-slide="4"] .energy-cta-button-apce {
        margin-top: -18px !important;
    }
    
    /* 👈 SLIDES 2, 3, 4: Textos más arriba */
    .energy-slide-apce[data-slide="2"] .energy-content-apce,
    .energy-slide-apce[data-slide="3"] .energy-content-apce,
    .energy-slide-apce[data-slide="4"] .energy-content-apce {
        margin-top: -15px !important;
    }
    
    /* 👈 SLIDE 2: Imagen de fondo más grande y un poco abajo */
    .energy-slide-apce[data-slide="2"] .energy-bg-image-apce {
        transform: scale(2.8) translateY(20px) !important;
        opacity: 0.38 !important;
    }
    
    /* 👈 SLIDE 3: Imagen de fondo más grande y MÁS abajo que la 2 */
    .energy-slide-apce[data-slide="3"] .energy-bg-image-apce {
        transform: scale(2.8) translateY(70px) !important;
        opacity: 0.38 !important;
    }
    
    /* 👈 SLIDE 4: Imagen de fondo más grande y posición como la 2 */
    .energy-slide-apce[data-slide="4"] .energy-bg-image-apce {
        transform: scale(2.8) translateY(20px) !important;
        opacity: 0.38 !important;
    }
}


/* Mantengo tus ajustes finales de altura intactos */
@media (max-height: 600px) {
    .energy-section, .energy-carousel-container-apce, .energy-slide-apce { height: 100dvh; }
    .energy-barrel-image-apce { max-width: 180px; }
}

@media (min-height: 1000px) and (max-width: 768px) {
    .energy-slide-apce[data-slide="1"] .energy-barrel-image-apce { max-width: 500px !important; }
}








/* =====================================================================
   SECCIÓN CLIENTES - RESPONSIVE (CORRECCIÓN 1600px Y MÓVILES)
   ===================================================================== */

/* Monitor 1600px o menos (Laptop/Desktop mediano) */
@media (max-width: 1600px) {
    .clients-half {
        padding: 80px 0;
    }
}

/* Móviles (Hasta 767px) */
@media (max-width: 767px) {
    .clients-half { 
        padding: 50px 0; 
    }
    
    /* Aseguramos que el contacto NO se encime */
    #contacto {
        margin-top: 40px;
        position: relative;
    }
}

/* =====================================================================
   CTA BACKGROUND IMAGE - CORRECCIÓN RESPONSIVE
   ===================================================================== */

/* Laptop / Desktop mediano (≤1600px) */
@media (max-width: 1600px) {
  .cta-background-image::after {
    transform: translateY(-350px);
    left: -10%;
  }
}

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .cta-background-image::after {
    transform: translateY(-350px);
    /* Más grande */
    width: 100%;
    height: 100%;

    left: -25%;
  }
}

/* Móviles - CORRECCIÓN MEJORADA */
@media (max-width: 767px) {
  .cta-background-image::after {
    /* Más a la izquierda */
    left: -45%;
    
    /* Más grande */
    width: 150%;
    height: 150%;
    
    /* El doble de alto (de -180px a -360px) */
    transform: translateY(-460px);
    
    background-position: center center;
    background-size: contain;
  }
}

/* Móviles pequeños (≤480px) - Extra ajuste si es necesario */
@media (max-width: 480px) {
  .cta-background-image::after {
    left: -50%;
    width: 220%;
    transform: translateY(-520px);
  }
}



/* =====================================================================
   RESPONSIVE
   ===================================================================== */

/* Pantallas Medianas (Laptops 1366px - 1500px) */
@media (max-width: 1500px) {
  .clients-carousel-wrapper {
    max-width: 1200px;
    gap: 40px;
    padding: 0 20px;
  }
  
  .client-slide-item {
    flex: 0 0 350px;
    height: 240px;
    padding: 20px;
  }
  
  .client-slide-item img {
    max-height: 200px;
    max-width: 310px;
  }
}

/* Tablets y Pantallas Pequeñas */
@media (max-width: 1024px) {
  .client-nav-arrow {
    width: 50px;
    height: 50px;
  }

  .client-nav-arrow i {
    font-size: 1.2rem;
  }

  .clients-carousel-wrapper {
    gap: 20px;
    padding: 0 15px;
  }

  .client-slide-item {
    flex: 0 0 300px;
    height: 220px;
    padding: 20px;
    gap: 40px;
  }
  
  .client-slide-item img {
    max-height: 180px;
    max-width: 260px;
  }

  .clients-logos-carousel {
    gap: 40px;
    padding: 50px 15px;
  }
}

/* Tablets pequeñas */
@media (max-width: 768px) {
  .clients-half {
    padding: 60px 0 80px 0;
  }

  .clients-header-white {
    margin-bottom: 40px;
    padding: 0 15px;
  }

  .clients-main-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .client-nav-arrow {
    width: 45px;
    height: 45px;
  }

  .client-nav-arrow i {
    font-size: 1.1rem;
  }

  .clients-logos-carousel {
    gap: 30px;
    padding: 40px 10px;
  }

  .client-slide-item {
    flex: 0 0 280px;
    height: 200px;
    padding: 20px;
  }
  
  .client-slide-item img {
    max-height: 160px;
    max-width: 240px;
  }

  .carousel-controls {
    margin-top: 20px;
  }
}

/* Móviles */
@media (max-width: 480px) {
  .clients-half {
    padding: 40px 0 60px 0;
  }

  .clients-header-white {
    margin-bottom: 30px;
  }

  .clients-main-title {
    font-size: 1.7rem;
    margin-bottom: 10px;
    padding: 0 15px;
  }

  .clients-main-subtitle {
    font-size: 0.95rem;
    padding: 0 15px;
  }

  .clients-carousel-wrapper {
    gap: 15px;
    padding: 0 10px;
  }

  .client-nav-arrow {
    width: 40px;
    height: 40px;
    border-width: 1.5px;
  }

  .client-nav-arrow i {
    font-size: 1rem;
  }

  .clients-logos-carousel {
    gap: 20px;
    padding: 30px 5px;
    scroll-snap-type: x mandatory;
  }

  .client-slide-item {
    flex: 0 0 calc(100% - 80px);
    max-width: 350px;
    height: 250px;
    padding: 25px;
    scroll-snap-align: center;
    margin: 0 auto;
  }
  
  .client-slide-item img {
    max-height: 300px;
    max-width: 400px;
  }

  .carousel-indicators {
    gap: 6px;
  }

  .indicator {
    width: 8px;
    height: 8px;
  }

  .indicator.active {
    width: 24px;
  }
}

/* Móviles muy pequeños */
@media (max-width: 375px) {
  .client-slide-item {
    flex: 0 0 calc(100% - 60px);
    max-width: 320px;
    height: 230px;
    padding: 25px;
  }
  
  .client-slide-item img {
    max-height: 180px;
    max-width: 270px;
  }

  .clients-main-title {
    font-size: 1.5rem;
  }

  .client-nav-arrow {
    width: 35px;
    height: 35px;
  }

  .client-nav-arrow i {
    font-size: 0.9rem;
  }
}




























 /* =====================================================================
    7. CONTACTO - RESPONSIVE PRECISO (VERSIÓN FINAL CENTRADA)
   ===================================================================== */

/* =====================================================================
    CONTACTO - RESPONSIVE
   ===================================================================== */

/* Desktop grande (1367px en adelante) */
@media (min-width: 1367px) {
  .contact-info-content {
    margin-left: 25%;
    margin-top: 280px;
  }

  .contact-info-title {
    margin-bottom: 80px;
  }
  
  .contact-info-block {
    margin-left: 1%;
  }
}

/* Laptop (1024px - 1366px) */
@media (max-width: 1366px) and (min-width: 1025px) {
  .contact-wrapper {
    height: 750px;
  }

  .contact-info-side {
    padding: 60px 30px;
    align-items: flex-start;
  }

  .contact-info-content {
    margin-top: 10%;
    margin-left: 12%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-info-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-align: left;
  }

  .contact-info-block {
    align-items: flex-start;
    margin-bottom: 30px;
    width: fit-content;
  }

  .contact-block-title {
    text-align: left;
  }

  .contact-link {
    font-size: 1rem;
    justify-content: flex-start;
  }

  .contact-form-container {
    padding-top: 40px;
  }
}

/* Tablet (768px - 1024px) - CORREGIDO */
@media (max-width: 1024px) and (min-width: 768px) {
  .contact-section {
    height: auto;
    background: transparent;
  }

  .contact-wrapper {
    flex-direction: column;
    height: auto;
  }

  .contact-info-side {
    width: 100%;
    min-height: 550px; /* 👈 NUEVO: altura mínima para mejor distribución */
    height: auto;
    padding: 60px 50px; /* 👈 AJUSTADO: más padding */
    display: flex;
    justify-content: center; /* 👈 CAMBIO: volver a center para mejor distribución */
    align-items: flex-start;
  }

  .contact-info-side::before {
    background-attachment: scroll;
  }

  .contact-info-content {
    margin-top: 0; /* 👈 CAMBIO: eliminar margen superior */
    margin-left: 5%; /* 👈 AJUSTADO: menos margen */
    max-width: 500px; /* 👈 AJUSTADO: más ancho */
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-info-title {
    font-size: 2rem; /* 👈 AJUSTADO */
    margin-bottom: 35px; /* 👈 AJUSTADO */
    text-align: left;
  }

  .contact-info-block {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 30px; /* 👈 AJUSTADO: más espacio entre bloques */
    width: fit-content;
  }

  .contact-block-title {
    text-align: left;
    margin-bottom: 15px; /* 👈 NUEVO: espacio después del título */
  }

  .contact-link {
    justify-content: flex-start;
    font-size: 1.05rem; /* 👈 AJUSTADO: tamaño de fuente */
  }

  .contact-form-side {
    width: 100%;
    padding: 60px 50px; /* 👈 AJUSTADO: mismo padding que info-side */
  }

  .contact-form-container {
    padding-top: 0;
    max-width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}


/* Móviles (menos de 768px) - Base unificada */
@media screen and (max-width: 767px) {
  .contact-section {
    height: auto;
  }
  .contact-wrapper {
    flex-direction: column;
    height: auto;
  }
  .contact-info-side {
    width: 100%;
    min-height: auto;
    padding: 45px 25px;
    display: flex;
    justify-content: center;     /* ← clave para centrar el contenedor */
    align-items: flex-start;
  }
  .contact-info-side::before {
    background-attachment: scroll;
  }
  .contact-info-content {
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;         /* ← centra todos los bloques hijos */
    text-align: center;          /* base para todo el texto */
  }
  .contact-info-title {
    font-size: 1.9rem;
    margin-bottom: 35px;
    text-align: center;
    width: 100%;
  }
  .contact-info-block {
    text-align: center;
    align-items: center;
    margin-bottom: 28px;
    width: fit-content;
    max-width: 90%;
  }
  .contact-info-block:last-child {
    margin-bottom: 0;
  }
  .contact-block-title {
    text-align: center;
    margin-bottom: 15px;
  }
  .contact-link {
    justify-content: center;
    text-align: center;
    font-size: 1rem;
    margin-bottom: 12px;
    width: 100%;
    padding: 6px 0;
  }
  .contact-link:last-child {
    margin-bottom: 0;
  }
  .contact-form-side {
    width: 100%;
    padding: 45px 25px;
  }
  .contact-form-container {
    padding-top: 0;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Ajustes progresivos para pantallas muy pequeñas (≤ 480px y menores) */
@media screen and (max-width: 480px) {
  .contact-info-side {
    padding: 40px 20px;
  }
  .contact-info-title {
    font-size: 1.75rem;
    margin-bottom: 30px;
  }
  .contact-info-block {
    margin-bottom: 24px;
  }
  .contact-block-title {
    margin-bottom: 12px;
  }
  .contact-link {
    font-size: 0.98rem;
  }
}

@media screen and (max-width: 430px) {
  .contact-info-side { padding: 35px 18px; }
  .contact-info-title { font-size: 1.65rem; margin-bottom: 28px; }
  .contact-link { font-size: 0.96rem; }
}

@media screen and (max-width: 375px) {
  .contact-info-side { padding: 32px 16px; }
  .contact-info-title { font-size: 1.55rem; margin-bottom: 25px; }
  .contact-link { font-size: 0.94rem; }
}

@media screen and (max-width: 360px) {
  .contact-info-side { padding: 30px 15px; }
  .contact-info-title { font-size: 1.45rem; margin-bottom: 22px; }
  .contact-link { font-size: 0.92rem; }
}



/* =====================================================================
   FOOTER - CORRECCIÓN DE ALTURA Y EMPALME (ZOOM 110%+)
   ===================================================================== */



/*
@media (max-width: 1899px) and (min-width: 1367px) {
  .footer-bottom-section.bottom-section {
    flex: 0 1 auto; 
    min-height: auto;
    max-height: none;
    height: auto;
    padding: 25px 0;
  }

  .footer-bottom-wrapper {
    max-width: 90%;
    padding: 0;
    margin: 0 auto;
    height: auto;
  }

  .footer-bottom-main {
    grid-template-columns: minmax(250px, auto) 1fr minmax(350px, auto);
    gap: 20px; 
    align-items: center;
  }

  .logo-img-large, 
  .contact-info-block,
  .footer-center-section,
  .partner-logos {
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
  }

  .logo-img-large {
    height: 110px;
  }

  .contact-block-title {
    font-size: 0.95rem;
    margin-bottom: 5px;
  }

  .contact-text p {
    font-size: 0.8rem;
  }

  .footer-nav {
    gap: 15px;
    justify-content: center;
  }

  .footer-nav-link {
    font-size: 0.8rem;
  }

  .newsletter-section {
    max-width: 300px;
    margin: 0 auto;
  }

  .partner-logos {
    width: 320px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .partner-logos img {
    width: 100%;
    height: auto;
    margin-top: 0;
  }

  .social-links-bottom {
    margin-top: 10px;
    position: static;
  }

  .copyright {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.7rem;
  }
}
*/


/* Escritorio Extendido y monitores 4K (Desde 1601px en adelante) */
@media screen and (min-width: 1601px) {
  .contact-info-content {
    max-width: 550px;
    margin: 0 auto; /* Centra el bloque completo en su mitad */
    text-align: left;
    left: 0 !important;
  }

  /* Alineación interna uniforme para simular el 20% pero controlado */
  .contact-info-title,
  .contact-info-block {
    padding-left: 10%; 
  }
}

/* Pantallas Pro / Tu monitor (1367px - 1600px) */
@media screen and (max-width: 1600px) and (min-width: 1367px) {
  .contact-info-side {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .contact-info-content {
    max-width: 480px;
    margin: 0 auto;
    left: 0 !important;
  }

  /* Ajuste de alineación para los textos específicos */
  .contact-info-title,
  .contact-info-block {
    padding-left: 5%;
    text-align: left;
  }
}

/* Laptops Estándar (Hasta 1366px) */
@media screen and (max-width: 1366px) and (min-width: 1025px) {
  .contact-info-content {
    max-width: 420px;
    margin: 0 auto;
    left: 0 !important;
  }

  .contact-info-block {
    padding-left: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Mantiene iconos y texto alineados a la izquierda */
  }
}

/* Laptop grande (1025px - 1366px) */
@media (max-width: 1366px) and (min-width: 1025px) {
  .footer-bottom-wrapper {
    max-width: 1250px;
    margin-right: 90px;
  }

  .footer-bottom-main {
    grid-template-columns: 290px 1fr auto;
    gap: 65px;
  }

  .logo-img-large {
    height: 170px;
    margin-left: -140px;
  }

  .contact-info-block {
    margin-left: -140px;
  }

  .partner-logos {
    width: 550px;
    height: 280px;
    margin-right: -65px;
  }

  .partner-logos img {
    margin-top: -130px;
  }

  .social-links-bottom {
    margin-top: -110px;
  }
}



/* Tablet (768px - 1024px) - CENTRADO */
@media (max-width: 1024px) and (min-width: 768px) {
  .footer-bottom-section.bottom-section {
    flex: 0 0 auto !important;
    min-height: auto !important;
    max-height: none !important;
    height: auto !important;
  }

  .footer-bottom-wrapper {
    margin-right: 0;
    padding: 38px 35px 22px;
    padding-left: 35px; /* 👈 CAMBIO: padding uniforme, sin clamp */
  }

  .footer-bottom-main {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .footer-left-section {
    display: flex;
    flex-direction: column;
    align-items: center; /* 👈 MANTENER: centrado */
  }

  .footer-left-content {
    flex-direction: column;
    gap: 25px;
    align-items: center; /* 👈 MANTENER: centrado */
    margin-left: 0; /* 👈 CAMBIO: eliminar margen negativo */
  }

  .logo-img-large {
    height: 160px;
    margin-left: 0; /* 👈 MANTENER: sin margen */
  }

  .contact-info-block {
    margin-left: 0; /* 👈 MANTENER: sin margen */
    text-align: center; /* 👈 MANTENER: centrado */
  }

  .contact-item {
    justify-content: center; /* 👈 MANTENER: centrado */
  }

  .column-divider {
    display: none;
  }

  .footer-center-section {
    margin-left: 0;
    align-items: center;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
  }

  .newsletter-section {
    max-width: 100%;
  }

  .footer-right-section {
    align-items: center;
  }

  .partner-logos {
    width: 480px;
    height: 240px;
    margin-right: 0;
  }

  .partner-logos img {
    margin-top: -90px;
  }

  .social-links-bottom {
    margin-top: -70px;
  }
}

/* Móviles (≤ 768px) - CENTRADO */
@media (max-width: 768px) {
  /* FIX CRÍTICO: Permitir que el footer crezca en móviles */
  .footer-bottom-section.bottom-section {
    flex: 1 0 auto !important;
    min-height: auto !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
  }

  .footer-bottom-wrapper {
    padding: 35px 25px 20px;
    padding-left: 25px; /* 👈 CAMBIO: padding uniforme */
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  /* AQUÍ LA CLAVE: Cambiar a display block en lugar de grid */
  .footer-bottom-main {
    display: block;
    width: 100%;
    position: relative;
    height: auto !important;
    min-height: auto !important;
  }

  /* CORRECCIÓN IMPORTANTE: Seleccionar las columnas correctas del HTML */
  .footer-bottom-main > .footer-left-section,
  .footer-bottom-main > .footer-center-section,
  .footer-bottom-main > .footer-right-section {
    display: block;
    width: 100%;
    margin-bottom: 40px;
    text-align: center; /* 👈 MANTENER: centrado */
    position: relative;
    height: auto !important;
    overflow: visible !important;
  }

  /* Estilos específicos para la primera columna */
  .footer-left-section {
    padding-right: 0;
    height: auto !important;
    align-items: center; /* 👈 MANTENER: centrado */
  }

  /* Línea divisoria en móvil - la convertimos en horizontal */
  .column-divider {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 80% !important;
    height: 1px !important;
    margin: 30px auto !important;
    background: linear-gradient(
      to right,
      transparent 0%,
      rgba(255, 255, 255, 0.1) 10%,
      rgba(255, 255, 255, 0.3) 50%,
      rgba(255, 255, 255, 0.1) 90%,
      transparent 100%
    ) !important;
  }

  .column-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  }

  .footer-left-content {
    flex-direction: column;
    align-items: center; /* 👈 MANTENER: centrado */
    gap: 25px;
    height: auto !important;
    margin-left: 0; /* 👈 CAMBIO: eliminar margen negativo */
  }

  .logo-img-large {
    margin-left: 0; /* 👈 MANTENER: sin margen */
  }

  .contact-info-block {
    margin-left: 0; /* 👈 MANTENER: sin margen */
    text-align: center; /* 👈 MANTENER: centrado */
    height: auto !important;
  }

  .contact-block-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }

  .contact-text p {
    font-size: 0.97rem;
  }

  .contact-item {
    justify-content: center; /* 👈 MANTENER: centrado */
    margin-bottom: 12px;
  }

  /* Centro (navegación y newsletter) */
  .footer-center-section {
    margin-left: 0;
    height: auto !important;
  }

  .footer-nav {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
  }

  .footer-nav-link {
    font-size: 0.93rem;
    padding: 8px 0;
  }

  .newsletter-section {
    max-width: 100%;
    height: auto !important;
  }

  .email-input-wrapper {
    flex-direction: column;
    gap: 12px;
    max-width: 320px;
    margin: 0 auto;
  }

  .newsletter-email-input,
  .newsletter-submit-btn {
    border-radius: 6px;
    min-height: 46px;
    width: 100%;
    font-size: 0.9rem;
  }

  .newsletter-email-input {
    border-radius: 6px !important;
    border: 1px solid #333 !important;
  }

  .newsletter-submit-btn {
    border-radius: 6px !important;
  }

  .newsletter-note {
    text-align: center;
    margin-top: 10px;
    font-size: 0.8rem;
  }

  /* Derecha (logos partners y sociales) */
  .footer-right-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: auto !important;
    gap: 30px !important;
    height: auto !important;
  }

  .partner-logos {
    width: 100% !important;
    max-width: 400px !important;
    height: auto !important;
    min-height: 180px !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .partner-logos img {
    margin-top: 0 !important;
    max-width: 90% !important;
    height: auto !important;
    width: auto !important;
    object-fit: contain !important;
  }

  .social-links-bottom {
    margin-top: 0 !important;
    justify-content: center !important;
    gap: 15px !important;
  }

  .social-icon-bottom {
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
  }

  .footer-bottom {
    width: 100%;
    padding: 20px 0 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .copyright {
    font-size: 0.78rem;
    text-align: center;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
}

/* Móviles medianos (≤ 480px) */
@media (max-width: 480px) {
  .footer-bottom-wrapper {
    padding: 30px 20px 18px;
    padding-left: 20px; /* 👈 CAMBIO: padding uniforme */
  }

  .footer-bottom-main > .footer-left-section,
  .footer-bottom-main > .footer-center-section,
  .footer-bottom-main > .footer-right-section {
    margin-bottom: 35px;
  }

  .contact-block-title {
    font-size: 1.05rem;
  }

  .contact-text p {
    font-size: 0.94rem;
  }

  .footer-nav-link {
    font-size: 0.9rem;
  }

  .newsletter-email-input,
  .newsletter-submit-btn {
    min-height: 44px;
    font-size: 0.9rem;
  }

  .partner-logos {
    max-width: 340px !important;
    min-height: 150px !important;
  }

  .partner-logos img {
    max-width: 85% !important;
  }

  .social-icon-bottom {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.9rem !important;
  }

  .column-divider {
    margin: 25px auto !important;
    width: 85% !important;
  }
}

/* Móviles estándar (≤ 390px) */
@media (max-width: 390px) {
  .footer-bottom-wrapper {
    padding: 28px 18px 16px;
    padding-left: 18px; /* 👈 CAMBIO: padding uniforme */
  }

  .footer-bottom-main > .footer-left-section,
  .footer-bottom-main > .footer-center-section,
  .footer-bottom-main > .footer-right-section {
    margin-bottom: 30px;
  }

  .contact-block-title {
    font-size: 1rem;
  }

  .contact-text p {
    font-size: 0.91rem;
  }

  .footer-nav {
    gap: 12px;
  }

  .footer-nav-link {
    font-size: 0.87rem;
  }

  .email-input-wrapper {
    max-width: 280px;
  }

  .newsletter-note {
    font-size: 0.79rem;
  }

  .partner-logos {
    max-width: 300px !important;
    min-height: 130px !important;
  }

  .social-links-bottom {
    gap: 12px !important;
  }

  .copyright {
    font-size: 0.74rem;
  }

  .column-divider {
    margin: 20px auto !important;
    width: 90% !important;
  }
}

/* Móviles pequeños (≤ 375px) */
@media (max-width: 375px) {
  .footer-bottom-wrapper {
    padding: 25px 16px 14px;
    padding-left: 16px; /* 👈 CAMBIO: padding uniforme */
  }

  .contact-block-title {
    font-size: 0.96rem;
    margin-bottom: 12px;
  }

  .contact-item {
    margin-bottom: 11px;
  }

  .contact-text p {
    font-size: 0.89rem;
  }

  .footer-nav-link {
    font-size: 0.85rem;
  }

  .newsletter-email-input,
  .newsletter-submit-btn {
    min-height: 42px;
    font-size: 0.87rem;
  }

  .partner-logos {
    max-width: 280px !important;
    min-height: 120px !important;
  }

  .social-icon-bottom {
    width: 30px !important;
    height: 30px !important;
  }

  .copyright {
    font-size: 0.72rem;
  }
}

/* Móviles muy pequeños (≤ 360px) */
@media (max-width: 360px) {
  .footer-bottom-wrapper {
    padding: 22px 14px 12px;
    padding-left: 14px; /* 👈 CAMBIO: padding uniforme */
  }

  .contact-block-title {
    font-size: 0.93rem;
  }

  .contact-text p {
    font-size: 0.87rem;
  }

  .footer-nav-link {
    font-size: 0.83rem;
  }

  .email-input-wrapper {
    max-width: 260px;
  }

  .newsletter-note {
    font-size: 0.77rem;
  }

  .partner-logos {
    max-width: 260px !important;
    min-height: 110px !important;
  }

  .social-icon-bottom {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.85rem !important;
  }

  .copyright {
    font-size: 0.7rem;
  }

  .column-divider {
    margin: 15px auto !important;
  }
}






/* =====================================================================
   9. AJUSTES GLOBALES RESPONSIVE
   ===================================================================== */

/* Prevenir scroll horizontal */
@media (max-width: 1024px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
  }
  
  * {
    max-width: 100%;
  }
  
  img {
    height: auto;
  }
}

/* Orientación landscape en móviles */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-wrapper {
    min-height: auto;
    padding: 50px 0 25px;
  }
  
  .hero-main-content {
    margin-top: 20px;
    margin-bottom: 20px;
  }
  
  .energy-section {
    min-height: auto;
    padding: 35px 0;
  }
  
  .energy-container-apce {
    padding: 0 25px;
  }

  
}

/* Dispositivos con notch (iPhone X+) */
@supports (padding: max(0px)) {
  @media (max-width: 767px) {
    .main-navbar {
      padding-left: max(20px, env(safe-area-inset-left));
      padding-right: max(20px, env(safe-area-inset-right));
      padding-top: max(0.8rem, env(safe-area-inset-top));
    }
    
    .hero-wrapper {
      padding-left: max(0px, env(safe-area-inset-left));
      padding-right: max(0px, env(safe-area-inset-right));
    }
  }
}

/* Pantallas de alta densidad (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  @media (max-width: 767px) {
    .btn-solicitar,
    .btn-conocenos,
    .btn-leer-blog {
      border: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .carousel-btn,
    .client-nav-arrow,
    .nav-arrow {
      border-width: 1px;
    }
  }
}

/* Mejoras de accesibilidad touch */
@media (max-width: 767px) {
  a, button, .nav-link, .contact-link, 
  .btn-solicitar, .btn-conocenos, .btn-leer-blog,
  .carousel-btn, .client-nav-arrow, .nav-arrow {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible {
    outline: 3px solid #49ad33;
    outline-offset: 3px;
  }
}

/* Optimización de animaciones en mobile */
@media (max-width: 767px) {
  *,
  *::before,
  *::after {
    animation-duration: 0.25s !important;
    transition-duration: 0.25s !important;
  }
  
  /* Deshabilitar hover effects en touch */
  .hero-products-img:hover,
  .producto-card:hover,
  .blog-card:hover,
  .feature-box-top:hover {
    transform: none;
  }
}

/* =====================================================================
   FIN DEL ARCHIVO RESPONSIVE MEJORADO
   ===================================================================== */