* {
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
}

/* Body */

body {
    background-color: #000000f2;
}

/* Pie */

.pie {
    position: relative;
    bottom: 0;
    color: white;
    height: fit-content;
    background-color: black;
    text-align: center;
    padding: 1em;
    font-size: 1em;
}

/* Logo */

.logo {
    position: absolute;
    top: 2em;
    z-index: 1000;
    animation: deslizarLogo 1s ease forwards;
}

@keyframes deslizarLogo {
    0% {
        left: -2em;
    }
    100% {
        left: 2em;
    }
}

.logo img {
    width: 4em;
    height: fit-content;
}

/* CAPA MOSTRAR MENU */

.mostrar_menu {
    width: 4em;
    height: 4em;
    position: fixed;
    right: 3em;
    top: 2em;
    cursor: pointer;
    z-index: 1000;
}

.linea1 {
    position: absolute;
    width: 1em;
    background-color: white;
    height: 4px;
    top: 1em;
    right: 0.1em;
    transition: width 0.5s;
    animation: aparecerlinea1 1s ease-in-out;
}

.linea2 {
    position: absolute;
    width: 1.5em;
    background-color: white;
    height: 4px;
    top: 1.5em;
    right: 0.1em;
    transition: width 0.3s ease-in;
    animation: aparecerlinea2 1s ease-in-out;
}

.linea3 {
    position: absolute;
    width: 2em;
    background-color: white;
    height: 4px;
    top: 2em;
    right: 0.1em;
    animation: aparecerlinea3 1s ease-in-out forwards;
}

@keyframes aparecerlinea1 {
    0% {
        width: 0;
    }
    100% {
        width: 1em;
    }
}

@keyframes aparecerlinea2 {
    0% {
        width: 0;
    }
    100% {
        width: 1.5em;
    }
}

@keyframes aparecerlinea3 {
    0% {
        width: 0;
    }
    100% {
        width: 2em;
    }
}

.mostrar_menu:hover .linea1 {
    width: 2em;
}

.mostrar_menu:hover .linea2 {
    width: 2em;
}

/* CAPA MENU */

.menu {
    top: -150%;
    left: 0;
    position: fixed;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.990);
    transition: top 0.5s ease;
    z-index: 1;
}

.menu ul {
    padding: 0.5em 0;
    font-size: 2em;
    font-weight: bold;
    margin-top: 20%;
}

.menu ul a {
    text-decoration: none;
}

.menu ul li {
    padding: 0.5em 0;
    color: rgba(255, 255, 255, 0.76);
    list-style-type: none;
    transition: color 0.5s ease;
}

.menu ul li:hover{
    color: #c70039;
}

.mostrar_menu_checkbox {
    display: none;
}

.mostrar_menu_checkbox:checked ~ .menu {
    top: 0;
    pointer-events: auto;
}

/* NOMBRE */

.contenido {
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    height: 97vh;
    color: white;
}

.info {
    width: fit-content;
    height: fit-content;
    padding: 0 1em;
}
.nombre {
    font-weight: bold;
    font-size: 3em;
    animation: aparecer 1s ease;
}

.nombre span {
    color: #c70039;
}

.sector {
    text-align: right;
    font-size: 1.5em;
    animation: aparecer 2s ease;
}

@keyframes aparecer {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* VISTA CONTACTO */

.contenido_formulario {
    width: 100%;
    height: 97vh;
    display: grid;
    align-items: center;
    text-align: center;
    margin-top: 3em;
    transition: all 0.5s ease;
}

p.infoContacto {
    text-align: center;
    padding: 0 0.5em;
    color: white;
    font-size: 1.5em;
    animation: aparecer 2s ease;
}
/*
.formulario {
    min-width: 50%;
    margin: 5em auto;
    padding-bottom: 2em;
    animation: aparecerFormulario 1s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}
*/

.contenido_formulario ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contenido_formulario li {
    color: #ffffff; /* Color blanco para el texto */
    font-size: 1.2rem;
    margin: 10px 0; /* Espaciado entre elementos */
    transition: transform 0.3s ease, color 0.3s ease; /* Animación suave */
    cursor: pointer; /* Cambia el cursor al pasar el ratón */
}

.contenido_formulario li:hover {
    color: #c70039; /* Color amarillo al hacer hover */
    transform: scale(1.1); /* Aumenta ligeramente el tamaño */
}

.contenido_formulario a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease; /* Animación suave para el enlace */
}

