body {
    font-family: Alata, Arial, Helvetica, sans-serif !important;
}

html {
    overflow-x: hidden;
}

ul div a {
    text-decoration: none;
    color: black;
}

a {
    text-decoration: none !important;
    color: inherit !important;
}

/* navbar top */
nav div a {
    height: 100%;
}

.navbar-brand {
    height: 10vh;
}

.navbar__img {
    height: 90%;
    width: auto;
    margin-left: .5em;
    border-radius: 50%;
    border: 1px solid black;
    aspect-ratio: 1/1;
}

.collapse {
    height: 90%;
}

.responsive a {
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
    height: 9vh;
}



/* Botones de navbar */
.button__link {
    text-decoration: none;
    display: flex;
    cursor: pointer;
    width: 24vw;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-align: center !important;
    text-justify: center !important;
    position: relative;
    background: rgb(248, 249, 250);
    font-size: 1rem !important;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    transition: width 1s, height 1s, opacity 0.3s;
    margin: 0 1rem;

    &:after,
    &:before {
        content: "";
        width: 0px;
        height: 0px;
        position: absolute;
        border: 0px solid #fff;
        opacity: 0;
    }

    &:after {
        top: -1px;
        left: -1px;
        border-top: 2px solid black;
        border-left: 2px solid black;

    }

    &:before {
        bottom: -1px;
        right: -1px;
        border-bottom: 2px solid black;
        border-right: 2px solid black;
    }

    &:hover {
        border-top-right-radius: 0px;
        border-bottom-left-radius: 0px;

        &:before,
        &:after {
            width: 100%;
            height: 100%;
            transition: width 1s, height 1s;
            opacity: 1;
        }
    }

    &:not(:hover) {

        &:before,
        &:after {
            width: 0;
            height: 0;
            opacity: 0;
            transition: width 1s, height 1s, opacity 1s;
        }
    }
}

/* Body---------------------------------------------------------------- */
/* imagen principal */
.img__main {
    width: 100%;
    opacity: 0.5;
}

.img__container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.title__name {
    position: absolute;
    top: 0;
    color: black;
    font-size: 4rem;
    top: 40%
}

.card-img-bottom {
    max-height: 25vh;
    width: auto;
    object-fit: cover;
}

/* BIO */
.bio-img {
    margin-top: 3rem;
    border-radius: 50%;
    width: 20%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.bio {
    margin-top: 2rem;
    margin: 0 4rem;
    text-align: center;
}

.bio__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;

}

.titulo-prof {
    padding: 2rem 0;
}

#collapse-read {
    background-color: rgb(255, 240, 243);
    text-rendering: inherit;
    width: 130px;
    height: 35px;
    border: none;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 1rem;
}

.flip-horizontal-top {
    animation: flip-horizontal-top 0.4s cubic-bezier(0.455, 0.030, 0.515, 0.955) both;
}

.flip-horizontal-bottom {
    animation: flip-horizontal-bottom 0.4s cubic-bezier(0.455, 0.030, 0.515, 0.955) both;
}


@-webkit-keyframes flip-horizontal-bottom {
    0% {
        -webkit-transform: rotateX(0);
        transform: rotateX(0);
    }

    100% {
        -webkit-transform: rotateX(-180deg);
        transform: rotateX(-180deg);
    }
}

@keyframes flip-horizontal-bottom {
    0% {
        -webkit-transform: rotateX(0);
        transform: rotateX(0);
    }

    100% {
        -webkit-transform: rotateX(-180deg);
        transform: rotateX(-180deg);
    }
}

@-webkit-keyframes flip-horizontal-top {
    0% {
        -webkit-transform: rotateX(0);
        transform: rotateX(0);
    }

    100% {
        -webkit-transform: rotateX(180deg);
        transform: rotateX(180deg);
    }
}

@keyframes flip-horizontal-top {
    0% {
        -webkit-transform: rotateX(0);
        transform: rotateX(0);
    }

    100% {
        -webkit-transform: rotateX(180deg);
        transform: rotateX(180deg);
    }
}



/* flayer */

img {
    on: none;
  }

.title__service {
    text-transform: uppercase;
}

.flayer__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    grid-auto-rows: 20rem;
    grid-gap: 1rem;
    margin: 3rem 2rem;
    margin-bottom: 5rem;
    grid-row-start: span 2;
}

@media (max-width: 992px) {
    .flayer__container {
        grid-template-columns: repeat(2, 1fr);
        grid-row-start: span 2;
    }
}


.flayer__item {
    position: relative;
    display: flex;
    justify-content: center;

}

.flayer__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(0.8);
    filter: brightness(.8);
}

.flayer__img:hover {
    scale: 1.05;
    box-shadow: 0px 10px 20px rgba(222, 138, 255, 0.5);
    transition: scale .3s ease;

}

.flayer__img:hover~.button-whatsapp {
    scale: 1.1;
    transform: scale .3s ease;
    color: black
}

.button-whatsapp:hover {
    scale: 1.1;
    transform: scale .3s ease;
    color: black
}

.flayer__title {
    position: absolute;
    top: 0;
    color: white;
    padding-top: 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 1rem;
    text-transform: uppercase;
}

.button-whatsapp {
    position: absolute;
    color: gray;
    background-color: pink;
    align-self: bottom;
    border-radius: 40px;
    bottom: 20px;
    border: none;
    padding: 0 10px;
}


/* Galeria de imagenes */
.img__galery__effect {
    display: flex;
    width: 100%;
    height: 80%;
    position: absolute;
}

.img__galery__effect img {
    width: 0;
    flex-grow: 1;
    object-fit: cover;
    opacity: .8;
    transition: width .5s;
}

.img__galery__effect img:hover {
    cursor: crosshair;
    width: 300px;
    opacity: 1;
    filter: contrast(120%);
}


/* footer */
footer {
    background-color: rgb(240, 240, 240);
    width: 100vw;
    z-index: 3;
    justify-content: space-between;
    text-justify: center;
    align-items: center;
    position: fixed;
    bottom: 0;
}

.iconos {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 2rem;
}

.iconos a {
    color: black
}

@media (max-width: 992px) {
    .button__link {
        width: 80%;
        margin-bottom: .5rem;
        height: 2rem;
        padding: 1rem;
    }
}

@media (max-width:576px) {
    .title__name {
        font-size: 3rem;
    }
}