body {
    font-size: 12px;
}

@font-face {
    font-family: gidolinya;
    src: url(../fonts/gidolinya.regular.ttf);
}

/* header section  and carousel banner*/

.whats-app {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 3px 4px 3px #999;
    right: 40px;
    z-index: 100;
}

.my-float {
    margin-top: 10px;
}

.whats-app:before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    -webkit-animation: pulse-border 1500ms ease-out infinite;
    animation: pulse-border 1500ms ease-out infinite;
}

@keyframes pulse-border {

    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 0;
    }

}
.first-section {
    width: 100%;
    height: 100vh;
    background: url(../resources/graficos/banner-fondo.png);
    background-repeat: no-repeat;
    background-size: cover;
}

header {
    position: fixed;
    width: 100%;
    z-index: 10;
}

#header {
    transition: background 0.1s linear, top 0.3s linear;
}

nav li a:hover {
    border: 1px solid white;
    border-radius: 31.25rem;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
}

.nav-desktop{
    width: 50rem;
    margin-left: 5rem;
}

nav ul {
    display: flex;
    justify-content: space-between;
}

nav ul li {
    margin: 0.5rem;
}

nav a {
    font-family: gidolinya;
    color: white;
    font-size: 1.2rem;
    border-radius: 31.25rem;
    padding: 0.5rem 2rem;
}

.nav-mobile a {
    color: black;
}

nav a.active {
    background-color: white;
    color: #006bb1;
}

#facebook {
    margin-right: 0.5rem;
}

.nav-mobile {
    display: none;
}

#banner {
    display: flex;
    color: white;
    font-family: 'inter-tight-variable';
    margin: 0 auto;
    height: 38rem;    
    align-items: center;
    justify-content: center;
}

#main-container {
    margin-top: 15rem;
}

.item-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 36rem;
}

.item-container .container {
    height: 32rem;
    width: 50%;
}

.item-container .container.text {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

#electrocardiogram .container.image {
    width: 60%;
}

#electrocardiogram .container.text {
    width: 40%;
}

#banner h2 {
    font-size: 2.8rem;
    color: white;
    padding: 0;
    letter-spacing: 2.5px;
}

#banner p {
    font-size: 1.8rem;
    line-height: normal;
    margin-top: 1rem;
    letter-spacing: 2.2px;
    height: 5rem;
    width: 30rem;
}

.icons {
    height: 12rem;
    display: flex;
    justify-content: start;
    align-items: center;
    margin-top: 1.5rem;
}

.icons .icon-container:nth-of-type(2), .icon-container:nth-of-type(3){
    margin-left: 3rem;
}

#banner-image, #banner-image-2{
    width: 100%;
    height: 30rem;
    border-radius: 2rem;
    border: 2px solid white;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
} 


@media only screen and (max-width: 1399px){
    header .container {
        max-width: 100%;
    }

    .item-container .container {
        height: 35rem;
    }

    .item-container .container.image{
        display: flex;
        align-items: center;

    }

    .item-container .container.text {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #banner h2 {
        font-size: 3rem;
    }

    #banner p {
        font-size: 2rem;
    }

    #electrocardiogram p {
        font-size: 1.7rem;
    }
}

@media only screen and (max-width: 1320px){
    #electrocardiogram .container.image {
        width: 50%;
    }
    
    #electrocardiogram .container.text {
        width: 50%;
    }
}

@media only screen and (max-width: 1199px){
    header .container {
        max-width: 100%;
    }

    #main-container {
        max-width: 100%;
    }

    nav ul li {
        margin: 0.2rem;
    }

    .nav-desktop {
        width: 40rem;
        margin-left: 0;
    }
}

@media only screen and (max-width: 1130px){
    #banner h2 {
        font-size: 2.4rem;
    }

    #banner p {
        font-size: 1.4rem;
    }
}

@media only screen and (max-width: 1000px){
    #banner h2 {
        font-size: 2.8rem;
    }

    #banner p {
        font-size: 1.6rem;
    }
}

@media only screen and (max-width: 970px){
    #banner-image, #banner-image-2{
        height: 25rem;
    }

    .item-container .container.text, #electrocardiogram .container.text {
        width: 60%;
    }
}

