/* ----- Importaciones -------------------------------------------------------------- */

@font-face {
    font-family: bebas;
    src: url(media/fonts/BebasNeue-Regular.otf);
}

@font-face {
    font-family: roboto;
    src: url(media/fonts/Roboto-Condensed.ttf);
}



/* ----- Generales -------------------------------------------------------------- */

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

body {
    overflow-x: hidden;
    font-family: roboto;
    color: #efefef;
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, .80), rgba(0, 0, 0, .80)), url(media/img/fondo.webp);
    background-size: cover;
    background-position: center;
}

::-webkit-scrollbar {
    width: 5px;
    background: #000000d4;
}

::-webkit-scrollbar-thumb {
    background-color: #ffffff12;
    border-radius: 4px;
}

.idiomas {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 1rem;
    position: fixed;
    z-index: 10000;
    top: 10px;
    left: 0;
    right: 0;
}

.idiomas img {
    width: 40px;
    cursor: pointer;
}

.contenedor-general {
    margin: 0 auto;
    padding: 0 1rem;
}

h1,
h2 {
    font-family: bebas;
    font-size: 3rem;
    text-align: center;
}



/* ----- Inicio -------------------------------------------------------------- */

.inicio {
    margin-top: 8rem;
}

.inicio__informacion {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.informacion__titulo-mobile {
    margin-bottom: 2rem;
}

.informacion__titulo {
    display: none;
}

.informacion__contenido {
    text-align: center;
    margin-bottom: 2rem;
}

.informacion__sobremi {
    font-size: .8rem;
    color: #fff;
}

.informacion__tecnologias {
    max-width: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    row-gap: 1.3rem;
    column-gap: .8rem;
    flex-wrap: wrap;
}

.tecnologias__tecnologia {
    padding: .3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1000;
    border-radius: .3rem;
    background: rgba(255, 255, 255, 0.207);
}

.tecnologia__prompt {
    font-size: .8rem;
    opacity: 0;
    position: absolute;
    bottom: 1rem;
    z-index: 100000;
    transition: .5s;
    user-select: none;
}

.tecnologias__tecnologia:hover .tecnologia__prompt {
    opacity: 1;
    display: block;
    bottom: -1rem;
    transition: all .3s;
}



/* ----- Proyectos -------------------------------------------------------------- */

.proyectos {
    margin: 0 auto;
    margin-top: 8rem;
}

.proyectos__titulo {
    margin-bottom: 2rem;
}

.proyectos__contenedor {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    justify-content: center;
    grid-template-rows: repeat(auto-fit, 220px);
    grid-template-columns: repeat(auto-fit, minmax(250px, 400px));
    gap: 2rem;
}

.proyectos__proyecto {
    overflow: hidden;
    height: 220px;
    position: relative;
    border: 1px solid #999;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.207);
}

.proyectos__proyecto:hover {
    border: 1px solid #666;
    transition: all .3s;
}

.proyecto__imagen {
    width: 100%;
    height: 100%;
    display: inline-block;
    transition: transform .3s;
}

.proyecto__imagen-hover {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 80px;
    position: absolute;
    top: -100%;
    left: 0;
    background: rgba(0, 0, 0, 0.763);
    transition: top .3s;
}

.proyecto__info-hover {
    font-family: roboto;
    width: 100%;
    height: 100%;
    padding: 10px 10px;
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    column-gap: 80px;
    position: absolute;
    top: 500px;
    left: 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.763);
    transition: top .3s;
}

.proyecto__descripcion {
    font-size: 13px;
    line-height: 16px;
}

.proyecto__tecnologias img {
    width: 40px;
    transition: transform .3s;
}

.proyecto__tecnologias img:hover {
    transform: scale(1.1);
    transition: transform .3s;
}

.icono-abrirInfo {
    cursor: pointer;
    position: absolute;
    margin: 15px 20px;
    top: 0;
    right: 0;
}

.proyectos__proyecto:hover .proyecto__imagen-hover {
    top: 0;
    transition: top .3s;
}

.proyecto__imagen-peliculas {
    background: linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)), url(media/img/proyectos/proyecto-peliculas.png) no-repeat;
    background-size: cover;
    background-position: center;
}

.proyecto__imagen-redsocial {
    background: linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)), url(media/img/proyectos/proyecto-redsocial.png) no-repeat;
    background-size: cover;
    background-position: center;
}

.proyecto__imagen-famma {
    background: linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)), url(media/img/proyectos/proyecto-famma.jpg) no-repeat;
    background-size: cover;
    background-position: center;
}

.proyecto__imagen-hollowknight {
    background: linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)), url(media/img/proyectos/proyecto-hollowknight.png) no-repeat;
    background-size: cover;
    background-position: center;
}

.proyecto__imagen-youtube {
    background: linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)), url(media/img/proyectos/proyecto-replica-youtube.jpg) no-repeat;
    background-size: cover;
    background-position: center;
}

.proyecto__imagen-tateti {
    background: linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)), url(media/img/proyectos/proyecto-tateti.jpg) no-repeat;
    background-size: cover;
    background-position: center;
}



/* ----- Sobre mi -------------------------------------------------------------- */

.sobremi {
    margin: 0 auto;
    margin-top: 8rem;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#sobremi-ancla {
    position: absolute;
}

.sobremi__titulo {
    margin-bottom: 1rem;
}

.sobremi__texto {
    max-width: 610px;
    padding: .6rem;
    margin-bottom: 1rem;
}

.sobremi__cv {
    color: #ff9;
}



/* ----- Contacto -------------------------------------------------------------- */

.contacto {
    margin: 8rem auto;
}

.contacto__datos{
    display: flex;
    justify-content: center;
}

.contacto__dato {
    margin: 1rem .5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: .4rem;
}

.contacto__icono {
    width: 30px;
}

.contacto__informacion {
    color: #fff;
    text-decoration: none;
}



/* ----- Footer -------------------------------------------------------------- */

.footer {
    font-size: .9rem;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
}

.footer__texto {
    margin: 0 auto;
}



/* ----- Medias Queries -------------------------------------------------------------- */

@media (width > 450px) {

    .proyectos__contenedor {
        grid-template-rows: repeat(auto-fit, 250px);
    }

    .proyectos__proyecto {
        height: 250px;
    }

    .proyecto__info-hover {
        padding-top: 30px;
    }

    .proyecto__descripcion {
        font-size: 16px;
        line-height: 22px;
    }

    .proyecto__tecnologias img {
        width: 48px;
    }

}

@media (width > 640px) {
    .idiomas {
        top: 10px;
        right: 10px;
        left: auto;
    }
}

@media (width > 900px) {

    h1 {
        font-size: 6rem;
    }

    h2 {
        font-size: rem;
    }

    .informacion__titulo-mobile {
        display: none;
    }

    .informacion__titulo {
        margin-bottom: 1rem;
        display: block;
    }

    .inicio {
        margin-top: 10rem;
    }

    .footer {
        font-size: .9rem;
        width: 100%;
        height: 50px;
        padding: 0px 3rem;
        display: flex;
        align-items: center;
    }

    .footer__texto {
        margin: 0;
    }

}