/* ==========================================================
   Combinador / Divisor de PDFs - Estilos
   Mismo estilo neobrutalist del Acomodador.
   Usa --color-primario / --color-menu / --color-boton de $dist
   ========================================================== */

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 240, 245, 0.6), transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(254, 243, 199, 0.5), transparent 50%),
        #faf7f2;
    min-height: 100vh;
    color: #1f2937;
}

/* ===== Navbar ===== */
.pdfs-navbar { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); }

/* ===== Hero ===== */
.pdfs-hero { padding: 1.5rem 0 1rem; }

.pdfs-badge {
    display: inline-block;
    background: #111827;
    color: #fff;
    padding: 0.4rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    box-shadow: 2px 2px 0 var(--color-borde, #1f2937);
}

.pdfs-title {
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.25rem);
    color: #111827;
    margin: 0 0 0.75rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.pdfs-subtitle {
    color: #4b5563;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    max-width: 660px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}

.pdfs-pills { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }

.pdfs-pill {
    display: inline-block;
    background: #fff;
    color: #111827;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 2px solid #111827;
    box-shadow: 2px 2px 0 #111827;
}

/* ===== Card base ===== */
.pdfs-card {
    background: #fff;
    border-radius: 22px;
    padding: 1.5rem;
    border: 2px solid #111827;
    box-shadow: 4px 4px 0 #111827;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pdfs-card:hover { transform: translateY(-2px); box-shadow: 4px 6px 0 #111827; }

.pdfs-card-final { background: linear-gradient(135deg, #fff 0%, #fef3c7 100%); }

/* ===== Step header ===== */
.pdfs-step-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

.pdfs-step-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.15rem;
    line-height: 1.2;
}

.pdfs-step-desc { font-size: 0.85rem; color: #6b7280; margin: 0; }

.pdfs-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--color-primario);
    color: #fff;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.15rem;
    flex-shrink: 0;
    border: 2px solid #111827;
    box-shadow: 2px 2px 0 #111827;
}

/* ===== Selector de modo (Combinar / Dividir / Rotar) ===== */
.pdfs-mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.85rem;
}

.pdfs-mode-card {
    background: #fff;
    border: 2px solid #111827;
    border-radius: 16px;
    padding: 1.15rem 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 3px 3px 0 #111827;
    user-select: none;
    outline: none;
}

.pdfs-mode-card:hover, .pdfs-mode-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 3px 5px 0 #111827;
}

.pdfs-mode-card.active {
    background: var(--color-primario);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 3px 5px 0 #111827;
}

.pdfs-mode-card.active .pdfs-mode-desc { color: rgba(255, 255, 255, 0.92); }

.pdfs-mode-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 0.4rem;
    line-height: 1;
}

.pdfs-mode-title {
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 0.2rem;
}

.pdfs-mode-desc {
    font-size: 0.78rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.35;
}

/* ===== Dropzone ===== */
.pdfs-dropzone {
    border: 3px dashed #d1d5db;
    border-radius: 18px;
    padding: 2.5rem 1rem;
    text-align: center;
    background: #fcfaf7;
    transition: all 0.2s ease;
    cursor: pointer;
    outline: none;
}

.pdfs-dropzone:hover,
.pdfs-dropzone:focus,
.pdfs-dropzone.dragover {
    border-color: var(--color-primario);
    background: #fff;
    transform: scale(1.005);
}

.pdfs-dropzone-icon {
    font-size: 3.5rem;
    color: var(--color-primario);
    display: block;
    margin-bottom: 0.5rem;
}

.pdfs-dropzone-title {
    font-weight: 700;
    color: #111827;
    font-size: 1.1rem;
    margin: 0 0 0.25rem;
}

.pdfs-dropzone-sub {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0 0 1rem;
}

.pdfs-dropzone-info {
    color: #9ca3af;
    font-size: 0.78rem;
    margin: 1rem 0 0;
}

/* ===== Botones ===== */
.pdfs-btn-primary,
.pdfs-btn-secondary,
.pdfs-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 12px;
    padding: 0.6rem 1.4rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 2px solid #111827;
}