@media only screen and (max-width: 960px){
    header .container {
        justify-content: space-between;
    }

    .nav-desktop {
        display: none;
    }

    .nav-mobile {
        display: inline;
        color: white;
    }

    .social-media {
        display: flex;
        align-items: center;
        justify-content: end;
        width: 20rem;
    }

    .social-media a {
        margin: 0 0.3rem;
    }
}

@media only screen and (max-width: 890px){
    .item-container .container.text {
        align-items: center;
        width: 100%;
        text-align: center;
    }

    .item-container .container.image {
        display: none;
    }
}

@media only screen and (max-width: 500px){
    .icons .icon-container:nth-of-type(2), .icon-container:nth-of-type(3){
        margin-left: 0;
    }

    #banner p {
        width: 22rem;
    }

    #electrocardiogram p{
        font-size: 1.3rem;
    }
}

@media only screen and (max-width: 440px){
    #banner h2 {
        font-size: 2rem;
    }

    #banner p {
        width: 20rem;
        font-size: 1.4rem;
    }

    #electrocardiogram p {
        font-size: 1.2rem;
    }
}


/* estudios section */

.second-section {
    width: 100%;
    background-color: white;
    text-align: center;
    margin-top: 5rem;
    color: #302051;
}

#estudios {
    font-family: 'inter-tight-variable';
}

#estudios h2 {
    font-size: 4rem;
    color: #302051;
    font-weight: 900;
}

#estudios p {
    font-size: 1.5rem;
    text-align: center;
    font-weight: 100;
}

#estudios-carousel-background {
    margin-top: 2rem;
    background-image: url('../resources/graficos/estudios-background.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: middle;
}

#estudios .container-fluid {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-wrap: wrap;
}

#estudios .container-fluid.mobile {
    display: none;
}

.title-container h4 {
    margin-top: 1rem;
    font-size: 1rem;
}

#estudios .image-container {
    overflow: hidden;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    width: 6.8rem;
    height: 6.8rem;
    transition: border 0.1s ease-out;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.image-estudios {
    width: 100%;
    height: auto;
}

.estudio-item {
    height: 12rem;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    transition: border 0.5s linear;
    margin: 0.4rem 0.4rem 0rem 0.4rem;
}

#estudios .image-container:hover {
    border: 4px solid lightblue;
    cursor: pointer;
}

.todos-estudios {
    display: none;
}

.todos-estudios .estudio-section-image {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.estudio-section-image img{
    height: 90%;
    width: 80%;
    border-radius: 2rem;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
}

#estudios .title-container {
    display: flex;
    flex-direction: column;
}

.todos-estudios .estudio-info {
    width: 50%;
    height: 28rem;
    padding-left: 2rem;
    padding-top: 2rem;
}

.todos-estudios .estudio-info h3 {
    font-size: 2rem;
    font-weight: 900;
    text-align: left;
}

.todos-estudios .estudio-info ul {
    margin-top: 1.5rem;
    text-align: left;
    font-size: 1rem;
}

.study-list {
    display: flex;
}

.study-list ul:nth-child(2) {
    margin-left: 3rem;
}

.todos-estudios .estudio-info ul li::before {
    content: "•"; 
    color: black;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
}

.return-button {
    display: none;
}

#estudios i {
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

#estudios a i {
    color: #302051;
}

#estudios i:hover {
    color: white;
}

#search {
    margin-top: 8rem;
    height: 16rem;
    background-color: #e4effa;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#search h3 {
    font-size: 2rem;
    color: #302051;
    font-weight: 900;
}

#search input {
    width: 46rem;
    height: 3rem;
    font-size: 1rem;
    padding: 1rem;
    border: 1px solid transparent;
    border: 0;
    outline: 0;
    background-color: white;
}

#search i:hover {
    color: #302051;
    cursor: pointer;
}

.autocomplete {
    margin-top: 1rem;
    border-radius: 1rem;
    padding: 0 1rem;
    background-color: white;
    width: 50rem;
}

@media only screen and (max-width: 991px){
    #estudios .container {
        max-width: 100%;
    }

    #search input {
        width: 30rem;
    }

    #search .autocomplete {
        width: 34rem;
    }
}

