
/* Inicio de titulo principal */
#titulo{
    display: flex;
    align-items: center;
    height: 500px;
    margin-bottom: 150px;
}

#titulo > h1{
    position: relative;
    width: 100%;
    color: white;
    font-size: 70px;
    text-align: center;
    text-shadow: none;
    animation: slidein 1.5s ease-in-out;
}
@keyframes slidein {
    from {
        opacity: 0;
        top:-500px;
    }

    to {
        opacity: 1;
        top: 0;
    }
}

/* Fin del titulo principal */

.sub_titulo {
    margin-bottom: 80px;
    text-align: center;
    font-size: 50px;
    transform: scale(0.1, 0.1);
    font-weight: bold;
    color: white;
    border-bottom: 1px solid white;
    transition: all 0.5s ease;
}

.agrandecer{
    transform: scale(1, 1);
}

/* Inicio targetas de resumen general */
.general{
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    margin-bottom: 150px;
    border-radius: 10px;
}

.general > a{
    text-decoration: none;
}

.card_resumen{
    display: flex;
    flex-flow: column wrap;
    position: relative;
    width: 270px;
    height: 270px;
    padding: 20px;
    color: white;
    background: rgb(0, 145, 255);
    border-radius: 10px;
}

#icono_enlace{
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #cdf2ff;
    border-radius: 10px;
    opacity: 0;
    transition: all 300ms ease-in-out;
}

#icono_enlace > .icon{
    font-size: 60px;
    font-style: normal;
    color: #03045e;
}

.card_resumen:hover #icono_enlace{
    opacity: 1;
    box-sizing: border-box;
}

.card_resumen:hover #icono_enlace>.icon {
    animation: rebote 1.1s infinite;
}

@keyframes rebote{
    20%,50%,80%,to{
        transform: translateY(0);
    }
    25% {
        transform: scaleY(0.6);
    }
    40%{
        transform: translateY(-30px);
    }
    70%{
        transform: translateY(-15px);  
    }
    90% {
        transform: translateY(-4px);
    }
}

.card_resumen >.icon{
    margin-top: 15px;
    text-align: center;
    font-size: 60px;
}

.card_resumen > h3{
    font-size: 25px;
    font-weight: 500;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
}

.card_resumen p{
    font-size: 20px;
    margin-top: 20px;
    text-align: center;
}
/* Fin targetas de resumen general*/

/* Inicio de seccion de habilidades */
#habilidades{
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    background: #F2F5FC;
    width: 100%;
    max-width: 1250px;
    border-radius: 10px;
    padding: 35px;
    margin-bottom: 150px;
    position: relative;
}

#nivel{
    width: 100%;
}

#nivel ul{
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 55px;
    row-gap: 30px;
    width: auto;
}

#nivel ul li {
    position: relative;
    width: 100%;
    color: black;
    list-style: none;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.movimiento:hover{
    transform: translateX(-30px);
}
#caja_titulo{
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    width: auto;
    margin-right: 50px;
    background: #0091ff;
    box-shadow: 10px 10px 20px #ccc;
    border-radius: 10px;
}
#caja_titulo>i{
    display: block;
    text-align: center;
    font-size: 100px;
    font-style: normal;
    margin-bottom: 20px;
    color: white;
}

#caja_titulo h2{
    align-self: center;
    text-align: center;
    font-size: 37px;
    color: #ffffff;
}

.detalles{
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    width: 100%;
    color: #03045e;
    font-weight: bold;
}

.barra_progreso{
    position: relative;
    width: auto;
    background: #add2ea;
    border-radius: 20px;
}

.barra_progreso div{
    position: relative;
    width: 0;
    height: 10px;
    border-radius: 20px;
    background-color: #0091ff;
}

#progreso_html{
    width: 90%;
}
#progreso_css {
    width: 90%;
}
#progreso_java {
    width: 75%;
}
#progreso_php {
    width: 60%;
}
#progreso_js {
    width: 45%;
}
#progreso_laravel {
    width: 50%;
}
#progreso_tw {
    width: 35%;
}
#progreso_bt {
    width: 70%;
}
#progreso_mysql {
    width: 55%;
}
#progreso_drupal {
    width: 85%;
}
#progreso_linux {
    width: 45%;
}
#progreso_git {
    width: 45%;
}
#progreso_jquery {
    width: 35%;
}
#progreso_sass {
    width: 30%;
}
/* Fin de seccion de habilidades */

/* Incio de trayectoria */
#trayectoria_trabajos{
    height: 600px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 0px 20px;
    margin-bottom: 100px;
}