.contenido_formulario a:hover {
    color: #c70039; /* Color diferente al pasar el ratón */
}



@keyframes aparecerFormulario {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/*
.input {
    padding: 1em 0;
}

.input label {
    color: white;
    font-size: 1.5em;
    display: block;
}

.input input {
    width: -webkit-fill-available;
    margin: 0.5em 0;
    padding: 0.5em;
    font-size: 1.2em;
    border-radius: 10px;
    border: 2px white solid;
    outline: none;
    transition: border-color 0.5s ease;
}

.formulario textarea {
    min-width: -webkit-fill-available;
    min-height: 10em;
    border-radius: 10px;
    margin: 0.5em 0;
    padding: 0.5em;
    font-size: 1.5em;
    border: 2px white solid;
    outline: none;
    transition: border-color 0.5s ease;
}

.enviar {
    border: 4px white solid;
    outline: none;
    color: #000000e6;
    transition: border-color 0.5s ease, color 0.8s ease;
}

.input input:focus, .input textarea:focus, .input input:hover, .input textarea:hover {
    border-color: #c70039;
}

.enviar:hover {
    border-color: #c70039;
    color: c70039;
}

.error {
    background-color: #c70039;
    color: white;
}

.mensajeError {
    color: white;
    text-decoration: underline;
    font-size: 1em;
}
*/
/* PROYECTOS */
.contenidoProyectos {
    width: 100%;
    height: 97vh;
    display: grid;
    margin-top: 9em;
    justify-content: center;
    align-items: center;
}

.titulo {
    width: 100%;
    text-align: center;
    font-size: 4em;
    color: #c70039;
    animation: aparecer 1s ease;
}

.proyectos, .habilidades, .formacion {
    margin-top: 5em;
    opacity: 0;
    animation: aparecerProyectos 1s ease forwards;
    animation-delay: 0.5s;
}

@keyframes aparecerProyectos {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.botonProyecto {
    padding: 0.5em 2em !important;
    width: fit-content;
    border: 2px #c70039 solid;
    margin: 3em 0 0 0.5em;
    background-color: transparent;
    transition: background-color 1s ease;
}

.botonProyecto:hover {
    background-color: #c70039;
}

@keyframes fondo {
    0% {
        background-color: none;
    }
    100% {
        background-color: #c70039;
    }
}

.proyectos 
{
    display: flex !important;
    flex-direction: column;
    justify-content: center !important;
    align-items: center !important;
}

.proyecto a {
    color: white;
    text-decoration: none;
}

.proyecto {
    width: 80%;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 2em;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.proyecto:hover {
    transform: scale(1.1);
}

.proyecto img {
    width: 100%;
    max-width: 480px;
}

.leyenda {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1em;
}

.tituloProyecto {
    color: #c70039;
    font-size: 3em;
    padding: 0.5em 0.5em 0.5em 0.1em;
}

.leyenda p {
    color: whitesmoke;
    font-size: 1.3em;
    text-align: justify;
    padding: 0.4em;
}

/* Habilidades */

.contenidoHabilidadesFormacion {
    width: 100%;
    height: fit-content;
    display: grid;
}

.contenidoHabilidades {
    width: 60%;
    height: fit-content;
    margin: 9em auto 4em;
    float: left;
    transition: all 0.5s ease;
}

.contenidoFormacion {
    width: 60%;
    margin: 0 auto;
    text-align: center;
    transition: all 0.5s ease;
}

.habilidadesFront {
    width: 40%;
    float: left;
    margin-top: 5em;
    opacity: 0;
    animation: aparecerProyectos 1s ease forwards;
    animation-delay: 0.5s;
}

.habilidadesFront h1, .habilidadesBack h1, .contenidoFormacion h1 {
    font-size: 3em;
    margin-bottom: 1em;
}

.habilidadesBack {
    width: 40%;
    float: right;
    margin-top: 5em;
    opacity: 0;
    animation: aparecerProyectos 1s ease forwards;
    animation-delay: 0.5s;
}

.formacion {
    margin-top: 5em;
    opacity: 0;
    animation: aparecerProyectos 1s ease forwards;
    animation-delay: 0.5s;
}

.listaHabilidades {
    list-style-type: none;
    padding: 0;
}

.listaFormacion {
    text-align: center;
    list-style-type: none;
    padding: 0;
}

.habilidad {
    color: white;
    font-weight: bold;
    margin: 10px 0;
    font-family: Arial, sans-serif;
    position: relative;
}

li.formacion {
    color: white;
    font-weight: bold;
    margin: 1.5em 0;
    font-family: Arial, sans-serif;
}

.barraProgreso {
    width: 100%;
    background-color: #f3f3f3;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 5px;
    position: relative;
}

.relleno {
    height: 20px;
    background-color: #4caf50;
    text-align: right;
    padding-right: 5px;
    line-height: 20px;
    color: white;
    border-radius: 10px 0 0 10px;
    animation: llenarBarra 2s forwards;
    position: relative;
}

.percentage-text {
    position: absolute;
    right: 10px;
    top: 0;
    line-height: 20px;
    color: white;
    font-weight: bold;
}

@keyframes llenarBarra {
    from {
        width: 0;
    }
    to {
        width: var(--percentage);
    }
}


@media (max-width: 1125px) {

    /* Inicio */

    .logo{
        display: none;
    }
    .sector {
        text-align: center;
        margin-top: 1em;
    }

    /* Pie */

    .pie {
        font-size: 0.8em;
    }
    /* Menu */

    .mostrar_menu {
        width: 100%;
        height: 4em;
        right: 0;
        top: 0;
        background-color: black;
        cursor: pointer;
        z-index: 1000;
    }
    
    .linea1 {
        width: 1em;
        top: 1.3em;
        right: 2em;
        transition: width 0.5s;
    }
    
    .linea2 {
        width: 1.5em;
        top: 1.8em;
        right: 2em;
        transition: width 0.3s;
    }
    
    .linea3 {
        width: 2em;
        top: 2.3em;
        right: 2em;
    }

    /* Proyectos */

    .proyecto {
        width: 100%;
        display: grid;
        align-items: center;
        align-content: center;
        margin-bottom: 2em;
        transition: all 0.5s ease;
    }

    .proyecto img {
        max-width: none;
    }

    .leyenda {
        background-color: rgba(0, 0, 0, 0.5);
        padding: 1em;
        animation: none;
        left: 0;
    }

    .tituloProyecto {
        text-align: center;
    }

    /* Habilidades */

    .contenidoHabilidades {
        width: 100%;
        display: grid;
        margin-bottom: 0;
        transition: all 0.5s ease;
    }

    .contenidoFormacion{
        width: 100%;
        display: grid;
        margin-top: 4em;
        transition: all 0.5s ease;
    }

    .habilidadesFront, .habilidadesBack {
        width: 80%;
        margin: 5em auto 0;
    }

    .formacion {
        margin-top: 0;
    }

    .listaFormacion {
        width: 80%;
        margin: 0 auto;
        text-align: center;
    }

    /* Contacto */

    .formulario {
        float: left;
        align-items: center;
        width: 70%;
        margin: 5em auto;
        padding-bottom: 2em;
    }
    
}
