/* ==========================================================
   CONVERTODO
   PROTEGER PDF
========================================================== */

.hidden {
    display: none !important;
}


/* ==========================================================
   SUBIDA
========================================================== */

.protectpdf-upload-stage {
    width: min(900px, 100%);
    margin: 0 auto;
}


.protectpdf-drop-zone {

    min-height: 390px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 48px 30px;

    text-align: center;

    background: #ffffff;

    border:
        2px
        dashed
        #d9dce8;

    border-radius: 24px;

    box-shadow:
        0 12px 35px
        rgba(20, 23, 43, 0.05);

    transition: 0.2s;

}


.protectpdf-drop-zone.drag-over {

    border-color:
        var(--primary);

    background:
        #f6f6ff;

    transform:
        scale(1.004);

}


.protectpdf-upload-icon {

    width: 80px;
    height: 80px;

    display: grid;
    place-items: center;

    margin-bottom: 18px;

    border-radius: 23px;

    color:
        #ef4444;

    background:
        #fff0f0;

    font-size: 34px;

}


.protectpdf-drop-zone h2 {

    color:
        var(--dark);

    font-size: 28px;

    letter-spacing: -0.9px;

}


.protectpdf-drop-zone > p {

    max-width: 580px;

    margin:
        8px
        auto
        24px;

    color:
        var(--text-light);

    font-size: 14px;

    line-height: 1.6;

}


.protectpdf-select-button {

    min-height: 54px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    padding:
        13px
        25px;

    cursor: pointer;

    border-radius: 13px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #6964e8
        );

    box-shadow:
        0 11px 26px
        rgba(91, 92, 240, 0.25);

    font-size: 14px;
    font-weight: 800;

    transition: 0.2s;

}


.protectpdf-select-button:hover {

    transform:
        translateY(-2px);

}


.protectpdf-drop-help {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    margin-top: 18px;

    color:
        #979bab;

    font-size: 11px;

}


/* ==========================================================
   EDITOR
========================================================== */

.protectpdf-editor {

    width: 100%;

    padding: 24px;

    background: #ffffff;

    border:
        1px
        solid
        var(--border);

    border-radius: 24px;

    box-shadow:
        0 12px 38px
        rgba(20, 23, 43, 0.06);

}


.protectpdf-editor-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding-bottom: 20px;

    margin-bottom: 22px;

    border-bottom:
        1px
        solid
        var(--border);

}


/* ==========================================================
   DOCUMENTO
========================================================== */

.protectpdf-document-info {

    display: flex;

    align-items: center;

    gap: 13px;

    min-width: 0;

}


.protectpdf-document-preview {

    width: 65px;
    height: 76px;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    flex-shrink: 0;

    border-radius: 12px;

    color:
        #ef4444;

    background:
        #fff0f0;

    font-size: 26px;

}


.protectpdf-document-preview img {

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    background: #ffffff;

}


.protectpdf-document-copy {

    min-width: 0;

}


.protectpdf-document-copy > strong {

    display: block;

    max-width: 620px;

    overflow: hidden;

    color:
        var(--dark);

    font-size: 14px;

    text-overflow: ellipsis;

    white-space: nowrap;

}


.protectpdf-document-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 6px;

    color:
        #8d92a3;

    font-size: 10px;

}


.protectpdf-document-meta > span {

    display: inline-flex;

    align-items: center;

    gap: 5px;

}


.protectpdf-document-meta i {

    color:
        var(--primary);

}


.protectpdf-change-button {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    flex-shrink: 0;

    padding:
        10px
        14px;

    cursor: pointer;

    border:
        1px
        solid
        #dadee8;

    border-radius: 10px;

    color:
        #5d6275;

    background:
        #ffffff;

    font-size: 10px;
    font-weight: 700;

    transition: 0.2s;

}


.protectpdf-change-button:hover {

    color:
        var(--primary);

    border-color:
        var(--primary);

}


/* ==========================================================
   LAYOUT
========================================================== */

.protectpdf-layout {

    display: grid;

    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(390px, 1.1fr);

    gap: 22px;

    align-items: start;

}


/* ==========================================================
   IZQUIERDA
========================================================== */

.protectpdf-info-area {

    min-width: 0;

}


.protectpdf-visual-card {

    padding: 28px;

    border:
        1px
        solid
        var(--border);

    border-radius: 19px;

    background:
        #fcfcff;

}


.protectpdf-shield-visual {

    min-height: 230px;

    display: grid;

    place-items: center;

    position: relative;

    margin-bottom: 24px;

}


