/*Configuración inicial*/

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

@font-face{
    font-family: "Sansation-bold";
    src: url(../../../tip/sansation_bold.ttf)
}

@font-face{
    font-family: "Sansation-regular";
    src: url(../../../tip/sansation_regular.ttf);
}

@font-face{
    font-family: "Sansation-light";
    src: url(../../../tip/sansation_light.ttf);
}

@font-face{
    font-family: "SourceSans3-regular";
    src: url(../../../tip/sourcesans3_regular.ttf);
}

@font-face{
    font-family: "SourceSans3-light";
    src: url(../../../tip/sourcesans3_light.ttf);
}

@font-face{
    font-family: "SourceSans3-extralight";
    src: url(../../../tip/sourcesans3_extralight.ttf);
}

:root{
    --primary-background-color: #FFD74D;
    --secondary-background-color: #FFFCF2;
    --card-color: #FFFEFA;
    --button-color: #FFC801;
    --font-color: #000000;
    --dark-secondary-background-color: #121212;
    --dark-card-color: #333333;
    --dark-font-color: #FFFCF2;
    --shadow: 2px 2px 4px rgb(0,0,0,0.5);
    --dark-shadow: 2px 2px 4px rgb(114,113,111,1);
}

h2{
    font-family: "Sansation-bold";
    font-size: 30px;
    letter-spacing: 0.1em;
    text-align: center;
    padding-bottom: 20px;
}

p{
    font-family: "SourceSans3-light";
    font-size: 15px;
    text-align: justify;
}

a{
    text-decoration: none;
    color: var(--font-color);
}

/*Sección Hero*/

.hero{
    background-color: var(--primary-background-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    text-align: center;
}

.hero img{
    margin: 20px;
    max-width: 60%;
    max-height: 60%;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.hero h1{
    font-family: "Sansation-bold";
    font-size: 32px;
    letter-spacing: 0.1em;
}

.hero h3{
    font-family: "Sansation-light";
    font-size: 24px;
}

.hero h4{
    font-family: "Sansation-light";
    font-size: 18px;
}

/*Barra de navegación*/

.barra-navegacion{
    height: 72px;
    background-color: var(--primary-background-color);
    display: grid;
    grid-template-columns: 110px 1fr 110px;
    z-index: 2;
}

.barra-navegacion.fixed {
    position: fixed;
    top: 0;
    width: 100%;
}

.barra-navegacion div{
    display: flex;
    align-items: center;
}

.barra-navegacion button{
    height: 40px;
    width: 40px;
    border-radius: 50%;
    text-align: center;
    transition: 0.5s;
    background-color: var(--primary-background-color);
    border: none;
}

.barra-navegacion button:hover{
    box-shadow: var(--shadow);
    cursor: pointer;
}

.barra-navegacion a{
    height: 40px;
    width: 40px;
    border-radius: 50%;
    text-align: center;
    transition: 0.5s;
    background-color: var(--primary-background-color);
}

.barra-navegacion a:hover{
    box-shadow: var(--shadow);
    cursor: pointer;
}

.barra-navegacion img{
    height: 24px;
    width: auto;
    margin: 8px;
}

.menu-hamburguesa{
    padding-left: 10px;
    position: relative;
}

.boton-inicio{
    justify-content: center;
    align-items: center;
}

.boton-inicio a:hover{
    box-shadow: none;
}

.menu-derecha{
    justify-content: right;
    align-items: center;
    padding-right: 10px;
    gap: 10px
}

.boton-toggle{
    transition: background-color 1s ease;
}

/*Menú hamburguesa*/
#noDesplegado{
    display: block;
}

#desplegado{
    background-color: var(--button-color);
    position: absolute;
    top: 16px;
    width: 210px;
    height:auto;
    border-radius: 20px;
    text-align: left;
    padding-bottom: 20px;
    box-shadow: var(--dark-shadow);
    display: none;
    z-index: 3;
}

#desplegado:hover{
    cursor: default;
}

#desplegado p{
    padding: 5px 10px;
    font-family: "Sansation-regular";
}

#desplegado li{
    padding: 0 20px;
    font-family: "Sansation-light";
    font-size: 15px;
}

#desplegado a{
    text-decoration: none;
    color: var(--font-color);
    background-color: var(--button-color);
}

#desplegado a:hover{
    cursor: pointer;
    box-shadow: none;
}

#cerrar:hover{
    cursor: pointer;
}

/*Zona principal*/

#zonaPrincipal{
    display: block;
    width: 100%;
    background-color: var(--secondary-background-color);
}

/*Menú aside*/

aside{
    width: 170px;
    height: 400px;
    text-align: right;
    flex-shrink: 0;
    display: none;
    z-index: 1;
    margin-right: 50px;
    position: sticky;
    top: 130px;
}

