:root{
    --sm: 16px;
    --md: 22px;
    --lg: 28px;
    --main: #023864;
    --terno: #1D1C21;
    --shirt: #CFDEEB;
    --black: #000000;
    --blackMD: #343434;
    --blackSM: #0000001b;
    --font-title: 40px;
    --font-subtitle: 20px;
    --font-content: 16px;
}

html{
    scroll-behavior: smooth;
}

*{
    margin: 0;
    padding: 0;
}

body{
    font-family: 'Quicksand', sans-serif;
    margin: 0;
    h1{
        font-size: var(--font-title);
        font-weight: 501;
    }
    h2{
        font-size: var(--font-subtitle);
    }
    h3{
        font-size: var(--font-content);
    }
}

.inactive{
    display: none;
}

nav{
    display: flex;
    justify-content: space-between;
    height: 64px;
    align-items: center;
    position: fixed;
    background: white;
    width: 100%;
    top: 0;
    z-index: 10;
    img{
        height: 40px;
        padding-left: 32px;
        display: block;
    }
    .web{
        list-style: none;
        display: flex;
        column-gap: 16px;
        padding-right: 32px;
        a{
            text-decoration: none;
            color: var(--blackMD);
            font-weight: 300;
        }
    }
    button{
        display: none;
        background: none;
        border: none;
        cursor: pointer;
        .menu{
            width: 40px;
            height: 40px;
        }

    }
}
.mobile{
    position: fixed;
    text-align: center;
    top: 64px;
    padding: 16px 0;
    z-index: 99;
    background: white;
    width: 100%;
    li{
        padding: 4px 0;
        a{
            color: var(--main);
            text-decoration: none;
        }
    }
}
.wsp-info{
    height: 64px;
    z-index: 99;
    position: fixed;
    right: 16px;
    bottom: 16px;
    .wsp{
        height: 64px;
    }
}
main{
    position: relative;
    #Inicio{
        height: 600px;
        align-items: center;
        display: flex;
        background-image: url("Assets/condominio.jpg");
        background-size: cover;
        .title{
            display: flex;
            flex-direction: column;
            width: 50%;
            padding-left: 64px;
            row-gap: 16px;
            h2{
                color: var(--blackMD);
                font-weight: 400;
                padding-top: 16px;
                font-size: var(--blackSM);
            }
            a{
                text-decoration: none;
                padding: 8px 0;
                width: 150px;
                border-radius: 8px;
                text-align: center;
                color: white;
                background: var(--main);
                font-weight: 300;
            }
        }
        img{
            height: 300px;
        }
    }
    #Inicio.on{
        .title{
            animation: title 0.6s linear both;
        }
    }
   
    #Servicios{
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--black);
        flex-direction: column;
        row-gap: 64px;
        padding: 32px;
        h2{
            font-size: 24px;
            font-weight: 400;
        }
        .servicios{
            display: flex;
            gap: 32px 16px;
            flex-wrap: wrap;
            justify-content: center;
            .card-padre{
                height: 520px;
                width: 300px;
                box-shadow: 4px 4px 16px var(--blackSM);
                border-radius: 8px;
                border: 1px var(--blackSM) solid;
                .service{
                    height: 200px;
                    img{
                        height: 100%;
                        width: 100%;
                        border-radius: 8px 8px 0 0;
                    }
                }
                .content{
                    height: 312px;
                    display: flex;
                    flex-direction: column;
                    row-gap: 16px;
                    align-items: center;
                    h3{
                        padding: 16px 16px 0 16px;
                        color: var(--main);
                        font-weight: 500;
                    }
                    p{
                        padding: 0 32px;
                        color: var(--blackMD);
                        height: 210px;
                    }
                    a{
                        padding: 0 16px;
                        color: var(--main);
                    }
                }
                .line{
                    height: 8px;
                    background-color: var(--main);
                    border-radius: 0 0 8px 8px;
                }
            }
            img{
                height: 32px;
            }
        }
    }
    #Especialista{
        height: 600px;
        display: flex;
        justify-content: center;
        align-items: center;
        .content{
            display: flex;
            align-items: center;
            box-shadow: 4px 4px 16px var(--blackSM);
            width: 80%;
            height: 80%;
            column-gap: 32px;
            border-radius: 8px;
            .perfil{
                height: 100%;
                background-color: var(--blackSM);
                border-radius: 8px 0 0 8px;
            }
            .textContent{
                row-gap: 16px;
                display: flex;
                flex-direction: column;
                height: 80%;
                justify-content: center;
                h3{
                    font-weight: 300;
                }
                h2{
                    font-size: 32px;
                }
                p{
                    font-weight: 300;
                }
            }
            .line{
                width: 100px;
                background-color: var(--main);
                border-radius: 0 8px 8px 0;
                height: 100%;
            }
        }
    }
    #Contacto{
        height: 160px;
        background: var(--blackSM);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-evenly;
        color: var(--blackMD);
        padding: 0 32px;
        .imgs{
            .contact{
                display: flex;
                flex-direction: column;
                align-items: center;
                row-gap: 8px;
                text-align: center;
            }
            .icon-contact{
                display: flex;
                gap: 8px;
                flex-wrap: wrap;
                justify-content: center;
                .icons{
                    width: 20px;
                    cursor: pointer;
                }
                .new-icon{
                    display: flex;
                }
            }
        }
        .logo-contact{
            height: 40px;
            margin-bottom: 16px;
        }
        .rs-row{
            .rs{
                height: 32px;
                padding: 0 8px;
            }
            .rs:hover{
                transform: scale(1.2);
            }
        }
        
    }
}
footer{
    height: 64px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 4px;
    background: var(--blackSM);
    color: var(--blackMD);
    a{
        text-decoration: none;
        color: var(--main);
    }
}

