:root {
    --background: #2d2d2d;
    --f: #313131;
    --backgroundsec: hsl(0, 1%, 23%);
    --primary: #0d9ed8;
    --text: #f3e7e7;
    --secondary-filter: brightness(0) saturate(100%) invert(94%) sepia(59%)
        saturate(1406%) hue-rotate(98deg) brightness(89%) contrast(91%);
    --bg-gradient-jet: linear-gradient(
            to bottom right,
            hsla(240, 3%, 81%, 0.251) 0%,
            hsl(0, 1%, 23%) 100%
        ),
        hsl(0, 1%, 23%);
    --sombra: drop-shadow(1px 1px 3px black);
}

body {
    box-sizing: border-box;
    padding: 0px;
    margin: 0px;
    background-color: rgb(24 24 27/1);
    background-image: url(img/descarga.png);
    color: var(--text);
    font-family: "Poppins", sans-serif;
    font-weight: 400;
}

* {
    transition: ease 0.2s;
}
*::selection {
    color: var(--backgroundsec);
    background-color: var(--primary);
}

.line {
    list-style: none;
    padding: 0px;
    margin: auto;
    position: absolute;
    left: calc(50% - 50px);
    z-index: 10;
}
.line li {
    display: inline-block;
    background-color: var(--backgroundsec);
    border-radius: 50px;
    height: 3px;
}

.line li:nth-of-type(1) {
    width: 70px;
}
.line li:nth-of-type(2) {
    width: 20px;
}
.line li:nth-of-type(3) {
    width: 7px;
}

.subtitulo {
    position: relative;
    margin-bottom: 60px;
}
.subtitulo h2 {
    padding: 0px;
    margin: 0px;
}

/* Estilos para el modal */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 20;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    
    background-color: rgba(0, 0, 0, 0.623);
    padding-top: 60px;
}

.modal-content {
    background-color: var(--background);
    border-radius: 6px;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

button {
    margin: 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
}

#newVersionButton{
    border: 2px solid;
    border-color: var(--primary);
}
/* ----------------------------PRESENTACION-------------------- */
h1 {
    font-weight: 700;
    font-size: 36px;
}

h2 {
    color: var(--primary);
    font-size: 32px;
}

p {
    padding-bottom: 6px;
    font-weight: 400;
}
nav {
    background-color: var(--backgroundsec);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    right: 0px;
    top: 10%;
    margin: 20px;
    width: 40px;
    border-radius: 30px;
    height: 70%;
    padding: 5px;
    z-index: 2;
    filter: var(--sombra);

    animation: appear 1s;
}
@keyframes appear {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

nav > ul {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 0px;
    list-style-type: none;
    height: 100%;
}

nav > ul > li {
    display: flex;
    justify-content: center;
    padding: 1px;
    background-color: var(--primary);
    border-radius: 50%;
}

nav > ul > li > a {
    display: flex;
}

/*agregar una animacion al nav*/
@keyframes glow {
    0% {
        box-shadow: 0 0 5px #fff;
    }
    50% {
        box-shadow: 0 0 15px #fff;
    }
    100% {
        box-shadow: 0 0 5px #fff;
    }
}
nav > ul > li:hover {
    animation: glow 1s infinite;
}

nav > ul > li > a {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 35px;
    max-height: 35px;
    overflow: hidden;
}

nav > ul > li > a:first-child {
    margin: 3px;
}
/* ------------------presentacion----------------- */

#presentacion {
    margin-bottom: 100px;
}
.container_presentacion {
    display: flex;
    justify-content: center;
}
.presentacion {
    display: flex;
    flex-direction: row-reverse;
    justify-content: start;
    padding: 64px;
    padding-top: 120px;
}

.container-img-perfil {
    border: 8px solid var(--primary);
    box-shadow: 0px 0px 20px 10px var(--primary);
    width: 390px;
    height: 390px;
    min-width: 389px;
    min-height: 389px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
    animation-name: fadeInDown;
    animation-duration: 1s;
}

.container-img-perfil > img {
    position: relative;
    bottom: -19px;
    filter: var(--sombra);
}

.present {
    margin: 45px 150px 0px -65px;
    max-width: 500px;
    animation-name: zoomIn;
    animation-duration: 1s;
}

.present h2 {
    animation: tada;
    animation-duration: 2s;
}
.h {
    position: absolute;
    width: 98vw;
}

.al-frente {
    z-index: 6;
    position: relative;
}

.botones {
    display: flex;
    gap: 40px;
    border-radius: 16px;
    align-items: center;
    height: fit-content;
}