.linea{
    content: '';
    width: 100%;
    height: 4px;
    background: #77c4ff;
    position: absolute;
    left: 0;
    z-index: -3;
}


#caja_anio{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    z-index: -2;
}

.anio_item{
    display: block;
    color: white;
    background: #77c4ff;
    padding: 2px 10px;
    border-radius: 20px;
}

.contenido_trabajos{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
}

.caja_item{
    width: 100%;
    display: flex;
    justify-content: center;
    position: absolute;
    gap: 10%;
}

.item{
    width: 100px;
    height: 100px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    background: #F2F5FC;
    border: 4px solid #77c4ff;
    cursor: pointer;
    z-index: 20;
    transition: all 500ms ease;
}

.item>i{
    position: absolute;
    font-size: 50px;
    color: #03045e;
    font-style: normal;
    transition: all 300ms ease;
}

.cabecera_titulo{
    position: absolute;
    font-size: 28px;
    color: #F2F5FC;
    text-transform: capitalize;
    font-weight: 900;
    width: 200px;
    text-align: center;
}

.caja_sub_titulo{
    position: absolute;
    font-size: 18px;
    font-weight: 600;
    color: #77c4ff;
    width: 200px;
    text-align: center;
}

.item:nth-child(odd){
    transform: translateY(-100%);
}

.item:nth-child(odd)::after {
    content: '';
    width: 4px;
    height: 50px;
    background: #77c4ff;
    position: absolute;
    transform: translateY(75px);
    z-index: -3;
}

.item:nth-child(odd) .cabecera_titulo{
    transform: translateY(-140px);
}

.item:nth-child(odd) .caja_sub_titulo {
    transform: translateY(-90px);
}

.item:nth-child(even) {
    transform: translateY(100%);
}

.item:nth-child(even)::after {
    content: '';
    width: 4px;
    height: 50px;
    background: #77c4ff;
    position: absolute;
    transform: translateY(-75px);
    z-index: -3;
}

.item:nth-child(even) .cabecera_titulo {
    transform: translateY(140px);
}

.item:nth-child(even) .caja_sub_titulo {
    transform: translateY(90px);
}

.enlace_item{
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 30;
}
/* Fin de trayectoria */

/* Inicio de proyectos */
#titulo_proyectos{
    width: 100%;
    height: 150px;
    border-bottom: 1px solid #ccc;
}

#content_cards{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 40px;
    row-gap: 70px;
    max-width:1500px;
    margin: 0px auto;
    margin-bottom: 80px;
}

.card_proyectos {
    position: relative;
    width: 350px;
    height: 520px;
    margin: 0px auto;
    border-radius: 10px;
    background: white;
    color: #00296b;
}

.card_proyectos:hover {
    background: rgb(242, 245, 252);
}

.card_proyectos > a{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 200px;
    text-align: center;
    border-radius: 10px 10px 0px 0px;
    background: #a3ddfa;
}
.card_proyectos>a h2{
    font-size: 35px;
    color: #00296b;
    transition: all 300ms ease-in-out;
}

.card_proyectos > a i {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: #ff0059;
    position: absolute;
    font-size: 60px;
    font-style: normal;
    opacity: 0;
    transition: all 300ms ease-in-out;
}

.card_proyectos>a i:hover {
    opacity: 1;
    background: rgba(199, 234, 249, 0.308);
    border-radius: 10px 10px 0px 0px;
}

.card_proyectos>a:hover h2{
    filter: blur(10px);
}

.body_card {
    margin: 20px 10px 10px 10px;
}

.body_card h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.body_card a {
    display: block;
    width: 160px;
    font-size: 18px;
    color: rgb(5, 128, 252);
    margin-bottom: 10px;
    text-decoration: none;
}

.body_card p {
    height: 100px;
    line-height: 1.5rem;
    margin-bottom: 20px;
    font-size: 18px;
    color: #03045e;
}

.body_card h4{
    font-size: 18px;
}

.date{
    position: absolute;
    display: block;
    width: 150px;
    height: 30px;
    bottom: 10px;
    right: 0;
    font-size: 15px;
    border-radius: 10px 0px 0px 10px;
    line-height: 30px;
    text-align: center;
    background: #0091ff;
    color: white;
}

.body_card ul {
    font-size: 18px;
    margin-top: 10px;
    margin-left: 25px;
}

.body_card ul li{
    display: flex;
    align-items: center;
    list-style: none;
    margin-bottom: 10px;
}

.logo_style {
    width: 20px;
    cursor: pointer;
    margin-right: 15px;
}
/* Fin de proyectos */

/* Inicio del formulario */
form{
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 480px;
    padding: 20px;
    margin: 0px auto;   
}

