/* ==========================================================
   CONVERTODO
   PDF A JPG
========================================================== */


/* ==========================================================
   SUBIDA
========================================================== */

.pdfjpg-upload-stage {

    width: min(900px, 100%);

    margin: 0 auto;

}


.pdfjpg-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:
        border-color 0.2s,
        background 0.2s,
        transform 0.2s;

}


.pdfjpg-drop-zone.drag-over {

    border-color:
        var(--primary);

    background:
        #f6f6ff;

    transform:
        scale(1.004);

}


.pdfjpg-upload-icon {

    width: 78px;

    height: 78px;

    display: grid;

    place-items: center;

    margin-bottom: 18px;

    border-radius: 22px;

    color:
        #ef4444;

    background:
        #fff0f0;

    font-size: 34px;

}


.pdfjpg-drop-zone h2 {

    color:
        var(--dark);

    font-size: 27px;

    letter-spacing: -0.8px;

}


.pdfjpg-drop-zone > p {

    max-width: 560px;

    margin:
        8px
        auto
        24px;

    color:
        var(--text-light);

    font-size: 14px;

    line-height: 1.6;

}


.pdfjpg-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),
            #6d63e9
        );

    box-shadow:
        0 11px 26px
        rgba(91, 92, 240, 0.25);

    font-size: 14px;

    font-weight: 800;

    transition: 0.2s;

}


.pdfjpg-select-button:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 15px 30px
        rgba(91, 92, 240, 0.30);

}


.pdfjpg-drop-help {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    margin-top: 18px;

    color:
        #969aaa;

    font-size: 11px;

}


/* ==========================================================
   EDITOR
========================================================== */

.pdfjpg-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);

}


.pdfjpg-editor-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding-bottom: 19px;

    margin-bottom: 22px;

    border-bottom:
        1px
        solid
        var(--border);

}


.pdfjpg-editor-header h2 {

    color:
        var(--dark);

    font-size: 21px;

    letter-spacing: -0.5px;

}


.pdfjpg-editor-header p {

    margin-top: 3px;

    color:
        var(--text-light);

    font-size: 12px;

}


.pdfjpg-header-stats {

    display: flex;

    align-items: center;

    gap: 8px;

    flex-wrap: wrap;

}


.pdfjpg-header-stats > span {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding:
        8px
        11px;

    border-radius: 100px;

    background:
        #f3f5fb;

    color:
        #606579;

    font-size: 10px;

}


.pdfjpg-header-stats i {

    color:
        var(--primary);

}


.pdfjpg-header-stats strong {

    color:
        var(--dark);

}


/* ==========================================================
   DISTRIBUCIÓN
========================================================== */

.pdfjpg-editor-layout {

    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(350px, 0.85fr);

    gap: 22px;

    align-items: start;

}


/* ==========================================================
   ARCHIVOS
========================================================== */

.pdfjpg-files-area {

    min-width: 0;

    padding: 18px;

    background:
        #fcfcff;

    border:
        1px
        solid
        var(--border);

    border-radius: 19px;

}


.pdfjpg-panel-title {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

    margin-bottom: 15px;

}


.pdfjpg-panel-title h3 {

    color:
        var(--dark);

    font-size: 17px;

}


.pdfjpg-panel-title p {

    margin-top: 3px;

    color:
        var(--text-light);

    font-size: 11px;

}


.pdfjpg-add-small {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    flex-shrink: 0;

    padding:
        9px
        12px;

    cursor: pointer;

    border:
        1px
        solid
        #d9dce8;

    border-radius: 10px;

    background: #ffffff;

    color:
        #5e6377;

    font-size: 10px;

    font-weight: 700;

    transition: 0.2s;

}


.pdfjpg-add-small:hover {

    color:
        var(--primary);

    border-color:
        var(--primary);

}


.pdfjpg-file-list {

    display: flex;

    flex-direction: column;

    gap: 10px;

}


.pdfjpg-file-card {

    display: grid;

    grid-template-columns:
        62px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 13px;

    min-height: 82px;

    padding:
        10px
        12px;

    background: #ffffff;

    border:
        1px
        solid
        #e1e4ed;

    border-radius: 14px;

    transition: 0.2s;

}