aside nav{
    margin-left: auto;
    width: max-content;
}

aside p{
    font-family: "Sansation-bold";
    font-size: 17px;
    padding: 10px 0;
    text-align: right;
    text-decoration: underline;
}

aside ul{
    list-style: none;
}

aside li{
    font-family: "Sansation-regular";
    font-size: 17px;
    padding: 3px 0;
}

/*Secciones*/

.seccion-principal{
    padding-bottom: 25px;
    background-color: var(--secondary-background-color);
}

.seccion{
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-margin-top: 60px;
}

.contenido{
    padding: 25px 20px;
    padding-bottom: 0;
    width: 100%;
    justify-items: center;
}

.contenido img{
    width: 100%;
    padding: 25px 0px;
}

.galgos{    
    filter: drop-shadow(var(--shadow));
}

/*Sección proyectos*/

.boton-proyectos{
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--button-color);
    height: 30px;
    width: 250px;
    border-radius: 5px;
    margin-top: 25px;
    box-shadow: var(--shadow);
}

.boton-proyectos h4{
    font-family: "Sansation-light";
    font-size: 20px;
}

/*Slider*/

.slider{
    padding: 0;
    width: 100%;
    display: block;
    position: relative;
}

.slider input{
    display: none;
}

.slide{
    display: block;
}

