/*==================== GOOGLE FONTS ====================*/
/* @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap'); */

/* Definición para la primera fuente */
@font-face {
    font-family: 'MiFuente';
    src: url('/fonts/SamsungOne-400.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Definición para la segunda fuente */
@font-face {
    font-family: 'MiFuenteSecond';
    src: url('/fonts/isocpeur.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Aplicar la primera fuente al cuerpo del texto */
body {
    font-family: 'MiFuente', sans-serif;
}

/* Aplicar la primera fuente a los encabezados */
h1, h2, h3, h4, h5, h6 {
    font-family: 'MiFuente', sans-serif;
}


/*==================== VARIABLES CSS ====================*/
:root {
    --header-height: 3rem;
    
    /* =========COLORS======== */
    --hue-color: 0;

    --first-color: hsl(var(--hue-color), 81%, 53%);
    /* --first-color: hsl(var(--hue-color), 72%, 60%); */
    /* mas fuerte #e02424 */
    /* mas chill #e22c2c */
    --first-color-second: hsl(var(--hue-color), 1%, 50%);
    --first-color-alt: hsl(var(--hue-color), 57%, 53%);
    --first-color-lighter: hsl(var(--hue-color), 92%, 85%);
    --title-color: hsl(var(--hue-color), 8%, 15%); 
    --text-color: hsl(var(--hue-color), 99%, 5%);
    --text-color-light: hsl(var(--hue-color), 8%, 65%);
    --input-color: hsl(var(--hue-color), 70%, 96%);
    --body-color: hsl(var(--hue-color), 0%, 97%);
    --container-color: #fff;
    --scroll-bar-color: hsl(var(--hue-color), 12%, 90%);
    --scroll-thumb-color: hsl(var(--hue-color), 12%, 80%);

    /* =======FONT AND TYPOGRAPHY======= */

    --body-font: 'MiFuente', sans-serif;

    /* .5rem = 8px, 1rem = 16px, 1.5rem = 24px */

    --big-font-size: 2rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1.125rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;

    /* =======FONT WEIGHT======= */

    --font-medium: 500;
    --font-semi-bold: 600;

    /* =======MARGENES BOTTOM======= */
    /* .25rem = 4px, .5rem = 8px, .75rem = 12px */

    --mb-0-25: .25rem;
    --mb-0-5: .5rem;
    --mb-0-75: .75rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;

    /* ========BOX======= */

    --box-shadow:0 .5rem 1rem rgba(0,0,0,.1);
    --border: .1rem solid rgba(0,0,0,.3);

    /* ========Z INDEX======= */

    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}

/* FONT SIZE FOR LARGE DEVICES */
@media screen and (min-width: 968px){
    :root {
        --big-font-size: 3rem;
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;
    }
}

/* ======BASE====== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

::selection{
    background-color: var(--first-color);
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    margin: 0 0 var(--header-height) 0;
    /* font-family: var(--body-font); */
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

html::-webkit-scrollbar{
    width: 9px;
}

html::-webkit-scrollbar-thumb{
    background-color: var(--first-color);
    border-radius: var(--mb-1);
}

h1,h2,h3,h4 {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.no-scroll {
    overflow: hidden;
}

/* ======LOADER PAGE====== */

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--container-color);
    z-index: 2000;
    transition: opacity .75s, visibility .75s;
}

.loader__hidden {
    opacity: 0;
    visibility: hidden;
}

.loader__img {
    width: 90px;
    height: 90px;
    animation: loading 0.75s ease infinite;
}

@keyframes loading {
    from {
        transform: translateX(-90%);
    }
    to {
        transform: translateX(0);
    }
}

/* ======LOADER PAGE END====== */

/* ======HEADER====== */

.header__container{
    position: sticky;
    top: 0;
    z-index: var(--z-fixed);
}

.header{
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    padding: var(--mb-1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: var(--z-modal);
    background-color: var(--first-color-second);
}

.logo{
    padding-left: var(--mb-3);
    width: 30rem;
    margin-left: var(--mb-1-5);
}

.nav__link{
    font-family: 'MiFuenteSecond', sans-serif;
    font-size: var(--normal-font-size);
    color: var(--container-color);
    padding-right: var(--mb-2);
    padding-left: var(--mb-2);
    transition: .3s ease;
}

.nav__link:hover{
    color: var(--first-color);
}

.icons{
    display: none;
}

#menu__btn{
    margin: var(--mb-0-5);
    padding: var(--mb-0-5);
    width: var(--mb-3);
    margin-left: var(--mb-1);
    display: none;
}

#close__btn{
    margin: var(--mb-0-5);
    padding: var(--mb-0-5);
    width: var(--mb-3);
    margin-left: var(--mb-1);
    display: none;
}

.active-link{
    color: var(--first-color);
}

/* ======HEADER END====== */

/* ======FOOTER====== */

.footer{
    background-color: var(--first-color-second);
    box-shadow: var(--box-shadow);
    margin-top: auto;
}

.footer__container{
    width: 50%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    padding: var(--mb-2);
    margin: auto;
}

.footer__logo{
    display: flex;
    align-items: start;
    padding-top: var(--mb-1);
}

.footer__contact{
    display: flex;
    flex-direction: column;
    padding: var(--mb-0-75);
    p{
        width: auto;
    }
}

.footer__btn{
    font-size: var(--normal-font-size);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    transition: all .3s ease;
}

.footer__contact__links{
    display: flex;
    align-items: center;
    font-size: var(--normal-font-size);
    color: var(--container-color);
}

.footer__contact__img{
    color: var(--first-color);
    width: var(--mb-2);
    margin: var(--mb-0-75);
}

.footer__btn__title{
    font-size: var(--h3-font-size);
    font-weight: var(--font-medium);
    color: var(--first-color);
}

.footer__copy{
    text-align: center;
    color: var(--container-color);
}

.footer__link{
    color: var(--container-color);
    font-size: var(--normal-font-size);
}

.footer__link:hover{
    color: var(--first-color);
}

.logo__footer{
    /* margin-right: var(--mb-3); */
    width: 8rem;
}

/* ======FOOTER END====== */

/* ======CONTACT====== */

.container__title{
    margin: var(--mb-3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.title{
    position: relative;
    color: var(--first-color-second);
    font-size: var(--big-font-size);
}

.contact__section{
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 90%;
    max-width: 34.375rem;
    margin: auto;
    margin-bottom: var(--mb-1-5);
}

.container__form{
    display: grid;
    gap: var(--mb-3);
    margin-top: var(--mb-3);
}

.form__title{
    text-align: left;
    color: var(--container-color);
    font-size: var(--h3-font-size);
    position: relative;
    width: 95%;
    margin: auto;
    padding-bottom: var(--mb-1);
}

.form__text{
    text-align: left;
    margin-bottom: var(--mb-1);
    color: var(--container-color);
    padding-bottom: var(--mb-1);
    font-size: var(--h3-font-size);
    width: 95%;
    margin: auto;
}

.contact__form{
    width: 90%;
    background-color: var(--first-color-second);
    border-radius: var(--mb-1);
    padding: var(--mb-2);
}

.form__input{
    width: 95%;
    max-width: 43.75rem;
    border: none;
    padding: var(--mb-1);
    outline: none;
    margin-bottom: var(--mb-1);
    border-radius: var(--mb-0-75);
    font-family: var(--body-font);
    transition: all .2s ease;
}

.textarea{
    min-height: 9rem;
    resize: none;
}

.form__input:focus{
    border: 3px solid var(--first-color);
}

.form__input:hover{
    width: 96%;
}

.form__input::placeholder{
    text-transform: capitalize;
}

.submit{
    background-color: var(--first-color);
    color: #000;
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    font-family: var(--body-font);
    border: none;
    cursor: pointer;
    transition: all .3s ease;
}

.submit:hover{
    border: none;
    background-color: var(--first-color-lighter);
}

.contact__map{
    position: relative;
    width: 100%;
    height: 31.25rem;
}

.map__bg{
    position: absolute;
    top: 0;
    right: 0;
    width: 12.5rem;
    height: 90%;
    background-color: var(--first-color);
    border-radius: var(--mb-1);
}

.map{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 90%;
    height: 90%;

}

.map iframe{
    width: 100%;
    height: 100%;
    border-radius: var(--mb-1);
}

.contact__info{
    display: flex;
    flex-direction: column;
    align-items: start;
    margin-top: var(--mb-3);
    margin-bottom: var(--mb-3);
}

.contact__info__title{
    padding-top: var(--mb-2);
    padding-bottom: var(--mb-2);
    font-size: var(--h1-font-size);
    text-align: start;
    color: var(--first-color);
    position: relative;
}

.contact__info__title::before{
    content: '';
    border-bottom: 2px solid var(--first-color);
    position: absolute;
    bottom: 3px;
    width: 40%;
    left: 0;
}

.contact__info__img{
    width: 3.5rem;
    margin-right: var(--mb-0-75);
}

.contact__info__list{
    display: flex;
    flex-wrap: wrap;
}

.contact__info__link{
    display: flex;
    padding-right: var(--mb-3);
    align-items: center;
    font-size: var(--h3-font-size);
}

.contact__info__title::before{
    content: '';
    border-bottom: 2px solid #212D45;
    position: absolute;
    bottom: 35px;
    width: 30%;
    left: 0;
}

.form__home{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    margin-top: var(--mb-2);
    margin-bottom: var(--mb-2);
}

/* ======CONTACT END====== */

/* ======ABOUT====== */

.contadores_principal{
    background: linear-gradient(rgba(31, 40, 63, 0.75), rgba(32, 42, 66, 0.75)), url(/img/fotos_proyectos/foto_constru3.jpg) center center no-repeat;
    background-size: cover;
    width: 100%;
    margin: 3.125rem auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--mb-3);
}

#hand{
    margin-top: var(--mb-2);
}

.contador{
    width: 24.7%;
    text-align: center;
    display: inline-block;
}

.contador img{
    width: 5rem;
}

.contador h2{
    color: var(--container-color);
}

.contador_cantidad{
    font-size: var(--h3-font-size);
    margin: var(--mb-0-75) 0;
    color: var(--container-color);
}

@keyframes aparecer {
    0%{
        opacity: 0;
        transform: translateY(100px);
    }
    100%{
        opacity: 1;
        transform: translateY(0);
    }
}

.ocultar{
    opacity: 0;
}

.animar{
    animation: aparecer 1.3s;
}

.slider__title{
    color: #212D45;
    width: 20rem;
    margin: auto;
    margin-top: var(--mb-3);
    font-size: var(--h1-font-size);
    position: relative;
    padding-bottom: var(--mb-2);
}

.slider__title::before{
    content: '';
    border-bottom: 2px solid var(--first-color);
    position: absolute;
    bottom: 40PX;
    width: 40%;
    left: 0;
}

.container__about__text{
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-around;
    max-width: 80%;
    margin: auto;
    padding: var(--mb-2);
    border-radius: var(--mb-1-5);
    margin-top: var(--mb-3);
    margin-bottom: var(--mb-3);
    min-width: 50%;
    background-color: #212D45;
}

.container__about__text img{
    width: 40rem;
}

.container__text{
    display: flex;
    flex-direction: column; 
    min-width: 50%;
    padding: var(--mb-2);
}

.container__text__title{
    font-size: var(--h1-font-size);
    padding-bottom: var(--mb-1);
    color: var(--first-color);
}

.container__text__text{
    padding-bottom: var(--mb-2);
    color: var(--container-color);
}



@-webkit-keyframes scroll {
    0% {
      -webkit-transform: translateX(0);
              transform: translateX(0);
    }
    100% {
      -webkit-transform: translateX(calc(-250px * 7));
              transform: translateX(calc(-250px * 7));
    }
}
  
@keyframes scroll {
    0% {
      -webkit-transform: translateX(0);
              transform: translateX(0);
    }
    100% {
      -webkit-transform: translateX(calc(-250px * 7));
              transform: translateX(calc(-250px * 7));
    }
}

.slider {
    background: var(--body-color);
    height: 200px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 95%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: -1;
    margin-top: var(--mb-2);
    margin-bottom: var(--mb-2);
}

.slider::before, .slider::after {
    background: linear-gradient(to right, var(--body-color) 0%, rgba(255, 255, 255, 0) 100%);
    content: "";
    height: 100px;
    position: absolute;
    width: 200px;
    z-index: 2;
}

.slider::after {
    right: 0;
    top: 0;
    -webkit-transform: rotateZ(180deg);
            transform: rotateZ(180deg);
}

.slider::before {
    left: 0;
    top: 0;
}

.slider .slide-track {
    -webkit-animation: scroll 40s linear infinite;
            animation: scroll 40s linear infinite;
    display: flex;
    width: calc(250px * 14);
}

.slider .slide {
    height: 50px;
    width: 250px;
}
  
.slide img{
    width: 6rem;
}

.slide{
    display: flex;
    align-items: center;
    justify-content: center;
}
 
.container__aboutus{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
    width: 80%;
}

.container__aboutus .container__aboutus__text{
    width: 60%;
    margin: var(--mb-2);
}

.container__aboutus__title{
    padding-bottom: var(--mb-1);
    text-align: center;
    font-size: var(--h1-font-size);
    color: #212D45;
}

.aboutus__text{
    text-align: center;
}

.container__aboutus .aboutus__container{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding-top: var(--mb-1-5);
    text-align: center;
}

.aboutus__container{
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: center;
    border-bottom: 1px solid #212D45;
}

.aboutus__title{
    color: #212D45;
    color: var(--first-color);
    padding-bottom: var(--mb-1);
    position: relative;
}

.aboutus{
    width: 40%;
    margin: var(--mb-2);
    padding: var(--mb-2);
    color: var(--text-color);
    border-radius: var(--mb-1);
}

.aboutus__title::before{
    content: '';
    border-bottom: 2px solid #212D45;
    position: absolute;
    bottom: 18px;
    width: 10%;
    left: 0;
}

/* ======ABOUT END====== */

/* ======HOME====== */

.home{
    color: var(--container-color);
    width: 100%;
    height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto;
    background: linear-gradient(rgba(31, 40, 63, 0.75), rgba(32, 42, 66, 0.75)), url(/img/fotos_proyectos/foto_contru2.jpg) center center;
}

.home__conteiner__text{
    background-color: var(--first-color);
    color: #212D45;
    text-align: center;
    padding: var(--mb-1);
}

.home__title{
    font-size: 2.75rem;
    color: var(--container-color);
}

.home__text{
    font-family: 'MiFuenteSecond', sans-serif;
    font-size: var(--h2-font-size);
    font-weight: var(--font-medium);
    color: #000;
}

.home__link{
    border-radius: var(--mb-1);
    display: inline-block;
    color: var(--first-color-second);
    background-color: var(--first-color);
    padding: var(--mb-0-75) var(--mb-2);
    font-size: var(--h3-font-size);
    position: relative;
    cursor: pointer;
    transition: all .3s ease;
    margin-top: 4rem;
}

.home__link:hover{
    background-color: var(--first-color-lighter);
}

.home__subtitle{
    font-size: var(--h3-font-size);
    color: var(--container-color);
}

.home__icons{
    margin-top: var(--mb-3);
    transition: all .3s ease;
}

.home__icons:hover{
    transform: translateY(.25rem);
}

.icons__text{
    display: flex;
    align-items: center;
}

.icons__img{
    margin-right: var(--mb-0-25);
    width: var(--mb-2-5);
}

.icon__arrow{
    margin-left: var(--mb-0-25);
}

/* ======SERVICES====== */

.service__title{
    text-align: center;
    font-size: var(--h1-font-size);
    margin-top: var(--mb-3);
}

.service__subtitle{
    text-align: center;
    font-size: var(--h3-font-size);
}

.service{
    padding-top: 5rem;
}

.row{
    width: 70%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16.875rem, 1fr));
    gap: 25px;
    text-align: center;
    margin-bottom: var(--mb-3);
}

