/* font-family: 'CircularStd-Black';
font-family: 'Circular Std Bold';
font-family: 'CircularStd-Book';
font-family: 'Archivo';
font-family: 'circular-std-medium-500'; */

body {
    max-width: 100%;
    overflow-x: hidden  ;
}
.proyectos-destacados {
    position: relative;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 80vh;
    max-height: 800px;
}
.proyectos-destacados img {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
}
.proyectos-destacados h3 {
    font-size: 64px;
}
.proyectos-destacados h3.txt-4 {
    margin-top: -2.6rem;
}
.proyectos-destacados p {
    max-width: 400px;
}
.gestion-empresarial {
    background-color: #E6E6E6;
}
.gestion-empresarial article {
    position: relative;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    bottom: 24px;
}
.consultoria-civil article {
    position: relative;
    max-width: 1400px;
    padding: 60px 0;
    margin-left: auto;
    margin-right: auto;
}
.gestion-empresarial h2.txt-4, .consultoria-civil h2.txt-4 {
    margin-bottom: 60px;
}
.project-container {
    min-width: 100%;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(595px, 1fr));
    gap: 70px;
    justify-items: center; /* Centra horizontalmente los elementos */
    align-items: center;
}
.project {
    width: 100%;
    max-width: 595px;
    min-width: 595px;
    height: 100%;
}
.project img {
    max-width: 100%;
    min-height: 60%;
}
.project h3 {
    font-family: 'CircularStd-Black';
}
.project .text-end {
    padding-right: 60px;
}
.project .text-end a img {
    width: 14px;
    height: 28px;
    position: relative;
    top: -2px;
}
.project a {
    text-decoration: none;
    display: inline-block;
    padding: 12px 16px 12px 40px;
    font-size: 22px;
}
.text-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 42%;
    position: relative;
    padding: 12px;
    border-left: 1px solid #EF001D;
    border-right: 1px solid #EF001D;
    border-bottom: 1px solid #EF001D;
    background-color: #FFF;
}
.text-container h3 {
    font-size: 22px;
}
p {
    /* font-family: 'CircularStd-Black';
    font-family: 'Circular Std Bold';
    font-family: 'CircularStd-Book';
    font-family: 'Archivo'; */
    font-family: 'circular-std-medium-500';
}
.text-container::before {
    content: '';
    position: absolute;
    width: 96px;
    height: 1px;
    bottom: 33px;
    right: -16px;
    background-color: #EF001D;
    transform: rotate(-45deg);
    z-index: 2;
}
.text-container::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -35px;
    border-style: solid;
    border-width: 50px 50px 0px 50px;
    border-color: #E6E6E6 transparent transparent transparent;
    transform: rotate(-45deg);
    z-index: 1;
}
.consultoria-civil .text-container::after {
    border-color: #FFF transparent transparent transparent;
}
.after-white .text-container::after {
    border-color: #FFF transparent transparent transparent;
}

@media (max-width: 768px) {
    #line-break, br {
        display: none;
    }
    h2.txt-3, h2.txt-4 {
        padding-left: 20px;
    }
    .gestion-empresarial {
        padding-top: 0px;
    }
    .proyectos-destacados h3 {
        font-size: 28px;
        padding-left: 20px;
    }
    .proyectos-destacados p {
        padding-left: 22px;
    }
    .proyectos-destacados h3.txt-4 {
        margin-top: -1.5rem;
    }
    .consultoria-civil {
        padding-top: 0px;
    }
    .gestion-empresarial h3, .consultoria-civil h3 {
        font-size: 18px;
    }
    .project-container {
        padding: 0;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    /* .project-container div:nth-child(3) .text-container::after {
        border-color: #FFF transparent transparent transparent;
    }
    .consultoria-civil .project-container div:nth-child(3) .text-container::after {
        border-color: #FFF transparent transparent transparent;
    } */
    .project {
        max-width: 350px;
        min-width: 350px;
        height: auto;
    }
    .project img {
        height: 45%;
    }
    .text-container {
        height: auto;
    }
    .gestion-empresarial h2, .consultoria-civil h2 {
        font-size: 28px;
    }
    .gestion-empresarial h2.txt-4, .consultoria-civil h2.txt-4 {
        margin-top: -1.5rem;
    }
    .proyectos-destacados {
        height: 60vh;
    }
    .proyectos-destacados img {
        top: 18%;
        height: 45% !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .project-container {
        row-gap: 40px;
        row-gap: 128px;
    }
    /* .project-container div:nth-child(3) .text-container::after {
        border-color: #E6E6E6 transparent transparent transparent;
    } */
    .project {
        height: 515px;
    }
    .project img {
        height: 42%;
    }
    .text-container {
        height: 58%;
    }
    .proyectos-destacados h3 {
        font-size: 40px;
    }
    .proyectos-destacados h3.txt-4 {
        margin-top: -1.9rem;
    }
    .project {
        min-width: 503px;
        max-width: 503px;
    }
    .proyectos-destacados img {
        top: 90px;
        height: 70%;
    }
    .gestion-empresarial {
        padding-bottom: 13px;
    }
    .consultoria-civil article {
        padding: 80px 0px 140px;
    }
}
@media (min-width: 768px) {
    .gestion-empresarial h2, .consultoria-civil h2, .proyectos-destacados h3 {
        padding: 0 40px;
    }
    .proyectos-destacados p {
        margin-left: 140px;
    }
    .gestion-empresarial article {
        bottom: 32px;
        padding-bottom: 48px;
    }
}
@media (min-width: 500px) and (max-width: 767px) {
    .proyectos-destacados img {
        height: 70%;
    }
}

/* Estilos de la página de Servicios */
.proyectos_nuestrosServicios {
    margin-top: 0px;
    padding-bottom: 160px;
}
.proyectos_nuestrosServicios a {
    color: #000 !important;
}
.proyectos_nuestrosServicios a img {
    position: relative;
    top: -20px;
    right: 12px;
    width: 24px !important;
    transform: rotate(-0deg);
}
.servicios-destacados img {
    height: 90%;
}
.servicio-container {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    column-gap: 20px;
}
.servicio {
    min-width: 380px;
    max-width: 380px;
    height: 475px;
    height: 520px;
}
.servicio .text-container::before {
    width: 63px;
    bottom: 21px;
    right: -10px;
}
.servicio .text-container::after {
    border-width: 40px 40px 0px 40px;
}
.servicio .text-container {
    height: 38%;
}
.servicio button {
    padding: 12px 16px 12px 40px;
    font-family: 'Circular Std Bold';
    font-size: 22px;
    color: #0d6efd;
    border: none;
    background-color: transparent;
}

@media (max-width: 768px) {
    .servicio {
        min-width: 330px;
        max-width: 330px;
        height: auto;
    }
}
@media (min-width: 992px) {
    .proyectos-destacados {
        margin-top: 5rem;
    }
    .gestion-empresarial {
        margin-top: 10rem;
        padding-top: 15px;
        padding-bottom: 100px;
    }
    .consultoria-civil {
        padding: 40px 0 10rem 0;
    }
    .gestion-empresarial article {
        bottom: 96px;
    }
}
@media (min-width: 996px) and (max-width: 1199px) {
    .txt-3, .txt-4 {
        font-size: 72px;
    }
    .txt-4 {
        margin-top: -2.9rem
    }
    .gestion-empresarial {
        padding-top: 32px;
    }
}