body{
    font-family: sans-serif;
    line-height: 1.15;
    font-size: 1rem;
    overflow-x: hidden; /* Evita el espacio blanco lateral causado por animaciones o elementos anchos */
    width: 100%;
}
.navbar {
    padding: 0rem;
}

.customer-feedback {
    overflow: hidden;
    width: 100%;
}

#trabajos_realizados {
    overflow-x: hidden;
}

.div_titulos_servicios_vistas{
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 100%; 
    z-index: 2;
}

.content-wrapper {
    background-color: #ffffff;
}

/* CORRECCIÓN CRÍTICA: Evitar desbordamiento por animaciones AOS */
.content-header, section {
    overflow-x: hidden;
    width: 100%;
}

.navbar-brand {
    display: inline-block;
    padding-top: 0rem;
    padding-bottom: 0rem;
}

.texto_1{
    width: 42%;
    bottom: 24%;
    left: 5%;
    position: absolute; /* Asegura que las propiedades bottom/left funcionen */
    z-index: 10;      /* Pone el texto por encima de otros elementos del slide */
}

.texto_desc_1{
    font-size: 1.7rem;
}

.seccion_servicios {
    background-image: linear-gradient(71deg, rgb(0 118 209 / 60%) 0%, #003d8c 100%);
    overflow-x: hidden; /* Asegura que las animaciones de entrada no creen scroll horizontal */
}

.triangulo_img{
    height: 36vw;
}

.contenedor_suministros{
    display: flex;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-between;
    align-items: center;
    padding-left: 0px;

    background-color: #f4f4f4;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.div_titulo_suministros{
    background-image: linear-gradient(274deg, rgb(0 118 209 / 60%) 0%, #003d8c00 100%);
    height: 10vw;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46vw;
    border-radius: 0px 85px 85px 0px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.img_suministros{
    height: 38vw;
    margin-right: 75px;
}

.p_suministros{
    width: 46vw;
}

.text_suministros{
    text-align: justify;
    padding-left: 8vw;
    font-size: 13pt;
}

a:focus, a:hover {
    text-decoration: none;
}

.div_text_1_saneamiento{
    padding-left: 2vw;
}

.titulo_1_saneamiento{
    width: 43vw;
}

.div_p_saneamiento{
    text-align: left;
    font-size: 17pt;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    line-height: 2.3rem;
}

.p_1_saneamiento{
    width: 37vw;
}

.img_saneamiento_2{
    height: 27vw;
    margin-right: 75px;
    border-radius: 20px;
}

.contenedor_saneamiento_1{
    display: flex;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-between;
    align-items: center;
    padding-left: 0px;
    padding-right: 3rem;
    padding-top: 4rem;
    padding-bottom: 3rem;
    background-color: #f4f4f4;
    margin-top: 4rem;
}

.service-card:hover { 
    transform: scale(1.05); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important; 
    cursor: default; 
}

.titulos_card_saneamiento{
    font-size: 1.4rem;
    font-weight: 600;
}

.collage-img:hover {
    transform: scale(1.05);
}

.img_fabric_rep_2{
    height: 27vw;
    margin-left: 75px;
    border-radius: 20px;
}

.titulos_gorditos{
    font-weight: 800;
}

.img_evaluacion_integridad {
    height: 23vw;
    border-radius: 20px;
}

.img_bandas_transportadoras_5{
    height: 31vw;
    border-radius: 20px;
}

.p_bandas_transportadoras_5 {
    width: 44vw;
}

.titulo_evaluacion_integridad{
    padding-right: 6vw;
}

.img_suministros_2 {
    height: 27vw;
    margin-left: 40%;
    border-radius: 20px;
}


  /* Hub logistico */

  /* Estilo para el efecto de zoom en las imágenes del collage */
  .collage-img:hover {
    transform: scale(1.05);
  }

  /* Estilos para el proceso logístico (Flechas) */
  .process-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 20px 0;
    /* Sombra suave para el contenedor */
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
  }
  
  .process-step {
    flex: 1;
    background: linear-gradient(135deg, #2658d8 0%, #1a42a8 100%);
    color: #fff;
    padding: 30px 20px 30px 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* Forma de flecha con muesca trasera */
    clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%, 10% 50%);
    margin-left: -25px; /* Superposición para encajar */
    transition: all 0.3s ease;
  }

  .process-step:first-child {
    /* El primero no tiene muesca trasera */
    clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%);
    padding-left: 20px;
    margin-left: 0;
  }

  .process-step:last-child {
    /* El último termina plano a la derecha para cerrar el bloque */
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 10% 50%);
    padding-right: 20px;
  }

  .process-step:hover {
    background: linear-gradient(135deg, #356bf5 0%, #2658d8 100%);
    transform: scale(1.05);
    z-index: 10;
  }

  @media (max-width: 991px) {
    .process-container {
      flex-direction: column;
      gap: 15px;
    }
    .process-step, .process-step:first-child, .process-step:last-child {
      clip-path: none;
      margin-left: 0;
      padding: 30px;
      border-radius: 15px;
    }
  }

  .brand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
  }