.protectpdf-shield-circle {

    width: 150px;
    height: 150px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            var(--primary),
            #6a6bf0
        );

    box-shadow:
        0 22px 45px
        rgba(91, 92, 240, 0.25);

    font-size: 60px;

}


.protectpdf-lock-card,
.protectpdf-device-card {

    position: absolute;

    display: flex;

    align-items: center;

    gap: 7px;

    padding:
        9px
        12px;

    border-radius: 10px;

    color:
        #555a6e;

    background:
        #ffffff;

    box-shadow:
        0 8px 22px
        rgba(20, 23, 43, 0.10);

    font-size: 9px;

    font-weight: 700;

}


.protectpdf-lock-card {

    left: 10px;
    top: 32px;

}


.protectpdf-device-card {

    right: 4px;
    bottom: 27px;

}


.protectpdf-lock-card i {

    color:
        var(--primary);

}


.protectpdf-device-card i {

    color:
        #10b981;

}


.protectpdf-visual-card > h3 {

    color:
        var(--dark);

    font-size: 18px;

}


.protectpdf-visual-card > p {

    margin-top: 6px;

    color:
        var(--text-light);

    font-size: 11px;

    line-height: 1.6;

}


.protectpdf-security-list {

    display: grid;

    gap: 10px;

    margin-top: 20px;

}


.protectpdf-security-list > div {

    display: flex;

    align-items: center;

    gap: 8px;

    color:
        #626779;

    font-size: 10px;

}


.protectpdf-security-list i {

    color:
        #10b981;

}


/* ==========================================================
   ADVERTENCIA
========================================================== */

.protectpdf-warning-card {

    display: flex;

    align-items: flex-start;

    gap: 11px;

    margin-top: 14px;

    padding:
        15px;

    border:
        1px
        solid
        #fde2b6;

    border-radius: 13px;

    background:
        #fffaf0;

}


.protectpdf-warning-card > i {

    margin-top: 1px;

    color:
        #f59e0b;

    font-size: 17px;

}


.protectpdf-warning-card strong {

    display: block;

    color:
        #4c3a0b;

    font-size: 10px;

}


.protectpdf-warning-card p {

    margin-top: 3px;

    color:
        #836b31;

    font-size: 9px;

    line-height: 1.5;

}


/* ==========================================================
   PANEL DERECHO
========================================================== */

.protectpdf-options-area {

    position: sticky;

    top: 88px;

    padding: 19px;

    border:
        1px
        solid
        var(--border);

    border-radius: 19px;

    background:
        #fcfcff;

}


.protectpdf-options-heading {

    display: flex;

    align-items: center;

    gap: 11px;

    margin-bottom: 15px;

}


.protectpdf-options-icon {

    width: 43px;
    height: 43px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border-radius: 11px;

    color:
        var(--primary);

    background:
        var(--primary-light);

    font-size: 19px;

}


.protectpdf-options-heading h3 {

    color:
        var(--dark);

    font-size: 17px;

}


.protectpdf-options-heading p {

    margin-top: 2px;

    color:
        var(--text-light);

    font-size: 9px;

}


/* ==========================================================
   TABS
========================================================== */

.protectpdf-tabs {

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 7px;

    padding: 4px;

    margin-bottom: 17px;

    border-radius: 12px;

    background:
        #f0f1f6;

}


.protectpdf-tab {

    min-height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    border: none;

    border-radius: 9px;

    color:
        #74798a;

    background:
        transparent;

    font-size: 10px;
    font-weight: 700;

    transition: 0.2s;

}


.protectpdf-tab.active {

    color:
        var(--primary);

    background:
        #ffffff;

    box-shadow:
        0 3px 10px
        rgba(20, 23, 43, 0.07);

}


/* ==========================================================
   PANEL
========================================================== */

.protectpdf-panel {

    padding:
        2px
        0
        16px;

}


.protectpdf-panel-heading {

    margin-bottom: 13px;

}


.protectpdf-panel-heading strong {

    display: block;

    color:
        var(--dark);

    font-size: 12px;

}


.protectpdf-panel-heading span {

    display: block;

    margin-top: 2px;

    color:
        #9195a6;

    font-size: 9px;

}


/* ==========================================================
   CAMPOS
========================================================== */

.protectpdf-field {

    margin-bottom: 11px;

}


.protectpdf-field > label {

    display: block;

    margin-bottom: 6px;

    color:
        #414658;

    font-size: 9.5px;

    font-weight: 700;

}


