.pgx-body {
    background-color: #f2f4f7;
    min-height: 100vh;
}

.pgx-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background-color: var(--skin-c2, #343a40);
    color: var(--skin-text, #fff);
}

.pgx-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

.pgx-brand:hover {
    color: inherit;
    text-decoration: none;
}

.pgx-logo {
    height: 38px;
    width: auto;
    border-radius: 6px;
}

.pgx-dark-toggle {
    background: transparent;
    border: 0;
    color: inherit;
    font-size: 1.15rem;
    cursor: pointer;
    padding: 6px 10px;
}

.pgx-salir-form {
    margin: 0;
}

.pgx-acciones {
    display: flex;
    align-items: center;
}

a.pgx-dark-toggle,
a.pgx-dark-toggle:hover {
    color: inherit;
    text-decoration: none;
}

.pgx-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

.pgx-listado-titulo {
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.pgx-listado {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.pgx-programa {
    margin: 0;
    overflow: hidden;
    transition: box-shadow .2s ease;
}

.pgx-programa:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}

.pgx-programa-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 560 / 230;
    background: var(--skin-grad, #6c757d);
    overflow: hidden;
}

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

.pgx-programa-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
}

.pgx-programa-titulo {
    margin: 0 0 6px;
    font-weight: 700;
}

.pgx-programa-estado {
    display: inline-block;
    margin-top: 10px;
    font-size: .85rem;
}

.pgx-programa-cta {
    flex: none;
    min-width: 190px;
}

@media (max-width: 640px) {
    .pgx-programa-body {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 16px;
    }

    .pgx-programa-cta {
        min-width: 0;
    }
}

.pgx-aviso {
    max-width: 560px;
    margin: 0 auto;
}

body.dark-mode.pgx-body {
    background-color: #1b1e21;
}

body.dark-mode .pgx-topbar {
    background-color: #24282c;
}

body.dark-mode .card,
body.dark-mode .card.bg-white,
body.dark-mode .card.bg-light {
    background-color: #2b3035 !important;
    color: #e4e6e8;
}

body.dark-mode .form-control,
body.dark-mode .custom-select {
    background-color: #1f2327;
    border-color: #4a5056;
    color: #e4e6e8;
}

body.dark-mode .text-muted {
    color: #9aa1a8 !important;
}

.pgx-pasos {
    list-style: none;
    counter-reset: pgx-paso;
    padding-left: 0;
    margin: 0;
}

.pgx-pasos li {
    counter-increment: pgx-paso;
    position: relative;
    padding: 0 0 14px 42px;
}

.pgx-pasos li::before {
    content: counter(pgx-paso);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--skin-grad, #6c757d);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

#leemeContinuar.disabled {
    opacity: .5;
    pointer-events: none;
}

.pgx-label {
    margin-bottom: .15rem;
}

.pgx-label small {
    font-weight: 600;
}

.pgx-con-captcha {
    padding-bottom: 120px;
}
