/********** Template CSS **********/
:root {
    --primary: #4A7C59;
    --secondary: #829A6F;
    --tertiary: #A9B896;
    --light: #E8E8E8;
    --dark: #333333;
    --white: #FFFFFF;
}



.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.logo-imagen {
    width: 100px;
    height: auto;
    object-fit: contain;
}

h1,
.h1,
h2,
.h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
.h3,
h4,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
.h5,
h6,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--light);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.fixed-top {
    transition: .5s;
}

.top-bar {
    height: 45px;
    border-bottom: 1px solid var(--tertiary); /* Color del borde ajustado a gris claro */
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    padding: 25px 15px;
    color: var(--darky); /* Color del texto ajustado a gris claro */
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary); /* Color al pasar el ratón y activo ajustado a verde claro apagado */
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid var(--tertiary); /* Color del borde ajustado a gris claro */
        background: var(--white); /* Fondo ajustado a blanco */
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/

.carousel-caption {
    top: 30%; /* Ajusta si es necesario */
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: start;
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 3rem;
    background-color: rgba(169, 184, 150, 0.1); /* Ajusta el fondo para mejorar la visibilidad */
    border: none; /* Elimina el borde */
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }

    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(../img/header.jpg) top left no-repeat; /* Agrega un fondo semitransparente */
    background-size: cover;
    color: var(--white); /* Cambia el color del texto a blanco para mejor legibilidad */
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-weight: 500;
    color: var(--white); /* Cambia el color del texto a blanco para mejor legibilidad */
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--white); /* Cambia el color del separador a blanco para mejor legibilidad */
}

/*** Facts ***/
.facts {
    background: linear-gradient(rgba(53, 94, 252, .95), rgba(53, 94, 252, .95)), url(../img/bg.png);
}


/*** Callback ***/
.callback {
    position: relative;
}

.callback::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    top: 0;
    left: 0;
    background: linear-gradient(rgba(74, 124, 89, .95), rgba(74, 124, 89, .95)), url(../img/bg.png); /* Cambia el color del gradiente a verde */
    z-index: -1;
}


/*** Feature ***/
.feature .feature-box,
.feature .feature-box * {
    transition: .5s;
}

.feature .feature-box:hover {
    background: var(--primary);
    border-color: var(--primary) !important;
}

.feature .feature-box:hover * {
    color: var(--white) !important; /* Cambiado a var(--white) para mejor legibilidad */
}


/*** Service ***/
.service .nav .nav-link {
    transition: .5s;
}

.service .nav .nav-link.active {
    border-color: var(--primary) !important;
    background: var(--primary);
}

.service .nav .nav-link.active h5 {
    color: var(--white) !important;
}

.service .nav .nav-link.active h5 i {
    color: var(--white) !important;
}

.project-item,
.project-item .project-img {
    position: relative;
}

.project-item .project-img a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    opacity: 0;
    transition: .5s;
}

.project-item:hover .project-img a {
    opacity: 1;
}

.project-item .project-title {
    position: absolute;
    top: 3rem;
    right: 0;
    bottom: 0;
    left: 3rem;
    border: 1px solid var(--light);
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    z-index: -1;
    transition: .5s;
}

.project-item:hover .project-title {
    background: var(--primary);
    border-color: var(--primary);
}

.project-item .project-title h4 {
    transition: .5s;
}

.project-item:hover .project-title h4 {
    color: var(--white);
}

.project-carousel .owl-nav {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--light);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.project-carousel .owl-nav .owl-prev:hover,
.project-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: var(--light);
}

/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light); /* Color del texto: gris claro */
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary); /* Color al pasar el ratón: verde claro apagado */
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: var(--light); /* Color del texto: gris claro */
    background: #333333; /* Color de fondo: gris oscuro (puedes ajustar a un tono verde oscuro si prefieres) */
}

.copyright a {
    color: var(--light); /* Color del texto del enlace: gris claro */
}

.copyright a:hover {
    color: var(--primary); /* Color del enlace al pasar el ratón: verde claro apagado */
}

.text-justify-custom {
    text-align: justify;
}

.check-primary {
    color: var(--primary); /* Color del texto: verde claro apagado */
    margin-right: 10px;
}

li {
    margin-bottom: 5px; /* Ajusta el margen inferior entre elementos de la lista */
}

ul {
    list-style: none;
    padding-left: 0;
}

.text-primary {
    color: #4A7C59 !important; /* Color verde oscuro */
}

.text-dark {
    color: var(--dark) !important; /* Color verde oscuro */
}

.display-1{
    color:var(--dark);
}

.bg-primary {
    background-color: #4A7C59 !important; /* Color verde oscuro */
}

.btn-primary {
    background-color: var(--primary) !important; /* Color verde oscuro */
    border-color: #4A7C59 !important; /* Color del borde verde oscuro */
}

.tab-content .tab-pane img.position-absolute {
    object-fit: cover;
}

ul li {
    display: flex;
    align-items: flex-start; /* Alinea los elementos al inicio de la línea */
}

ul li i {
    margin-right: 5px; /* Ajusta el margen derecho según sea necesario */
    flex-shrink: 0; /* Evita que el icono se reduzca */
}

ul li span {
    flex-grow: 1; /* Permite que el texto ocupe el espacio restante */
    word-wrap: break-word; /* Permite que el texto se divida en varias líneas si es necesario */
}