.candidatos-page {
    padding-bottom: 3rem;
}

.candidatos-back {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 0;
}

.candidatos-intro {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1.5rem 1rem;
    text-align: center;
}

.candidatos-intro__eyebrow {
    color: #888888;
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.candidatos-intro__title {
    color: #222222;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.candidatos-intro__title em {
    color: #cc0000;
    font-style: normal;
}

.candidatos-intro__lead {
    color: #666666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.candidatos-intro .votacion-periodo {
    margin-top: 1.25rem;
}

.candidatos-vote-cta {
    padding: 1rem 1.5rem 2rem;
    text-align: center;
}

.candidatos-register {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
}

.cargo-head {
    align-items: baseline;
    display: flex;
    gap: 1rem;
    margin: 3.5rem 0 1.5rem;
}

.cargo-head:first-of-type {
    margin-top: 0.5rem;
}

.cargo-head__num {
    color: #cc0000;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.cargo-head__title {
    color: #222222;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}

.cargo-head__rule {
    background: #dddddd;
    flex: 1;
    height: 1px;
}

.candidatos-pair {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr 1fr;
}

.candidatos-pair.single {
    grid-template-columns: 1fr;
}

.candidatos-pair.single .cedula {
    max-width: 520px;
}

.cedula {
    background: #ffffff;
    border-left: 4px solid #cc0000;
    box-shadow: 0 16px 40px -24px rgba(0, 0, 0, 0.25);
    display: grid;
    grid-template-columns: 96px 1fr;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.cedula:hover {
    box-shadow: 0 22px 48px -20px rgba(0, 0, 0, 0.28);
    transform: translateY(-3px);
}

.cedula__photo-wrap {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 1.25rem 0.75rem;
}

.cedula__photo {
    background: linear-gradient(155deg, #cc0000, #8f0000);
    border-radius: 50%;
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 4px #cc0000;
    height: 68px;
    overflow: hidden;
    width: 68px;
}

.cedula__photo img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.cedula__avatar {
    align-items: center;
    color: rgba(255, 255, 255, 0.92);
    display: flex;
    font-size: 1.5rem;
    font-weight: 700;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.cedula__body {
    border-left: 1px dashed rgba(0, 0, 0, 0.12);
    padding: 1.1rem 1.15rem 1.2rem;
}

.cedula__id {
    color: #888888;
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.cedula__name {
    color: #222222;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.cedula__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.9rem;
}

.cedula__links a {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 3px;
    color: #333333;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    text-decoration: none;
    transition: all 0.18s ease;
}

.cedula__links a:hover {
    background: #cc0000;
    border-color: #cc0000;
    color: #ffffff;
}

.cedula__links a.cedula__link--video {
    background: #cc0000;
    border-color: #cc0000;
    color: #ffffff;
}

.cedula__links a.cedula__link--video:hover {
    background: #a80000;
    border-color: #a80000;
}

.candidatos-modal {
    align-items: center;
    backdrop-filter: blur(3px);
    background: rgba(0, 0, 0, 0.72);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 2rem;
    position: fixed;
    z-index: 2000;
}

.candidatos-modal.open {
    display: flex;
}

.candidatos-modal__box {
    background: #ffffff;
    border-top: 4px solid #cc0000;
    border-radius: 6px;
    box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    height: min(88vh, 900px);
    max-width: 880px;
    overflow: hidden;
    width: 100%;
}

.candidatos-modal__box--video {
    height: auto;
    max-width: min(960px, 100%);
}

.candidatos-modal__head {
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: #333333;
    display: flex;
    font-size: 0.85rem;
    font-weight: 600;
    justify-content: space-between;
    padding: 0.85rem 1rem;
}

.candidatos-modal__close {
    background: transparent;
    border: none;
    color: #666666;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0.25rem 0.5rem;
}

.candidatos-modal__close:hover {
    color: #cc0000;
}

.candidatos-modal__media {
    background: #ffffff;
    flex: 1;
    min-height: 0;
}

.candidatos-modal__media--video {
    aspect-ratio: 16 / 9;
    background: #000000;
    flex: none;
    position: relative;
    width: 100%;
}

.candidatos-modal__media--video iframe {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.candidatos-modal__box iframe {
    background: #ffffff;
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
}

@media (max-width: 760px) {
    .candidatos-pair {
        grid-template-columns: 1fr;
    }

    .cargo-head__num {
        display: none;
    }

    .cargo-head__title {
        font-size: 1.15rem;
        white-space: normal;
    }

    .cedula {
        grid-template-columns: 80px 1fr;
    }
}
