:root {
    --navy: #0f1f3d;
    --navy-dark: #0a1529;
    --gold: #b08d57;
    --gold-light: #d4af7a;
    --text-muted-light: #6c7a89;
}

body {
    font-family: 'Source Sans 3', system-ui, sans-serif;
    color: #26333f;
}

h2, h3 {
    font-family: 'Playfair Display', serif;
}

.icono-svg {
    width: 1em;
    height: 1em;
    fill: none;
}

.monograma {
    width: 30px;
    height: 30px;
    border: 1.5px solid var(--gold-light);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    flex-shrink: 0;
}

.monograma .icono-svg {
    width: 14px;
    height: 14px;
}

.marca-texto {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 0.5px;
}

#mainNav {
    background: rgba(15, 31, 61, 0.75);
    backdrop-filter: blur(6px);
    padding: 1.1rem 0;
    transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

#mainNav.scrolled {
    background: rgba(10, 21, 41, 0.97);
    padding: 0.55rem 0;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

#mainNav .navbar-brand {
    color: var(--gold-light);
    font-weight: 700;
    letter-spacing: 0.5px;
}

#mainNav .nav-link {
    color: #e7ecf3;
    font-weight: 600;
    font-size: 0.92rem;
    position: relative;
    transition: color 0.2s ease;
}

#mainNav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--gold-light);
    transition: width 0.25s ease;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--gold-light);
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after {
    width: 100%;
}

.hero {
    min-height: 100vh;
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding-top: 80px;
}

.monograma-hero {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.5rem;
    border: 1.5px solid var(--gold-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    animation: aparecer 0.9s ease both;
}

.monograma-hero .icono-svg {
    width: 22px;
    height: 22px;
}

.hero .eyebrow {
    color: var(--gold-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    animation: aparecer 0.9s ease 0.1s both;
}

.hero-nombre {
    animation: aparecer 0.9s ease 0.2s both;
}

.hero-linea {
    animation: aparecer 0.9s ease 0.3s both;
}

.hero .lead {
    animation: aparecer 0.9s ease 0.4s both;
}

.hero .btn-outline-light {
    animation: aparecer 0.9s ease 0.5s both;
}

@keyframes aparecer {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-nombre {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    letter-spacing: 0.5px;
    line-height: 1.15;
    margin-bottom: 0;
    color: #fff;
}

.hero-linea {
    width: 90px;
    height: 2px;
    background: var(--gold);
    margin: 1.4rem auto 1.6rem;
}

.hero .lead {
    max-width: 700px;
    margin: 0 auto;
    color: #cdd6e4;
}

.hero .btn-outline-light {
    border-color: var(--gold-light);
    color: var(--gold-light);
}

.hero .btn-outline-light:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--navy-dark);
}

.stats-strip {
    background: var(--navy-dark);
    padding: 4.5rem 0;
    position: relative;
    border-top: 1px solid rgba(212, 175, 122, 0.3);
    box-shadow: 0 -30px 40px -30px rgba(0, 0, 0, 0.4) inset;
}

.stats-strip::before {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 0 auto 3rem;
}

.stats-strip .row > div {
    position: relative;
}

.stats-strip .row > div:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(212, 175, 122, 0.2);
}

@media (max-width: 767px) {
    .stats-strip .row > div:nth-child(odd)::after {
        display: none;
    }
}

.stat-card {
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icono {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 0.6rem;
    display: block;
    opacity: 0.85;
}

.stat-numero {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: clamp(2.1rem, 4vw, 3rem);
    color: var(--gold-light);
    line-height: 1;
}

.stat-etiqueta {
    color: #b9c4d3;
    font-size: 0.82rem;
    letter-spacing: 0.4px;
    margin-top: 0.5rem;
    max-width: 160px;
    margin-inline: auto;
}

.section {
    padding: 5rem 0;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .monograma-hero,
    .hero .eyebrow,
    .hero-nombre,
    .hero-linea,
    .hero .lead,
    .hero .btn-outline-light {
        animation: none;
    }
}

.section-title {
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 0.75rem auto 0;
}

.perfil-texto {
    color: #3d4a58;
    line-height: 1.8;
}

.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid #e2e6ec;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2.45rem;
    top: 0.3rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--gold);
}

.timeline-periodo {
    display: inline-block;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.timeline-content h5 {
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.card-diplomado {
    background: #fff;
    border: 1px solid #e5e9ef;
    border-left: 3px solid var(--gold);
    border-radius: 6px;
    padding: 1rem 1.2rem;
    height: 100%;
}

.recurso-card {
    background: #fff;
    border-radius: 10px;
    padding: 2.2rem 1.2rem;
    box-shadow: 0 4px 18px rgba(15, 31, 61, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.recurso-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(15, 31, 61, 0.12);
}

.recurso-card i {
    font-size: 2.4rem;
    color: var(--gold);
}

.recurso-card h5 {
    color: var(--navy);
    font-weight: 700;
}

.badge-en-curso {
    background: var(--gold);
    color: #fff;
}

.lista-recurso {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    max-height: 220px;
    overflow-y: auto;
}

.lista-recurso li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eef0f3;
    line-height: 1.4;
    color: #3d4a58;
}

.lista-recurso li:last-child {
    border-bottom: none;
}

.lista-recurso a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
}

.lista-recurso a:hover {
    color: var(--gold);
    text-decoration: underline;
}

.enlace-orcid {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #d7c8ac;
    border-radius: 999px;
    padding: 0.5rem 1.2rem;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.enlace-orcid:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.orcid-badge {
    flex-shrink: 0;
}

.noticia-card {
    background: #fff;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    padding: 1.3rem;
    height: 100%;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.noticia-card:hover {
    border-color: var(--gold);
    box-shadow: 0 6px 20px rgba(15, 31, 61, 0.08);
}

.filtro-noticias {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.btn-filtro {
    border: 1px solid #d7c8ac;
    background: #fff;
    color: var(--navy);
    border-radius: 999px;
    padding: 0.35rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-filtro:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-filtro.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.noticia-fuente {
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.noticia-card h6 {
    color: var(--navy);
    font-weight: 700;
    line-height: 1.4;
}

#contacto .section-title::after {
    background: var(--gold-light);
}

.contacto-item {
    color: #e7ecf3;
    text-decoration: none;
    font-weight: 600;
}

.contacto-item i {
    color: var(--gold-light);
    margin-right: 0.4rem;
}

.contacto-item:hover {
    color: var(--gold-light);
}