.protectpdf-password-wrap {

    position: relative;

    display: flex;

    align-items: center;

}


.protectpdf-password-wrap > i {

    position: absolute;

    left: 12px;

    color:
        var(--primary);

    font-size: 13px;

    pointer-events: none;

}


.protectpdf-password-wrap input {

    width: 100%;

    height: 45px;

    padding:
        9px
        43px
        9px
        35px;

    outline: none;

    border:
        1px
        solid
        #dce0e9;

    border-radius: 11px;

    color:
        var(--dark);

    background:
        #ffffff;

    font-size: 10px;

    transition: 0.2s;

}


.protectpdf-password-wrap input:focus {

    border-color:
        var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(91, 92, 240, 0.08);

}


.protectpdf-password-wrap input.invalid {

    border-color:
        #ef4444;

}


.protectpdf-password-wrap input.valid {

    border-color:
        #10b981;

}


.protectpdf-eye-button {

    position: absolute;

    right: 6px;

    width: 34px;
    height: 34px;

    display: grid;

    place-items: center;

    border: none;

    border-radius: 8px;

    color:
        #777c8d;

    background:
        transparent;

    transition: 0.2s;

}


.protectpdf-eye-button:hover {

    color:
        var(--primary);

    background:
        #f2f2fc;

}


/* ==========================================================
   REQUISITOS
========================================================== */

.protectpdf-requirements {

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 7px;

    margin-top: 12px;

    padding: 11px;

    border:
        1px
        solid
        #e5e7ef;

    border-radius: 11px;

    background:
        #f8f9fc;

}


.protectpdf-requirements.compact {

    margin:
        4px
        0
        14px;

}


.protectpdf-requirements > div {

    display: flex;

    align-items: center;

    gap: 6px;

    color:
        #8b8f9f;

    font-size: 8px;

}


.protectpdf-requirements > div i {

    font-size: 8px;

}


.protectpdf-requirements > div.met {

    color:
        #0d9b6b;

}


.protectpdf-requirements > div.met i::before {

    content:
        "\f26a";

}


.protectpdf-password-match {

    margin-top: 9px;

    padding:
        8px
        10px;

    border-radius: 9px;

    font-size: 8.5px;

}


.protectpdf-password-match.success {

    color:
        #087b58;

    background:
        #eafaf3;

}


.protectpdf-password-match.error {

    color:
        #b42318;

    background:
        #fff0ef;

}


/* ==========================================================
   SWITCH GENERAL
========================================================== */

.protectpdf-advanced-block {

    padding-bottom: 14px;

    margin-bottom: 13px;

    border-bottom:
        1px
        solid
        var(--border);

}


.protectpdf-switch-row {

    display: flex;

    align-items: center;

    gap: 11px;

    cursor: pointer;

}


.protectpdf-switch-row > span:last-child {

    min-width: 0;

}


.protectpdf-switch-row strong {

    display: block;

    color:
        var(--dark);

    font-size: 10.5px;

}


.protectpdf-switch-row small {

    display: block;

    margin-top: 3px;

    color:
        #9397a7;

    font-size: 8px;

}


.protectpdf-switch {

    position: relative;

    width: 43px;
    height: 24px;

    flex-shrink: 0;

}


.protectpdf-switch input {

    position: absolute;

    opacity: 0;

}


.protectpdf-switch-slider {

    position: absolute;

    inset: 0;

    border-radius: 999px;

    background:
        #d9dce7;

    transition: 0.2s;

}


.protectpdf-switch-slider::before {

    content: "";

    position: absolute;

    width: 18px;
    height: 18px;

    left: 3px;
    top: 3px;

    border-radius: 50%;

    background:
        #ffffff;

    box-shadow:
        0 2px 5px
        rgba(20, 23, 43, 0.16);

    transition: 0.2s;

}


.protectpdf-switch input:checked
+ .protectpdf-switch-slider {

    background:
        var(--primary);

}


.protectpdf-switch input:checked
+ .protectpdf-switch-slider::before {

    transform:
        translateX(19px);

}


/* ==========================================================
   PERMISOS
========================================================== */

.protectpdf-permissions-heading {

    display: flex;

    align-items: center;

    gap: 10px;

    margin:
        17px
        0
        12px;

    padding-top: 15px;

    border-top:
        1px
        solid
        var(--border);

}


.protectpdf-permissions-heading > div {

    width: 35px;
    height: 35px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border-radius: 9px;

    color:
        var(--primary);

    background:
        var(--primary-light);

}