.pdfs-btn-primary {
    background: var(--color-boton);
    color: #fff;
    box-shadow: 3px 3px 0 #111827;
}

.pdfs-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 3px 5px 0 #111827;
    color: #fff;
}

.pdfs-btn-secondary {
    background: #fff;
    color: #111827;
    box-shadow: 2px 2px 0 #111827;
}

.pdfs-btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 2px 3px 0 #111827;
}

.pdfs-btn-ghost {
    background: transparent;
    color: #6b7280;
    border-color: #d1d5db;
    box-shadow: none;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
}

.pdfs-btn-ghost:hover { color: #ef4444; border-color: #ef4444; background: #fef2f2; }

/* ===== Panel de archivos (lista de PDFs) ===== */
.pdfs-upload-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

@media (max-width: 768px) {
    .pdfs-upload-row { grid-template-columns: 1fr; }
}

.pdfs-files-panel {
    background: #fcfaf7;
    border: 2px dashed #e5e7eb;
    border-radius: 18px;
    padding: 1rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.pdfs-files-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.pdfs-files-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    text-align: center;
    padding: 1.5rem 0.5rem;
}

.pdfs-files-empty i { font-size: 2.5rem; margin-bottom: 0.5rem; opacity: 0.6; }

.pdfs-files-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

/* Tarjeta de PDF en la lista */
.pdfs-file-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #fff;
    border: 2px solid #111827;
    border-radius: 12px;
    padding: 0.6rem 0.7rem;
    box-shadow: 2px 2px 0 #111827;
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.pdfs-file-card.dragging { opacity: 0.45; transform: scale(0.98); }

.pdfs-file-card.drag-over { border-color: var(--color-primario); box-shadow: 2px 2px 0 var(--color-primario); }

.pdfs-file-handle {
    color: #9ca3af;
    cursor: grab;
    padding: 0 0.15rem;
    font-size: 1.1rem;
    user-select: none;
    flex-shrink: 0;
    touch-action: none;
}

.pdfs-file-handle:active { cursor: grabbing; }

.pdfs-file-icon {
    width: 36px;
    height: 36px;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1.5px solid #dc2626;
    flex-shrink: 0;
}

.pdfs-file-info { flex: 1; min-width: 0; }

.pdfs-file-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: #111827;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdfs-file-meta {
    font-size: 0.72rem;
    color: #6b7280;
    margin: 0.1rem 0 0;
}

.pdfs-file-remove {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem 0.4rem;
    border-radius: 6px;
    font-size: 1.05rem;
    transition: all 0.12s ease;
    flex-shrink: 0;
}