.service__col{
    background-color: var(--first-color-second);
    padding-bottom: var(--mb-1-5);
    cursor: pointer;
    border-radius: var(--mb-0-75);
    transition: all .3s ease;
}

.service__col:hover{
    box-shadow: var(--box-shadow);
}

.service__col__img{
    min-width: 100%;
    height: 17rem;
    object-fit: cover;
    margin-bottom: var(--mb-1);
    border-radius: var(--mb-0-75);
}

.service__col__title{
    font-size: var(--h3-font-size);
    color: var(--container-color);
}

.service__col__title__open{
    color: #212D45;
    font-size: var(--h2-font-size);
}

.title__img{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    margin-bottom: var(--mb-1-5);
}

.service__col__text{
    color: var(--container-color);
    margin-left: var(--mb-0-5);
    margin-right: var(--mb-0-5);
}

.service__preview{
    position: fixed;
    top: 0;
    left: 0;
    min-height: 100vh;
    min-width: 100vw;
    background: rgba(0, 0, 0, .8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.service__preview .preview{
    display: none;
    padding: var(--mb-2);
    text-align: center;
    background-color: var(--container-color);
    position: relative;
    width: 40rem;
    border-radius: var(--mb-0-75);
}

.service__preview .preview.active{
    display: inline-block;
}

.service__preview .preview .service__col__img__open{
    height: 8rem;
    margin-right: var(--mb-1-5);
}

.service__preview .preview .service__close{
    display: block;
    position: absolute;
    top: var(--mb-0-5);
    right: var(--mb-1-5);
    cursor: pointer;
    width: 3rem;
    transition: all .4s ease;
    border-radius: 50%;
}

.service__close:hover{
    transform: rotate(90deg);
    background-color: var(--body-color);
}

.service__list{
    text-align: start;
    margin-top: var(--mb-0-5);
    font-size: var(--h3-font-size);
    list-style-position: inside;
    padding-bottom: .5rem;
}

.list__text{
    color: #212D45;
    font-size: var(--h3-font-size);
}

/* ======SERVICES END====== */

/* ======SLIDER====== */

.sliderr {
    width: 60%;
    max-width: 100vw;
    height: 500px;
    margin: auto;
    position: relative;
    overflow: hidden;
    margin-top: var(--mb-2);
    margin-bottom: var(--mb-2);
}

.sliderr .list {
    position: absolute;
    width: max-content;
    height: 100%;
    left: 0;
    top: 0;
    display: flex;
    transition: 1s;
}

.sliderr .list .item {
    flex: none; 
}

.sliderr .list img {
    width: 1300px;
    max-width: 100vw;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.sliderr .buttons {
    position: absolute;
    top: 45%;
    left: 5%;
    width: 90%;
    display: flex;
    justify-content: space-between;
}

.sliderr .buttons button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--first-color-second);
    color: var(--first-color);
    border: none;
    font-family: monospace;
    font-weight: bold;
}

.sliderr .dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    color: #212D45;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.sliderr .dots li {
    list-style: none;
    width: 10px;
    height: 10px;
    background-color: #212D45;
    margin: 10px;
    border-radius: 20px;
    transition: 0.5s;
}