.protectpdf-permissions-heading strong {

    display: block;

    color:
        var(--dark);

    font-size: 10.5px;

}


.protectpdf-permissions-heading small {

    display: block;

    margin-top: 2px;

    color:
        #9296a6;

    font-size: 8px;

}


.protectpdf-permission-list {

    display: grid;

    gap: 7px;

    margin-top: 15px;

}


.protectpdf-permission-row {

    min-height: 58px;

    display: grid;

    grid-template-columns:
        35px
        minmax(0, 1fr)
        36px;

    align-items: center;

    gap: 9px;

    padding:
        8px
        10px;

    cursor: pointer;

    border:
        1px
        solid
        #e1e4ed;

    border-radius: 11px;

    background:
        #ffffff;

    transition: 0.2s;

}


.protectpdf-permission-row:hover {

    border-color:
        rgba(91, 92, 240, 0.35);

}


.protectpdf-permission-icon {

    width: 34px;
    height: 34px;

    display: grid;

    place-items: center;

    border-radius: 9px;

    color:
        #777c8d;

    background:
        #f2f3f8;

    font-size: 14px;

}


.protectpdf-permission-copy {

    min-width: 0;

}


.protectpdf-permission-copy strong {

    display: block;

    color:
        var(--dark);

    font-size: 9px;

}


.protectpdf-permission-copy small {

    display: block;

    margin-top: 2px;

    color:
        #979baa;

    font-size: 7.5px;

    line-height: 1.35;

}


/* ==========================================================
   MINI SWITCH
========================================================== */

.protectpdf-mini-switch {

    position: relative;

    width: 36px;
    height: 21px;

}


.protectpdf-mini-switch input {

    position: absolute;

    opacity: 0;

}


.protectpdf-mini-switch > span {

    position: absolute;

    inset: 0;

    border-radius: 999px;

    background:
        #dadde7;

    transition: 0.2s;

}


.protectpdf-mini-switch > span::before {

    content: "";

    position: absolute;

    width: 15px;
    height: 15px;

    left: 3px;
    top: 3px;

    border-radius: 50%;

    background:
        #ffffff;

    transition: 0.2s;

}


.protectpdf-mini-switch input:checked
+ span {

    background:
        #ef4444;

}


.protectpdf-mini-switch input:checked
+ span::before {

    transform:
        translateX(15px);

}


/* ==========================================================
   COMPATIBILIDAD
========================================================== */

.protectpdf-compatibility-note {

    display: flex;

    align-items: flex-start;

    gap: 8px;

    margin-top: 12px;

    padding:
        10px;

    border:
        1px
        solid
        #e3e5ed;

    border-radius: 10px;

    color:
        #797e8f;

    background:
        #f7f8fc;

    font-size: 7.8px;

    line-height: 1.5;

}


.protectpdf-compatibility-note i {

    margin-top: 1px;

    color:
        var(--primary);

}


/* ==========================================================
   RESUMEN
========================================================== */

.protectpdf-summary-box {

    display: flex;

    align-items: flex-start;

    gap: 9px;

    padding:
        11px
        12px;

    border:
        1px
        solid
        #e3e5ed;

    border-radius: 11px;

    background:
        #f7f8fd;

}


.protectpdf-summary-box > i {

    margin-top: 1px;

    color:
        var(--primary);

}


.protectpdf-summary-box strong {

    display: block;

    color:
        var(--dark);

    font-size: 10px;

}


.protectpdf-summary-box p {

    margin-top: 3px;

    color:
        #707587;

    font-size: 8.5px;

    line-height: 1.5;

}


/* ==========================================================
   BOTÓN
========================================================== */

.protectpdf-main-button {

    width: 100%;

    min-height: 54px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: 15px;

    border: none;

    border-radius: 13px;

    color:
        #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #6863e9
        );

    box-shadow:
        0 10px 25px
        rgba(91, 92, 240, 0.24);

    font-size: 12px;

    font-weight: 800;

    transition: 0.2s;

}


.protectpdf-main-button:hover:not(:disabled) {

    transform:
        translateY(-2px);

    box-shadow:
        0 14px 30px
        rgba(91, 92, 240, 0.30);

}


.protectpdf-main-button:disabled {

    cursor:
        not-allowed;

    opacity: 0.42;

    box-shadow: none;

}


.protectpdf-private-note {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    margin-top: 10px;

    color:
        #969aaa;

    text-align: center;

    font-size: 8px;

}


