/* ==========================================================
   CONVERTODO
   JPG A PDF
========================================================== */

.hidden {
    display: none !important;
}


/* ==========================================================
   SUBIDA
========================================================== */

.jpgpdf-upload-stage {
    width: min(900px, 100%);
    margin: 0 auto;
}


.jpgpdf-drop-zone {

    min-height: 390px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 48px 30px;

    background: #ffffff;

    border:
        2px
        dashed
        #d9dce8;

    border-radius: 24px;

    box-shadow:
        0 12px 35px
        rgba(20, 23, 43, 0.05);

    transition: 0.2s;

}


.jpgpdf-drop-zone.drag-over {

    border-color:
        var(--primary);

    background:
        #f6f6ff;

    transform:
        scale(1.004);

}


.jpgpdf-upload-icon {

    width: 78px;

    height: 78px;

    display: grid;

    place-items: center;

    margin-bottom: 18px;

    border-radius: 22px;

    color:
        var(--pdf);

    background:
        var(--pdf-soft);

    font-size: 34px;

}


.jpgpdf-drop-zone h2 {

    color:
        var(--dark);

    font-size: 27px;

    letter-spacing: -0.8px;

}


.jpgpdf-drop-zone > p {

    max-width: 560px;

    margin:
        8px
        auto
        24px;

    color:
        var(--text-light);

    font-size: 14px;

    line-height: 1.6;

}


.jpgpdf-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;

}


.jpgpdf-select-button:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 15px 30px
        rgba(91, 92, 240, 0.30);

}


.jpgpdf-drop-help {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    margin-top: 18px;

    color:
        #969aaa;

    font-size: 11px;

}


/* ==========================================================
   EDITOR
========================================================== */

.jpgpdf-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);

}


.jpgpdf-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);

}


.jpgpdf-editor-header h2 {

    color:
        var(--dark);

    font-size: 21px;

    letter-spacing: -0.5px;

}


.jpgpdf-editor-header p {

    margin-top: 3px;

    color:
        var(--text-light);

    font-size: 12px;

}


.jpgpdf-header-stats {

    display: flex;

    align-items: center;

    gap: 8px;

    flex-wrap: wrap;

}


.jpgpdf-header-stats > span {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding:
        8px
        11px;

    border-radius: 100px;

    background:
        #f3f5fb;

    color:
        #606579;

    font-size: 10px;

}


.jpgpdf-header-stats i {

    color:
        var(--primary);

}


.jpgpdf-header-stats strong {

    color:
        var(--dark);

}


/* ==========================================================
   DISTRIBUCIÓN
========================================================== */

.jpgpdf-editor-layout {

    display: grid;

    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(350px, 0.8fr);

    gap: 22px;

    align-items: start;

}


/* ==========================================================
   LISTA DE IMÁGENES
========================================================== */

.jpgpdf-files-area {

    min-width: 0;

    padding: 18px;

    background:
        #fcfcff;

    border:
        1px
        solid
        var(--border);

    border-radius: 19px;

}


.jpgpdf-panel-title {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

    margin-bottom: 15px;

}


.jpgpdf-panel-title h3 {

    color:
        var(--dark);

    font-size: 17px;

}


.jpgpdf-panel-title p {

    margin-top: 3px;

    color:
        var(--text-light);

    font-size: 11px;

}


.jpgpdf-list-actions {

    display: flex;

    gap: 8px;

    flex-shrink: 0;

}


.jpgpdf-sort-button,
.jpgpdf-add-small {

    min-height: 38px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    padding:
        8px
        11px;

    border:
        1px
        solid
        #d9dce8;

    border-radius: 10px;

    background:
        #ffffff;

    color:
        #5e6377;

    font-size: 10px;

    font-weight: 700;

    transition: 0.2s;

}


.jpgpdf-add-small {
    cursor: pointer;
}


.jpgpdf-sort-button:hover,
.jpgpdf-add-small:hover {

    color:
        var(--primary);

    border-color:
        var(--primary);

}


.jpgpdf-file-list {

    display: flex;

    flex-direction: column;

    gap: 10px;

}


.jpgpdf-file-card {

    position: relative;

    display: grid;

    grid-template-columns:
        28px
        72px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 12px;

    min-height: 94px;

    padding:
        10px
        12px;

    background:
        #ffffff;

    border:
        1px
        solid
        #e1e4ed;

    border-radius: 14px;

    transition: 0.2s;

}


.jpgpdf-file-card:hover {

    border-color:
        rgba(91, 92, 240, 0.35);

    box-shadow:
        0 7px 18px
        rgba(20, 23, 43, 0.06);

}


