html{
    scroll-behavior: smooth;
}

body{
    padding: 0;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;    
    overflow-x: hidden;
    background: linear-gradient(rgb(57, 114, 179), black);
}

h1{
    font-size: 2em;
    background: linear-gradient(90deg, rgb(57, 114, 179), rgb(22, 45, 71));
    -webkit-background-clip: text;
    color: transparent;
}

h2{
    font-size: 2em;
    color: rgb(22, 45, 71);
    text-align: center;
    background-color: white;
    padding: 10px;
    max-width: 85%;
    border-radius: 25px;
}

h3{
    font-size: 2em;
    color: rgb(102, 169, 245);
    padding: 5px;
    margin: 0;
    text-align: center;
}

h4{font-size: 1.2em;}

ul{
    padding: 0;
}

li{
    border-top: 2px solid rgb(25, 120, 230);
    margin-bottom: 20px;
    font-size: 1.2em;
    list-style: none;
}
a{
    font-size: 1.1em;
    color: black;
    text-decoration: none;
}

header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: rgb(245, 245, 245);
    align-items: center;
    margin-bottom: 20px;
}

header .titulo{
    display: flex;
    align-items: center;
}

header .logo{
    width: 50px;
    height: 50px;
    margin: 10px;
    background-image: url('imagenes/imagenes-decoracion/logo-100x100.png');
    background-size: cover;
}

header nav{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
    height: 1vh;
    border-radius: 15px;
    margin: 10px 0;
}

header a::after{
    display: block;
    content: '';
    height: 0.5vh;
    width: 0;
    border-radius: 20px;
    background-color: rgb(57, 114, 179);
    transform: translateY(-50%);
    transition: width 0.2s ease;
}

header a:hover{
    color: rgb(57, 114, 179);
    font-weight: bold;
}

header a:hover::after{
    width: 100%;
}

/*SECTION CLIENTES*/

#section-clientes{
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#section-clientes h2{
    text-align: center;
    margin-bottom: 20px;
}

#section-clientes .container{
    display: flex;
    justify-content: space-around;
    overflow: hidden;
    align-items: flex-start;
}

.nube{
    position: absolute;
    width: 100%;
    height: 20vh;
    background: linear-gradient(rgb(57, 114, 179), transparent);
    z-index: 2;
}

#section-clientes .container .track{
    padding: 0;
}

#section-clientes .container .track{
    position: relative;
    display: flex;
    flex-direction: column;
    width: 80px;
    overflow: hidden;
    padding: 0;
    gap: 15px;
    margin-top: 15px;
}

#section-clientes .container .track:nth-of-type(2){
    animation: spin 24s linear infinite;
}

#section-clientes .container .track:nth-of-type(3){
    animation: spin 22s linear infinite;
}

#section-clientes .container .track:nth-of-type(4){
    animation: spin 26s linear infinite;
}

#section-clientes .container .track:nth-of-type(5){
    animation: spin 25s linear infinite;
}


@keyframes spin{
    from{ transform: translateY(0%);}
    to{transform: translateY(-50%);}
}

#section-clientes .container .track img{
    position: relative;
    width: 80px;
    height: 100px;
    object-fit: contain;
    background-color: white;
    border-radius: 20px;
}

/* SEPARADOR*/
.separador{
    position: relative;
    width: 100%;
    height: 10vh;
    background-color: rgb(14, 48, 86);
    margin: 20px 0; 
}

/* SECCION GESTION */

#servicio-gestion{
    display: flex;
    flex-direction: column;
    align-items: center;
}

#servicio-gestion h2{
    margin-bottom: 0;
}

.container{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.carta{
    padding: 30px 20px;
    margin: 40px;
    width: 250px;
    background-color: white;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.subservicios{
    position: relative;
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
    width: 200px;
    height: 170px;
    gap: 180px;
    padding: 0 calc(50% - 100px);
}

.subservicios ul{
    min-width: 200px;
    text-align: center;
    scroll-snap-align: center;
}

#servicio-gestion .container .carta ul{
    padding: 0;
    margin: 0;
}

/* SECCION JURIDICA*/

#servicio-juridico{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 50px 0;
}

#servicio-juridico .subservicios-juridico{
    position: relative;
    width: 300px;
    height: auto;
    overflow: hidden;
    background-color: white;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