.pdfjpg-file-card:hover {

    border-color:
        rgba(91, 92, 240, 0.35);

    box-shadow:
        0 7px 18px
        rgba(20, 23, 43, 0.06);

}


.pdfjpg-file-thumbnail {

    width: 62px;

    height: 62px;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    color:
        #ef4444;

    background:
        #fff0f0;

    font-size: 24px;

}


.pdfjpg-file-thumbnail img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}


.pdfjpg-file-info {

    min-width: 0;

}


.pdfjpg-file-name {

    display: block;

    overflow: hidden;

    color:
        var(--dark);

    font-size: 12px;

    font-weight: 700;

    white-space: nowrap;

    text-overflow: ellipsis;

}


.pdfjpg-file-details {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 9px;

    margin-top: 6px;

    color:
        #8e93a5;

    font-size: 10px;

}


.pdfjpg-file-details span {

    display: inline-flex;

    align-items: center;

    gap: 4px;

}


.pdfjpg-file-details i {

    color:
        #808596;

}


.pdfjpg-delete-file {

    width: 35px;

    height: 35px;

    display: grid;

    place-items: center;

    border: none;

    border-radius: 10px;

    background:
        #fff1f1;

    color:
        #ef4444;

    transition: 0.2s;

}


.pdfjpg-delete-file:hover {

    background:
        #ef4444;

    color:
        #ffffff;

}


/* ==========================================================
   OPCIONES
========================================================== */

.pdfjpg-options-area {

    position: sticky;

    top: 88px;

    padding: 18px;

    background:
        #fcfcff;

    border:
        1px
        solid
        var(--border);

    border-radius: 19px;

}


.pdfjpg-options-heading {

    display: flex;

    align-items: center;

    gap: 11px;

    margin-bottom: 15px;

}


.pdfjpg-options-icon {

    width: 42px;

    height: 42px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border-radius: 11px;

    color:
        var(--primary);

    background:
        var(--primary-light);

    font-size: 18px;

}


.pdfjpg-options-heading h3 {

    color:
        var(--dark);

    font-size: 17px;

}


.pdfjpg-options-heading p {

    margin-top: 2px;

    color:
        var(--text-light);

    font-size: 10px;

}


/* ==========================================================
   OPCIONES DE CONVERSIÓN
========================================================== */

.pdfjpg-conversion-option {

    width: 100%;

    display: grid;

    grid-template-columns:
        20px
        46px
        minmax(0, 1fr);

    align-items: center;

    gap: 11px;

    margin-bottom: 10px;

    padding:
        13px
        12px;

    text-align: left;

    border:
        1px
        solid
        #dfe2eb;

    border-radius: 14px;

    background:
        #ffffff;

    transition: 0.2s;

}


.pdfjpg-conversion-option:hover {

    border-color:
        rgba(91, 92, 240, 0.45);

}


.pdfjpg-conversion-option.active {

    border-color:
        var(--primary);

    background:
        #f6f6ff;

    box-shadow:
        0 6px 18px
        rgba(91, 92, 240, 0.09);

}


.pdfjpg-option-radio {

    width: 19px;

    height: 19px;

    display: grid;

    place-items: center;

    border:
        2px
        solid
        #c8cbd8;

    border-radius: 50%;

}


.pdfjpg-option-radio span {

    width: 9px;

    height: 9px;

    border-radius: 50%;

    background:
        transparent;

}


.pdfjpg-conversion-option.active
.pdfjpg-option-radio {

    border-color:
        var(--primary);

}


.pdfjpg-conversion-option.active
.pdfjpg-option-radio span {

    background:
        var(--primary);

}


.pdfjpg-option-main-icon {

    width: 46px;

    height: 46px;

    display: grid;

    place-items: center;

    border-radius: 12px;

    background:
        #fff0f0;

    color:
        #ef4444;

    font-size: 19px;

}


.pdfjpg-option-copy {

    display: block;

    min-width: 0;

}


.pdfjpg-option-copy strong {

    display: block;

    color:
        var(--dark);

    font-size: 13px;

}