.sliderr .dots li.active {
    width: 30px;
}

@media screen and (max-width: 768px) {
    .sliderr {
        height: 400px;
    }

    .sliderr .list img {
        height: 400px;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10rem;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.modal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

#modalPrev, #modalNext {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #212D45;
    color: var(--first-color);
    font-size: var(--h2-font-size);
    border: none;
    cursor: pointer;
    padding: 10px;
    margin: 10px;
    border-radius: 50%;
}

#modalPrev {
    left: 10px;
}

#modalNext {
    right: 10px;
}


.title::before{
    content: '';
    border-bottom: 2px solid var(--first-color);
    position: absolute;
    bottom: 0;
    width: 40%;
    left: 0;
}

/* ======SLIDER END====== */

/* =====SCROLL ANIMATION====== */

.hidden{
    opacity: 0;
    transition: all 1.5s ease;
}

.show{
    opacity: 1;
}

/* =====SCROLL ANIMATION END====== */

/* =====PROJECT====== */

.project{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    margin-top: var(--mb-2);
    margin-bottom: var(--mb-2);
}    

.project__container{
    text-align: center;
    width: 250px;
    height: 350px;
    position: relative;
}

.project__img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.project__text{
    background-color:  rgba(32, 42, 66, 0.5);
    color: var(--container-color);
    font-size: var(--h1-font-size);
    font-family: 'MiFuenteSecond', sans-serif;

    display: grid;
    place-items: center;

    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    transition: left .4s ease;
}

