.municipality-legacy-page #laciudad {
    margin: 0 0 10px;
    color: #2c2c2c;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.25;
}

.municipality-legacy-page #menu .active {
    background: #bc1817;
}

.municipality-legacy-page #contenido-alcaldes {
    position: relative;
    z-index: 1;
    width: 95%;
    margin: auto;
}

.municipality-legacy-page .menualcaldes {
    margin: 25px 0;
}

.municipality-legacy-page .menu2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.municipality-legacy-page .menu2 li a {
    text-decoration: none;
}

.municipality-legacy-page .menu2 li button {
    padding: 10px 18px;
    border: 0;
    border-radius: 20px;
    color: #444;
    background: #f1f3f5;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.municipality-legacy-page .menu2 li button:hover,
.municipality-legacy-page .menu2 li button:focus-visible,
.municipality-legacy-page .menu2 li button.active {
    color: #fff;
    background: #bc1817;
}

.municipality-legacy-page .timeline {
    position: relative;
    margin: 0;
    padding: 40px 0;
    list-style: none;
}

.municipality-legacy-page .timeline::after {
    display: block;
    clear: both;
    content: '';
}

.municipality-legacy-page .timeline::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% - 2px);
    width: 4px;
    background: linear-gradient(to bottom, #74c0fc, #4dabf7);
    content: '';
}

.municipality-legacy-page .timeline > li {
    position: relative;
    clear: both;
    margin: 60px 0;
}

.municipality-legacy-page .timeline > li::after {
    display: block;
    clear: both;
    content: '';
}

.municipality-legacy-page .timeline-panel {
    position: relative;
    width: 38%;
    padding: 20px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 20px rgb(0 0 0 / 8%);
    transition: all 0.3s ease;
}

.municipality-legacy-page .timeline-panel:hover {
    transform: translateY(-5px);
}

.municipality-legacy-page .timeline > li .timeline-panel {
    float: left;
}

.municipality-legacy-page .timeline > li.timeline-inverted .timeline-panel {
    float: right;
}

.municipality-legacy-page .timeline > li .timeline-panel::before {
    position: absolute;
    top: 25px;
    right: -12px;
    border-width: 12px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
    content: '';
}

.municipality-legacy-page .timeline > li.timeline-inverted .timeline-panel::before {
    right: auto;
    left: -12px;
    border-color: transparent #fff transparent transparent;
}

.municipality-legacy-page .timeline-badge {
    position: absolute;
    left: 50%;
    z-index: 2;
    display: flex;
    width: 60px;
    height: 60px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: #bc1817;
    box-shadow: 0 0 0 5px #fff;
    font-weight: 700;
    transform: translateX(-50%);
}

.municipality-legacy-page .timeline-badge p {
    margin: 0;
    color: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.municipality-legacy-page .timeline-title {
    margin: 0;
    color: inherit;
}

.municipality-legacy-page .timeline-title span {
    display: block;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #2f9e44;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.municipality-legacy-page .img-alc {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    text-align: center;
}

.municipality-legacy-page .img-alc img,
.municipality-legacy-page .legacy-portrait-placeholder {
    width: 120px;
    height: 120px;
    flex: 0 0 120px;
    border-radius: 50%;
}

.municipality-legacy-page .img-alc img {
    object-fit: cover;
}

.municipality-legacy-page .legacy-portrait-placeholder {
    display: grid;
    place-items: center;
    color: #fff;
    background: #777;
    font-size: 1.35rem;
    font-weight: 700;
}

.municipality-legacy-page .descripcion-alcalde {
    width: 100%;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    text-align: justify;
}

.municipality-legacy-page .descripcion-alcalde p {
    text-align: justify;
}

.municipality-legacy-page .descripcion-alcalde > :last-child {
    margin-bottom: 0;
}

.municipality-legacy-page .descripcion-alcalde__period {
    margin: 0 0 8px;
    font-weight: 600;
}

.municipality-legacy-page .legacy-empty {
    margin: 36px 0;
    color: #555;
    text-align: center;
}

.municipality-legacy-page--symbols #contenido-simbolos {
    margin-top: 1.5rem;
}

.municipality-legacy-page .legacy-symbol-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.municipality-legacy-page .legacy-symbol-card__media {
    display: flex;
    min-height: 300px;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.municipality-legacy-page .legacy-symbol-card__media img {
    width: 100%;
    max-width: 350px;
    max-height: 420px;
    object-fit: contain;
}

.municipality-legacy-page .legacy-symbol-placeholder {
    display: grid;
    width: min(100%, 350px);
    min-height: 240px;
    place-items: center;
    color: #666;
    background: #f1f3f5;
}

.municipality-legacy-page .legacy-symbol-card .card-title {
    margin-bottom: 0.75rem;
    color: #333;
    font-size: 1.25rem;
    font-weight: 600;
}

.municipality-legacy-page .legacy-symbol-description,
.municipality-legacy-page .legacy-symbol-description p {
    color: #333;
    line-height: 1.55;
    text-align: justify;
}

.municipality-legacy-page .legacy-symbol-description > :last-child {
    margin-bottom: 0;
}

.municipality-legacy-page .legacy-symbol-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.municipality-legacy-page .legacy-media-shortcuts {
    margin-top: 2.5rem;
}

@media (max-width: 768px) {
    .municipality-legacy-page .timeline::before {
        left: 20px;
    }

    .municipality-legacy-page .timeline-badge {
        left: 20px;
        width: 54px;
        height: 54px;
        transform: none;
    }

    .municipality-legacy-page .timeline-badge p {
        font-size: 15px;
    }

    .municipality-legacy-page .timeline > li .timeline-panel,
    .municipality-legacy-page .timeline > li.timeline-inverted .timeline-panel {
        width: calc(100% - 70px);
        float: right;
    }

    .municipality-legacy-page .timeline > li .timeline-panel::before,
    .municipality-legacy-page .timeline > li.timeline-inverted .timeline-panel::before {
        right: auto;
        left: -12px;
        border-color: transparent #fff transparent transparent;
    }

    .municipality-legacy-page .legacy-symbol-card__media {
        min-height: 0;
    }

    .municipality-legacy-page .legacy-symbol-card__media img {
        height: auto;
    }
}

@media (max-width: 480px) {
    .municipality-legacy-page #laciudad {
        font-size: 1.15rem;
    }

    .municipality-legacy-page #contenido-alcaldes {
        width: 100%;
    }

    .municipality-legacy-page .menu2 {
        gap: 8px;
    }

    .municipality-legacy-page .menu2 li button {
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    .municipality-legacy-page .timeline {
        padding: 20px 0;
    }

    .municipality-legacy-page .timeline > li {
        margin: 42px 0;
    }

    .municipality-legacy-page .timeline > li .timeline-panel,
    .municipality-legacy-page .timeline > li.timeline-inverted .timeline-panel {
        padding: 16px;
    }

    .municipality-legacy-page .timeline-title span {
        font-size: 16px;
    }

    .municipality-legacy-page .img-alc img,
    .municipality-legacy-page .legacy-portrait-placeholder {
        width: 110px;
        height: 110px;
        flex-basis: 110px;
    }
}