.pdfs-file-remove:hover { background: #fef2f2; color: #dc2626; }

/* ===== Opciones por modo ===== */
.pdfs-options-block {
    background: #fcfaf7;
    border: 1.5px dashed #e5e7eb;
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.pdfs-options-block label {
    font-weight: 600;
    color: #111827;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    display: block;
}

.pdfs-input-text {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Courier New', monospace;
    background: #fff;
    transition: border-color 0.15s ease;
}

.pdfs-input-text:focus {
    outline: none;
    border-color: var(--color-primario);
}

.pdfs-input-help {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0.4rem 0 0;
    line-height: 1.4;
}

.pdfs-input-help code {
    background: #fef3c7;
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
    font-size: 0.85em;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Grupo de rotación rápida */
.pdfs-rotate-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pdfs-rotate-group .btn-check { display: none; }

.pdfs-rotate-btn {
    flex: 1;
    min-width: 70px;
    background: #fff;
    border: 2px solid #111827;
    border-radius: 10px;
    padding: 0.55rem 0.4rem;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.12s ease;
    box-shadow: 2px 2px 0 #111827;
    color: #111827;
}

.pdfs-rotate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 2px 3px 0 #111827;
}

.btn-check:checked + .pdfs-rotate-btn {
    background: var(--color-primario);
    color: #fff;
}

.pdfs-rotate-btn i { display: inline-block; }

/* ===== Resumen final ===== */
.pdfs-summary {
    background: #fff;
    border: 2px solid #111827;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin: 0 auto 1rem;
    max-width: 560px;
    color: #6b7280;
    font-size: 0.95rem;
    box-shadow: 2px 2px 0 #111827;
}

.pdfs-summary.has-data { color: #111827; }

.pdfs-summary p { margin: 0; }

.pdfs-summary .pdfs-summary-main {
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
    margin-bottom: 0.2rem;
}

/* ===== Botón descarga ===== */
.pdfs-btn-download {
    background: var(--color-primario);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 0.85rem 2rem;
    border: 2px solid #111827;
    border-radius: 14px;
    box-shadow: 4px 4px 0 #111827;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pdfs-btn-download:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 4px 6px 0 #111827;
}

.pdfs-btn-download:disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
    box-shadow: 2px 2px 0 #9ca3af;
}

/* ===== Progress ===== */
.pdfs-progress {
    max-width: 400px;
    margin: 1rem auto 0;
}

/* ===== Secciones SEO ===== */
.pdfs-seo-section {
    background: #fff;
    border: 2px solid #111827;
    border-radius: 22px;
    padding: 1.75rem 1.5rem;
    margin-top: 2.5rem;
    box-shadow: 4px 4px 0 #111827;
}

.pdfs-seo-title {
    font-weight: 800;
    font-size: 1.5rem;
    color: #111827;
    margin: 0 0 0.6rem;
    line-height: 1.2;
}

.pdfs-seo-lead {
    color: #4b5563;
    font-size: 0.95rem;
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

/* ===== HowTo ===== */
.pdfs-howto-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.pdfs-howto-step {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    background: #fcfaf7;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1.5px solid #e5e7eb;
}

.pdfs-howto-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--color-primario);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    border: 2px solid #111827;
}

.pdfs-howto-step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: #111827;
}

.pdfs-howto-step h3 i { color: var(--color-primario); margin-right: 0.3rem; }

.pdfs-howto-step p { margin: 0; color: #6b7280; font-size: 0.9rem; line-height: 1.5; }

/* ===== Beneficios ===== */
.pdfs-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.pdfs-benefit {
    background: #fcfaf7;
    padding: 1.1rem 1rem;
    border-radius: 14px;
    border: 1.5px solid #e5e7eb;
    text-align: center;
}

.pdfs-benefit i {
    font-size: 2rem;
    color: var(--color-primario);
    display: block;
    margin-bottom: 0.4rem;
}

.pdfs-benefit h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
    color: #111827;
}

