/* --- VARIABLES Y BASE --- */
:root {
    --azul-corp: #143A6d;
    --oro-corp: #B8840F;
    --blanco: #ffffff;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
}

.banner-industrial {
    position: relative;
    width: 100%;
    height: 600px; 
    background: #000;
    overflow: hidden; /* Evita que el zoom de la imagen se salga */
}

/* --- CAROUSEL E ITEMS --- */
.carousel-main {
    position: relative;
    width: 100%;
    height: 100%;
}

.item {
    display: none; 
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Clip para la animación de zoom */
}

.item.active {
    display: block; 
}

.img-fluid {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* --- ANIMACIÓN DE ZOOM (KEN BURNS) --- */
.item.active .img-fluid {
    animation: kenburns 12s ease-in-out infinite alternate;
}

@keyframes kenburns {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

/* --- CONTENIDO Y TEXTO --- */
.content-box {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 8%;
    z-index: 5;
    background: rgba(0, 0, 0, 0.3); /* Overlay oscuro para legibilidad */
    pointer-events: none; 
}

.left { justify-content: flex-start; text-align: left; }
.center { justify-content: center; text-align: center; }
.right { justify-content: flex-end; text-align: right; }

.text-card {
    max-width: 550px;
    color: var(--blanco);
    border-left: 6px solid var(--oro-corp);
    padding: 20px 30px;
    pointer-events: auto; 
}

/* --- ANIMACIONES DE TEXTO --- */
.item.active .text-card h1 {
    animation: fadeInUp 0.8s ease-out forwards;
}

.item.active .text-card p {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.item.active .btn-action {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- BOTONES Y NAVEGACIÓN --- */
.text-card h1 { font-size: 2.8rem; margin: 0 0 15px; line-height: 1.1; font-weight: bold; }
.text-card p { font-size: 1.1rem; margin: 0 0 25px; }

.btn-action {
    display: inline-block;
    padding: 12px 35px;
    background: var(--azul-corp);
    color: var(--blanco);
    text-decoration: none;
    border: 1px solid var(--blanco);
    transition: all 0.3s ease;
}

.btn-action:hover {
    background: var(--oro-corp);
    transform: translateY(-3px);
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 20px 15px;
    cursor: pointer;
    z-index: 999;
    transition: background 0.3s;
}

.nav-arrow:hover { background: var(--oro-corp); }
.prev { left: 0; }
.next { right: 0; }

.indicator-bar {
    position: absolute;
    bottom: 25px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 1000;
}

.step {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.step.active {
    background: var(--oro-corp);
}


/* Sección informativa */
.info-section {
  padding: 2rem 2rem;
  background: #ffffff;
}
.info-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  gap: 2rem;
}
/* Imagen con tamaño fijo y ajuste automático */
.info-image {
  flex: 1 1 40%;
  max-width: 600px;       
  height: 250px;          
  overflow: hidden;       
  border-radius: 10px;
  
}
.info-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;    
}

/* Texto */
.info-content {
  flex: 1 1 50%;
}
.info-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #143a6d;
}
.info-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: #333;
  text-align: justify;

}
.info-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}
.info-content ul li {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #555;
}
/* Botón */
.info-content .btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background: #143A6d;
  color: #fff;
  text-decoration: none;
  border-radius: 0.3rem;
  font-size: 1rem;
  transition: background 0.3s;
}
.info-content .btn:hover {
  background: #B8840F;
}

/* --- ESTILOS PARA LA SEGUNDA SECCIÓN (CONSULTORÍA) --- */
.consultoria-section {
  padding: 1rem 1rem;
  background: #ffffff;
}
.consultoria-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  gap: 2rem;
}

.consultoria-content {
  flex: 1 1 50%;
}

.consultoria-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #143a6d;
}

.consultoria-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  text-align: justify;
}

/* Imagen Destacada (Más grande) */
.imagen-destacada {
  flex: 1 1 40%; 
  max-width: 600px; 
  height: 360px;
  overflow: hidden; 
  border-radius: 10px;
  
}

.imagen-destacada img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
}