.protectpdf-private-note i {

    color:
        #10b981;

}


/* ==========================================================
   PROCESANDO Y RESULTADO
========================================================== */

.protectpdf-processing,
.protectpdf-result {

    width:
        min(680px, 100%);

    min-height: 360px;

    margin: 0 auto;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 42px;

    text-align: center;

    border:
        1px
        solid
        var(--border);

    border-radius: 24px;

    background:
        #ffffff;

    box-shadow:
        0 12px 35px
        rgba(20, 23, 43, 0.06);

}


.protectpdf-processing-icon {

    width: 68px;
    height: 68px;

    display: grid;

    place-items: center;

    margin-bottom: 18px;

    border-radius: 50%;

    color:
        var(--primary);

    background:
        var(--primary-light);

    font-size: 28px;

    animation:
        protectpdf-pulse
        1.4s
        ease-in-out
        infinite;

}


@keyframes protectpdf-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

}


.protectpdf-processing h2,
.protectpdf-result h2 {

    color:
        var(--dark);

    font-size: 24px;

}


.protectpdf-processing p,
.protectpdf-result > p {

    margin-top: 5px;

    color:
        var(--text-light);

    font-size: 11px;

}


.protectpdf-progress {

    width:
        min(460px, 100%);

    height: 8px;

    overflow: hidden;

    margin:
        24px
        auto
        9px;

    border-radius: 50px;

    background:
        #e8eaf1;

}


.protectpdf-progress-bar {

    width: 0;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );

    transition:
        width
        0.25s
        ease;

}


#protectProcessingStatus {

    color:
        #9296a5;

    font-size: 9px;

}


/* ==========================================================
   RESULTADO
========================================================== */

.protectpdf-success-icon {

    width: 70px;
    height: 70px;

    display: grid;

    place-items: center;

    margin-bottom: 15px;

    border-radius: 50%;

    color:
        #10b981;

    background:
        #e9fbf5;

    font-size: 31px;

}


.protectpdf-result-stats {

    width:
        min(440px, 100%);

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 9px;

    margin-top: 20px;

}


.protectpdf-result-stats > div {

    padding: 11px;

    border-radius: 11px;

    background:
        #f5f6fa;

}


.protectpdf-result-stats span {

    display: block;

    color:
        #999dab;

    font-size: 7px;

    text-transform: uppercase;

}


.protectpdf-result-stats strong {

    display: block;

    margin-top: 3px;

    color:
        var(--dark);

    font-size: 16px;

}


.protectpdf-result-message {

    display: inline-flex;

    margin-top: 14px;

    padding:
        7px
        11px;

    border-radius: 100px;

    color:
        #087b58;

    background:
        #e9fbf5;

    font-size: 9px;

    font-weight: 700;

}


/* ==========================================================
   MENSAJE ERROR
========================================================== */

.protectpdf-message {

    width:
        min(850px, 100%);

    margin:
        15px
        auto
        0;

    padding:
        12px
        14px;

    border:
        1px
        solid
        #ffd5d1;

    border-radius: 11px;

    color:
        #b42318;

    background:
        #fff0ef;

    font-size: 10px;

}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1050px) {

    .protectpdf-layout {

        grid-template-columns:
            1fr;

    }


    .protectpdf-options-area {

        position:
            static;

    }

}


@media (max-width: 720px) {

    .protectpdf-editor {

        padding: 16px;

    }


    .protectpdf-editor-header {

        flex-direction:
            column;

        align-items:
            flex-start;

    }


    .protectpdf-change-button {

        width: 100%;

    }


    .protectpdf-shield-visual {

        min-height: 190px;

    }


    .protectpdf-shield-circle {

        width: 125px;
        height: 125px;

        font-size: 49px;

    }

}


@media (max-width: 480px) {

    .protectpdf-drop-zone {

        min-height: 340px;

        padding:
            34px
            18px;

    }


    .protectpdf-drop-zone h2 {

        font-size: 22px;

    }


    .protectpdf-visual-card,
    .protectpdf-options-area {

        padding: 13px;

    }


    .protectpdf-requirements {

        grid-template-columns:
            1fr;

    }


    .protectpdf-result-stats {

        grid-template-columns:
            1fr;

    }


    .protectpdf-processing,
    .protectpdf-result {

        padding:
            30px
            17px;

    }


    .protectpdf-lock-card {

        left: 0;

    }


    .protectpdf-device-card {

        right: 0;

    }

}