/* Estilos para los íconos dentro de cada paso del proceso */
    .process-icon-wrapper {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 20px rgba(38, 88, 216, 0.15);
    border: 2px solid #2658d8;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
  }
  .process-item:hover .process-icon-wrapper {
    background: #2658d8;
    transform: translateY(-5px);
  }
  .process-item:hover .process-icon-wrapper i {
    color: #2658d8;
    transition: color 0.3s ease;
  }
  .process-item:hover .process-icon-wrapper i {
    color: white !important;
  }
  .process-arrow {
    color: #2658d8;
    opacity: 0.3;
    font-size: 2.5rem;
    position: absolute;
    z-index: 1;
  }
  .tech-card .card-img-top {
    transition: transform 0.5s ease;
  }
  .tech-card:hover .card-img-top {
    transform: scale(1.1);
  }

/* Estilos para el slider del index (Movido desde inline-style) */
.main-slider-container {
    height: 88vh;
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* =========================================
   CLASES NUEVAS (Extracción de Inline Styles)
   ========================================= */

/* Overlays y Fondos */
.hero-overlay-gradient {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(to bottom, rgb(185 185 185 / 37%) 0%, rgb(0 0 0 / 29%) 60%); 
    pointer-events: none;
}

.hero-overlay-dark {
    background: linear-gradient(to bottom, rgb(185 185 185 / 37%) 0%, rgb(0 0 0 / 50%) 100%);
}

.parallax-bg {
    position: relative; 
    background-attachment: fixed; 
    background-position: center; 
    background-repeat: no-repeat; 
    background-size: cover;
}

.parallax-overlay-white {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(to bottom, #ffffff 0%, rgba(255, 255, 255, 0.8) 30%, rgba(255, 255, 255, 0.2) 100%); 
    pointer-events: none; 
    z-index: 1;
}

/* Items de Lista (Equipos Críticos) */
.equipos-item {
    border-radius: 15px; 
    border-bottom: 4px solid #2658d8; 
    transition: transform 0.3s ease;
}
.equipos-item:hover {
    transform: translateY(-5px);
}

/* Cards con borde superior rojo */
.card-danger-top {
    border-radius: 15px; 
    border-top: 5px solid #dc3545 !important;
}

/* Imágenes de Collage (Alturas fijas en escritorio) */
.collage-img-lg {
    height: 280px;
    width: 100%;
    object-fit: cover;
    border-radius: 15px;
}
.collage-img-sm {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* Formulario */
.form-rounded-input {
    border-radius: 10px; 
    font-size: 0.95rem;
}
.btn-rounded-shadow {
    border-radius: 50px; 
    font-weight: 700; 
    letter-spacing: 1px; 
    box-shadow: 0 5px 15px rgba(38, 88, 216, 0.4); 
    transition: all 0.3s ease;
}

/* Visión y Misión */
.vision-card {
    background-color: rgba(255, 255, 255, 0.9); 
    border-radius: 20px; 
    border-bottom: 5px solid #2658d8;
}
.mision-container {
    background-color: rgba(255, 255, 255, 0.85); 
    border-radius: 20px;
}

  /* =========================================
   NUEVOS ESTILOS PARA RESPONSIVE Y CLASES AUXILIARES
   ========================================= */

/* Clase para reemplazar el style="height: 29vw" en los banners principales */
.hero-banner-container {
    height: 29vw;
    width: 100%;
}

/* MEDIA QUERIES: Estilos para Tablets y Móviles (max-width: 991px) */
@media (max-width: 991px) {
    
    /* Ajuste del Banner Principal (Hero) */
    .hero-banner-container {
        height: 60vh !important; /* Altura fija en móviles para que se vea la imagen y texto */
        min-height: 400px;
    }

    .div_titulos_servicios_vistas {
        width: 90%; /* Más margen a los lados */
    }

    .div_titulos_servicios_vistas h2, 
    .titulos_gorditos {
        font-size: 1.8rem !important; /* Reducir tamaño de fuente */
    }

    /* Contenedores Flexibles a Columna */
    .contenedor_suministros,
    .contenedor_saneamiento_1 {
        flex-direction: column-reverse; /* Imagen arriba o abajo según prefieras, column-reverse pone la imagen arriba si estaba a la derecha */
        height: auto !important;
        padding: 2rem 1rem !important;
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    /* Si el contenedor tiene la imagen a la izquierda originalmente (fade-right), usamos column normal */
    .contenedor_suministros {
        flex-direction: column; 
    }

    /* Ajuste de Imágenes de sección */
    .img_suministros, 
    .img_saneamiento_2, 
    .img_fabric_rep_2, 
    .img_evaluacion_integridad, 
    .img_bandas_transportadoras_5, 
    .img_suministros_2 {
        width: 100% !important;
        height: auto !important;
        margin: 0 0 2rem 0 !important; /* Quitar márgenes laterales y dar margen inferior */
        max-width: 500px; /* Evitar que se vean gigantes en tablets */
    }

    /* Ajuste de Textos y Títulos */
    .div_titulo_suministros {
        width: 100%;
        height: auto;
        padding: 1.5rem;
        border-radius: 20px; /* Quitar el borde extraño en móvil */
        margin-bottom: 1rem;
    }

    .titulo_1_saneamiento,
    .p_suministros,
    .p_1_saneamiento,
    .p_bandas_transportadoras_5,
    .texto_1 {
        width: 100% !important;
    }

    .text_suministros,
    .div_text_1_saneamiento {
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: center; /* Centrar texto en móvil */
    }
    
    .div_p_saneamiento {
        text-align: justify; /* O center, según gusto */
        font-size: 1.1rem; /* Ajustar tamaño de letra */
        line-height: 1.5rem !important; /* Reducir interlineado en móvil */
    }

    /* Ajustes específicos para listas */
    .lista_suministros {
        text-align: left;
        padding-left: 1rem;
    }

    /* Ajustes para el Collage de imágenes en móvil */
    .collage-img, .collage-img-lg, .collage-img-sm {
        height: 150px !important; /* Altura más pequeña para que quepan bien en móvil */
        margin-bottom: 1rem !important;
    }
    
    /* Desactivar parallax en móvil para mejorar rendimiento y evitar bugs visuales */
    .parallax-bg {
        background-attachment: scroll !important;
        background-position: center center !important;
        background-size: cover !important;
    }
    
    /* Ajuste de padding en secciones */
    .content-header {
        padding: 0 !important;
    }
    
    /* Ajuste de Cards de servicios */
    .service-card {
        margin-bottom: 2rem;
    }

    /* --- Ajustes Específicos para INDEX.EJS en Móvil --- */
    
    /* Slider Principal */
    .main-slider-container {
        height: 70vh !important; /* Reducir altura en móvil */
    }

    .texto_1 {
        width: 90% !important;
        left: 6% !important;
        transform: translateX(-50%); /* Centrar horizontalmente */
        bottom: 10% !important;
        text-align: center;
    }

    .texto_desc_1 {
        font-size: 1.1rem !important;
        background-color: rgba(0, 0, 0, 0.6); /* Fondo oscuro semitransparente para leer mejor */
        padding: 15px;
        border-radius: 10px;
        color: #fff;
    }

    .slide__overlay {
        display: none; /* Ocultar el SVG decorativo en móvil para dar espacio a la imagen */
    }

    /* Triángulo decorativo */
    .triangulo_img {
        height: auto !important;
        width: 80% !important;
        margin: 2rem auto;
    }

    /* Ajuste de padding en columnas de collage */
    .col-6[style*="padding-top: 50px;"] {
        padding-top: 25px !important; /* Reducir el desplazamiento vertical en móvil */
    }
}

/* =========================================
   ESTILOS DEL FOOTER
   ========================================= */
.main-footer {
    position: relative;
    background-image: url('../img/Banners/view_saneamiento_recuperacion/saneamiento 3.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 4rem 0 0 0;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 20, 40, 0.92); /* Un overlay oscuro y azulado */
    z-index: 1;
}

.main-footer .container {
    position: relative;
    z-index: 2;
    padding-bottom: 2rem;
}

.footer-heading {
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-size: 1.1rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #2658d8;
}

.footer-col .text-muted {
    color: #adb5bd !important;
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-link {
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: #fff;
    transform: translateX(5px);
}

.social-links .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-right: 10px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-links .social-icon:hover {
    background-color: #2658d8;
    color: #fff;
    transform: translateY(-3px);
}

.border-top-light {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-footer .copyright-text {
    color: #adb5bd;
}

.main-footer .copyright-text strong,
.main-footer .copyright-text span {
    color: #adb5bd;
}

@media (max-width: 767px) {
    .footer-col {
        text-align: center;
        margin-bottom: 2rem !important;
    }
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-links {
        text-align: center;
    }
}

/* =========================================
   ESTILOS SECCIÓN CONTACTO (INDEX)
   ========================================= */
.contact-label {
    font-weight: 600; 
    color: #555;
    margin-bottom: 0.5rem;
}

.contact-info-card {
    background-color: #f8f9fa;
    border-radius: 15px;
    border-left: 5px solid #2658d8;
}

.contact-info-card h4 {
    color: #333;
    font-weight: 700;
}

.contact-icon {
    font-size: 1.5rem;
    color: #2658d8;
    width: 40px;
    text-align: center;
}

.contact-info-card a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-card a:hover {
    color: #2658d8 !important;
}

.border-top-contact {
    border-top: 1px solid #dee2e6;
}

@media (max-width: 991px) {
    .contact-info-card {
        text-align: center;
    }
    .contact-info-card .d-flex {
        flex-direction: column;
        align-items: center !important;
    }
    .contact-icon {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
}

/* Ajustes extra para móviles muy pequeños (max-width: 576px) */
@media (max-width: 576px) {
    .div_titulos_servicios_vistas h2 {
        font-size: 1.5rem !important;
    }
    
    .btn-lg {
        width: 100%; /* Botones ancho completo */
    }
}

/* =========================================
   ESTILOS FORMULARIO DE SERVICIOS
   ========================================= */
.form-section-bg {
    background: linear-gradient(to bottom, #f4f6f9, #e9ecef);
}

.form-header-custom {
    background-color: #2658d8;
    color: white;
}

.form-header-custom p {
    opacity: 0.9;
}

/* =========================================
   NUEVO DISEÑO EQUIPO DE PROFESIONALES (PARALLAX)
   ========================================= */

#equipo_profesionales {
    position: relative;
    /* Imagen de fondo para el efecto parallax. Puedes cambiarla por la que prefieras. */
    background-image: url('../img/Banners/banner_servicios/ingenieria de proyectos.png'); 
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 4rem 0;
}

/* Creamos un pseudo-elemento para el overlay que va sobre la imagen de fondo */
#equipo_profesionales::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Este gradiente crea el efecto "medio blanco desde la mitad" que se desvanece */
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 1) 0%,   /* Completamente blanco arriba */
        rgba(255, 255, 255, 0.96) 50%, /* Casi blanco en el medio */
        rgba(255, 255, 255, 0.85) 100%  /* Apenas visible abajo (85% opacidad blanca) */
    );
    z-index: 1;
    backdrop-filter: blur(1px); /* Desenfoque muy sutil (apenas se ve) para suavizar la nitidez */
}

/* El contenido del carrusel debe estar por encima del overlay para que sea visible */
#equipo_profesionales .customer-feedback {
    position: relative;
    z-index: 2;
}
