/* Lista de próximos artículos en papers */
.reference-next-list {
    font-size: 1.00rem;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 400;
    font-style: italic;
    color: #000000;
    line-height: 1.6;
    margin-bottom: 0.7em;
    display: block;
}
.reference-next-list li {
    margin-bottom: 0.3em;
    font-style: italic;
    list-style-type: disc;
}
/* Negrita personalizada para títulos de artículos en referencias */
.reference-text strong {
    font-weight: 600;
    color: #144272;
    font-size: 1.00rem;
}
/* Estilo para referencias bibliográficas */
.reference-text {
    font-size: 1.00rem;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 400;
    font-style: italic;
    color: #000000;
    line-height: 1.6;
    margin-bottom: 0.7em;
    display: block;
}

/* Botón tipo caja para enlaces de las tarjetas en home */
.btn-card-link {
    display: block;
    width: fit-content;
    margin: 20px auto 0 auto;
    padding: 10px 22px;
    background: #2e6891;
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 400;
    font-size: 1.00rem;
    box-shadow: 0 2px 8px rgba(10,38,71,0.07);
    border: 1px solid #b6d4fa;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
/* Centrar el contenido de las cajas de las tarjetas en home */
.card-content {
    text-align: center;
}
}
.btn-card-link:hover {
    background: #bbdefb;
    color: #0a2647;
    box-shadow: 0 4px 16px rgba(32,82,149,0.13);
}
/* CV image links row for works section */
.cv-img-links-row {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 0.7rem;
    justify-content: flex-start;
}
.cv-img-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    max-width: 220px;
}
.cv-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    background: #f5f5f5;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}
.cv-img:hover {
    box-shadow: 0 4px 16px rgba(32,82,149,0.18);
    transform: scale(1.07);
}
.cv-link-text {
    margin-bottom: 0.2rem;
    font-size: 1rem;
    font-weight: 500;
}
.cv-link-text a {
    color: #205295;
    text-decoration: underline;
    transition: color 0.2s;
}
.cv-link-text a:hover {
    color: #0a2647;
}
.cv-card-text {
    text-align: justify;
    font-size: 1rem;
    color: #444;
}
@media (max-width: 700px) {
    .cv-img-links-row {
        flex-direction: column;
        gap: 1.2rem;
        align-items: center;
    }
    .cv-img-link {
        max-width: 95vw;
    }
}

/* Sticky footer always at bottom */
html, body {
    height: 100%;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.footer {
    margin-top: auto;
}
/* CV cards row for works section */
.cv-cards-row {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 0.7rem;
    justify-content: flex-start;
}
.cv-card {
    background: #f5f5f5;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1.5px 6px rgba(0,0,0,0.04);
    padding: 1.2rem 1.5rem 1.1rem 1.5rem;
    min-width: 180px;
    max-width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    transition: box-shadow 0.2s;
}
.cv-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.13), 0 3px 12px rgba(0,0,0,0.07);
}
.cv-link-btn {
    display: inline-block;
    background: #205295;
    color: #fff;
    font-weight: 600;
    padding: 0.5em 1.2em;
    border-radius: 8px;
    text-decoration: none;
    margin-bottom: 0.3rem;
    transition: background 0.2s, color 0.2s;
}
.cv-link-btn:hover {
    background: #0a2647;
    color: #fff;
}
.cv-card-text {
    text-align: justify;
    font-size: 1rem;
    color: #444;
}
@media (max-width: 700px) {
    .cv-cards-row {
        flex-direction: column;
        gap: 1.2rem;
        align-items: center;
    }
    .cv-card {
        min-width: 0;
        width: 90vw;
        max-width: 98vw;
    }
}

/* Menor negrilla para títulos de papers */
.papers-justify h2, .papers-justify h3, .papers-justify .less-bold-title {
    font-weight: 700;
    font-size: 1.20rem;
    color: #144272;
}
/* Justify text for works and papers sections */
.papers-justify {
    text-align: justify;
    
}

.works-justify h2, .works-justify h3, .works-justify .less-bold-title {
    font-weight: 700;
    font-size: 1.20rem;
    color: #144272;
}

.works-justify {
    text-align: justify;
}