#animacion_envio{
    width: 100%;
    margin-bottom: 40px;
    text-align: center;
}

#animacion_envio > i{
    color: white;
    font-size: 50px;
    font-style: normal;       
}

input[type="text"],
input[type="email"],input[type="submit"],textarea {
    font-family: 'InterTight', sans-serif, 'Trebuchet MS', 'Lucida Sans Unicode';
    padding: 10px;
    font-size: 18px;
    box-sizing: border-box;
    border-radius: 10px;
}

input,textarea{
    width: 100%;
    margin-bottom: 50px;
    background: #F2F5FC;
    border: 2px solid #ccc;
}

input {
    display: block;
    color: #222;
}

textarea {
    height: 250px;
    resize: none;
}

input:focus {
    outline: 0;
    border: 2px solid #0091ff;
}

textarea:focus {
    outline: 0;
    border: 2px solid #0091ff;
}

input[type="submit"]{
    width: 100%;
    cursor: pointer;
    border-radius: 5px;
    color: white;
    border: 2px solid white;
    background: transparent;
    transition: all 0.2s ease-in-out;
}

input[type="submit"]:hover{
    color: white;
    background: #0091ff;
}

.mensaje{
    display: none;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    padding: 10px;
    z-index: 22;
    right: 20px;
    bottom: 20px;
    margin-left: 20px;
    border-radius: 10px;
    background: greenyellow;
    
}

.mensaje .icon{
    font-size: 30px;
    font-style: normal;
    cursor: pointer;
    margin-left: 20px;
}

.mensaje .icon:hover {
    color: rgb(255, 255, 255);
}


/* MEDIA QUERIES */

/*Contenido principal del main*/
@media (min-width:1463px) {
    #habilidades{
        margin: 150px auto;
    }
}

@media (max-width:1440px) {
    .card_proyectos {
        width: 300px;
    }
}

@media (max-width:1390px) {
    .general {
        justify-content: space-around;
    }

    .card_resumen {
        margin: 0px 20px 40px 20px;
    }
}

@media(max-width:1270px) {
    .caja_item {
        gap: 5%;
    }
    #content_cards {
        grid-template-columns: 1fr 1fr;
    }
    .card_proyectos {
        width: 350px;
    }
}

@media(max-width:950px) {
    #caja_titulo>i {
        font-size: 80px;
    }
    #caja_titulo h2 {
        font-size: 30px;
    }
}

@media(max-width:930px) {
    .caja_item {
        gap: 1%;
    }
    .card_proyectos {
        width: 290px;
    }
}

@media(max-width:820px) {
    #habilidades {
        grid-template-columns: 1fr;
        padding-top: 165px;
    }
    #caja_titulo {
        position: absolute;
        flex-direction: row;
        width: 100%;
        border-radius: 10px 10px 0px 0px;
        margin-right: 0px;
        box-shadow: none;
        padding: 35px;
    }
    #caja_titulo>i {
        font-size: 60px;
        margin-bottom: 0px;
    }
    #nivel ul {
        column-gap: 45px;
    }
    .movimiento:hover {
        transform: translateX(-15px);
    }
    #trayectoria_trabajos {
        height: 140vh;
    }
    .linea {
        height: 100%;
        width: 4px;
        top: 0;
        left: 50%;
    }
    #caja_anio {
        height: 100%;
        flex-direction: column;
    }
    .caja_item {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    .item:nth-child(odd) {
        transform: translate(-120px, 0%);
    }
    .item:nth-child(odd)::after {
        width: 75px;
        height: 4px;
        transform: translate(85px);
    }
    .item:nth-child(even) {
        transform: translate(120px, 0%);
    }
    .item:nth-child(even)::after {
        width: 70px;
        height: 4px;
        transform: translate(-85px);
    }
    .item:nth-child(even) .cabecera_titulo {
        transform: translateY(-140px);
    }
    .item:nth-child(even) .caja_sub_titulo {
        transform: translateY(-90px);
    }
}

@media (max-width:775px) {
    .general {
        justify-content: space-between;
    }
    .card_resumen {
        margin: 0px 0px 40px 0px;
    }
    #content_cards {
        grid-template-columns: 1fr;
    }
    .card_proyectos {
        width: 350px;
    }
}

@media (max-width:750px) {
    form {
        width: 100%;
        height: auto;
    }
    label {
        padding-left: 0px;
        float: none;
        clear: both;
    }
    input,
    textarea {
        width: 100%;
    }
}

@media (max-width:720px) {
    #titulo>h1 {
        font-size: 60px;
    }
}

