
        /* --- VARIABLES --- */
        :root {
            --primary-blue: #0b2545; 
            --accent-gold: #aa7c33;  
            --text-dark: #333333;
            --bg-light: #f5f5f3;    
            --white: #ffffff;
            --font-serif: 'Marcellus', serif;
            --font-sans: 'Montserrat', sans-serif;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--font-sans);
            color: var(--text-dark);
            background-color: var(--white);
            line-height: 1.5;
        }

        /* --- CABECERA --- */
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 4%;
            background-color: var(--white);
            position: relative;
            z-index: 10;
        }

        .logo-container {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .logo-img {
            width: 60px; 
            height: auto;
        }

        .logo-text h1 {
            font-family: var(--font-serif);
            font-size: 24px;
            color: var(--primary-blue);
            letter-spacing: 1px;
            line-height: 1;
        }

        .logo-text p {
            font-size: 11px;
            color: var(--text-dark);
            font-weight: 500;
            margin-top: 2px;
        }

        nav ul {
            display: flex;
            list-style: none;
            gap: 20px;
            align-items: center; /* Mantiene los items alineados verticalmente al centro */
        }

        nav ul li a {
            text-decoration: none;
            color: var(--primary-blue);
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.5px;
            transition: color 0.2s ease;
            text-transform: uppercase;
            /* AQUÍ ESTÁ LA MAGIA PARA CENTRAR EL TEXTO EN DOS LÍNEAS */
            display: block; 
            text-align: center;
            line-height: 1.2; 
        }

        nav ul li a:hover {
            color: var(--accent-gold);
        }

        /* Botón de donativo */
        .btn-donate {
            background-color: var(--accent-gold);
            color: var(--white);
            padding: 8px 14px; 
            border-radius: 4px;
            text-decoration: none;
            font-size: 11px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: background-color 0.2s ease;
            text-transform: uppercase;
        }

        .btn-donate:hover {
            background-color: #8a6225;
        }
        
        /* --- FOOTER --- */
.site-footer {
    background:
        linear-gradient(135deg, #071a33 0%, #0b2545 100%);
    color: var(--white);
    padding: 72px 8% 28px 8%;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(170, 124, 51, 0.18);
    border-radius: 50%;
}

.site-footer::after {
    content: '';
    position: absolute;
    bottom: -140px;
    left: -110px;
    width: 280px;
    height: 280px;
    background-color: rgba(255, 255, 255, 0.025);
    border-radius: 50%;
}

.footer-container {
    max-width: 1250px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 0.75fr 0.9fr 0.9fr;
    gap: 42px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Marca */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
}

.footer-logo img {
    width: 58px;
    height: auto;
}

.footer-logo h2 {
    font-family: var(--font-serif);
    font-size: 26px;
    line-height: 1;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 1px;
}

.footer-logo p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 4px;
}

.footer-description {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    max-width: 420px;
    margin-bottom: 24px;
}

/* Redes */
.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.25s ease;
}

.footer-social a:hover {
    background-color: var(--accent-gold);
    transform: translateY(-3px);
}

/* Columnas */
.footer-col h3 {
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 58px;
    height: 2px;
    background-color: var(--accent-gold);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 11px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col ul li a:hover {
    color: var(--accent-gold);
    padding-left: 4px;
}

/* Contacto */
.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 14px;
}

.footer-contact p i {
    color: var(--accent-gold);
    margin-top: 2px;
}

.footer-contact p a {
    color: rgba(255, 255, 255, 0.72);
}

.footer-contact p a:hover {
    color: var(--accent-gold);
}

.footer-donate-btn {
    margin-top: 14px;
    background-color: var(--accent-gold);
    color: var(--white) !important;
    text-decoration: none;
    font-size: 11px !important;
    font-weight: 700;
    text-transform: uppercase;
    padding: 13px 18px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: all 0.25s ease;
}

.footer-donate-btn:hover {
    background-color: #8a6225;
    padding-left: 18px !important;
    gap: 12px;
}

/* Footer inferior */
.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.62);
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom-links a,
.footer-bottom-links span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: var(--accent-gold);
}

/* Footer inferior */
.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.62);
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom-links a,
.footer-bottom-links span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: var(--accent-gold);
}

/* Responsividad footer */
@media (max-width: 1050px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 38px;
    }
}