@media only screen and (max-width: 840px){
    .todos-estudios .estudio-section-image {
        display: none;
    }

    .todos-estudios .estudio-info {
        display: flex;
        align-items: start;
        flex-direction: column;
        width: 100%;
    }

    .return-button {
        display: block;
    }

    #estudios .container-fluid.desktop {
        display: none;
    }

    #estudios .container-fluid.mobile {
        display: flex;
    }
}

@media only screen and (max-width: 579px){
    #search input {
        width: 20rem;
    }

    #search .autocomplete {
        width: 24rem;
    }
}

@media only screen and (max-width: 470px){
    #estudios h4 {
        font-size: 0.8rem;
    }
}


@media only screen and (max-width: 430px){
    #search input {
        width: 17rem;
    }

    #search .autocomplete {
        width: 21rem;
    }
}



/* nosotros section */

.third-section {
    width: 100%;
    background-color: white;
    text-align: center;
    margin-top: 10rem;
    font-family: 'inter-tight-variable';
}

#video {
    overflow: hidden;
    width: 100%;
}

#video img {
    width: 100%;
    height: auto;
}

#nosotros-texto {
    background-color: #e4effa;
    display: flex;
    justify-content: space-between;
    border-radius: 1rem;
    margin-top: 7rem;
}

#valor {
    width: 66%;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    font-family: gidolinya;
    padding-left: 1rem;
}

#nosotros-header {
    display: flex;
    align-items: center;
}

#valor h3 {
    font-size: 4.4rem;
    color: #302051;
    padding-left: 1rem;
}


#valor p {
    font-size: 1.5rem;
    color: #302051;
    font-weight: 100;
    text-align: left;
    line-height: 2rem;
}

#valor p:nth-of-type(1) {
    margin-top: 1rem;
}

#nosotros-image {
    width: 33%;
    height: 30rem;
}

.nosotros-image-container img{
    height: 30rem;
}

@media only screen and (max-width: 1200px){
    #valor h3 {
        font-size: 4rem;
    }

    #valor p {
        font-size: 1.2rem;
    }
}

@media only screen and (max-width: 970px){
    #valor h3 {
        font-size: 4rem;
    }

    #valor p {
        font-size: 1.2rem;
    }

    .nosotros-image-container img{
        width: 20rem;
    }
}

@media only screen and (max-width: 950px){
    #nosotros-image {
        display: none;
    }

    #valor {
        width: 100%;
    }
}

@media only screen and (max-width: 560px){
    .valor {
        width: 100%;
    }
}


/* perfiles section */

.fourth-section {
    width: 100%;
    background-color: white;
    font-family: 'inter-tight-variable';
    text-align: center;
    margin-top: 10rem;
}

.perfiles-background{
    background-color: #302051;
}

#perfil-title {
    font-size: 3.8rem;
    font-weight: 900;
}

#sucursal {
    font-size: 3.8rem;
    font-weight: 900;
}

.perfiles-background h2 {
    margin-top: 3rem;
    color: white;
    font-weight: 900;
}

.perfil-item-page{
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.perfil-item {
    height: 32rem;
    display: flex;
    width: 30rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #302051;
    font-size: 3rem;
    margin-top: 4.5rem;
}

.perfil-item h4 {
    width: 100%;
    border-radius: 31.25rem;
    background-color: #e4effa;
    font-size: 2.5rem;
    padding: 0.5rem 4rem;
    font-family: gidolinya;
}

.perfil-item-page .image-container{
    height: 25rem;
    position: relative;
    width: 22rem;
}

.perfil-item-page .image-container img{
    height: 24rem;
    width: 100%;
    border-radius: 3rem;
}

.img__description ul li::before {
    content: "•"; 
    color: white;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
}

.img__description ul:nth-child(2) {
    margin-left: 3rem;
}

.img__description ul:nth-child(1) {
    margin-left: 3rem;
}

.img__description {
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: start;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    visibility: hidden;
    opacity: 0;
    border-radius: 3rem;
    height: 24rem;
    text-align: left;
  
    /* transition effect. not necessary */
    transition: opacity .2s, visibility .2s;
}

.image-container:hover .img__description {
    visibility: visible;
    opacity: 1;
}



.google-map {
    margin-bottom: 1rem;
}

.google-map iframe {
    height: 20rem;
    width: 100%;
    left: 0;
    top: 0;
    background-color: #302051;
    border: 10px solid black;
}

#mecanicos-sur {
    display: none;
}

