@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url('https://cdn-uicons.flaticon.com/uicons-regular-rounded/css/uicons-regular-rounded.css');
@import url('https://cdn-uicons.flaticon.com/uicons-solid-rounded/css/uicons-solid-rounded.css');
@import url('https://cdn-uicons.flaticon.com/uicons-regular-straight/css/uicons-regular-straight.css');


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
} 

header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;

}


.container-2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 10px auto;
    padding: 1rem 2rem;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 255, 0.2);
    border-radius: 20px;
    height: auto;
    gap: 40px;
    
}


.profile-placeholder img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
    transition: all 0.3s ease-in-out;
}

.profile-placeholder img:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 255, 0.7);
}

p:not(.footer-text  ) {
    text-shadow: 2px 2px rgba(0, 0, 0, 0.1);
    text-align: justify;
}


.logo h1 {
    font-size: 1.5rem;
    color: #333;
}


.nav-bar ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-bar a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease-in;
    position: relative;
    display: inline-block;
    padding: 5px 0;
    transition: transform 0.3s ease;
    
}

.nav-bar a:hover {
    color: #007bff;
    transform: translate(-3px);
    
}

.nav-bar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: #007bff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-bar a:hover::after {
    transform: scaleX(1);
}

.s1 {
    display: flex;
    padding: 2em;
    flex-direction: column;
    

}

.title {
    margin: 0.5em;
    display: flex;
    justify-content: center;
    text-align: center;
}


section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
}



.edu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px;
    margin: 15px 0;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 255, 0.2);
}

#resumen .edu-item {
    max-width: min-content;
    transition: all 0.3s ease-in-out;
}

#resumen .edu-item:hover {
    box-shadow: 0 0 10px rgba(0, 0, 240, 0.5);
}

.edu-text {
    display: flex;
    flex-direction: column;
}

.edu-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.academic-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    transition: all 0.3s ease-in-out;
}

.academic-logo:last-of-type:hover {
    transform: scale(1.1);
}


.year {
    display: flex;
    justify-content: space-evenly;
    
}

.year2 {
    display: flex;
    justify-content: end;
    margin-right: 10px;
}


.timeline {
    position: relative;
    margin: 40px auto;
    padding-left: 30px;
}


.timeline::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    width: 4px;
    height: 100%;
    background: #007bff;
    border-radius: 4px;
}


.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 25px;
}


.timeline-item::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 8px;
    width: 14px;
    height: 14px;
    background: #007bff;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,.2);
}


.timeline-date {
    font-weight: bold;
    color: #007bff;
    margin-bottom: 5px;
}


.timeline-content {
    background: white;
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,.1);
    transition: all 0.3s ease-out;
}

.timeline-content:hover {
    box-shadow: 0 0 10px rgba(0, 0, 240, 0.5);
}

.timeline-content h3 {
    margin-bottom: 4px;
}

.timeline-content h4 {
    color: gray;
    font-size: 14px;
    margin-bottom: 8px;
}


.social-links img {
    border-radius: 8px;
    transition: transform .3s ease, box-shadow .3s ease;
}

.social-links img:hover {
    transform: scale(1.1);
}


.social-links img.linkedin-icon:hover {
    box-shadow: 0 0 10px rgba(10,102,194,0.9);
}


.social-links img.github-icon:hover {
    box-shadow: 0 0 10px rgba(0,0,0,0.9);
}

.info-container{
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
    padding-top: 20px;
}

.info-card{
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,.1);
    transition: .2s ease;
}

.info-card:hover{
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

.info-card h3{
    margin-bottom: 8px;
}

.info-card ul{
    margin-left: 18px;
}

.footer{
    margin-top: 80px;
    background: #0f172a;  
    color: white;
    text-align: center;
    padding: 25px 10px;
}

.footer p{
    margin: 5px 0;
    font-size: 14px;
}

.footer-container{
    max-width: 900px;
    margin: auto;
}


.info-card {
    background: white; 
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,.1);
    transition: .4s ease;
    position: relative;
    overflow: hidden; 
    z-index: 1; 
}


.info-card::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1000px; 
    height: 1000px;
    background: conic-gradient(
        transparent 0deg, 
        transparent 270deg, 
        #007bff 360deg
    );
    transform: translate(-50%, -50%);
    animation: borderSpin 4s linear infinite; 
    z-index: -2; 
    opacity: 0; 
    transition: opacity 0.3s ease;
}


.info-card::after {
    content: "";
    position: absolute;
    inset: 3px; 
    background: white;
    z-index: -1;
}


.info-card:hover::before {
    opacity: 1;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
}


@keyframes borderSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}




@media screen and (max-width: 768px) {


    .container {
        flex-direction: column; 
        gap: 20px;
        padding: 1rem;
    }

    .nav-bar ul {
        flex-wrap: wrap; 
        justify-content: center;
        gap: 15px;
        padding: 0;
    }

    
    #resumen .edu-item {
        margin: 15px auto;
    }


    .container-2 {
        flex-direction: column-reverse;
        text-align: center;
        padding: 2rem 1rem;
        width: 95%; 
    }

    .s1 {
        padding: 1rem;
        width: 100%;
        align-items: center; 
    }

    
    .profile-placeholder img {
        width: 180px; 
        height: 180px;
    }

    
    section {
        margin: 30px auto;
        padding: 10px;
    }

    
    .edu-item {
        flex-direction: column; 
        text-align: center;
        gap: 15px;
    }

    .edu-left {
        flex-direction: column; 
        text-align: center;
    }
    
    .year, .year2 {
        justify-content: center; 
        margin-right: 0;
    }

    
    .info-container {
    justify-content: center;

    
    .footer {
        margin-top: 40px;
        padding: 20px 10px;
    }
}


@media screen and (max-width: 480px) {
    
    /* 1. Ocultamos el logo para dar espacio al menú */
    .logo {
        display: none; 
    }

    /* 2. Ajustamos el menú para que NO se apile verticalmente */
    .nav-bar ul {
        flex-direction: row; /* Mantiene los ítems uno al lado del otro */
        flex-wrap: wrap;     /* Permite que bajen a una segunda línea si no caben, pero ordenados */
        justify-content: center; /* Centra los enlaces */
        gap: 15px;          /* Un espacio prudente entre enlaces */
        width: 100%;
    }

    /* Ajustes visuales menores para el texto en móviles */
    .logo h1 {
        font-size: 1.2rem; 
    }

    .profile-placeholder img {
        width: 150px;
        height: 150px;
    }
    
    .timeline {
        padding-left: 10px;
    }
    
    .timeline::before {
        left: 0px; 
    }
    
    .timeline-item {
        padding-left: 20px;
    }
    
    .timeline-item::before {
        left: -11px; 
    }
} }