#btn {
    padding: 10px 20px;
    text-transform: uppercase;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 500;
    color: #ffffff80;
    text-shadow: none;
    background: transparent;
    cursor: pointer;
    box-shadow: transparent;
    border: 1px solid #ffffff80;
    transition: 0.5s ease;
    user-select: none;
    text-decoration: none;
    filter: var(--sombra);
    animation: tada;
    animation-duration: 2s;
}

#btn:hover {
    color: #ffffff;
    background: #008cff;
    border: 1px solid #008cff;
    text-shadow: 0 0 5px #ffffff, 0 0 10px #ffffff, 0 0 20px #ffffff;
    box-shadow: 0 0 5px #008cff, 0 0 20px #008cff, 0 0 50px #008cff,
        0 0 100px #008cff;
}

.redes {
    display: flex;
    gap: 16px;
}

.redes a {
    padding: 4px;
    display: inline-block;
    padding: 8px;
    border-radius: 10px;
    background-color: transparent;
    box-shadow: 5px 5px 0 var(--primary);
    border: 2px solid var(--primary);
    width: 30px;
    height: 30px;
    border-radius: 6px;
    filter: var(--sombra);
}

.redes a:hover {
    background-color: var(--primary);
    transform: translate(5px, 5px);
    box-shadow: 0 0 0 var(--secondary);

    transition: transform 0.2s linear, background-color 0.2s linear,
        box-shadow 0.2s linear;
}
.redes a img {
    width: 30px;
    filter: invert(41%) sepia(100%) saturate(2160%) hue-rotate(186deg)
        brightness(91%) contrast(97%);
}

.redes a:hover img {
    filter: invert(76%) sepia(23%) saturate(2723%) hue-rotate(195deg)
        brightness(113%) contrast(99%);
}

/* ------------------------PRESENTACION-------------------- */

/* -----------------------aboutme-------------------------- */

.aboutme {
    display: flex;
    gap: 100px;
    justify-content: center;
    align-items: center;
    margin-top: 0px;
}

.img_aboutme {
    max-width: 350px;
}

.img_aboutme img {
    width: 100%;
}

.text_aboutme {
    width: 40%;
    text-align: center;
}
/* -----------------------aboutme-------------------------- */
/* ----------experiencia */
.timeline-section {
    margin: 90px 0px;
    padding: 50px 15px 25px;
}
.timeline-section h2 {
    text-align: center;
}
.timeline-items {
    max-width: 1000px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}
.timeline-items::before {
    content: "";
    position: absolute;
    width: 2px;
    height: 100%;
    background-color: #2f363e;
    left: calc(50% - 1px);
}
.timeline-item {
    margin-bottom: 40px;
    width: 100%;
    position: relative;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 30px);
    text-align: right;
}
.timeline-item:nth-child(even) {
    padding-left: calc(50% + 30px);
}
.timeline-dot {
    height: 16px;
    width: 16px;
    background-color: var(--primary);
    position: absolute;
    left: calc(50% - 8px);
    border-radius: 50%;
    top: 10px;
}
.timeline-date {
    font-size: 18px;
    color: var(--primary);
    margin: 6px 0 15px;
}
.timeline-content {
    background-color: rgba(13, 158, 216, 0);
    padding: 30px;
    border-radius: 5px;
    backdrop-filter: blur(2.4px);
    -webkit-backdrop-filter: blur(2.4px);
    border: 1px solid rgba(13, 158, 216, 0.43);
}
.timeline-content h3 {
    font-size: 20px;
    color: #fff;
    margin: 0 0 10px;
    text-transform: capitalize;
    font-weight: 500;
}
.timeline-content p {
    color: #c8c8c8;
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
}

/* Responsive */
@media (max-width: 767px) {
    .timeline-items::before {
        left: 7px;
    }
    .timeline-item:nth-child(odd) {
        padding-right: 0;
        text-align: left;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 37px;
    }
    .timeline-dot {
        left: 0;
    }
}
/* ----------experiencia */
/* ---------------------------PROYECTOS--------------------------- */
#proyectos {
    position: relative;
    text-align: center;
    margin-bottom: 90px;
}
#proyectos > h2 {
    text-align: center;
}

.container_proyectos {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
article {
    position: relative;
    width: 350px;
    height: fit-content;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: start;
    background: rgba(13, 158, 216, 0);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2.4px);
    -webkit-backdrop-filter: blur(2.4px);
    border: 1px solid rgba(13, 158, 216, 0.43);
}

.preview_container {
    background-repeat: no-repeat;
    background-size: cover;
    height: 200px;
    border-radius: 6px;
}

