/* Correcciones de alineación para controles iconográficos del frontend.
 * Se carga después del resto de hojas para neutralizar reglas heredadas
 * de Astra, Elementor u otros componentes visuales.
 */

.cp-personal-dashboard button.cp-dashboard-favorite {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    flex: 0 0 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    line-height: 0 !important;
    text-align: center !important;
    text-indent: 0 !important;
    vertical-align: middle;
}

.cp-personal-dashboard button.cp-dashboard-favorite > span {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-align: center;
    transform: translate(-50%, -50%) !important;
}

.cp-personal-dashboard button.cp-dashboard-favorite > span > svg {
    position: static !important;
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    transform: none !important;
}

.cp-campus-video-close,
.cp-dashboard-video-modal__header button,
.cp-tutor-profile-dialog__close,
.cp-profile-password-dialog__close {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    flex: 0 0 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    font-size: 0 !important;
    line-height: 0 !important;
    text-align: center !important;
    text-indent: 0 !important;
}

.cp-campus-video-close::before,
.cp-dashboard-video-modal__header button::before,
.cp-tutor-profile-dialog__close::before,
.cp-profile-password-dialog__close::before {
    display: block;
    margin: 0;
    padding: 0;
    content: "×";
    font-family: Arial, Helvetica, sans-serif;
    font-size: 27px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-1px);
}

.cp-dashboard-video-modal__header button {
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .12) !important;
    color: #ffffff !important;
}

@media (max-width: 480px) {
    .cp-campus-video-close,
    .cp-dashboard-video-modal__header button,
    .cp-tutor-profile-dialog__close,
    .cp-profile-password-dialog__close {
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        flex-basis: 40px !important;
    }
}

.cp-pdf-modal {
    width: min(1180px, calc(100vw - 28px));
    max-width: 1180px;
    height: min(92vh, 940px);
    max-height: 92vh;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    background: #ffffff;
    color: #13203a;
    box-shadow: 0 30px 100px rgba(5, 18, 42, .38);
}
.cp-pdf-modal::backdrop { background: rgba(5, 16, 35, .76); backdrop-filter: blur(3px); }
.cp-pdf-modal__shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; min-height: 0; }
.cp-pdf-modal__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 18px; border-bottom: 1px solid #dbe4f0; background: linear-gradient(180deg, #fff, #f7f9fd); }
.cp-pdf-modal__heading { min-width: 0; }
.cp-pdf-modal__heading .cp-campus-eyebrow { margin-bottom: 3px; }
.cp-pdf-modal__heading strong { display: block; overflow: hidden; color: #13203a; font-size: clamp(17px, 2vw, 22px); font-weight: 900; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.cp-pdf-modal__actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex: 0 0 auto; }
.cp-pdf-modal__actions .cp-campus-button { min-height: 38px; padding: 9px 13px; font-size: 13px; white-space: nowrap; }
.cp-pdf-modal__close { -webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; min-width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: #eaf0fb; color: #173f9f; font-family: Arial, Helvetica, sans-serif; font-size: 0; line-height: 0; cursor: pointer; }
.cp-pdf-modal__close::before { content: "×"; display: block; font-size: 28px; line-height: 1; transform: translateY(-1px); }
.cp-pdf-modal__close:hover { background: #dce7fa; }
.cp-pdf-modal__close:focus-visible { outline: 3px solid rgba(36, 87, 214, .34); outline-offset: 2px; }
.cp-pdf-modal__frame-wrap { min-height: 0; background: #eef2f7; }
.cp-pdf-modal__frame-wrap iframe { display: block; width: 100%; height: 100%; min-height: 520px; border: 0; background: #fff; }
.cp-pdf-modal__footer { padding: 9px 18px; border-top: 1px solid #dbe4f0; background: #f8faff; color: #667085; font-size: 12px; text-align: center; }

@media (max-width: 760px) {
    .cp-pdf-modal { width: calc(100vw - 14px); height: calc(100vh - 14px); max-height: calc(100vh - 14px); border-radius: 14px; }
    .cp-pdf-modal__header { align-items: flex-start; flex-direction: column; gap: 11px; padding: 13px; }
    .cp-pdf-modal__heading { width: 100%; padding-right: 46px; }
    .cp-pdf-modal__heading strong { white-space: normal; }
    .cp-pdf-modal__actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
    .cp-pdf-modal__actions .cp-campus-button { flex: 1 1 150px; justify-content: center; }
    .cp-pdf-modal__close { position: absolute; top: 10px; right: 10px; }
    .cp-pdf-modal__frame-wrap iframe { min-height: 420px; }
    .cp-pdf-modal__footer { display: none; }
}
