@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Cabin+Sketch&family=Caveat&family=Gloria+Hallelujah&family=Glory:wght@100&family=Josefin+Sans:wght@100&family=Nunito:wght@200;300&family=Oxygen:wght@300&family=Pangolin&family=Quantico&family=Rajdhani:wght@300&family=Rubik+Dirt&family=Rubik+Glitch&family=Rubik+Moonrocks&family=Tapestry&display=swap');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");
@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@200..900&family=Kaushan+Script&display=swap');


*{
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
}

html{
    font-size: 90%;
    scroll-behavior: smooth;
}

body {
    background-color: black;
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    color: #EDEDED;
}

header{
    margin-top: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: transparent;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo{
    font-size: 4.2rem;
    color: #ba0037;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
    padding-right: 4rem;
    font-family: "Kaushan Script", serif;
}

.logo:hover{
    transform: scale(1.1);
    color: #EDEDED;
}

nav a{
    font-size: 1.8rem;
/*    color: #EDEDED; */
    margin-left: 0.5rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,a.active{
/*    color: #ba0037; */
    border-bottom: 3px solid #ba0037;
    /*border-left: 1px solid #b74b4b;*/
    border-radius: 3px;

}

@media(max-width:995px){
    nav{
        position: absolute;
        display: none;
        top: 0;
        right: 0;
        width: 40%;
        border-left: 3px solid #ba0037;
        border-bottom: 3px solid #ba0037;
        border-bottom-right-radius: 2rem;
        padding: 1rem solid;
        background-color: #161616;
        border-top: 0.1rem solid rgba(0, 0, 0, 1);
    }

    nav.active{
        display: block;
    }

    nav a{
        display: block;
        font-size: 2rem;
    }

    nav a:hover,
    nav a.active{
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5 solid #ba0037;
    }

}

section{
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}

.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: black;
}

.home p{
    font-size: 1.5rem;
}

.home .home-saludo h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

span{
    color: #ba0037;
}

.home-saludo h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-cara{
    border-radius: 50%;
}

.home-cara img{
    position: relative;
    width: 25vw;
    border-radius: 50%;
    box-shadow: 0 0 25px #EDEDED;
    cursor: pointer;
    transition: 0.2s linear;
}

.home-cara img:hover{
    font-size: 1.8rem;
    font-weight: 500;
}

/* ===== Botón Ver CV ===== */
.btn-cv{
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 2rem;
    padding: 0.9rem 2.2rem;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #EDEDED;
    border: 2px solid #ba0037;
    border-radius: 0.4rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

.btn-cv::before{
    content: '';
    position: absolute;
    inset: 0;
    background-color: #ba0037;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.btn-cv:hover::before{
    transform: scaleX(1);
}

.btn-cv:hover{
    box-shadow: 0 0 12px #ba0037, 0 0 30px #ba003788;
    color: #fff;
}

/* ===== Texto cambiante ===== */

.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span{
    position: relative;
}

.typing-text span::before{
    content: "Project Manager";
    color: #ba0037;
    animation: palabra 20s infinite;
}

.typing-text span::after{
    content: "";
    background-color: black;
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid black;
    right: -8;
    animation: cursor 0.8s infinite;
}

@keyframes cursor{
    to{
        border-left: 3px solid #EDEDED;
    }
}

@keyframes palabra{
    0%, 20%{
        content:"Project Manager";
    }
    21%, 40%{
        content:"Analista de Datos";
    }
    41%, 60%{
        content:"Gestor de Equipos";
    }
    61%, 80%{
        content:"Automatización";
    }
    81%, 100%{
        content:"Mejora Continua";
    }
}

@media(max-width: 1000px){
    .home{
        gap:4rem;
    }
}

@media(max-width:995px){
    .home{
        flex-direction: column;
        margin: 5rem 4rem;
    }
    .home .home-saludo h3{
        font-size: 2.5rem;
    }
    .home-saludo h1{
        font-size: 5rem;
    }
    .home-cara img{
        width: 70vh;
        margin-top: 4rem; 
    }
}


.btn-neon{
    position: relative;
    display: inline-block;
    padding: 10px 10px;
    color: #EDEDED;
    letter-spacing: 4px;
    font-size: 24px;
    text-decoration: none;
    overflow: hidden;
    transition: 0.2s;
}
.btn-neon:hover{
    background-color: #ba0037;
    box-shadow: 0 0 10px #ba0037, 0 0 40px #ba0037, 0 0 80px #ba0037;
    transition-delay: .6s;
}
.btn-neon span{
    position: absolute;
    display: block;
}
.span1{
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent,#444444);
}
.btn-neon:hover .span1{
    left: 100%;
    transition: .6s;
}
.span3{
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, transparent,#ba0037);
}
.btn-neon:hover .span3{
    right: 100%;
    transition: 1s;
    transition-delay: 0.15s;
}
.span2{
    top: -100%;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent,#444444);
}
.btn-neon:hover .span2{
    top: 100%;
    transition: 1s;
    transition-delay: 0.3s;
}
.span4{
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(300deg, transparent,#ba0037);
}
.btn-neon:hover .span4{
    bottom: 100%;
    transition: 1s;
    transition-delay: 0.45s;
}

.tarjeta{
    margin: 3rem;
    padding: 2em;
    width: 350px;
    background: black;
    text-align: center;
    border-radius: 10px;
    position: relative;
}

@property --angle{
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.tarjeta::after, .tarjeta::before{
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    background-image: conic-gradient(from var(--angle),transparent 30%, #ba0037);
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    z-index: -1;
    padding: 3px;
    border-radius: 10px;
    animation: 3s spin linear infinite;
}

.tarjeta::before{
    filter: blur(1.5rem);
    opacity: .8;
}

@keyframes spin {
    from{
        --angle: 0deg;
    }
    to{
        --angle: 360deg;
    }
}

.sobre_mi{
    width: 98%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.sobre_mi .tarjeta h3{
    color: #ba0037;
    margin-bottom: 1rem;
}

/* ===== Habilidades ===== */
.habilidades{
    width: 98%;
}

.habilidades h2,
.proyectos h2,
.contacto h2,
.sobre_mi h2{
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    width: 100%;
}

.habilidades{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.habilidades .tarjeta h3,
.proyectos .tarjeta h3{
    color: #ba0037;
    margin-bottom: 1rem;
}

.habilidades .tarjeta ul{
    list-style: none;
    text-align: left;
}

.habilidades .tarjeta ul li{
    padding: 0.3rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #2a2a2a;
}

.habilidades .tarjeta ul li:last-child{
    border-bottom: none;
}

/* ===== Proyectos ===== */
.proyectos{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.proyecto{
    width: 420px;
    text-align: left;
}

.proyecto h3{
    text-align: center;
}

.proyecto-tags{
    color: #ba0037;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 1rem;
}

.proyecto p{
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

/* ===== Contacto ===== */
.contacto{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contacto-links{
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.contacto-links .btn-neon{
    border: 2px solid #ba0037;
    border-radius: 0.5rem;
    padding: 1rem 2rem;
}

@media(max-width: 995px){
    .proyecto{
        width: 90%;
    }
}