article #shorter {
    background-image: url(img/proyectos/shorten.jpg);
}
article #hoster {
    background-image: url(img/proyectos/hosterStarter.jpg);
}

article #drafa {
    background-image: url(img/proyectos/drafapeluqueria.jpg);
    background-position: center;
    background-size: cover;
}
article #burger {
    background-image: url(img/proyectos/Burger.png);
}

.info_container h5 {
    font-size: 20px;
    margin: 20px 0px 0px 0px;
}

.kills {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.kills img {
    height: 30px;
}

.buttons_container {
    display: grid;
    grid-template-columns: 1fr 5rem;
    gap: 0.5rem;
}

.buttons_container img {
    height: 30px;
}

.buttons_container a {
    padding: 10px 20px;
    border-radius: 8px;
    background: var(--backgroundsec);
    cursor: pointer;
    transition: 0.5s ease;
    user-select: none;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 17px;
    font-weight: 500;
    color: #ffffff80;

    display: flex;
    align-items: center;
    justify-content: center;
}

.buttons_container a {
    padding: 10px 20px;
    border-radius: 8px;
    background: var(--backgroundsec);
    cursor: pointer;
    transition: 0.5s ease;
    user-select: none;
}

.buttons_container a:hover {
    background-color: var(--background);
    color: var(--primary);
    text-shadow: var(--primary) 0px 0px 7px;
}

.buttons_container a:hover img {
    filter: var(--secondary-filter);
}

/* ---------------------------SKILLS---------------------------- */

#skills {
    position: relative;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 100px;
}

.container_cards_skills {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 100px;
    flex-wrap: wrap;
}

.card_skill {
    min-width: 270px;
    max-width: 270px;

    flex-wrap: wrap;
    text-align: center;
    padding: 10px;
    border-radius: 6px;

    background: rgba(13, 158, 216, 0);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2.4px);
    -webkit-backdrop-filter: blur(2.4px);
    border: 1px solid rgba(13, 158, 216, 0.43);
}

.card_skill h3 {
    margin-bottom: 20px;
}

.card_skill ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
}

.card_skill ul li {
    list-style: none;
    display: flex;

    border-radius: 13px;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: fit-content;
    padding: 8px 10px;
    gap: 8px;
}

.card_skill ul li:hover {
    background-color: var(--f);
}
.skill_img {
    height: 20px;
}

.skill_name {
    margin: 0px;
    padding: 0px;
}

/* ---------------------------SKILLS---------------------------- */

/* --------------------------------contacto------------------------ */

.container_contactos {
    display: flex;
    flex-wrap: wrap;
    gap: 100px;
    justify-content: center;
}

.formulario {
    max-width: fit-content;
}

form {
    display: flex;
    flex-direction: column;
    width: 500px;
    margin: 40px;
}

#contactos {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contactos .subtitulo {
    margin-bottom: 0px;
}

input {
    background-color: transparent;
    outline: none;
    border: none;
    border: 1px solid var(--primary);
    border-radius: 6px;
    height: 40px;
    color: var(--text);
    padding: 5px;
    box-sizing: border-box;
    font-size: 16px;
}

label {
    margin-top: 22px;
    margin-bottom: 8px;
}

input:focus-visible {
    border: 2px solid var(--primary);
}

.msj {
    box-sizing: border-box;
    height: 200px;
    background-color: transparent;
    border-radius: 6px;
    border: 1px solid var(--primary);
    margin-bottom: 20px;
    outline: none;
    color: var(--text);
    resize: none;
    font-size: 16px;
}

.msj:focus-visible {
    border: 2px solid var(--primary);
}

.formulario button {
    padding: 6px;
    font-size: 16px;
    font-weight: 32px;
    padding: 4px;
    display: inline-block;
    padding: 8px;
    border-radius: 10px;
    background-color: transparent;
    box-shadow: 5px 5px 0 var(--primary);
    border: 2px solid var(--primary);
    border-radius: 6px;
    color: var(--text);
}

.formulario button:hover {
    cursor: pointer;
    background-color: var(--primary);
    transform: translate(5px, 5px);
    box-shadow: 0 0 0 var(--secondary);

    transition: transform 0.2s linear, background-color 0.2s linear,
        box-shadow 0.2s linear;
}

.correo-copy {
    margin-top: 30px;
    align-items: center;
    border: 1px solid var(--primary);
    border-radius: 6px;
    padding: 16px;
    padding-bottom: 22px;
}

.correo-copy button {
    padding: 4px;
    display: inline-block;
    padding: 8px;
    border-radius: 10px;
    background-color: transparent;
    box-shadow: 5px 5px 0 var(--primary);
    border: 2px solid var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 6px;
}

