/* Estilos generales */

:root {
    --primary-color: #606060;
    --secondary-color: #60878B;
    --background-color: #fff;
    --font-primary: 'Roboto', sans-serif;
    
}
body {
    margin: 0;
    font-family: var(--font-primary);
    color: var(--primary-color);
    background-color: var(--background-color);
    overflow: hidden;
}

.wrapper {
    display: flex;
    height: 100vh;
}

/* Barra lateral */
.sidebar {
    width: 250px;
    background-color: var(--background-color);
    padding: 20px;
    box-shadow: 10px 0 20px rgba(0,0,0,0.1);
    position: fixed; 
    top: 0;
    bottom: 0;
    overflow-y: auto; 
    z-index: 1000;
    transition: transform 0.3s ease;
}

/* Ocultar el menú hamburguesa en pantallas grandes */
.menu-toggle {
    display: none;
}

.title {
    font-size: 12px;
    color: var(--primary-color);
}

/* Logo */
.logo a {
    font-size: 30px;
    font-weight: 700;
    color: var(--background-color);
    text-decoration: none;
    display: flex;
    justify-content: end;
}

.logo span {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px;
    font-weight: 400;
}

/* Navegación */
nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    margin-bottom: 20px;
    font-size: 16px;
    text-align: end;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s, text-decoration 0.3s;
}

nav ul li a:hover {
    color: var(--background-color); 
    text-decoration: underline; 
    background-color: var(--secondary-color); 
}

/* Pie de página */
footer {
    margin-top: 5px;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    text-align: end;
}

.contact-info ul li {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.copyright {
    margin-top: 10px;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: end;
    text-align: end;
}

/* Contenido principal */
.main-content {
    flex: 1;
    margin-left: 290px;
    padding: 40px;
    background-color: var(--background-color);
    overflow-y: auto; 
    box-shadow: 0 2px 5px #140c0c;
    display: flex;
    justify-content: center; 
}

h1 {
    color: var(--secondary-color);
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    margin-bottom: 3rem;
    margin-top: 2rem;
}

/* Sección */
.section {
    margin-bottom: 40px;
    font-size: 18px;
}

.profile {
    display: flex;
    justify-content: flex-start; 
    text-align: left;
    gap: 20px; 
}

.profile-img {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    margin-right: 15%;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.profiles-memberships ul li {
    text-align: center;
    list-style-type: none;
}

.lista-profile a {
    gap: 10%;
    margin-left: 10%;
    margin-bottom: 10%;
  
}

.profile-details h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}
.profile-details p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 700px;
    text-align: justify;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    padding-right: 2rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.social-links a {
    margin-right: 2.5rem;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 24px;
    margin-left: 2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

#profile-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

/* Contenedor para cada fila de educación */

.education-row {
    display: grid;
    grid-template-columns: 0.5fr 1fr 1fr; 
    gap: 10px; 
    margin-bottom: 10px; 
    align-items: center; 
}

/* Estilo para cada elemento */

.date-education, .education, .place-education {
    padding: 0 5px; 
}

.date-education {
    text-align: start;
}

.education {
    text-align: center;
}

.place-education {
    text-align: end;
}


/* Experience */


#experience-work {
    margin-bottom: 40px;
}

/* Contenedor para cada fila de experiencia */
.experience-row {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr 1fr; 
    margin-bottom: 10px; 
}

/* Estilo para cada columna */
.date-experience, .title-experience, .location-experience, .details-experience {
    padding: 0 2px; 
}

/* Alineación de texto dentro de las columnas */
.date-experience {
    text-align: start; 
}

.title-experience {
    text-align: center; 
}

.location-experience {
    text-align: center; 
}

.details-experience {
    text-align: center;
}

.details-experience a {
    color: var(--secondary-color);
    text-decoration: none; 
}

.details-experience a:hover {
    text-decoration: underline; 
}


#profiles-memberships ul {
    list-style-type: none; 
    padding: 0; 
    margin-left: 2rem;
}