#servicio-juridico .container{
    gap: 30px;
}

.img-titulo{
    position: relative;
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.img-titulo h3{
    position: absolute;
    bottom: 40%;
    background-color: rgb(22, 45, 71, 0.6);
    width: 100%;
    z-index: 3;
}

.img-titulo img{
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 20px 20px 0 0;
    object-fit: cover;
}

/* SECCION EMPRESARIAL*/

#servicio-empresarial{
    display: flex;
    flex-direction: column;
    align-items: center;
}

#servicio-empresarial h3{
    text-align: center;
}

#servicio-empresarial .carta{
    padding: 10px;
}

/*SEPARADOR NUMERO 4*/
.separador:nth-of-type(4){
    background-color: rgb(25, 76, 134);
}

/*SECCION FORMACION*/

#servicio-formacion{
    display: flex;
    flex-direction: column;
    align-items: center;
}

#servicio-formacion .container_subservicios{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 90%;
}

#servicio-formacion ul{
    display: grid;
    grid-template-rows: 1fr 1fr;
    background-color: white;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 20px;
    overflow: hidden;
    border: 3px solid rgb(25, 120, 230);
    cursor: pointer;
    text-align: justify;
    transition: width 0.3s ease, height 0.3s ease;
}

#servicio-formacion ul *{
    width: 100%
}

#servicio-formacion ul svg{
    height: 80px;
    padding: 10px;
}

#servicio-formacion .subservicio_seleccionado{
    width: 300px;
    height: 235px;
    border-radius: 20px;
    padding: 0 10px;
}

/*SECCION NOSOTROS*/

#section-nosotros{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    margin: 80px 0;
}

#section-nosotros section{
    padding: 40px 10px;
    border-radius: 15px;
    box-shadow: 2px 2px 20px rgb(107, 139, 176);
    width: 300px;
    height: 500px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#section-nosotros section li{
    text-align: center;
    border: 3px solid rgb(41, 82, 147);
    border-radius: 15px;
    font-size: 20px;
}

#section-valores{
    position: relative;
    background-image: linear-gradient(90deg, rgb(0,0,0,0.75)), url('imagenes/imagenes-decoracion/manos.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#section-empresa{
    background-image: linear-gradient(90deg, rgb(0,0,0,0.75)), url('imagenes/imagenes-decoracion/mundo.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#section-oferta{
    background-image: linear-gradient(90deg, rgb(0,0,0,0.75)), url('imagenes/imagenes-decoracion/preferir.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#section-nosotros section p{
    text-align: justify;
    padding: 10px;
}

#section-empresa h2, #section-oferta h2{
    font-size: 20px;
}

/* SECTION CONVENIOS*/

#section-convenios{
    display: flex;
    justify-content: center;
}

.convenios{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    background-color: rgb(107, 139, 176);
    padding: 50px 0px;
    color: white;
    border-radius: 15px;
    box-shadow: 2px 2px 20px rgb(107, 139, 176);
    margin: 150px 0;
}

#section-convenios p{
    text-align: center;
    width: 80%;
}

#section-convenios .imagenes{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 80%;
}

#section-convenios .imagenes img{
    object-fit: contain;
    object-position: center;
    background-color: white;
    width: 100px;
    height: 100px;
    border-radius: 20px;
}

/* FOOTER */

footer{
    background-color: rgba(128, 128, 128, 0.198);
    color: gray;
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer li{
    border: none;
}

@media (min-width: 600px){

    #section-clientes .container{
        width: 90%;
    }

    #section-clientes .container .track{
        width: auto;
    }

    #section-clientes .container .track img{
        width: 100px;
        height: 100px;
    }
}

@media (min-width: 700px){
    header nav{
        padding-right: 20px;
        justify-content: flex-end;
    }

    a{ font-size: 1.3em; }

    header{
        flex-direction: row;
    }

    #section-convenios p{
    font-size: 20px;
    }

    #section-convenios .imagenes img{
        width: 150px;
        height: 150px;
    }
}

@media (min-width: 900px){

    a{ font-size: 1.5em; }

    header{
        flex-direction: row;
        padding: 0 80px;
    }

    #section-clientes .container .track img{
        width: 130px;
        height: 130px;
    }
}