/* Fuente Poppins cargada desde el HTML para mejor rendimiento */

.enlances {
    color: rgb(22, 124, 104) ;
}
.enlances:hover {
    color: rgb(8, 80, 66) ;
}
/* Estilos base modernizados */
body {
    margin: 0;
    padding-top: 0;
    background-position: center center;
    background-size: cover;
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Variables CSS modernas */
:root {
    --primary-color: #187C68;
    --primary-dark: #0b6e54;
    --primary-light: #2d8b6f;
    --accent-color: #1a5c4a;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(1px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* Subtítulo */
.secondary-title {
    font-size: 2rem;
    color: #187C68;
    text-align: center;
    margin: 20px 0;
    position: relative;
    font-weight: 600;
}

.secondary-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: rgba(34, 85, 75, 0.8);
    transition: width 0.3s ease;
}

.secondary-title:hover::after {
    width: 100px;
}

.icon-container {
    text-align: right; /* Alinea a la derecha */
    margin-right: - 5vh;
}

.icon-container .bi-person-circle {
    font-size: 2rem; /* Cambia el tamaño del icono */
}

/* Redes Sociales */
a.me-3.text-dark i {
    color: #187C68;
    transition: color 0.3s ease;
}

a.me-3.text-dark:hover i {
    color: #0b6e54;
}

/* Ajustes para las secciones "full-page" */
.full-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-position: center center;
    background-size: cover;
    margin-top: 0;
}

/* Ajustes adicionales para responsividad */
@media (max-width: 768px) {
    .navbar-brand img {
        width: 100px;
    }
}

/* Asegurar que el logo no tenga fondo */
.navbar-brand img {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Asegurar que el logo no tenga estilos de loader */
.navbar-brand img.image-loader {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Remover cualquier estilo de loader del logo */
.navbar-brand img {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    position: relative;
}

.navbar-brand img::before,
.navbar-brand img::after {
    display: none !important;
} 


/* Sección de "Home" */
#home {
    /* Gradiente de fondo temporal mientras carga la imagen */
    background: linear-gradient(135deg, #1a5c4a 0%, #2d8b6f 50%, #187C68 100%);
    background-image: url('/assets/img/backgrouds/fondo_opaco_optimized.webp'), url('/assets/img/backgrouds/fondo_opaco_optimized.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    height: 100vh;
    /* Transición suave para cuando carga la imagen */
    transition: background-image 0.3s ease-in-out;
}

/* Overlay removido para mostrar la imagen original sin filtros */

/* Estilo para home-section-header */
.home-section-header, .client-section-header {
    background-color: rgba(24, 124, 104, 0.897); /* Fondo verde transparente */
    border-radius: 10px;
    padding: 10px 15px; /* Reduce el padding */
    color: white; /* Texto en blanco */
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 15px auto; /* Centrando el home-section-header */
    max-width: 690px; /* Ancho más estrecho aumentado en 15% (600px * 1.15) */
    width: 90%; /* Ancho relativo para dispositivos móviles */
    display: block; /* Asegura que el elemento se comporte como un bloque para centrado */
}

/* Sección de "about-us-section" */
/* Sección de "about-us-section" */
/* Sección de "about-us-section" */
#about-us-section {
    background-color: #f9f9f9;
    padding: 60px 0;
    width: 100%;
    box-sizing: border-box;
    min-height: 120vh; /* Ajusta a un valor mayor como 120vh o 150vh */
}



.about-us-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-us-section h2 {
    font-size: 2.5rem;
    color: rgb(24, 124, 104);
    font-weight: 600;
    text-align: center;
    margin-bottom: 3vh;
    margin-top: -5vh;
}

.about-us-section h5 {
    font-size: 1.25rem;
    color: #555;
    text-align: center;
    margin-bottom: 5vh;
}

.about-us-section .col-md-4 {
    margin-bottom: 30px;
}

.about-us-section .col-md-4 img {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-us-section .col-md-4 h5 {
    font-size: 1.5rem;
    color: #333;
    margin-top: 10px;
    margin-bottom: 10px;
    font-weight: 600;
}

.about-us-section .col-md-4 p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Sección "Clientes" */
#clients {
    background-image: url('/assets/img/backgrouds/construcion-large.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100vh;
    margin-top: 0;
}

#contacto {
    background-color: #ccc9c9a2 !important;
}

.secondary-title {
    color: #187C68;
  }
  

@media (max-width: 1200px) {
    #clients {
        background-image: url('/assets/img/backgrouds/construcion-large.webp');
    }
}

@media (max-width: 600px) {
    #clients {
        background-image: url('/assets/img/backgrouds/construcion-large.webp');
    }
}

/* Slider de Clientes */
.slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.slide-track {
    display: flex;
    animation: scroll 40s linear infinite;
}

.slide {
    min-width: 200px;
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.slide img {
    width: 100%;
    object-fit: contain;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Ajustes adicionales para responsividad */
@media (max-width: 768px) {
    .navbar-brand img {
        width: 100px;
    }

    .home-section-header {
        margin-top: 5%;
        margin-bottom: 10%;
        padding: 10px 15px; /* Mantén el padding reducido también en pantallas más pequeñas */
    }

    .home-section-header h1 {
        font-size: 2rem;
    }

    .home-section-header p {
        font-size: 1rem;
    }

    .img-fluid {
        width: 70%;
    }

    .carousel-item img {
        max-width: 50%;
        max-height: 50px;
    }
}

/* Ajustes para pantallas más grandes */
@media (min-width: 1024px) {
    .home-section-header {
        margin-top: 5%;
        margin-bottom: 15%;
    }

    .img-fluid {
        width: 10%;
    }
}