#profiles-memberships li {
    margin-bottom: 20px; 
}

#profiles-memberships strong {
    display: block; 
}

#profiles-memberships a {
    display: block; 
    margin-top: 8px; 
    color: var(--secondary-color); 
    text-decoration: none; 
}

#profiles-memberships a:hover {
    text-decoration: underline; 
}

/* papers */
#papers-projects {
    max-height: 100vh; 
    padding: 20px; 
    box-sizing: border-box; 
}

#papers-projects h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

#papers-projects ul {
    display: grid;
    grid-template-columns: repeat(1, 1fr); 
    gap: 20px; 
    list-style-type: none; 
    padding: 0;
}

#papers-projects li {
    background-color: #98c7cc; 
    color: var(--background-color);
    border: 1px solid #140c0c; 
    box-shadow: 0 2px 5px #140c0c;
    font-size: 18px;
    border-radius: 5px; 
    padding: 15px; 
    font-size: 0.9rem;
    line-height: 1.5; 
}

#papers-projects li a:hover {
    text-decoration: underline; 
}

#papers-projects {
    margin: 5px;
    font-size: 16px;

}

#papers-projects li span {
    display: block; 
    margin-top: 5px; 
    font-style: italic; 
    color: var(--primary-color); 
}


.link-span:hover {
    text-decoration: underline; 
}

/* congress */
#congress {
    padding-bottom: 10%;
}


/* Fondo y borde redondeado */
.congress-item {
    background-color: #98c7cc;
    color: var(--background-color);
    border: 1px solid #140c0c;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px #140c0c;
}

.congress-title {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.1rem;
}

.congress-item p {
    margin: 5px 0;
    font-size: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* skills */
#skills {
    margin: 20px 0;
}


.skill-item {
    margin-bottom: 25px;
}

.skill-title {
    font-weight: bold;
    font-size: 1.1rem;
}

.skill-item p {
    margin: 5px 0;
    font-size: 1rem;
}

/* Reviewer for */
.reviewed-title {
    margin-bottom: 1rem;
}

.dataset-item {
    background-color: #98c7cc;
    color: var(--background-color); 
    border-radius: 8px; 
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px #140c0c; 
}

.dataset-item p {
    margin: 5px 0;
    color: var(--background-color);
}

.dataset-item a {
    color: #555;
    text-decoration: none;
}

.dataset-item a:hover {
    text-decoration: underline;
}


section h1 {
    font-size: 24px;
    color: var(--primary-color);
}

/* Lecture */
.lecture-item {
    background-color: #98c7cc;
    color: var(--background-color); 
    border-radius: 8px; 
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px #140c0c; 
}

/* Title and Date Styles */
.lecture-title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.lecture-date {
    font-weight: bold;
    color: #555;
}

/* Paragraph Styles */
.lecture-item p {
    margin: 5px 0;
    color: #666;
}


/* Media query para tablets (max-width: 1200px) */
@media (max-width: 768px) {
    .section {
        padding: 20px;
    }

    .profile-details p {
        text-align: center;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 250px;
    }

    .menu-toggle {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1100;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px;
        background-color: var(--secondary-color);
        transition: all 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .profile {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .profile-img {
        margin-bottom: 10px;
        max-width: 100%;
        height: auto;
    }

    .profile-details {
        text-align: center;
    }

    .profiles-memberships ul li {
        text-align: center;
        max-width: 100%;
        list-style-type: none;
    }

    .lista-profile a {
        gap: 5%;
        margin-left: 5%;
    }

    .lista-profile li {
        margin-top: 5%;
    }

    #work {
        margin-top: 5rem;
    }

    table {
        font-size: 14px;
        overflow-x: auto;
        display: block;
    }

    th, td {
        padding: 8px;
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    th {
        display: none;
    }

    tr {
        margin-bottom: 10px;
        border: 1px solid #ddd;
        border-radius: 5px;
        overflow: hidden;
    }

    td:first-child {
        font-weight: bold;
    }

    #papers-projects {
        width: 100%;
        margin-left: 6rem;
    }

    #papers-projects ul {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        width: 100%;
        margin: 0;
        padding: 0;
    }

    #papers-projects ul li {
        max-width: 100vh;
    }

    .social-links {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        padding-bottom: 5rem;
    }

    #congress .congress-item {
        margin-bottom: 15px;
    }
    
    #congress .congress-title {
        flex-direction: column;
        align-items: flex-start;
    }

    #congress .congress-date {
        margin-top: 5px;
    }

    #congress .congress-item p {
        font-size: 16px;
    }

    #reviewed-open {
    padding-top: 0;
    }
}

