/* ** Contenido Oculto para cargar al inicio */

.difuso {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.difuso.visible {
    opacity: 1;
    transform: translateY(0);
}



/* ** Estilos de la cabecera */
body {
    margin: 0;
    background-color: #1e1e1e;
}
.menu-bar {
    display: flex;
    box-sizing: border-box;
    flex-wrap: wrap;
    width: 100%;
    height: 120px;
    align-items: center;
}

.logo {
    width: 80px;
    height: auto;
    margin-left: 50px;
    border-radius: 100%;
    transition: transform 0.3s ease;
}

.oculto{
    visibility: hidden;
    opacity: 0;
    position: absolute;
    margin-top: 23px;
    margin-left: 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    background-color: transparent;
    border: 3px solid #ff5e8d;
    color: #ffffff;
    border-radius: 5px;
    padding: 3px;
    transition: visibility 0.3s ease, opacity 0.3s ease;
}

.logo:hover + .oculto {
    visibility: visible;
    opacity: 1;
}

.logo:hover {
    transform: rotate(360deg);
}

.hello {
    margin-left: auto;
    margin-right: 50px;
}

.hello button {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    background-color: transparent;
    border: 3px solid #ff5e8d;
    color: #ffffff;
    border-radius: 30px;
    padding: 10px;
    font-size: 16px;
    transition: transform 0.3s ease, background-color 0.3s ease, color  0.3s ease;
}

.hello button:hover {
    cursor: pointer;
    transform: scale(120%);
    background-color: #ff5e8d;
    color: white;
}

/* ** Diseño de la parte del título */

.presentacion {
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    z-index: 1;
}

.titulo {
    width: 100%;
    text-align: center;
    color: rgb(11, 1, 48);
}

.titulo h1 {
    font-size: 45px;
    margin-top: 30px;
    margin-bottom: 0;
    color: #ffffff;
}

.titulo h2 {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    color: #ffffff;
}

.perfil-photo {
    width: 100%;
    text-align: center;
}

.perfil-photo img{
    width: 210px;
    border-radius: 100%;
}

.computer {
    width: 100%;
    text-align: center;
    margin-bottom: 0;
}

/* ** Parte de la presentación */

.descripcion {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    margin-top: -65px;
    background-color: #2c2c2c ;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    z-index: 2;
}

.descripcion-width {
    width: 100%;
    text-align: center;
}

.descripcion h2 {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 150px;
    font-size: 30px;
}

.descripcion p {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 150px;
    font-size: 20px;
    font-weight: 500;
    text-align: justify;
}

/* ** Seccion de lenguajes */

.languajes {
    width: 100%;
    position: relative;
    z-index: 3;
    margin-top: -80px;
    margin-bottom: 200px;
}

.lenguajes {
    box-sizing: border-box;
    width: 90%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    list-style-position: inside ;
    border: 2px solid #ccc;
    border-radius: 10px;
    background-color: #2c2c2c;
    box-shadow: 5px 5px 10px #ccc;
    padding: 20px;
    color: white;
}

.icon-lenguaje{
    width: 50px;
    margin-left: auto;
    margin-right: auto;
}

.icon-lenguaje img{
    padding: 10px;
    margin-top: 60px;
    background-color: #5be9b9;
    border: 1px solid #5be9b9;
    border-radius: 10px;
}

.lenguajes h3 {
    font-size: 20px;
}

.lenguajes h4 {
    color: #914cec;
}

/* ** Sección de videojuego proyectos */

.proyecto {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: transparent;
    color: white;
    align-items: center;
    align-content: centers;
}

.desProyecto {
    width: 100%;
    box-sizing: border-box;
}

.desProyecto h2 {
    font-size: 35px;
    margin-top: 70px;
    margin-bottom: 70px;
}

.desProyecto h3 {
    font-size: 22px;
    margin-top: 20px;
    margin-bottom: 0;
}

.desProyecto .imgFlip {
    border-radius: 10px;
    box-sizing: border-box;
    box-shadow: 5px 5px 10px black;
    margin-bottom: 50px;
    width: 100%;
    max-width: 600px;
    transition: transform 0.4s ease;
}



.desProyecto p {
    width: 80%;
    margin-top: 0;
    margin-bottom: 0s;
    margin-left: auto;
    margin-right: auto;
    font-size: 20px;
}

.devProyecto {
    box-sizing: border-box;
    width: 90%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    list-style-position: inside ;
    border: 2px solid #ccc;
    border-radius: 10px;
    background-color: #2c2c2c;
    box-shadow: 5px 5px 10px #ccc;
    padding: 20px;
    color: white;
    margin-bottom: 70px;
}

.imgProyecto {
}

.flip-card {
    width: 80%;
    max-width: 600px;
    height: 400px;
    perspective: 1000px; /* Proporciona la perspectiva para el efecto 3D */
    margin-left: auto;
    margin-right: auto;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg); /* Gira el contenido de la tarjeta cuando el cursor pasa sobre ella */
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Oculta la parte posterior cuando se gira */
}