.project__container:hover .project__text{
    left: 100%;
    overflow: hidden;
}

/* =====PROJECT END====== */

/* ====== PAGES ====== */

.container__page{
    margin: auto;
    width: 60%;
}

.container__page .container__page__img{
    width: 100%;
    height: 75vh;
}

.container__page .container__page__title{
    color: #212D45;
    text-align: start;
    font-size: var(--big-font-size);
    margin-top: var(--mb-3);
    margin-bottom: var(--mb-1);
    position: relative;
}

.container__page .container__page__title::before{
    content: '';
    border-bottom: 2px solid var(--first-color);
    position: absolute;
    bottom: 0px;
    width: 15%;
    left: 0;
}

.container__page .container__page__subtitle{
    color: #212D45;
    font-size: var(--h2-font-size);
    margin-top: var(--mb-2);
    margin-bottom: var(--mb-1);
    position: relative;
}

.container__page .container__page__subtitle::before{
    content: '';
    border-bottom: 2px solid var(--first-color);
    position: absolute;
    bottom: 0px;
    width: 7%;
    left: 0;
}

.container__page .container__page__text{
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-1);
}

.gallery{
    width: 100%;
    text-align: center;
    margin-bottom: var(--mb-3);
}

.gallery__img {
    width: 16rem;
    height: 13rem;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    max-height: 80%;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover, .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    transition: 0.3s;
    user-select: none;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* ====== PAGES END ====== */

/* ======MEDIA QUERIES====== */

/* ======HEADER====== */
@media (max-width: 1450px){
    .container__about__text{
        flex-direction: column-reverse;
    }

}

@media (max-width: 1200px) {
    .header{
        padding: var(--mb-0-5); 
    }

    .nav__link{
        padding-right: var(--mb-1-5);
        padding-left: var(--mb-1-5);
    }

    .contador h2{
        font-size: var(--normal-font-size);
        text-align: center;
    }

    .container__about__text{
        flex-direction: column-reverse;
    }

    .row{
        display: flex;
        flex-direction: column;
    }

    .home__title{
        font-size: var(--h1-font-size);
    }
}

@media (max-width: 991px){

    .logo{
        padding-left: 0;
        width: 20rem;
    }

    .icons{
        display: inline-block;
    }

    #menu__btn{
        display: inline-block;
    }

    .navbar{
        position: absolute;
        top: 99%;
        right: 0;
        left: 0;
        background: var(--container-color);
        border-bottom: var(--border);
        border-top: var(--border);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: all .3s ease;

        &.active{
            clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        }

        .nav__btn.active img {
            content: url('img/logo_athan/logo_menu_close_blanco.png');
        }
    }

    .nav__link{
        display: block;
        margin: var(--mb-2);
        color: var(--text-color);

    }


    /* ======FOOTER====== */

    .footer__container{
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    /* ======FOOTER END====== */

    /* ======CONTACT====== */

    .contact__section{
        margin-top: var(--mb-0-5);
    }

    .contact__form{
        margin: auto;
    }

    .contact__info{
        display: flex;
        align-items: start;
        justify-content: center;
        width: 40%;
    }

    .contact__info__img{
        width: var(--mb-3);
    }

    .contact__info__list{
        justify-content: start;
        width: auto;
    }

    .contact__info__title{
        font-size: var(--h3-font-size);
        width: auto;
        display: flex;
        align-items: start;
        text-align: start;
    }

    .contact__info__link{
        font-size: var(--normal-font-size);
        width: auto;
    }

    .contact__info__title::before{
        content: '';
        border-bottom: 2px solid #212D45;
        position: absolute;
        bottom: 30px;
        width: 30%;
        left: 0;
    }

    /* ======CONTACT END====== */

    /* ======ABOUT====== */

    .contadores_principal{
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: var(--mb-1-5);
    }

    .contador img{
        margin-top: var(--mb-0-5);
        width: var(--mb-3);
        text-align: center;
    }

    .contador h2{
        font-size: var(--normal-font-size);
    }

    .container__about__text{
        flex-direction: column-reverse;
        padding: var(--mb-0-5);
    }
    .container__text{
        padding: var(--mb-0-5);
    }

    .aboutus__container{
        flex-direction: column;
        align-items: center;
    }

    .aboutus{
        padding: var(--mb-0-75);
        margin: var(--mb-0-75);
        width: 80%;
    }

    .aboutus__title::before{
        content: '';
        border-bottom: 2px solid #212D45;
        position: absolute;
        bottom: 18px;
        width: 20%;
        left: 0;
    }

    .container__aboutus__text{
        min-width: 90%;
    }

    .home__title{
        padding: var(--mb-0-75);
        font-size: var(--h1-font-size);
    }

    .home__subtitle{
        font-size: var(--h3-font-size);
    }

    .row{
        justify-content: center;
        grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    }

    .slider__title{
        font-size: var(--h1-font-size);
        margin: auto;
        width: 14rem;
    }

    .slider__title::before{
        content: '';
        border-bottom: 2px solid var(--first-color);
        position: absolute;
        bottom: 30PX;
        width: 40%;
        left: 0;
    }

    .service__col__img{
        min-width: 100%;
    }

    .service__preview .preview{
        width: 20rem;
        max-height: 90vh;
        margin: .5rem;
    }

    .service__preview .preview .service__col__img__open{
        width: 12rem;
        margin-top: var(--mb-2);
        margin-right: 0%;
    }

    .service__preview .preview .service__close{
        display: block;
        position: absolute;
        top: var(--mb-0-25);
        right: var(--mb-1-5);
        cursor: pointer;
        width: 3rem;
        transition: all .4s ease;
        border-radius: 50%;
    }

    .preview{
        font-size: var(--small-font-size);
        overflow-y: auto;
    }

    .service__list{
        font-size: var(--normal-font-size);
        width: 12rem;
        margin: auto;
    }

    .service__col__title{
        font-size: var(--normal-font-size);
    }

    .service__col__title__open{
        font-size: var(--h3-font-size);
        margin-top: var(--mb-0-5);
    }

    .title__img{
        flex-direction: column;
        align-items: center;
    }

    .home{
        text-align: center;
    }

    .title{
        font-size: var(--h1-font-size);
    }

    .sliderr{
        width: 75%;
    }

    .sliderr .buttons button{
        width: 40px;
        height: 40px;
    }

    .logo__footer{
        width: 5rem;
        text-align: center;
    }

    .container__page .container__page__title{
        font-size: var(--h1-font-size);
    }

    .container__page .container__page__subtitle{
        font-size: var(--h2-font-size);
    }

    .container__page .container__page__text{
        font-size: var(--normal-font-size);
    }

    .container__page .container__page__img{
        width: 100%;
        height: auto;
    }

    .home__text{
        font-size: var(--h3-font-size);
    }

    .form__title{
        font-size: .85rem;
    }
}

@media screen and (min-width: 800px ){
    .contact__section{
        max-width: 68.75rem;
    }

    .container__form{
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 400px){
    .service__preview{
        width: 15rem;
    }
}

/* Estilos por defecto: muestra la versión de escritorio, oculta la versión móvil */
.footer__contact.mobile {
    display: none;
}

.footer__contact.desktop {
    display: block;
}

/* Media query para dispositivos móviles */
@media only screen and (max-width: 1200px) {
    .footer__contact.desktop {
        display: none; /* Oculta la versión de escritorio en móviles */
    }

    .footer__contact.mobile {
        display: flex; /* Muestra la versión móvil en dispositivos móviles */
        flex-direction: row;
    }

    .footer__contact__link{
        background-color: rgb(79, 79, 82);
        margin: var(--mb-0-75);
        border-radius: var(--mb-0-5);
    }
}