.pdfjpg-option-copy small {

    display: block;

    margin-top: 3px;

    color:
        #74798b;

    font-size: 10px;

    line-height: 1.4;

}


.pdfjpg-option-copy em {

    display: block;

    margin-top: 4px;

    color:
        var(--primary);

    font-size: 9px;

    font-style: normal;

    font-weight: 650;

}


/* ==========================================================
   CALIDAD
========================================================== */

.pdfjpg-quality-block {

    margin-top: 17px;

    padding-top: 16px;

    border-top:
        1px
        solid
        var(--border);

}


.pdfjpg-quality-heading {

    margin-bottom: 9px;

}


.pdfjpg-quality-heading strong {

    display: block;

    color:
        var(--dark);

    font-size: 12px;

}


.pdfjpg-quality-heading span {

    display: block;

    margin-top: 2px;

    color:
        #969aaa;

    font-size: 9px;

}


.pdfjpg-quality-options {

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 9px;

}


.pdfjpg-quality-option {

    min-height: 68px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        10px;

    text-align: left;

    border:
        1px
        solid
        #dde0ea;

    border-radius: 12px;

    background:
        #ffffff;

    transition: 0.2s;

}


.pdfjpg-quality-option:hover {

    border-color:
        rgba(91, 92, 240, 0.45);

}


.pdfjpg-quality-option.active {

    border-color:
        var(--primary);

    background:
        #f6f6ff;

}


.pdfjpg-quality-check {

    width: 29px;

    height: 29px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border-radius: 9px;

    color:
        #b3b6c3;

    background:
        #f1f2f7;

}


.pdfjpg-quality-option.active
.pdfjpg-quality-check {

    color:
        #ffffff;

    background:
        var(--primary);

}


.pdfjpg-quality-option strong {

    display: block;

    color:
        var(--dark);

    font-size: 11px;

}


.pdfjpg-quality-option small {

    display: block;

    margin-top: 2px;

    color:
        #9498a8;

    font-size: 8.5px;

}


/* ==========================================================
   RESUMEN
========================================================== */

.pdfjpg-conversion-summary {

    display: flex;

    align-items: flex-start;

    gap: 9px;

    margin-top: 15px;

    padding:
        11px
        12px;

    border:
        1px
        solid
        #e4e6ef;

    border-radius: 12px;

    background:
        #f7f8fd;

}


.pdfjpg-conversion-summary > i {

    margin-top: 1px;

    color:
        var(--primary);

}


.pdfjpg-conversion-summary strong {

    display: block;

    color:
        var(--dark);

    font-size: 11px;

}


.pdfjpg-conversion-summary p {

    margin-top: 3px;

    color:
        #686d7f;

    font-size: 9.5px;

    line-height: 1.5;

}


/* ==========================================================
   BOTÓN CONVERTIR
========================================================== */

.pdfjpg-convert-button {

    width: 100%;

    min-height: 53px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    margin-top: 15px;

    border: none;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #6c63e9
        );

    color:
        #ffffff;

    box-shadow:
        0 10px 25px
        rgba(91, 92, 240, 0.24);

    font-size: 13px;

    font-weight: 800;

    transition: 0.2s;

}


.pdfjpg-convert-button:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 14px 30px
        rgba(91, 92, 240, 0.30);

}


.pdfjpg-private-note {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 6px;

    margin-top: 10px;

    color:
        #9397a7;

    font-size: 8.8px;

}


.pdfjpg-private-note i {

    color:
        #10b981;

}


/* ==========================================================
   PROCESANDO
========================================================== */

.pdfjpg-processing {

    width: min(720px, 100%);

    min-height: 360px;

    margin: 0 auto;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 45px;

    text-align: center;

    background:
        #ffffff;

    border:
        1px
        solid
        var(--border);

    border-radius: 24px;

    box-shadow:
        0 12px 35px
        rgba(20, 23, 43, 0.06);

}


.pdfjpg-processing-icon {

    width: 65px;

    height: 65px;

    display: grid;

    place-items: center;

    margin-bottom: 18px;

    border-radius: 50%;

    color:
        var(--primary);

    background:
        var(--primary-light);

    font-size: 27px;

    animation:
        pdfjpg-spin
        1s
        linear
        infinite;

}