@media (max-width: 700px) {
    .site-footer {
        padding: 62px 6% 26px 6%;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-logo h2 {
        font-size: 24px;
    }
}
/* --- ACCIONES DEL HEADER --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- BOTÓN HAMBURGUESA --- */
.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 4px;
    background-color: var(--primary-blue);
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.menu-toggle:hover {
    background-color: var(--accent-gold);
}

.menu-toggle:active {
    transform: scale(0.96);
}

/* --- MENÚ RESPONSIVE --- */
@media (max-width: 1024px) {
    header {
        position: relative;
        flex-wrap: wrap;
        gap: 14px;
    }

    .menu-toggle {
        display: flex;
    }

    nav.main-nav {
        display: none;
        width: 100%;
        order: 3;
        background-color: var(--white);
        border-top: 1px solid rgba(11, 37, 69, 0.08);
        padding-top: 14px;
        margin-top: 8px;
        animation: mobileMenuFade 0.25s ease both;
    }

    nav.main-nav.active {
        display: block;
    }

    nav.main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    nav.main-nav ul li {
        width: 100%;
    }

    nav.main-nav ul li a {
        display: block;
        width: 100%;
        max-width: none !important;
        padding: 14px 4px;
        border-bottom: 1px solid rgba(11, 37, 69, 0.07);
        color: var(--primary-blue);
        text-align: left;
    }

    nav.main-nav ul li a::after {
        display: none;
    }

    .btn-donate {
        padding: 11px 16px;
        font-size: 11px;
    }
}

@keyframes mobileMenuFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- AJUSTES PARA CELULAR PEQUEÑO --- */
@media (max-width: 520px) {
    header {
        padding: 18px 6%;
    }

    /* --- .logo-text p {--- */
    /* ---    display: none;--- */
    /* ---}--- */

    .btn-donate {
        display: none;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
    }
}
/* --- PÁGINA HITOS INSTITUCIONALES --- */
.milestones-page {
    background-color: var(--white);
}

.milestones-container {
    max-width: 1180px;
    margin: 0 auto;
}

/* HERO */
.milestones-hero {
    background:
        linear-gradient(135deg, rgba(11, 37, 69, 0.78), rgba(7, 26, 51, 0.72)),
        var(--milestones-hero-image, url('https://images.unsplash.com/photo-1457369804613-52c61a468e7d?auto=format&fit=crop&w=1600&q=80')) no-repeat center center/cover;
    padding: 135px 8% 105px 8%;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.milestones-hero::after {
    content: '';
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(170, 124, 51, 0.26);
    border-radius: 50%;
}

.milestones-hero-container {
    max-width: 850px;
    position: relative;
    z-index: 2;
}

.milestones-hero h1,
.milestones-hero h2.milestones-hero-title {
    font-family: var(--font-serif);
    font-size: 52px;
    line-height: 1.12;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 24px;
}

.milestones-hero h1::after,
.milestones-hero h2.milestones-hero-title::after {
    content: '';
    display: block;
    width: 160px;
    height: 2px;
    background-color: var(--accent-gold);
    margin-top: 24px;
}

.milestones-hero p {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.8);
    max-width: 760px;
}


/* INTRO */
.milestones-intro {
    background-color: var(--bg-light);
    padding: 85px 8% 70px 8%;
    position: relative;
    overflow: hidden;
}

.milestones-intro::before {
    content: '';
    position: absolute;
    top: -110px;
    right: -120px;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(170, 124, 51, 0.15);
    border-radius: 50%;
}

.milestones-intro-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.milestones-intro-content h2 {
    font-family: var(--font-serif);
    font-size: 38px;
    line-height: 1.2;
    font-weight: 400;
    color: var(--primary-blue);
    margin-bottom: 18px;
}

.milestones-intro-content h2::after {
    content: '';
    display: block;
    width: 150px;
    height: 2px;
    background-color: var(--accent-gold);
    margin: 20px auto 0 auto;
}

.milestones-intro-content p {
    font-size: 14px;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 0;
}

/* FILTROS VISUALES */
.milestones-filter-tags {
    margin-top: 34px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    color: var(--primary-blue);
    border: 1px solid rgba(11, 37, 69, 0.08);
    border-radius: 50px;
    padding: 10px 15px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.filter-tag:hover {
    transform: translateY(-2px);
    border-color: rgba(170, 124, 51, 0.4);
}

.filter-tag.active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}


/* LISTADO */
.milestones-list-section {
    background-color: var(--white);
    padding: 90px 8% 105px 8%;
    position: relative;
    overflow: hidden;
}

.milestones-list-section::before {
    content: '';
    position: absolute;
    top: 120px;
    left: -120px;
    width: 320px;
    height: 320px;
    background-color: rgba(11, 37, 69, 0.035);
    border-radius: 50%;
}

.milestones-list {
    display: grid;
    gap: 34px;
    position: relative;
    z-index: 2;
}

/* CARD LISTA */
.milestone-list-card {
    display: grid;
    grid-template-columns: 390px 1fr;
    background-color: var(--bg-light);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(11, 37, 69, 0.07);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.055);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.milestone-list-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.095);
    border-color: rgba(170, 124, 51, 0.38);
}

