/******** Estilos para el home *******/

/* SECCIÓN 1 */
.Sec1 { align-items: flex-start; margin-top:0; padding-top:0; }
body, .main_inicio { margin-top:0; padding-top:0 !important; }
.Sec1 .sec1-content {
    height: 100%;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    width: 88%;
    margin-left: auto;
    margin-right: 10%;
    gap: 1%;
}

.Sec1 .sec-slider {
    width: 80%;
    margin-left: auto
}

.Sec1 .sec-building {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center bottom;
    /*background-image: url('../img/heroComponent.png');*/
    background-image: url('../img/image001.png');
}

/* .Sec1 .test {
    width: 90%;
    margin-right: auto
} */

#btnMore {
    margin-top: 4rem;
    width: 72%;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

@media (max-width: 1480px) {
    #btnMore {
        margin-top: 6rem;
    }
}

@media (max-width: 1025px) {
    .Sec1 .sec1-content {
        grid-template-columns: 1fr;
    }

    .Sec1 .sec-slider {
        width: 60%;
        max-width: 480px;
        margin: auto;
    }

    /* .Sec1 .test {
        width: 100%;
        margin: auto;
    } */

    #btnMore {
        width: 75%;
        margin: auto;
        margin-top: 8rem;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 10px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .Sec1 .sec-slider {
        width: 90%;
        margin: auto;
    }

    #btnMore {
        width: 70%;
        margin: auto;
        margin-top: 8rem;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 4px;
        justify-content: center;
    }
}


/* SECCIÓN CON FONDO NUBES */
/* Contenedor padre con fondo */
.background-container {
    position: relative;
    width: 100%;
    height: auto;
    background-image: url('../img/home/cloud.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Contenedor hijo con efecto de arco */
.child-container {
    position: relative;
    display: flex;
    width: 100%;
    height: 70%;
    padding-bottom: 3rem;
    background-color: white;
    clip-path: polygon(0% 0%,
            0% 98%,
            50% 85%,
            100% 98%,
            100% 0%);
    /* Efecto de arco */
    z-index: 2;
}

@media (max-width: 1200px) {
    .child-container {
        padding-bottom: 6rem;
    }
}

@media (max-width: 1022px) {
    .child-container {
        padding-bottom: 2rem;
        clip-path: polygon(0% 0%,
                0% 98%,
                50% 99%,
                100% 98%,
                100% 0%);
        /* Efecto de arco */
    }
}

/* SECCIÓN DE HITOS */
.card_Hitos {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: scroll;
}

.hito_card {
    flex: 1 0 auto;
    width: 180px;
    height: 200px;
}

.hito_text {
    font-size: 1.2rem;
    line-height: 1.6rem;
}

/*menos de 1450px*/
@media (max-width: 1449px) {
    .hito_text {
        font-size: 0.9rem;
        line-height: 1.1rem;
    }
}

/*menos de 1024px*/
@media (max-width: 1023px) {
    .hito_text {
        font-size: 0.95rem;
        line-height: 1.2rem;
    }
}

/*menos de 768px*/
@media (max-width: 767px) {
    .hito_text {
        font-size: 1.5rem;
        line-height: 1.7rem;
    }
}

/*menos de 721px*/
@media (max-width: 720px) {
    .hito_text {
        font-size: 1.3rem;
        line-height: 1.5rem;
    }
}

/*menos de 571px*/
@media (max-width: 570px) {
    .hito_text {
        font-size: 1rem;
        line-height: 1.4rem;
    }
}

/*menos de 421px*/
@media (max-width: 420px) {
    .hito_text {
        font-size: 0.75rem;
        line-height: 1rem;
    }
}


/* SECCIÓN DE SERVICIOS */
#service .card_servicios:not(:last-child) {
    margin-right: 1rem;
}

.card_servicios {
    margin-bottom: 0;
}

/*menos de 1025px*/
@media (max-width: 1024px) {
    #service .card_servicios:not(:last-child) {
        margin-right: 0;
    }

    .card_servicios {
        margin-bottom: 2rem;
    }
}