/* Ventajas competitivas */
.advantages-section {
 padding: 1rem 1rem;
  background: #ffffff;
}
.advantages-container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}
.advantages-container h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #143a6d;
}
.advantages-container .intro {
  font-size: 1.1rem;
  margin-bottom: 3rem;
  color: #555;
}
/* Grid responsivo */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.advantage-item {
  background: #ffffff;
  padding: 2rem;
}
.advantage-item h3{
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #143a6d; 
}
/* Imagen local como icono */
.advantage-item .icon {
  margin-bottom: 1rem;
}
.advantage-item .icon img {
  width: 90px;
  height: 90px;
  object-fit: contain; 
}
.advantage-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #143a6d;
}
.advantage-item p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
}

/* Footer */
.footer-index {
  background: #f5f5f5;
  padding: 2rem 2rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
}
/* Columna izquierda: logo + nombre */
.footer-brand {
  flex: 1 1 250px;
  text-align: center;
}
.footer-brand img {
  max-width: 150px;
  margin-bottom: 1rem;
}
.footer-brand .company-name {
  font-size: 1rem;
  font-weight: 600;
  color: #143a6d; 
}

/* Columna derecha: índice */
.footer-columns {
  flex: 3 1 700px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #143a6d;
  border-bottom: 2px solid #B8840F;
  padding-bottom: 0.3rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.footer-column p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
}


/* Responsive */
@media (max-width: 768px) {

.banner-industrial, 
    .main-banner, 
    .manufacturing-carousel {
        height: auto !important; 
        min-height: initial !important;
        display: flex;
        flex-direction: column; 
    }

    /* 2. Forzar que la imagen se vea COMPLETA */
    .img-fluid, 
    .slide-img, 
    .carousel-img {
        position: relative !important;
        height: auto !important;
        width: 100% !important;
        object-fit: contain !important; 
        background-color: #000; 
    }

    /* 3. Reacomodo del texto  */
    .content-box, 
    .content-wrapper, 
    .caption-content {
        position: relative !important; 
        inset: auto !important;
        transform: none !important;
        width: 100% !important;
        padding: 20px 15px !important;
        background-color: #143A6d !important; 
        box-sizing: border-box;
        display: block !important;
        text-align: center !important; 
    }

    /* 4. Ajuste de títulos y párrafos */
    .text-card h1, .caption-box h1, .caption-content h1 {
        font-size: 1.5rem !important; 
        margin-bottom: 10px !important;
    }

    .text-card p, .caption-box p, .caption-content p {
        font-size: 1rem !important;
        margin-bottom: 15px !important;
    }

    /* 5. Ajuste de botones y flechas */
    .btn-action, .btn-main, .btn-hero {
        width: 100%; 
        padding: 12px !important;
    }

    .nav-arrow, .nav-btn, .nav-control {
        padding: 10px !important;
        font-size: 1.2rem !important;
        background: rgba(0,0,0,0.5) !important;
        top: 30% !important; 
    }

    /* 6. Indicadores (Puntos/Barras) */
    .indicator-bar, .dots-container, .indicators-area {
        bottom: initial !important;
        position: absolute !important;
        top: 5px; 
    }

 /* Seccion de por que confiar en nosotros */
  .info-container {
    flex-direction: column;
    text-align: center;
  }
  .info-content {
    order: 1; 
  }
  .info-image {
    order: 2; 
    width: 100%;
    height: 250px;
  }
  .footer-container {
    flex-direction: column;       
    align-items: center;          
    text-align: center;           
  }

  .footer-brand {
    flex: none;                   
    width: 100%;                  
    display: flex;               
    flex-direction: column;       
    align-items: center;         
    justify-content: center;
  }

  .footer-brand img {
    margin: 0 auto 1rem auto;     
  }

  .footer-columns {
    grid-template-columns: 1fr;   
    width: 100%;
  }
  .consultoria-container {
    flex-direction: column; 
  }

  .consultoria-content {
    width: 100%;
    order: 1; 
  }

  .imagen-destacada {
    width: 100%;
    height: 250px; 
    order: 2; 
  }
}