.jpgpdf-drag-handle {

    width: 28px;

    height: 36px;

    display: grid;

    place-items: center;

    cursor: grab;

    color:
        #9a9ead;

    font-size: 18px;

}


.jpgpdf-drag-handle:active {
    cursor: grabbing;
}


.jpgpdf-file-thumb {

    width: 72px;

    height: 72px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    border-radius: 11px;

    background:
        #f5f6fb;

    color:
        var(--pdf);

    font-size: 26px;

}


.jpgpdf-file-thumb img {

    max-width: 100%;

    max-height: 100%;

    object-fit: contain;

    transition:
        transform
        0.2s
        ease;

}


.jpgpdf-file-info {
    min-width: 0;
}


.jpgpdf-file-info strong {

    display: block;

    overflow: hidden;

    color:
        var(--dark);

    font-size: 12px;

    white-space: nowrap;

    text-overflow: ellipsis;

}


.jpgpdf-file-meta {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 9px;

    margin-top: 6px;

    color:
        #8e93a5;

    font-size: 10px;

}


.jpgpdf-file-meta span {

    display: inline-flex;

    align-items: center;

    gap: 4px;

}


.jpgpdf-file-actions {

    display: flex;

    gap: 6px;

}


.jpgpdf-icon-button {

    width: 34px;

    height: 34px;

    display: grid;

    place-items: center;

    border:
        1px
        solid
        #e0e3ec;

    border-radius: 9px;

    background:
        #ffffff;

    color:
        #6f7486;

    transition: 0.2s;

}


.jpgpdf-icon-button:hover {

    color:
        var(--primary);

    border-color:
        var(--primary);

    background:
        #f7f7ff;

}


.jpgpdf-icon-button.remove {

    color:
        #ef4444;

    background:
        #fff5f5;

    border-color:
        #ffe0df;

}


.jpgpdf-icon-button.remove:hover {

    color:
        #ffffff;

    background:
        #ef4444;

    border-color:
        #ef4444;

}


.jpgpdf-sortable-ghost {
    opacity: 0.35;
}


.jpgpdf-sortable-chosen {

    border-color:
        var(--primary);

    box-shadow:
        0 12px 25px
        rgba(91, 92, 240, 0.12);

}


/* ==========================================================
   PANEL OPCIONES
========================================================== */

.jpgpdf-options-area {

    position: sticky;

    top: 88px;

    padding: 18px;

    background:
        #fcfcff;

    border:
        1px
        solid
        var(--border);

    border-radius: 19px;

}


.jpgpdf-options-heading {

    display: flex;

    align-items: center;

    gap: 11px;

    margin-bottom: 16px;

}


.jpgpdf-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;

}


.jpgpdf-options-heading h3 {

    color:
        var(--dark);

    font-size: 17px;

}


.jpgpdf-options-heading p {

    margin-top: 2px;

    color:
        var(--text-light);

    font-size: 10px;

}


.jpgpdf-option-section {

    padding:
        15px
        0;

    border-top:
        1px
        solid
        var(--border);

}


.jpgpdf-section-label {

    display: block;

    margin-bottom: 9px;

    color:
        var(--dark);

    font-size: 12px;

    font-weight: 700;

}


/* ==========================================================
   ORIENTACIÓN
========================================================== */

.jpgpdf-two-options {

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 9px;

}


.jpgpdf-orientation-option {

    display: flex;

    align-items: center;

    gap: 10px;

    min-height: 74px;

    padding: 10px;

    text-align: left;

    border:
        1px
        solid
        #dde0ea;

    border-radius: 13px;

    background:
        #ffffff;

    transition: 0.2s;

}


.jpgpdf-orientation-option:hover {

    border-color:
        rgba(91, 92, 240, 0.45);

}


.jpgpdf-orientation-option.active {

    border-color:
        var(--primary);

    background:
        #f6f6ff;

}


.jpgpdf-orientation-option strong {

    display: block;

    color:
        var(--dark);

    font-size: 11px;

}


.jpgpdf-orientation-option small {

    display: block;

    margin-top: 2px;

    color:
        #9498a8;

    font-size: 8.5px;

}


.jpgpdf-page-shape {

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border:
        2px
        solid
        #cfd2df;

    border-radius: 6px;

    color:
        #8f94a5;

    background:
        #ffffff;

}


.jpgpdf-page-shape.portrait {

    width: 31px;

    height: 42px;

}


.jpgpdf-page-shape.landscape {

    width: 42px;

    height: 31px;

}


.jpgpdf-orientation-option.active
.jpgpdf-page-shape {

    border-color:
        var(--primary);

    color:
        var(--primary);

}