.tarjeta {
    background-color: var(--card-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: 100%;
    text-align: center;
    position: absolute;
    top: 0;
    opacity: 0;
    display: block;
    transform: scale(0);
    transition: all 0.5s ease-in-out;
}

.tarjeta img{
    padding: 10px;
    width: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    border-radius: 15px; /*Ponemos un border-radius de padding + 5 ya que estamos en border-box*/
}

.tarjeta h3{
    font-family: "Sansation-light";
    font-size: 24px;
    padding: 0;
}

.tarjeta p{
    font-family: "SourceSans3-light";
    font-size: 15px;
    padding: 10px;
    padding-top: 0px;
}

.botones-laterales label{
    width: 50px;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
}

input:checked + .slide .botones-laterales label{
    display: flex;
}

.botones-laterales .siguiente{
    right: 0;
}

.botones-laterales label span{
    position: absolute;
    top: 0;
    opacity: 0.1;
    cursor: pointer;
    transition: opacity 0.2s;
    color: var(--button-color);
    text-align: center;
    font-size: 50px;
    opacity: 1;
    text-shadow: var(--shadow);
}

input:checked + .slide .tarjeta{
    opacity: 1;
    transform: scale(1);
    transition: opacity 1s ease-in-out;
}

.botones-slider{
    width: 100%;
    bottom: 9px;
    height: 11px;
    display: none;
    position: absolute;
    text-align: center;
}

.botones-slider .boton-slider{
    top: -20px;
    width: 15px;
    height: 15px;
    margin: 0 6px;
    position: relative;
    border-radius: 100%;
    display: inline-block;
    background-color: var(--primary-background-color);
}

.botones-slider .boton-slider:hover{
    cursor: pointer;
    background-color: var(--button-color);
}

/*Tabla caja de herramientas*/

.herramientas{
    width: 100%;
    padding: 0;
    text-align: center;
    border-spacing: 25px 25px;;
}

.herramientas td{
    vertical-align: center;
}

.herramientas img{
    padding: 0;
    width: 40px;
    height: 40px;
    filter: drop-shadow(var(--dark-shadow));
}

.herramientas p{
    font-family: "Sansation-light";
    font-size: 15px;
}

/*Tabla formación*/

.curriculum{
    border-spacing: 10px;
}

.curriculum p{
    text-align: left;
}

.tiempo{
    vertical-align: top;
}

.tiempo p{
    font-family: "SourceSans3-regular";
    width: 120px;
    text-align: right;
}

.centro{
    font-family: "SourceSans3-extralight";
}

/*Sección Intereses*/

.intereses img{
    padding: 0;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/*Sección Contacta Conmigo*/

.contacto{
    background-color: var(--primary-background-color);
    padding: 25px 10px;
    padding-bottom: 0px;
    text-align: center;
    scroll-margin-top: 60px;
}

.contacto h2{
    padding-bottom: 10px;
}

.contacto h3{
    font-family: "Sansation-light";
    font-size: 24px;
    text-align: center;
}

input{
    font-family: "Sansation-light";
    font-size: 15px;
    padding: 10px;
}

textarea{
    font-family: "Sansation-light";    
    font-size: 15px;
    padding: 10px;
    text-align: justify;
    resize: none;
}

.input{
    background-color: var(--primary-background-color);
    padding: 25px 20px;
    text-align: left;
    vertical-align: top;
    resize: none;
}

.input label{
    font-family: "Sansation-light";
    font-size: 15px;
    display: block;
    margin: 3px 0;
}

.datos{
    width: 100%;
    height: 30px;
    border-radius: 5px;
    border: 0;
    box-shadow: var(--shadow);
    margin-bottom: 10px;
}

.mensaje{
    width: 100%;
    height: 180px;
    border-radius: 5px;
    border: 0;
    box-shadow: var(--shadow);
}

.enviar{
    justify-content: left;
    margin: 10px 0;
    height: 20px;
    width: 75px;
    border-radius: 5px;
    background-color: var(--button-color);
    border: 0;
    box-shadow: var(--shadow);
    font-family: "Sansation-regular";
    font-size: 15px;
}

.enviar:hover{
    cursor: pointer;
}

.informacion{    
    background-color: var(--primary-background-color);
    padding: 0 20px;
    text-align: left;
    padding-bottom: 25px;
}

.informacion img{
    height: 40px;
    width: auto;
    margin-right: 20px;
    margin-top: 20px;
    cursor: pointer;
}

.informacion section img{
    height: 40px;
    width: auto;
    margin: 20px 0;
    margin-right: 20px;
    cursor: default;
}

.informacion h3{
    font-family: "Sansation-regular";
    font-size: 24;

}

.informacion section{
    display: flex;
    flex-direction: row;
    align-items: center;
}

/*Footer*/

footer{
    background-color: var(--primary-background-color);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    height: 80px;
}

.footer-izquierda, .footer-derecha{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-izquierda a, .footer-derecha a{
    background-color: var(--primary-background-color);
    padding: 3px 10px;
    border-radius: 5px;
    transition: 1s;
}

.footer-izquierda a:hover{
    box-shadow: var(--shadow);
    cursor: pointer;
}

.footer-derecha a:hover{
    cursor: pointer;
}

.footer-izquierda a{
    font-family: "Sansation-light";
    font-size: 14px;
    text-align: left;
}

.footer-derecha a{
    font-family: "Sansation-light";
    font-size: 14px;
    text-align: right;
}

/*Botón de cookies*/

.cookies{
    width: 100%;
    justify-content: center;
    display: none;
    position: fixed;
    bottom: 20px;
}

.cookie-popup{
    margin: 0 10px;
    max-width: 1000px;
    background-color: var(--button-color);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 4;
}

.cookies.show{
    display: flex;
}

.cookie-popup button{
    background-color: var(--primary-background-color);
    padding: 3px 10px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-family: "Sansation-regular";
    font-size: 14px;
}

.cookie-popup p{
    font-family: "Sansation-light";
    padding: 5px;
}

.cookie-popup a{
    font-family: "Sansation-regular";
    text-decoration: underline;
}

/*Flecha arriba*/

.arriba{
    background-color: var(--primary-background-color);
    width: 40px;
    height: 40px;
    position: fixed;
    right: 10px;
    border-radius: 50%;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.arriba img{
    height: 25px;
    width: auto;
}

.arriba.visible{
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

/*Tema oscuro*/

.menu-lateral.oscuro{
    color: var(--dark-font-color);
}

.seccion-principal.oscuro{
    background-color: var(--dark-secondary-background-color);
}

.seccion-principal.oscuro{
    color: var(--dark-font-color);
}

.galgos.oscuro{    
    filter: drop-shadow(var(--dark-shadow));
}

.tarjeta.oscuro{
    background-color: var(--dark-card-color);
    box-shadow: var(--dark-shadow);
}

.boton-proyectos.oscuro{
    box-shadow: var(--dark-shadow);
    color: var(--font-color);
}

.intereses.oscuro img{    
    box-shadow: var(--dark-shadow);
}

.boton-toggle.oscuro{
    background-color: var(--button-color);
    box-shadow: var(--shadow);
}

.arriba.oscuro{
    box-shadow: var(--dark-shadow);
}

.menu-lateral.oscuro{
    background-color: var(--dark-secondary-background-color);
    color: var(--dark-font-color);
}

.menu-lateral.oscuro a{
    color: var(--dark-font-color);
}

#zonaPrincipal.oscuro{
    background-color: var(--dark-secondary-background-color);
}

/*Media querys*/

@media (min-width: 600px){

    :root{
        --shadow: 4px 4px 8px rgb(0,0,0,0.5);
        --dark-shadow: 4px 4px 8px rgb(114,113,111,1);
    }

    h2{
        font-size: 30px;
    }

    p{
        font-size: 17px;
    }

    /*Sección hero*/

    .hero img{
        max-width: 50%;
        max-height: 50%;
    }

    .hero h1{
        font-size: 64px;
    }

    .hero h3{
        font-family: "Sansation-light";
        font-size: 32px;
    }

    .hero h4{
        font-family: "Sansation-light";
        font-size: 20px;
    }

    /*Barra de navegación*/

    .barra-navegacion{
        height: 80px;
    }

    .barra-navegacion button{
        height: 50px;
        width: 50px;
    }

    .barra-navegacion a{
        height: 50px;
        width: 50px;
    }

    .barra-navegacion img{
        height: 30px;
        margin: 10px;
    }

    /*Menú hamburguesa*/

    #desplegado p{
        font-size: 17px;
    }

    #desplegado li{
        font-size: 17px;
    }

    /*Secciones*/

    #zonaPrincipal{
        padding-top: 50px;
    }

    .seccion-principal{
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .seccion{
        justify-content: space-between;
        scroll-margin-top: 100px;
    }

    .contenido{
        padding: 25px 50px;
        max-width: 500px;
    }

    .boton-proyectos{
        height: 50px;
        width: 320px;
        border-radius: 10px;
        margin-top: 50px;
    }

    .boton-proyectos h4{
        font-family: "Sansation-light";
        font-size: 25px;
    }

    .tarjeta{
        border-radius: 20px;
    }

    .tarjeta img{
        padding: 20px;
        width: 100%;
        border-radius: 30px;
    }

    .tarjeta h3{
        font-size: 32px;
    }

    .tarjeta p{
        font-size: 17px;
        padding: 20px;
        padding-top: 0px;
    }

    .botones-slider{
        display: block;
    }

    .botones-laterales{
        display: none;
    }

    .herramientas img{
        width: 80px;
        height: 80px;
    }

    .herramientas p{
        font-size: 17px;
    }

    .intereses img{
        border-radius: 20px;
    }

    .contacto{
        padding: 0 50px;
        padding-top: 150px;
        padding-bottom: 0px;
        scroll-margin-top: 80px;
    }

    .contacto h2{
        font-size: 40px;
    }

    .contacto h3{
        font-size: 26px;
    }

    input{
        font-size: 17px;
        padding: 20px;
    }

    textarea{ 
        font-size: 17px;
        padding: 20px;
    }

    .input{
        padding: 25px 50px;
    }

    .input label{
        font-size: 17px;        
        margin: 5px 0;
    }

    .datos{
        height: 40px;
        border-radius: 10px;
        margin-bottom: 20px;
    }

    .mensaje{
        height: 250px;
        border-radius: 10px;
    }

    .enviar{
        margin: 20px 0;
        height: 40px;
        width: 130px;
        border-radius: 10px;
        font-size: 17px;
    }

    .informacion{
        padding: 0 50px;
        padding-bottom: 50px;
    }

    .informacion img{
        margin-right: 50px;
    }

    .informacion section img{
        height: 50px;
        margin-right: 50px;
    }

    .informacion h3{
        font-size: 26px;
    }

    /*Footer*/

    footer{
        height: 50px;
    }

    .footer-izquierda, .footer-derecha{
        flex-direction: row;
    }

    .footer-izquierda a, .footer-derecha a{
        font-size: 17px;
        border-radius: 10px;
        height: 25px;
    }

    /*Cookies*/
    
    .cookie-popup{
        margin: 0 50px;
        padding: 20px;
        border-radius: 20px;
    }

    .cookie-popup button{
        background-color: var(--primary-background-color);
        margin-bottom: 0;
        padding: 5px 20px;
        border-radius: 10px;
        font-size: 17px;
    }

    /*Botón arriba*/

    .arriba{
        width: 50px;
        height: 50px;
        right: 20px;
    }

    .arriba img{
        height: 30px;
    }

}

@media (min-width: 1500px){

    /*Menú navegación*/

    .barra-navegacion{
        padding-right: 50px;
        grid-template-columns: 0 1fr 1fr;;
    }

    .menu-hamburguesa{
        width: 0;
    }

    #noDesplegado{
        display: none;
    }

    .boton-inicio{
        justify-content: left;
        padding-left: 50px;
    }

    /*Zona principal*/

    #zonaPrincipal{
        display: flex;
        flex-wrap: wrap;
        flex-direction: row-reverse;
    }

    aside{
        display: flex;
    }

    .seccion-principal{
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        padding-right: 200px;
        padding-left: 200px;
        width: calc(100% - 220px);
    }

    /*Orden alterno de las secciones*/

    .seccion:nth-child(odd){
        flex-direction: row;
    }

    .seccion:nth-child(even){
        flex-direction: row-reverse;
    }

    .contenido{
        max-width: none;
        width: calc(50% - 25px);
    }

    .contenedor-contacto{
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
    }

    .input{
        padding-left: 100px;
    }

    .contenedor-contacto form, .contenedor-contacto div{
        width: 50%;
    }

    .informacion{
        padding-top: 40px;
    }

}