@media (max-width:700px) {
    .general {
        justify-content: space-evenly;
    }
    .card_resumen {
        width: 200px;
        margin: 0px 5px 40px 5px;
    }
    .card_resumen>.icon {
        margin-top: 0px;
    }
}

@media (max-width:650px) {
    #btn {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width:550px) {
    .wrap {
        width: 90%;
    }
}

@media (max-width: 520px) {
    .general,
    #habilidades {
        margin-bottom: 100px;
    }
    input[type="submit"] {
        background: #0091ff;
        border: none;
        transition: all 0.1s linear;
    }
    input[type="submit"]:active {
        box-shadow: none;
        background: #7b0f65;
    }
}

@media (max-width: 490px) {
    #trayectoria_trabajos {
        height: 130vh;
    }
    .linea {
        left: 0;
    }
    #caja_anio {
        align-items: start;
    }
    .anio_item {
        border-radius: 0px;
    }
    .caja_item {
        gap: 60px;
    }
    .item:nth-child(odd),
    .item:nth-child(even) {
        transform: translate(-100px, 0px);
    }
    .item:nth-child(odd)::after {
        transform: translate(-85px);
    }
    .item:nth-child(odd) .cabecera_titulo,
    .item:nth-child(even) .cabecera_titulo {
        text-align: left;
        transform: translate(160px, -25px);
    }
    .item:nth-child(odd) .caja_sub_titulo,
    .item:nth-child(even) .caja_sub_titulo {
        text-align: left;
        transform: translate(160px, 20px);
    }
    form {
        padding: 0px;
        margin-bottom: 150px;
    }
}

@media (max-width: 485px) {
    .card_resumen {
        width: 270px;
        width: 270px;
    }
    .card_resumen>.icon {
        margin-top: 20px;
    }
    .extras ul li {
        width: 240px;
    }
    #habilidades {
        padding-top: 140px;
    }
    #caja_titulo i {
        display: none;
    }
}

@media (max-width:585px) {
    #titulo{
        margin-bottom: 80px;
    }
    #titulo>h1 {
        font-size: 50px;
    }
    .sub_titulo {
        font-size: 40px;
    }
}



@media (max-width: 445px) {
    #nivel ul {
        column-gap: 40px;
    }
    #nivel ul li {
        font-size: 16px;
    }
    #habilidades {
        padding-left: 25px;
        padding-right: 25px;
    }
    #titulo>h1 {
        font-size: 45px;
    }
}

@media (max-width: 390px) {
    #nivel ul {
        grid-template-columns: 1fr;
    }
    #habilidades {
        padding-left: 30px;
        padding-right: 30px;
    }
    #titulo>h1 {
        font-size: 40px;
    }
    .sub_titulo {
        font-size: 35px;
    }
}

@media (max-width: 385px) {
    .cabecera_titulo {
        font-size: 20px;
    }
    .caja_sub_titulo {
        font-size: 17px;
        width: 150px;
    }
    .card_proyectos>a h2 {
        font-size: 30px;
    }
    .item:nth-child(odd),
    .item:nth-child(even) {
        transform: translate(-70px, 0px);
    }
    .item:nth-child(odd) .caja_sub_titulo,
    .item:nth-child(even) .caja_sub_titulo {
        text-align: left;
        transform: translate(135px, 20px);
    }
    .card_proyectos {
        width: 100%;
        height: auto;
        padding-bottom: 60px;
    }
    .body_card {
        height: auto;
    }
    .body_card p {
        height: auto;
    }
}

@media (max-width: 362px) {
    #habilidades {
        padding-top: 180px;
    }
}

@media (max-width: 292px) {
    #name_profile {
        display: none;
    }
    .item {
        width: 65px;
        height: 65px;
    }
    .item:nth-child(odd),
    .item:nth-child(even) {
        transform: translate(-70px, 0px);
    }
    .item:nth-child(odd) .caja_sub_titulo,
    .item:nth-child(even) .caja_sub_titulo {
        text-align: left;
        transform: translate(120px, 20px);
    }
    .item:nth-child(odd) .cabecera_titulo,
    .item:nth-child(even) .cabecera_titulo {
        text-align: left;
        transform: translate(145px, -25px);
    }
    .item:nth-child(odd)::after {
        transform: translate(-70px);
    }
    .item:nth-child(even)::after {
        transform: translate(-67px);
    }
    .card_resumen {
        width: 180px;
        height: auto;

    }
    .card_resumen>.icon {
        font-size: 35px;
    }
    .card_resumen>h3 {
        font-size: 22px;
    }
    .card_resumen p {
        font-size: 20px;
    }
}