.pdfs-benefit p { margin: 0; color: #6b7280; font-size: 0.82rem; line-height: 1.4; }

/* ===== Casos de uso ===== */
.pdfs-usecases {
    margin: 0;
    padding-left: 1.25rem;
    color: #4b5563;
    line-height: 1.7;
}

.pdfs-usecases li { margin-bottom: 0.45rem; }
.pdfs-usecases strong { color: #111827; }

/* ===== FAQ ===== */
.pdfs-faq .accordion-item {
    border: 2px solid #111827;
    border-radius: 12px !important;
    margin-bottom: 0.65rem;
    overflow: hidden;
    box-shadow: 2px 2px 0 #111827;
}

.pdfs-faq .accordion-button {
    font-weight: 700;
    color: #111827;
    background: #fff;
    border: none;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
}

.pdfs-faq .accordion-button:not(.collapsed) {
    background: var(--color-primario);
    color: #fff;
    box-shadow: none;
}

.pdfs-faq .accordion-button:focus { box-shadow: none; outline: none; }

.pdfs-faq .accordion-body {
    background: #fcfaf7;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.55;
    padding: 0.9rem 1rem;
}

/* ===== Responsive ===== */
@media (max-width: 576px) {
    .pdfs-card { padding: 1.15rem; border-radius: 18px; }
    .pdfs-step-header h2 { font-size: 1.05rem; }
    .pdfs-step-num { width: 32px; height: 32px; font-size: 1rem; }
    .pdfs-btn-download { font-size: 1rem; padding: 0.7rem 1.5rem; }
    .pdfs-seo-section { padding: 1.25rem 1rem; border-radius: 18px; }
    .pdfs-mode-card { padding: 0.9rem 0.6rem; }
    .pdfs-mode-icon { font-size: 1.8rem; }
    .pdfs-mode-title { font-size: 0.92rem; }
}

/* ===== Accesibilidad ===== */
*:focus-visible {
    outline: 3px solid var(--color-primario);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Modos ocultos hasta seleccionar */
.pdfs-mode-section { display: none; }
.pdfs-mode-section.active { display: block; animation: fadeIn 0.2s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   v2: Estilos para los 8 modos y componentes nuevos
   ============================================================ */

/* ===== Grupos de modos (Organizar / Modificar) ===== */
.pdfs-mode-group {
    margin-top: 1.25rem;
}
.pdfs-mode-group:first-child {
    margin-top: 0;
}
.pdfs-mode-group-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-borde, #1f2937);
    margin: 0 0 0.6rem 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.pdfs-mode-group-title i {
    color: var(--color-primario, #ec4899);
}

/* ===== Sistema de tabs (genérico para dividir/rotar/marca-agua) ===== */
.pdfs-tabs {
    display: flex;
    gap: 0.4rem;
    margin: 0.4rem 0 0.8rem;
    flex-wrap: wrap;
}
.pdfs-tab-btn {
    background: #fff;
    border: 2px solid #d1d5db;
    color: #4b5563;
    border-radius: 12px;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: all 0.15s ease;
}
.pdfs-tab-btn:hover {
    border-color: var(--color-primario, #ec4899);
    color: var(--color-primario, #ec4899);
}
.pdfs-tab-btn.active {
    background: var(--color-primario, #ec4899);
    border-color: var(--color-primario, #ec4899);
    color: #fff;
}
.pdfs-tab-panel { display: none; padding-top: 0.5rem; }
.pdfs-tab-panel.active { display: block; }

/* ===== Aviso "sube un PDF para continuar" ===== */
.pdfs-info-empty {
    background: #fff7ed;
    border: 1.5px dashed #fb923c;
    color: #9a3412;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}
.pdfs-info-empty i { font-size: 1.1rem; flex-shrink: 0; }

/* ===== Dividir: rango con selects ===== */
.pdfs-range-row {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.pdfs-range-field {
    flex: 1 1 160px;
    min-width: 140px;
}
.pdfs-range-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.25rem;
}
.pdfs-range-sep {
    font-weight: 700;
    color: var(--color-primario, #ec4899);
    padding-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* ===== Rotar: grilla por página ===== */
.pdfs-rotate-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
    padding: 0.4rem 0.6rem;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}
.pdfs-rotate-toolbar-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
    margin-right: 0.25rem;
}
.pdfs-mini-btn {
    background: #fff;
    border: 1.5px solid #d1d5db;
    color: #374151;
    border-radius: 8px;
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.pdfs-mini-btn:hover {
    border-color: var(--color-primario, #ec4899);
    color: var(--color-primario, #ec4899);
}
.pdfs-mini-btn-ghost {
    background: transparent;
    border-color: #9ca3af;
}
.pdfs-rotate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
    max-height: 420px;
    overflow-y: auto;
    padding: 0.4rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}
.pdfs-rotpage {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.pdfs-rotpage.has-rotation {
    border-color: var(--color-primario, #ec4899);
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.12);
}
.pdfs-rotpage-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
}
.pdfs-rotpage-select {
    font-size: 0.8rem !important;
    padding: 0.25rem 0.5rem !important;
}

/* ===== Reordenar: miniaturas ===== */
.pdfs-reorder-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}
.pdfs-reorder-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    background: #eff6ff;
    border: 1.5px solid #93c5fd;
    color: #1e40af;
    border-radius: 12px;
    font-size: 0.9rem;
}
.pdfs-reorder-loading.d-none { display: none !important; }
.pdfs-reorder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    padding: 0.4rem;
}
.pdfs-thumb {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.5rem;
    cursor: move;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
    user-select: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.pdfs-thumb:hover {
    border-color: var(--color-primario, #ec4899);
}
.pdfs-thumb.dragging {
    opacity: 0.55;
    transform: scale(0.97);
}
.pdfs-thumb.drag-over {
    border-color: var(--color-primario, #ec4899);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.18);
}
.pdfs-thumb-img {
    background: #f3f4f6;
    border-radius: 8px;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.pdfs-thumb-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}
.pdfs-thumb-spinner {
    color: #9ca3af;
    font-size: 1.4rem;
    font-weight: 700;
}
.pdfs-thumb-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    text-align: center;
}
.pdfs-thumb-actions {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
}
.pdfs-thumb-btn {
    background: #fff;
    border: 1.5px solid #d1d5db;
    color: #374151;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.85rem;
}
.pdfs-thumb-btn:hover {
    border-color: var(--color-primario, #ec4899);
    color: var(--color-primario, #ec4899);
}
.pdfs-thumb-btn-danger:hover {
    background: #fef2f2;
    border-color: #dc2626;
    color: #dc2626;
}

/* ===== Comprimir: cards de calidad ===== */
.pdfs-quality-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.6rem;
    margin-top: 0.4rem;
}
.pdfs-quality-card {
    background: #fff;
    border: 2px solid #d1d5db;
    border-radius: 14px;
    padding: 0.85rem 0.9rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: left;
    transition: all 0.15s ease;
    margin: 0;
}
.pdfs-quality-card strong {
    font-size: 0.95rem;
    color: #1f2937;
    font-weight: 700;
}
.pdfs-quality-card span {
    font-size: 0.8rem;
    color: #6b7280;
}
.pdfs-quality-card:hover {
    border-color: var(--color-primario, #ec4899);
}
.btn-check:checked + .pdfs-quality-card {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.08), rgba(236, 72, 153, 0.02));
    border-color: var(--color-primario, #ec4899);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.12);
}

/* ===== Posición (grid de botones) ===== */
.pdfs-pos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    max-width: 280px;
    margin-top: 0.4rem;
}
.pdfs-pos-grid-6 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
}
.pdfs-pos-btn {
    background: #fff;
    border: 1.5px solid #d1d5db;
    color: #4b5563;
    border-radius: 10px;
    padding: 0.55rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    min-height: 44px;
}
.pdfs-pos-grid-6 .pdfs-pos-btn {
    font-size: 0.8rem;
    text-align: center;
}
.pdfs-pos-btn:hover {
    border-color: var(--color-primario, #ec4899);
    color: var(--color-primario, #ec4899);
}
.pdfs-pos-btn.active {
    background: var(--color-primario, #ec4899);
    border-color: var(--color-primario, #ec4899);
    color: #fff;
}

/* ===== Marca de agua: secciones texto/imagen ===== */
.pdfs-wm-section.pdfs-tab-panel { padding-top: 0.5rem; }

/* ===== Sliders con valor ===== */
.pdfs-slider-row {
    margin-top: 0.4rem;
}
.pdfs-slider-row label {
    display: block;
    font-size: 0.85rem;
    color: #4b5563;
    margin-bottom: 0.25rem;
}
.pdfs-slider-row label output {
    font-weight: 700;
    color: var(--color-primario, #ec4899);
    margin-left: 0.25rem;
}

/* ===== Grid 2 columnas ===== */
.pdfs-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.pdfs-grid-2 > div label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.25rem;
}

/* ===== Encabezado/pie: alineación inline ===== */
.pdfs-align-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pdfs-align-row label {
    font-size: 0.85rem;
    color: #4b5563;
    font-weight: 600;
    margin-bottom: 0 !important;
}

/* ===== Drag-and-drop (común a archivos y miniaturas) ===== */
.pdfs-file-card.dragging { opacity: 0.55; }
.pdfs-file-card.drag-over { box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.25); }

/* ===== Responsive ajustes adicionales ===== */
@media (max-width: 576px) {
    .pdfs-mode-group-title { font-size: 0.85rem; }
    .pdfs-tab-btn { padding: 0.5rem 0.8rem; font-size: 0.85rem; }
    .pdfs-rotate-grid, .pdfs-reorder-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
    .pdfs-quality-group {
        grid-template-columns: 1fr;
    }
    .pdfs-pos-grid { max-width: 100%; }
    .pdfs-range-row { flex-direction: column; align-items: stretch; }
    .pdfs-range-sep { text-align: center; padding-bottom: 0; }
}