.serviceContiner {
    position: relative;
    overflow: hidden;
    margin: 1rem 0 1rem 0;
}

.serviceContiner img {
    transition: all .5s;
    cursor: pointer;
}

@media (min-width:1024px) {
    .serviceContiner img {
        /*width: 25rem;*/
        height: 25rem;
    }
}

.servicio_content {
    background-color: #fff;
    position: absolute;
    top: 0;
    left: 0;
    text-align: center;
    height: 100%;
    color: #9D1F2E;
    transition: all .3s;
    z-index: -1;
}

@media (min-width:1024px) {
    .servicio_content {
        width: 100%;
        height: 25rem;
    }
}

.servicio_title2 {
    font-size: 1.5rem;
}

/*menos de 1025px*/
@media (max-width: 1024px) {
    .servicio_title2 {
        font-size: 1.1rem;
    }
}

/*.servicio_content p {
    padding: 20px 20px 15px 20px;
}*/
.servicio_content p {
    padding: 8px 20px;
}

.serviceContiner img:hover {
    opacity: 0;
}

.serviceTitle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-top: 2px solid #9D1F2E;
    border-bottom: 2px solid #9D1F2E;
    width: 100%;
    font-size: 24px;
    padding: 1.1rem .7rem;
}


/* MODAL GLOSARIO */
.modal {
    width: 90%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 15px;
}

.modal .flex {
    display: flex;
    gap: 1rem;
}

.modal input {
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9em;
}

.modal p {
    font-size: 0.9rem;
    color: #777;
    margin: 0.4rem 0 0.2rem;
}

button {
    cursor: pointer;
    border: none;
    font-weight: 600;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.4rem;
    font-weight: 700;
    background-color: black;
    color: white;
    border-radius: 5px;
    text-align: center;
    font-size: 1em;
}

.btn-open {
    position: absolute;
    bottom: 150px;
}

.btn-close {
    padding: 0.1rem 0.3rem;
    background: #9D1F2E;
    border-radius: 7px;
}

.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 21;
}

.modal {
    z-index: 22;
}

.disabled {
    filter: grayscale(100%);
}

.btnsModal {}

.modalTitle {
    color: #9D1F2E;
    font-weight: 700;
    font-size: 1.2rem;
}

.topBox {
    margin-bottom: .5rem;
}

.modalLink {
    color: #9D1F2E;
    font-weight: 700;
    font-size: 14px;
}

.documentsLink {
    display: flex;
    align-items: center;
    padding-top: 1rem;
}

.headerModal {
    width: 100%;
    background-color: #9D1F2E;
    margin: 1rem 0;
    border-radius: 5px;
    padding: 0 .8rem;
}

.headerModalTitle {
    color: white;
    font-size: 1.2rem;
}

.modalBox {
    padding: 2.5rem 6rem;
}

/*menos de 768px*/
@media (max-width: 767px) {
    .modalBox {
        padding: 1rem 1.5rem;
    }
}

.closeBox {
    background-image: url("/img/headerModal.png");
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    background-size: cover;
    background-repeat: no-repeat;
    padding: .2rem .4rem .2rem;
    color: white;
    display: flex;
    flex-direction: row-reverse;
    background-position: top right;
}

.modalImageContainer {
    display: none;
}

@media (min-width:768px) {
    .modalImageContainer {
        display: block;
    }

    .modal {
        width: 70%;
        height: 60%;
    }

    .btnsModal {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* scrollbar de la modal */
.detailBox {
    height: 90%;
    overflow-y: scroll;
}

/*menos de 768px*/
@media (max-width: 767px) {
    .detailBox {
        height: 500px;
        overflow-y: scroll;
    }
}

.detailBox::-webkit-scrollbar {
    width: 5px;
}

.detailBox::-webkit-scrollbar-thumb {
    max-height: 5px;
    background: #a0362e;
    border-radius: 5px;
}

/* .detailBox::-webkit-scrollbar-thumb {
  height: 5px;
  background: red;
} */

/* Handle on hover */
.detailBox::-webkit-scrollbar-thumb:hover {
    background-color: rgb(127 29 29);
}