.location-buttons {
    display: flex;
    justify-content: space-evenly;
    padding-bottom: 2rem;
}

.location-buttons button {
    background-color: #302051;
    color: #e4effa;
    font-size: 1.5rem;
    border-radius: 31.25rem;
    padding: 0.5rem 2rem;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    width: 20rem;
    font-family: gidolinya;
}

.location-buttons button.active {
    background-color: white;
    border-color: #302051;
    color: black;
}

@media only screen and (max-width: 890px){
    #sucursal {
        font-size: 3rem;
    }

    .img__description {
        visibility: visible;
        opacity: 1;
    }

    #perfiles h4 {
        font-size: 1.9rem;
    }
}

/* footer section */

.fifth-section {
    padding: 3rem 0 1rem;
    font-family: 'inter-tight-variable';
    color: #302051;
}

footer {
    background-color: #e4effa;
}

.fifth-section .container.upper{
    height: 80%;
    display: flex;
}

.fifth-section .container.lower {
    margin-top: 3rem;
    text-align: center;
}

#contact {
    padding-left: 4rem;
    width: 50%;
}

#footer-logo {
    display: flex;
    width: 50%;
    justify-content: center;
    overflow: hidden;
}

#footer-logo img {
    width: 100%;
    height: auto;
}

footer .lower h2 {
    font-size: 2rem;
    font-weight: 100;
}

footer strong {
    font-weight: 900;
}

#horario {
    display: flex;
    width: 100%;
    align-items: center;
}

#horario .image-container {
    margin-right: 0.5rem;
}

#horario-domingo {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    width: 100%;    
}

#horario-domingo .image-container {
    margin-right: 0.5rem;
}

#horario p:nth-of-type(2) {
    padding-left: 1.5rem;
}

#contact p {
    font-size: 1rem;
    padding-right: 1rem;
}

#cel {
    display: flex;
    margin-top: 1rem;
    width: 100%;
}

#cel a {
    font-size: 1rem;
    margin: 0;
    padding: 0;
}

#cel p {
    font-size: 1rem;
    margin: 0;
    padding: 0;
}

#whatsapp {
    margin-left: 3rem;
    display: flex;
    align-items: center;
}

#oficina {
    display: flex;
    align-items: center;
}

.info {
    margin-left: 0.5rem;
}

#email {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    font-size: 1rem;
    width: 100%;
}

#email a{
    margin-left: 0.5rem;
}

#copyr {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    margin-top: 4rem;
}

#copyr p {
    margin-left: 0.5rem;
}

#copyr img {
    height: 1rem;
    width: 1rem;
}

@media only screen and (max-width: 1400px){
    .container {
        max-width: 100%;
    }
}

@media only screen and (max-width: 960px){
    #contact {
        padding-left: 0;
        padding-right: 0;
    }
}

@media only screen and (max-width: 960px){
    #saturday-p {
        margin-left: 0rem;
    }

    .container.upper {
        flex-direction: column-reverse;

    }

    #contact{
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #footer-logo{
        width: 100%;
    }

    #footer-logo img{
        width: 33rem;
    }

    #horario {
        justify-content: center;
    }

    #cel {
        justify-content: center;
    }

    #horario-domingo {
        justify-content: center;
    }

    #email {
        justify-content: center;
    }
}

@media only screen and (max-width: 490px){
    #contact {
        justify-content: start;
    }

    #horario {
        justify-content: start;
    }

    #cel {
        justify-content: start;
    }

    #horario-domingo {
        justify-content: start;
    }

    #email {
        justify-content: start;
    }

    #footer-logo {
        margin-top: 2.5rem;
    }
}

@media only screen and (max-width: 430px){
    #footer-logo img{
        width: 28rem;
    }

    #contact p {
        font-size: 0.9rem;
    }

}


/* animations and transitions */

.fade-in {
    opacity: 0;
    transform: translateY(20%);
    transition: all 0.5s ease-out;
}

.active {
    opacity: 1;
    transform: translateY(0);
}