/* ==========================================================
   SELECT TAMAÑO
========================================================== */

.jpgpdf-select-wrap {

    position: relative;

    display: flex;

    align-items: center;

}


.jpgpdf-select-wrap > i:first-child {

    position: absolute;

    left: 12px;

    color:
        var(--primary);

    pointer-events: none;

}


.jpgpdf-select-wrap > i:last-child {

    position: absolute;

    right: 12px;

    color:
        #8c91a2;

    pointer-events: none;

}


.jpgpdf-select-wrap select {

    width: 100%;

    appearance: none;

    min-height: 46px;

    padding:
        10px
        38px;

    border:
        1px
        solid
        #dce0ea;

    border-radius: 12px;

    background:
        #ffffff;

    color:
        var(--dark);

    font-size: 11px;

    outline: none;

}


.jpgpdf-select-wrap select:focus {

    border-color:
        var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(91, 92, 240, 0.08);

}


.jpgpdf-option-help {

    margin-top: 6px;

    color:
        #969aaa;

    font-size: 9px;

}


/* ==========================================================
   MÁRGENES
========================================================== */

.jpgpdf-margin-options {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 8px;

}


.jpgpdf-margin-option {

    min-height: 82px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 7px;

    border:
        1px
        solid
        #dde0ea;

    border-radius: 12px;

    background:
        #ffffff;

    color:
        #72778a;

    transition: 0.2s;

}


.jpgpdf-margin-option:hover {

    border-color:
        rgba(91, 92, 240, 0.45);

}


.jpgpdf-margin-option.active {

    border-color:
        var(--primary);

    background:
        #f6f6ff;

    color:
        var(--primary);

}


.jpgpdf-margin-option strong {

    font-size: 9.5px;

}


.jpgpdf-margin-preview {

    position: relative;

    width: 38px;

    height: 46px;

    border:
        1px
        solid
        #bfc4d3;

    border-radius: 4px;

    background:
        #ffffff;

}


.jpgpdf-margin-preview i {

    position: absolute;

    background:
        #e7e9f2;

    border-radius: 2px;

}


.jpgpdf-margin-preview.none i {
    inset: 3px;
}


.jpgpdf-margin-preview.small i {
    inset: 7px;
}


.jpgpdf-margin-preview.large i {
    inset: 11px;
}


.jpgpdf-margin-option.active
.jpgpdf-margin-preview {

    border-color:
        var(--primary);

}


.jpgpdf-margin-option.active
.jpgpdf-margin-preview i {

    background:
        #dcdcff;

}


/* ==========================================================
   SWITCH UNIR
========================================================== */

.jpgpdf-merge-box {

    margin-top: 2px;

    padding:
        14px
        0;

    border-top:
        1px
        solid
        var(--border);

}


.jpgpdf-switch-row {

    display: flex;

    align-items: center;

    gap: 11px;

    cursor: pointer;

}


.jpgpdf-switch-row > span:last-child {
    min-width: 0;
}


.jpgpdf-switch-row strong {

    display: block;

    color:
        var(--dark);

    font-size: 11px;

}


.jpgpdf-switch-row small {

    display: block;

    margin-top: 3px;

    color:
        #9095a6;

    font-size: 9px;

}


.jpgpdf-switch {

    position: relative;

    width: 42px;

    height: 24px;

    flex-shrink: 0;

}


.jpgpdf-switch input {

    opacity: 0;

    width: 0;

    height: 0;

}


.jpgpdf-switch-slider {

    position: absolute;

    inset: 0;

    border-radius: 999px;

    background:
        #d8dbe7;

    transition: 0.2s;

}


.jpgpdf-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.15);

    transition: 0.2s;

}


.jpgpdf-switch input:checked
+ .jpgpdf-switch-slider {

    background:
        var(--primary);

}


.jpgpdf-switch input:checked
+ .jpgpdf-switch-slider::before {

    transform:
        translateX(18px);

}


.jpgpdf-switch input:disabled
+ .jpgpdf-switch-slider {

    opacity: 0.45;

}


/* ==========================================================
   RESUMEN Y BOTÓN
========================================================== */

.jpgpdf-summary {

    display: flex;

    align-items: flex-start;

    gap: 9px;

    padding:
        11px
        12px;

    border:
        1px
        solid
        #e4e6ef;

    border-radius: 12px;

    background:
        #f7f8fd;

}


.jpgpdf-summary > i {

    margin-top: 1px;

    color:
        var(--primary);

}


.jpgpdf-summary strong {

    display: block;

    color:
        var(--dark);

    font-size: 11px;

}