@keyframes title {
    100%{
        transform: translateY(0);
    }
    0%{
        transform: translateY(100px);
    }
}

@keyframes info-service {
    100%{
        transform: translateY(0);        
    }
    0%{
        transform: translateY(100px);
    }
}

@media (min-width:600px) and (max-width:766px) {
    nav{
        img {
            padding-left: 16px;
          }
        .web{
            padding-right: 16px;
            column-gap: 8px;
        }
    }
    main{
        #Inicio{
            .title{
                padding-right: 16px;
                width: 70%;
            }
        }
        #Especialidades{
            padding: 0 16px;
        }
        #Servicios{
            height: 100%;
            padding: 32px 0;
            .servicios{
                grid-template-columns: repeat(2,1fr);
                row-gap: 32px;
                padding: 0 16px;
            }
        }
        #Especialista {
            column-gap: 16px;
            .content {
              max-height: 100%;
              width: 90%;
            }
          }
    }
}

@media (max-width:600px) {
    nav{
        img {
            padding-left: 16px;
          }
        .web{
            display: none;
        }
        button{
            display: block;
            padding-right: 16px;
        }
    }
    main{
        top: 64px;
        #Inicio{
            justify-content: center;
            .title{
                width: 90%;
                padding: 0;
                text-align: center;
                align-items: center;
                a{
                    margin: 32px 0 0 0;
                    width: 50%;
                }
            }
        }
        #Especialidades {
            row-gap: 8px;
            padding: 0 16px;
            .especialidades {
                grid-template-columns: repeat(2,1fr);
                grid-gap: 16px;
            }
          }
        #Servicios{
            h2{
                text-align: center;
            }
            .servicios{
                grid-template-columns: repeat(1,1fr);
                row-gap: 32px;
                .card-padre:hover{
                    transform: none;
                }
            }
        }
        #Especialista {
            height: 100%;
            padding-top: 32px;
            .content {
                flex-direction: column;
                row-gap: 16px;
                padding: 16px 0;
                box-shadow: none;
                .perfil-mobile{
                    display: block;
                }
            }
        }
        #Contacto {
            height: 180px;
            .logo-contact{
                padding-bottom: 8px;
            }
        }
    }
    footer{
        top: 64px;
        display: block;
        padding: 16px 0;
        text-align: center;
    }
}