/* ===== SECCI�0�7N UNIFICADA ===== */
.unified-section {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: auto; /* �9�7 Cambiado de 100dvh a auto para crecer */
  margin: 0;
  padding: 0;
}

/* PARTE SUPERIOR - BLANCO (INDUSTRIAS) */
.industries-half {
  background: #fff;
  position: relative;
  height: auto; /* �9�7 Cambiado de 50vh a auto */
  padding: 80px 0 0 0; /* �9�7 Margen superior m��s grande (80px) y margen inferior (40px) */
}

.industries-content-wrapper {
  display: flex;
  align-items: stretch;
  height: 50vh; /* �9�7 Mantiene la altura original del contenido */
}

.industries-image-side {
  flex: 1.3;
  position: relative;
  overflow: hidden; /* �9�7 Cambiado de hidden a visible para que el overlay se expanda */
  height: 100%;
}

.industries-bg-image[data-industry="construccion"] {
  width: 260%;
  height: 260%;
  inset: auto;
  top: 120%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

.industries-bg-image[data-industry="energia"],
.industries-bg-image[data-industry="grado-alimenticio"] {
  top: 0;
  transform: translateY(-15px);
}


.industries-bg-image[data-industry="manufactura"] {
  top: 0;
  transform: translateY(-15px);
}


/* === FONDO DIFUMINADO (DETR�0�9S) === */
.industries-blurred-bg {
  position: absolute;
  top: -120px;                 /* �8�8�1�5 se extiende hacia arriba */
  left: 0;
  width: 100%;
  height: calc(100% + 120px);  /* �8�9�1�5 mantiene el fondo completo */
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
}


.industries-blurred-bg.active {
  opacity: 0.6;
}

/* === IM�0�9GENES PRINCIPALES (N�0�1TIDAS) === */
.industries-bg-image {
  position: absolute;
  top: -8px;
  left: 0;
  width: 110%;
  height: 110%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 1;
  pointer-events: none;
}


.industries-bg-image.active {
  opacity: 1;
}

.industries-image-overlay {
  position: absolute;
  top: -80px; /* �9�7 Se extiende hacia arriba para cubrir el margen superior de 80px */
  left: 0;
  width: 100%;
  height: calc(100% + 120px); /* �9�7 Se agranda para cubrir los m��rgenes superior (80px) e inferior (40px) */
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.589) 10%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* === COLUMNA DERECHA (CARRUSEL) === */
.industries-content-side {
  flex: 1;
  padding: 0 50px 0 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: #fff;
  position: relative;
  z-index: 3;
}

.industries-overlay {
  position: absolute;
  top: 50%;
  left: 60px;
  transform: translateY(-50%);
  width: auto;
  text-align: left;
  z-index: 4;
}

.industries-overlay h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* === CARRUSEL MEJORADO === */
.carousel-wrapper {
  overflow: hidden;
  height: 450px;
  width: 100%;
  max-width: 550px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding-bottom: 70px;
}

.industries-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}





/* === ELEMENTOS DEL CARRUSEL === */
.industry-item {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  border: none;
  opacity: 0.4;
  color: #60aaff;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 500;
  padding-left: 50px;
  padding-right: 20px;
  max-width: 500px;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: 
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    font-size 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    font-weight 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.industry-item.active {
  font-weight: 800;
  opacity: 1;
  color: #0074f8;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  transform: scale(1);
}

/* �9�7 Items adyacentes al activo (arriba y abajo) con MENOS degradado */
.industry-item.adjacent {
  opacity: 0.75;
  color: #4a9aef;
  font-weight: 600;
}

/* === HOVER === */
.industry-item:hover {
  opacity: 0.7;
  transform: translateX(8px);
  color: #0059b3;
}

/* === ICONOS CON SEPARACI�0�7N === */
.industry-item i {
  margin-left: 15px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.industry-item.active i {
  opacity: 1;
  transform: translateX(0);
}

/* Contenedor de navegaci��n debajo del carrusel */
.carousel-navigation {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 15px 0 0 0;
  position: absolute;
  bottom: 10px;
  left: 33%;
  transform: translateX(-50%);
  z-index: 5;
}

/* Flechas de navegaci��n */
.nav-arrow {
  width: 45px;
  height: 45px;
  border: 2px solid #4a9aef;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #4a9aef;
  font-size: 1.2rem;
}

.nav-arrow:hover {
  background: #0059b3;
  color: #ccc;
  transform: scale(1.1);
}

.nav-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: #ccc;
}

.nav-arrow:active {
  transform: scale(0.95);
}

/* PARTE INFERIOR - NEGRO (SOBRE NOSOTROS) */
.about-half {
  background: #000;
  position: relative;
}

.about-content-wrapper {
  display: flex;
  align-items: flex-start; /* antes center */
  justify-content: center;
  gap: 60px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px 40px 60px; /* menos padding arriba */
}


.about-content-side {
  flex: 1;
  max-width: 800px;
  text-align: left;
  margin-top: 53px;
}

.about-content h3 {
  color: #999;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 2px;
  margin-top: -30px;
}

.about-content h2 {
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 2px;
  line-height: 1.2;
}

.about-content p {
  color: #e6e6e6;
  font-family: 'Arial', sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  font-weight: 500;
  line-height: 1.75;
  margin-bottom: 14px;
}

.btn-conocenos {
  background-color: #007bff;
  color: #fff;
  padding: 10px 28px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  border: none;
  cursor: pointer;
}

.btn-conocenos:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.about-image-side {
  flex: 1;
  max-width: 760px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 40px; /* empuja la imagen a la derecha */
}


.about-bg-image {
  width: 100%;
  max-height: 440px;   /* mantiene tama�0�9o sin forzar */
  height: auto;
  object-fit: contain; /* NO recorta */
  border-radius: 8px;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5));
}