.flip-card-back {
    transform: rotateY(180deg); /* Gira la parte posterior para que esté oculta inicialmente */
}

/* ** Seccion de empleos recientes */
.empleos {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #2c2c2c;
    color: white;
}

.txtEmpleos {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.txtEmpleos h2 {
    font-size: 30px;
}

.txtEmpleos p {
    font-size: 20px;
}


/* ** Tarjetas de empleos */

.tarjetas {
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    display: flex;
    width: 100%;
}

.imgTarjetas {    
    box-sizing: border-box;
    padding: 20px;
    width: 33.33%;
    position: relative;
}

.imgTarjetas img {
    border-radius: 20px;
    transition: transform 0.5s ease;    
    max-width: 300px;
}

.imgTarjetas img:hover {
    animation: hoverEffect 1.5s ease forwards;
}

@keyframes hoverEffect {
    0% {
        transform: scale(1) rotate(0deg); /* Estado inicial */
    }
    50% {
        transform: scale(0.5) rotate(360deg); /* Crece y gira */
    }
    100% {
        transform: scale(1); /* Vuelve a su tamaño original */
    }
}

.textoSobre {
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    padding: 10px;
    max-width: 600px;
}

.textoSobre a {
    color: #ccc;
}



/* ** Formulario */

.contactame{
    width: 100%;
    position: relative;
    z-index: 3;
    margin-top: 100px;
    margin-bottom: 100px;
}

.formulario {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 90%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border: 2px solid #ccc;
    border-radius: 10px;
    background-color: #2c2c2c;
    box-shadow: 2px 2px 5px #ccc;
    padding: 30px;
    font-size: 20px;
    color: white;
}

#form {
    width: 100%;
}

#form label {
    width: 80%;
}

#form textarea {
    box-sizing: border-box;
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    resize: vertical;
    background-color: #2c2c2c;
    border-color: #ccc;
}

#form .inpStyle {
    box-sizing: border-box;
    width: 100%;
    font-size: 18px;
    margin-bottom: 10px;
    margin-top: 5px;
    padding: 5px;
    background-color: #2c2c2c;
    border-style: none;
    border: 1px solid #ccc;
}



.btnSubmit {
    box-sizing: border-box;
    width: 100%;
    font-size: 18px;
    margin-bottom: 10px;
    margin-top: 5px;
    padding: 5px;
    background-color: transparent;
    border: 3px solid #ff5e8d;
    color: white;
    border-radius: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease, color  0.3s ease;
}

.btnSubmit:hover {
    cursor: pointer;
    transform: scale(105%);
    background-color: #ff5e8d;
    color: white;
}


/* ** Pie de página */

.piePagina{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 350px;
    background-color: #2c2c2c;
}

.piePagina h3 {
    width: 30%;
    min-width: 300px;
    margin-top: 80px;
    margin-left: auto;
    margin-right: auto;
    color: white;
    font-size: 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
}

.piePagina p {
    width: 30%;
    margin-left: auto;
    margin-right: auto;
    color: white;
    font-size: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    margin-bottom: 30px;
}

.redesSociales {
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    filter: invert(100%);
}

.redesSociales a {
    text-decoration: none;
}

.redesSociales img {
    margin-left: 20px;
    margin-right: 20px;
}

/* Media query para panallas de telefonos móviles*/
@media (max-width: 557px) {

    .presentacion .computer img{
        width: 200px;
        margin-bottom: 37px;
    }

    .imgTarjetas {
        width: 80%;
        flex-direction: column;
        margin-left: auto;
        margin-right: auto;
    }

    .flip-card {
        height: 250px;
    }
}


@media (min-width: 558px) and (max-width: 800px)  {

    .presentacion .computer img{
        width: 300px;
        margin-bottom: 25px;
    }

    .imgTarjetas {
        width: 50%;
        flex-direction: column;
        margin-left: auto;
        margin-right: auto;
    }

    .flip-card {
        height: 350px;
    }
}