.jpgpdf-summary p {

    margin-top: 3px;

    color:
        #686d7f;

    font-size: 9.5px;

    line-height: 1.5;

}


.jpgpdf-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;

}


.jpgpdf-convert-button:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 14px 30px
        rgba(91, 92, 240, 0.30);

}


.jpgpdf-private-note {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 6px;

    margin-top: 10px;

    color:
        #9397a7;

    font-size: 8.8px;

}


.jpgpdf-private-note i {

    color:
        #10b981;

}


/* ==========================================================
   PROCESAMIENTO
========================================================== */

.jpgpdf-processing,
.jpgpdf-result {

    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);

}


.jpgpdf-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:
        jpgpdf-spin
        1s
        linear
        infinite;

}


@keyframes jpgpdf-spin {

    to {

        transform:
            rotate(360deg);

    }

}


.jpgpdf-processing h2,
.jpgpdf-result h2 {

    color:
        var(--dark);

    font-size: 24px;

}


.jpgpdf-processing p,
.jpgpdf-result > p {

    margin-top: 6px;

    color:
        var(--text-light);

    font-size: 12px;

}


.jpgpdf-progress {

    width:
        min(470px, 100%);

    height: 8px;

    overflow: hidden;

    margin:
        25px
        auto
        10px;

    border-radius: 50px;

    background:
        #e9eaf2;

}


.jpgpdf-progress-bar {

    width: 0;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );

    transition:
        width
        0.2s
        ease;

}


#jpgPdfProcessingStatus {

    color:
        #9095a5;

    font-size: 10px;

}


/* ==========================================================
   RESULTADO
========================================================== */

.jpgpdf-success-icon {

    width: 68px;

    height: 68px;

    display: grid;

    place-items: center;

    margin-bottom: 15px;

    border-radius: 50%;

    color:
        #10b981;

    background:
        #e9fbf5;

    font-size: 29px;

}


.jpgpdf-result-stats {

    width:
        min(460px, 100%);

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;

    margin-top: 21px;

}


.jpgpdf-result-stats > div {

    padding: 12px;

    border-radius: 12px;

    background:
        #f5f6fa;

}


.jpgpdf-result-stats span {

    display: block;

    color:
        #999dab;

    font-size: 8px;

    text-transform: uppercase;

}


.jpgpdf-result-stats strong {

    display: block;

    margin-top: 3px;

    color:
        var(--dark);

    font-size: 17px;

}


.jpgpdf-result-message {

    display: inline-flex;

    margin-top: 14px;

    padding:
        7px
        11px;

    border-radius: 100px;

    color:
        #087b58;

    background:
        #e9fbf5;

    font-size: 9px;

    font-weight: 700;

}


/* ==========================================================
   MENSAJES
========================================================== */

.jpgpdf-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;

}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1050px) {

    .jpgpdf-editor-layout {

        grid-template-columns:
            1fr;

    }


    .jpgpdf-options-area {

        position:
            static;

    }

}


@media (max-width: 720px) {

    .jpgpdf-editor {

        padding:
            17px;

    }


    .jpgpdf-editor-header {

        flex-direction:
            column;

        align-items:
            flex-start;

    }


    .jpgpdf-file-card {

        grid-template-columns:
            24px
            58px
            minmax(0, 1fr);

    }


    .jpgpdf-file-thumb {

        width:
            58px;

        height:
            58px;

    }


    .jpgpdf-file-actions {

        grid-column:
            2 / -1;

        justify-content:
            flex-end;

    }


    .jpgpdf-panel-title {

        align-items:
            flex-start;

        flex-direction:
            column;

    }


    .jpgpdf-list-actions {

        width:
            100%;

    }


    .jpgpdf-sort-button,
    .jpgpdf-add-small {

        flex:
            1;

    }

}


@media (max-width: 480px) {

    .jpgpdf-drop-zone {

        min-height:
            340px;

        padding:
            34px
            18px;

    }


    .jpgpdf-drop-zone h2 {

        font-size:
            22px;

    }


    .jpgpdf-editor {

        padding:
            13px;

    }


    .jpgpdf-files-area,
    .jpgpdf-options-area {

        padding:
            13px;

    }


    .jpgpdf-two-options {

        grid-template-columns:
            1fr;

    }


    .jpgpdf-margin-options {

        grid-template-columns:
            1fr
            1fr
            1fr;

    }


    .jpgpdf-result-stats {

        grid-template-columns:
            1fr;

    }


    .jpgpdf-processing,
    .jpgpdf-result {

        padding:
            30px
            18px;

    }

}