/* IMAGEN */
.milestone-image {
    position: relative;
    min-height: 290px;
    overflow: hidden;
    background-color: #e8e8e8;
}

.milestone-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease, filter 0.8s ease;
}

.milestone-list-card:hover .milestone-image img {
    transform: scale(1.06);
    filter: saturate(1.05);
}

.milestone-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(11, 37, 69, 0.02),
            rgba(11, 37, 69, 0.58)
        );
}

/* Para documentos escaneados */
.document-image img {
    object-fit: contain;
    padding: 20px;
    background-color: var(--white);
}

.document-image::after {
    background:
        linear-gradient(
            to bottom,
            rgba(11, 37, 69, 0),
            rgba(11, 37, 69, 0.16)
        );
}

/* TIPO SOBRE IMAGEN */
.milestone-type {
    position: absolute;
    top: 18px;
    left: 18px;
    background-color: var(--accent-gold);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    padding: 8px 13px;
    border-radius: 50px;
    z-index: 2;
}

/* CONTENIDO */
.milestone-content {
    padding: 42px 42px 40px 42px;
    position: relative;
    overflow: hidden;
}

.milestone-content::after {
    content: '';
    position: absolute;
    right: -75px;
    bottom: -75px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(170, 124, 51, 0.2);
    border-radius: 50%;
}

.milestone-content > * {
    position: relative;
    z-index: 2;
}

.milestone-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

/* TAG ANTES DEL RESUMEN */
.milestone-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(170, 124, 51, 0.12);
    color: var(--accent-gold);
    border: 1px solid rgba(170, 124, 51, 0.22);
    border-radius: 50px;
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

a.milestone-tag.tag-filter-link:hover {
    background-color: rgba(170, 124, 51, 0.22);
    border-color: rgba(170, 124, 51, 0.5);
    color: var(--accent-gold);
}

a.milestone-type.tag-filter-link {
    text-decoration: none;
}

a.milestone-type.tag-filter-link:hover {
    background-color: #8a6225;
    color: var(--white);
}

.milestone-date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #666666;
    font-size: 11px;
    font-weight: 600;
}

.milestone-date i {
    color: var(--accent-gold);
}

.milestone-content h2 {
    font-family: var(--font-serif);
    font-size: 31px;
    line-height: 1.2;
    font-weight: 400;
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.milestone-content h2::after {
    content: '';
    display: block;
    width: 130px;
    height: 2px;
    background-color: var(--accent-gold);
    margin-top: 18px;
}

.milestone-content p {
    font-size: 14px;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 26px;
    max-width: 690px;
}

.milestone-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background-color: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    padding: 13px 20px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.milestone-link:hover {
    background-color: var(--accent-gold);
    transform: translateY(-3px);
}

.milestone-link i {
    font-size: 12px;
}


/* RESPONSIVE */
@media (max-width: 1050px) {
    .milestone-list-card {
        grid-template-columns: 320px 1fr;
    }

    .milestone-content {
        padding: 36px 34px;
    }

    .milestone-content h2 {
        font-size: 27px;
    }
}

@media (max-width: 820px) {
    .milestone-list-card {
        grid-template-columns: 1fr;
    }

    .milestone-image {
        min-height: 300px;
    }
}

@media (max-width: 700px) {
    .milestones-hero {
        padding: 110px 6% 80px 6%;
    }

    .milestones-hero h1,
    .milestones-hero h2.milestones-hero-title {
        font-size: 38px;
    }

    .milestones-intro,
    .milestones-list-section {
        padding-left: 6%;
        padding-right: 6%;
    }

    .milestones-intro-content h2 {
        font-size: 30px;
    }

    .milestones-list {
        gap: 26px;
    }

    .milestone-image {
        min-height: 250px;
    }

    .milestone-content {
        padding: 32px 26px;
    }

    .milestone-content h2 {
        font-size: 24px;
    }

    .milestone-content p {
        font-size: 13px;
    }

    .milestone-link {
        width: 100%;
        justify-content: center;
        border-radius: 12px;
    }
}
.milestone-list-card.hidden,
.milestone-list-card.page-hidden {
    display: none;
}

/* ---------- Browse / búsqueda (mismo estilo que artículos) ---------- */
.hitos-browse .milestones-list {
    gap: 34px;
    position: relative;
    z-index: 2;
}

.hitos-browse .milestones-container {
    max-width: none;
    padding: 0;
}

.hitos-intro .milestones-intro-content {
    max-width: 720px;
}