/* Media query para móviles (max-width: 600px) */
@media (max-width: 390px) {
    .section {
        padding: 10px;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 250px;
    }

    .menu-toggle {
        display: block;
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 1100;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        margin: 4px;
        background-color: var(--secondary-color);
        transition: all 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;

    }

    #home {
        margin-top: 5rem;
    }

    .profile {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .profile-img {
        max-width: 100%;
        height: 200px;
        width: 200px;
    }

    .profile-details {
        text-align: center;
    }

    .profiles-memberships h1 {
        margin-top: 10%;
    }

    .profiles-memberships ul li {
        text-align: center;
        max-width: 100%;
        list-style-type: none;
    }

    .lista-profile {
        display: flex;
        flex-direction:row;
        justify-content: space-evenly;
        margin-top: 5rem;
        
    }

    .lista-profile ul{
        margin-left: -5%;
    }

    .lista-profile li {
        margin-top: 3%;
    }


    table {
        font-size: 12px;
        overflow-x: auto;
        display: block;
    }

    th, td {
        padding: 6px;
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    th {
        display: none;
    }

    tr {
        margin-bottom: 8px;
        border: 1px solid #ddd;
        border-radius: 5px;
        overflow: hidden;
    }

    td:first-child {
        font-weight: bold;
    }

    #papers-projects {
        width: 100%;
        margin: 0 auto;
    }

    #papers-projects ul {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        width: 100%;
        margin: 0;
        padding: 0;
    }

    #papers-projects ul li {
        max-width: 40vh;
    }

    #papers-projects ul li a {
        width: 100%;
        display: block;
        word-wrap: break-word;
     overflow-wrap: break-word;
    }

    .social-links {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        padding-bottom: 5rem;
    }

     #congress h1 {
        font-size: 24px;
        text-align: center;
        margin-top: 280%;
    }

    #congress .congress-item {
        margin-bottom: 10px;
    }

    #congress .congress-title {
        flex-direction: column;
        align-items: flex-start;
    }

    #congress .congress-date {
        margin-top: 5px;
        font-size: 14px;
    }

    #congress .congress-item p {
        font-size: 14px;
        line-height: 1.4;
    }

    #congress .social-links {
        text-align: center;
    }

    #congress .social-links a {
        margin: 0 10px;
    }

    #skills {
    margin-top: 35%;
    }

    #reviewed-open, #lecture {
        padding: 10px;
        margin-top: 20%;
    }

    #reviewed-open h1, #lecture h1 {
        font-size: 24px;
        text-align: center;
    }

    .reviewed-item, .dataset-item, .lecture-item {
        margin-bottom: 15px;
        padding: 10px;
    }

    .reviewed-title, .lecture-title {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .reviewed-title span, .lecture-title span {
        font-size: 16px;
        margin-bottom: 5px;
    }

   span .reviewed-date1, .reviewed-date2 {
        text-align: start;
    }

    .reviewed-date1, .reviewed-date2, .lecture-date {
        font-size: 14px;
    }

    .dataset-item p, .lecture-item p {
        font-size: 14px;
        line-height: 1.4;
    }

    .dataset-item strong {
        font-size: 16px;
    }

    .social-links {
        text-align: center;
        margin-top: 20px;
    }

    .social-links a {
        margin: 0 10px;
        font-size: 20px;
    }

}

    