.cv-links {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    text-align: left;
}
.cv-links a {
    color: #205295;
    text-decoration: underline;
    margin: 0 0.2em;
    font-weight: 500;
    transition: color 0.2s;
}
.cv-links a:hover {
    color: #0a2647;
}
/* About section flex layout */
.about-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin: 7.0rem auto 2.5rem auto;
    max-width: 1000px;
}
.about-photos {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
}
.about-img-vertical {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(10,38,71,0.10);
    background: #f5f5f5;
}
.about-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.1rem;
}
.about-info h2 {
    margin: 0 0 0.5rem 0;
}
.about-info p {
    margin: 0;
    font-size: 1.1rem;
    color: #000000;
    text-align: justify;
}

@media (max-width: 700px) {
    .about-flex {
        flex-direction: column;
        gap: 1.5rem;
        max-width: 95vw;
    }
    .about-info {
        align-items: center;
        text-align: center;
    }
    .about-photos {
        flex-direction: row;
        gap: 1rem;
    }
    .about-img-vertical {
        width: 90px;
        height: 130px;
    }
}

/* Contact section card */
.contact-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1.5px 6px rgba(0,0,0,0.04);
    padding: 1.5rem 2rem;
    gap: 2rem;
    max-width: 1000px;
    margin: 2.5rem auto;
    min-height: 200px;
}
.contact-card-img {
    flex: 0 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-card-img img {
    width: 400px;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    background: #f5f5f5;
}
.contact-card-info {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.contact-card-info h2 {
    margin: 0 0 0.5rem 0;
}
.contact-card-info p {
    margin: 0;
    font-size: 1.1rem;
    color: #444;
}
@media (max-width: 700px) {
    .contact-card {
        flex-direction: column;
        gap: 1.2rem;
        padding: 1.2rem 1rem;
        max-width: 95vw;
        text-align: center;
    }
    .contact-card-img {
        justify-content: center;
        margin-bottom: 0.5rem;
    }
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background: #144272;
    min-height: 64px;
    box-shadow: 0 2px 12px rgba(10,38,71,0.07);
    position: relative;
    z-index: 10;
}
.navbar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-right: 2.5rem;
    white-space: nowrap;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    text-shadow: 0 2px 8px rgba(10,38,71,0.10);
    padding: 0.2em 0.7em;
    border-radius: 12px;
    /*background: rgba(255,255,255,0.07);*/
}
.navbar ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.navbar li {
    position: relative;
}
.navbar li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.5em 1.1em;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    display: block;
}
.navbar li a.active, .navbar li a[aria-current="page"] {
    background: #fff;
    color: #0a2647;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(10,38,71,0.08);
}
/* Para la caja de las secciones al hacer click
.navbar li a:hover {
    background: #205295;
    color: #fff;
}*/

/* Para que el contenido no se superponga a la navbar */
body {
    margin: 0;
    padding: 0;
    background: #f6f8fa;
}
.section {
    margin-top: 1.5rem;
}

/* Footer elegante */
.footer {
    background: #144272;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 2rem 1.1rem 2rem;
    font-size: 1rem;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    box-shadow: 0 -2px 12px rgba(10,38,71,0.07);
    margin-top: 3rem;
}
.footer .footer-left {
    font-size: 1rem;
    font-weight: 500;
}
.footer .footer-social {
    display: flex;
    gap: 1.2rem;
}
.footer .footer-social img {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px;
    min-height: 50px;
    max-width: 50px;
    max-height: 50px;
    object-fit: contain;
    display: inline-block;
    filter: none;
    transition: transform 0.2s, filter 0.2s;
}
.footer .footer-social img:hover {
    transform: scale(1.13) rotate(-7deg);
    filter: brightness(1.2) drop-shadow(0 2px 8px #205295);
}

@media (max-width: 700px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0 1rem;
    }
    .navbar-title {
        margin-right: 0;
        margin-bottom: 0.5rem;
        font-size: 1.05rem;
        padding: 0.2em 0.5em;
    }
    .footer {
        flex-direction: column;
        gap: 0.7rem;
        padding: 1.1rem 1rem;
        font-size: 0.98rem;
        text-align: center;
    }
    .footer .footer-social {
        justify-content: center;
        gap: 1rem;
    }
}