.correo-copy button:hover {
    background-color: var(--primary);
    transform: translate(5px, 5px);
    box-shadow: 0 0 0 var(--secondary);

    transition: transform 0.2s linear, background-color 0.2s linear,
        box-shadow 0.2s linear;
}

.correo-copy button img {
    height: 100%;
    filter: invert(41%) sepia(100%) saturate(2160%) hue-rotate(186deg)
        brightness(91%) contrast(97%);
}

.correo-copy button:hover img {
    filter: invert(76%) sepia(23%) saturate(2723%) hue-rotate(195deg)
        brightness(113%) contrast(99%);
}
.spans {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spans span {
    padding: 0px;
    margin: 0px;
}

.texto-hover {
    color: #ffffff86;
}
/* --------------------------------contacto------------------------ */

/* ----------------------------------------------------------- */
/* ----------------------------------------------------------- */
/* ---------------------break movil -------------------------*/
/* ----------------------------------------------------------- */
/* ----------------------------------------------------------- */

@media only screen and (max-width: 470px) {
    nav {
        display: none;
    }
    #presentacion {
        flex-direction: column;
        align-items: center;
        margin-bottom: 50px;
        padding-top: 50px;
    }
    .container-img-perfil {
        width: 39px;
        height: 39px;
        min-width: 289px;
        min-height: 289px;
    }
    .container-img-perfil img {
        width: 300px;
        height: 300px;
    }

    .present {
        text-align: center;
        margin: 0px;
        margin-top: 60px;
        z-index: 10;
    }
    .gradient {
        z-index: 1;
    }
    .h {
        height: 98%;
    }
    .botones {
        margin-top: 50px;
        display: flex;
        flex-direction: column;
    }
    #aboutme {
        margin-top: 0px;
        margin-bottom: 0px;
    }
    .aboutme {
        margin-bottom: 200px;
        flex-direction: column;
        justify-content: center;
        gap: 60px;
    }
    .img_aboutme {
        display: flex;
        justify-content: center;
    }
    .img_aboutme img {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 70%;
    }
    .text_aboutme {
        width: 80%;
    }
    /* --------skills---------- */
    #skills {
        margin-bottom: 0px;
    }
    #skills h2 {
        margin-bottom: 30px;
    }

    .container_cards_skills {
        gap: 50px;
    }
    /* --------skills---------- */
    /* --------proyectos---------- */
    .container_proyectos article {
        width: 280px;
    }

    /* --------proyectos---------- */
    /* --------contactos---------- */

    .container_contactos {
        justify-content: center;
        align-items: center;
    }
    form {
        width: 80%;
    }
    .contactos {
        margin-bottom: 160px;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    .contactos .redes {
        justify-content: center;
    }
    .spans {
        align-items: start;
    }
    /* --------contactos---------- */
}

@media only screen and (max-width: 900px) {
    nav {
        display: none;
    }
    #presentacion {
        flex-direction: column;
        align-items: center;
        margin-bottom: 50px;
        padding-top: 70px;
    }
    .container-img-perfil {
        width: 39px;
        height: 39px;
        min-width: 289px;
        min-height: 289px;
    }
    .container-img-perfil img {
        width: 300px;
        height: 300px;
    }

    .present {
        text-align: center;
        margin: 0px;
        margin-top: 60px;
        z-index: 10;
    }
    .gradient {
        z-index: 1;
    }
    .h {
        height: 98%;
    }
    .botones {
        margin-top: 50px;
        display: flex;
        flex-direction: column;
    }
    #aboutme {
        margin-top: 0px;
        margin-bottom: 0px;
    }
    .aboutme {
        margin-bottom: 200px;
        flex-direction: column;
        justify-content: center;
        gap: 60px;
    }
    .img_aboutme {
        display: flex;
        justify-content: center;
    }
    .img_aboutme img {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 70%;
    }
    .text_aboutme {
        width: 80%;
    }
    /* --------skills---------- */
    #skills {
        margin-bottom: 0px;
    }

    .container_cards_skills {
        gap: 50px;
    }
    /* --------skills---------- */
    /* --------proyectos---------- */
    .container_proyectos article {
        width: 300px;
    }
    /* --------proyectos---------- */
    /* --------contactos---------- */

    .container_contactos {
        justify-content: center;
        align-items: center;
    }
    form {
        width: 80%;
    }
    .contactos {
        margin-bottom: 160px;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    .contactos .redes {
        justify-content: center;
    }
    .spans {
        align-items: start;
    }
    /* --------contactos---------- */
}