@keyframes pdfjpg-spin {

    to {

        transform:
            rotate(360deg);

    }

}


.pdfjpg-processing h2 {

    color:
        var(--dark);

    font-size: 24px;

}


.pdfjpg-processing p {

    margin-top: 6px;

    color:
        var(--text-light);

    font-size: 12px;

}


.pdfjpg-progress {

    width: min(470px, 100%);

    height: 8px;

    overflow: hidden;

    margin:
        25px
        auto
        10px;

    border-radius: 50px;

    background:
        #e9eaf2;

}


.pdfjpg-progress-bar {

    width: 0;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );

    transition:
        width
        0.2s
        ease;

}


#pdfJpgProcessingStatus {

    color:
        #9095a5;

    font-size: 10px;

}


/* ==========================================================
   RESULTADO
========================================================== */

.pdfjpg-result {

    width: min(650px, 100%);

    min-height: 350px;

    margin: 0 auto;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 40px;

    text-align: center;

    background:
        #ffffff;

    border:
        1px
        solid
        var(--border);

    border-radius: 24px;

    box-shadow:
        0 12px 35px
        rgba(20, 23, 43, 0.06);

}


.pdfjpg-success-icon {

    width: 68px;

    height: 68px;

    display: grid;

    place-items: center;

    margin-bottom: 15px;

    border-radius: 50%;

    color:
        #10b981;

    background:
        #e9fbf5;

    font-size: 29px;

}


.pdfjpg-result h2 {

    color:
        var(--dark);

    font-size: 24px;

}


.pdfjpg-result > p {

    margin-top: 5px;

    color:
        var(--text-light);

    font-size: 11px;

}


.pdfjpg-result-stats {

    width: min(350px, 100%);

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 10px;

    margin-top: 21px;

}


.pdfjpg-result-stats > div {

    padding:
        12px;

    border-radius: 12px;

    background:
        #f5f6fa;

}


.pdfjpg-result-stats span {

    display: block;

    color:
        #999dab;

    font-size: 8px;

    text-transform: uppercase;

}


.pdfjpg-result-stats strong {

    display: block;

    margin-top: 3px;

    color:
        var(--dark);

    font-size: 17px;

}


.pdfjpg-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
========================================================== */

.pdfjpg-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: 11px;

}


/* ==========================================================
   HIDDEN
========================================================== */

.hidden {

    display:
        none !important;

}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (
    max-width: 1050px
) {

    .pdfjpg-editor-layout {

        grid-template-columns:
            1fr;

    }


    .pdfjpg-options-area {

        position:
            static;

    }

}


@media (
    max-width: 720px
) {

    .pdfjpg-editor {

        padding:
            17px;

    }


    .pdfjpg-editor-header {

        flex-direction:
            column;

        align-items:
            flex-start;

    }


    .pdfjpg-header-stats {

        width:
            100%;

    }


    .pdfjpg-panel-title {

        align-items:
            flex-start;

    }


    .pdfjpg-file-card {

        grid-template-columns:
            52px
            minmax(0, 1fr)
            auto;

    }


    .pdfjpg-file-thumbnail {

        width:
            52px;

        height:
            52px;

    }


    .pdfjpg-quality-options {

        grid-template-columns:
            1fr;

    }

}


@media (
    max-width: 480px
) {

    .pdfjpg-drop-zone {

        min-height:
            340px;

        padding:
            34px
            18px;

    }


    .pdfjpg-drop-zone h2 {

        font-size:
            22px;

    }


    .pdfjpg-editor {

        padding:
            13px;

    }


    .pdfjpg-files-area,
    .pdfjpg-options-area {

        padding:
            13px;

    }


    .pdfjpg-conversion-option {

        grid-template-columns:
            19px
            40px
            minmax(0, 1fr);

        gap:
            8px;

        padding:
            11px
            9px;

    }


    .pdfjpg-option-main-icon {

        width:
            40px;

        height:
            40px;

    }


    .pdfjpg-add-small {

        padding:
            8px;

        font-size:
            9px;

    }


    .pdfjpg-result,
    .pdfjpg-processing {

        padding:
            30px
            18px;

    }

}