/* Home center layout */
.home-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 3rem auto 2.5rem auto;
    max-width: 600px;
}
.home-center .profile-img {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    background: #f5f5f5;
}
.home-center-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: justify;
}
.home-center-info h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 500;
}
.home-center-info p {
    margin: 0;
    font-size: 1.1rem;
    color: #000000;
    text-align: justify;
}

@media (max-width: 700px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0 1rem;
    }
    .navbar-title {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    .home-center {
        flex-direction: column;
        gap: 1.2rem;
        max-width: 95vw;
    }
    .home-center-info {
        align-items: center;
        text-align: center;
    }
}
/* Home section flex layout */
.home-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.home-photo {
    flex: 0 0 auto;
}

.home-info {
    flex: 1 1 0;
    min-width: 250px;
}

/* Vertical cards layout */
.vertical-cards {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.vertical-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1.5px 6px rgba(0,0,0,0.04);
    padding: 1.5rem 2rem;
    transition: box-shadow 0.2s;
    min-height: 160px;
    position: relative;
}

.vertical-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.13), 0 3px 12px rgba(0,0,0,0.07);
}

.card-content {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: #000000;
}

.card-image {
    flex: 0 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 120px;
}

.side-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    background: #f5f5f5;
}

/* Alternating card layout */
.left-card {
    flex-direction: row;
}
.right-card {
    flex-direction: row-reverse;
}
.left-image {
    margin-right: 1.5rem;
}
.right-image {
    margin-left: 1.5rem;
}

@media (max-width: 700px) {
    .home-flex {
        flex-direction: column;
        gap: 1.5rem;
    }
    .vertical-card, .left-card, .right-card {
        flex-direction: column !important;
        align-items: stretch;
        text-align: center;
    }
    .card-image, .left-image, .right-image {
        margin: 0 !important;
        justify-content: center;
        min-width: 0;
    }
    .side-img {
        margin: 0 auto;
    }
}
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f9fcff;
    color: #0a2647;
}


/* NAVBAR RESPONSIVE */
.navbar {
    position: fixed;
    width: 100%;
    background: #144272;
    padding: 10px 0;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    box-sizing: border-box;
}
.navbar-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-left: 2rem;
}
.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0 2rem 0 0;
    padding: 0;
    transition: max-height 0.3s ease;
}
.nav-links li {
    position: relative;
}
.nav-links li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.5em 1.1em;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    display: block;
}
.nav-links li a.active, .nav-links li a[aria-current="page"] {
    background: #fff;
    color: #0a2647;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(10,38,71,0.08);
}
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
    margin-right: 1.5rem;
}

@media (max-width: 900px) {
    .navbar-title {
        font-size: 1.05rem;
        margin-left: 1rem;
    }
    .nav-links {
        margin-right: 1rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-links {
        flex-direction: column;
        width: 100%;
        background: #144272;
        position: absolute;
        top: 100%;
        left: 0;
        max-height: 0;
        overflow: hidden;
        margin: 0;
        padding: 0;
        box-shadow: 0 8px 24px rgba(10,38,71,0.10);
    }
    .nav-links.active {
        display: flex;
        max-height: 500px;
        padding-bottom: 1rem;
        transition: max-height 0.3s ease;
    }
    .nav-links li {
        text-align: center;
        margin: 0.5rem 0;
    }
}

body, html {
    max-width: 100vw;
    overflow-x: hidden;
}

/* SECTIONS */
.section {
    padding: 80px 20px;
    text-align: center;
}

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

/* IMAGE */
.profile-img {
    width: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
}

/* CARDS */
.cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    width: 250px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.card a {
    display: inline-block;
    margin-top: 10px;
    color: #85c1e9;
}

/* BUTTON */
.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #2e6891;
    color: white;
    border-radius: 8px;
    text-decoration: none;
}

.btn:hover {
    background: #bbdefb;
    color: #0a2647;
    box-shadow: 0 4px 16px rgba(32,82,149,0.13);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .cards {
        flex-direction: column;
        align-items: center;
    }
}

/* BOTÓN HAMBURGUESA */
.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: white;
}

/* RESPONSIVE NAVBAR */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .navbar {
        flex-wrap: wrap;
    }

    .navbar ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #144272;
        margin-top: 10px;
    }

    .navbar ul.active {
        display: flex;
    }

    .navbar li {
        text-align: center;
    }
}