/* ============================================================================
   FINLEX ONE — ESTILOS OFICIALES DESCARGA MASIVA XML + PDF + TABLERO 360° GRATIS
   Archivo: finlexone/assets/css/descarga_xml_gratis.css
   ============================================================================ */
:root {
    --dxg-navy: #0d2c4e;
    --dxg-slate-900: #0f172a;
    --dxg-slate-800: #1e293b;
    --dxg-slate-700: #334155;
    --dxg-slate-500: #64748b;
    --dxg-border: #e2e8f0;
    --dxg-cyan: #00a7e0;
    --dxg-cyan-dark: #0284c7;
    --dxg-emerald: #059669;
    --dxg-emerald-light: #10b981;
    --dxg-gold: #d97706;
    --dxg-danger: #dc2626;
    --dxg-bg: #f4f7fb;
}

body.dxg-page {
    font-family: 'Inter', 'Roboto', sans-serif;
    background-color: var(--dxg-bg);
    color: var(--dxg-slate-900);
    margin: 0;
    padding: 0;
}

.dxg-container {
    width: 94%;
    max-width: 1280px;
    margin: 0 auto;
}

/* --- CINTILLA SUPERIOR DE ACTIVIDAD EN VIVO --- */
.dxg-live-bar {
    background: linear-gradient(90deg, #07192e 0%, #0f172a 50%, #06283d 100%);
    color: #f8fafc;
    font-size: 0.82rem;
    padding: 9px 0;
    border-bottom: 1px solid rgba(56, 189, 248, 0.25);
}
.dxg-live-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.dxg-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #6ee7b7;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.75rem;
}
.dxg-pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: dxgPulse 1.8s infinite;
}
@keyframes dxgPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.dxg-live-ticker {
    color: #cbd5e1;
    flex: 1;
    min-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dxg-live-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fbbf24;
    font-weight: 800;
}

/* --- HERO Y BARRA DE ENLACES RÁPIDOS --- */
.dxg-hero {
    background: radial-gradient(circle at 80% 20%, rgba(0, 167, 224, 0.22), transparent 45%),
                linear-gradient(135deg, #091e36 0%, #0d2c4e 58%, #0f172a 100%);
    color: #ffffff;
    padding: 38px 0 34px 0;
    border-bottom: 3px solid var(--dxg-cyan);
}
.dxg-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}
.dxg-hero-copy {
    flex: 1 1 640px;
}
.dxg-badge-zero {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #7dd3fc;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.dxg-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.55rem, 2.7vw, 2.3rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.22;
}
.dxg-hero h1 span {
    color: #38bdf8;
}
.dxg-hero p {
    color: #cbd5e1;
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0 0 18px 0;
    max-width: 820px;
}

/* Barra rápida de botones del ecosistema */
.dxg-quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.dxg-qbtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 9px;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.2s ease;
}
.dxg-qbtn-trial {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}
.dxg-qbtn-trial:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.48);
}
.dxg-qbtn-glass {
    background: rgba(255, 255, 255, 0.09);
    color: #f1f5f9 !important;
}
.dxg-qbtn-glass:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

/* --- LAYOUT PRINCIPAL 2 COLUMNAS --- */
.dxg-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.15fr) minmax(300px, 1fr);
    gap: 24px;
    margin-top: 26px;
    margin-bottom: 30px;
    align-items: start;
}
@media (max-width: 992px) {
    .dxg-main-grid {
        grid-template-columns: 1fr;
    }
}

.dxg-card {
    background: #ffffff;
    border: 1px solid var(--dxg-border);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    padding: 24px;
    margin-bottom: 20px;
}
.dxg-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.dxg-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--dxg-slate-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}
.dxg-credits-pill {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0369a1;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}
.dxg-credits-pill.exhausted {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

/* Zonas de carga FIEL */
.dxg-fiel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}
@media (max-width: 640px) {
    .dxg-fiel-grid {
        grid-template-columns: 1fr;
    }
}
.dxg-dropzone {
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.dxg-dropzone:hover, .dxg-dropzone.dragover {
    border-color: var(--dxg-cyan);
    background: #f0f9ff;
}
.dxg-dropzone.loaded {
    border-color: var(--dxg-emerald-light);
    border-style: solid;
    background: #f0fdf4;
}
.dxg-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.dxg-dropzone i {
    font-size: 1.5rem;
    color: var(--dxg-cyan-dark);
    margin-bottom: 6px;
}
.dxg-dropzone.loaded i {
    color: var(--dxg-emerald);
}
.dxg-dropzone-title {
    font-weight: 800;
    font-size: 0.86rem;
    color: var(--dxg-slate-800);
}
.dxg-dropzone-sub {
    font-size: 0.75rem;
    color: var(--dxg-slate-500);
    margin-top: 3px;
    word-break: break-all;
}

.dxg-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}
@media (max-width: 640px) {
    .dxg-form-row {
        grid-template-columns: 1fr;
    }
}
.dxg-field label {
    display: block;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--dxg-slate-700);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}
.dxg-input, .dxg-select {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--dxg-slate-900);
    background: #ffffff;
    transition: border-color 0.2s;
}
.dxg-input:focus, .dxg-select:focus {
    outline: none;
    border-color: var(--dxg-cyan-dark);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

/* Tarjeta detectada de FIEL */
.dxg-fiel-status {
    display: none;
    padding: 12px 15px;
    border-radius: 9px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    line-height: 1.5;
}
.dxg-fiel-status.valid {
    display: block;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}
.dxg-fiel-status.invalid {
    display: block;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Años anteriores bloqueados como anzuelo Pro */
.dxg-locked-years {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 7px;
}
.dxg-year-chip {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
}
.dxg-year-chip.active-year {
    background: #dbeafe;
    border-color: #60a5fa;
    color: #1d4ed8;
    cursor: default;
}
.dxg-year-chip.locked:hover {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

/* Bloque OTP Correo */
.dxg-otp-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}
.dxg-otp-inline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.dxg-otp-inline .dxg-input {
    flex: 1 1 220px;
}
.dxg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 9px;
    font-weight: 800;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.dxg-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.dxg-btn-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0d2c4e 100%);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.25);
}
.dxg-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.35);
}
.dxg-btn-emerald {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
}
.dxg-btn-slate {
    background: #1e293b;
    color: #ffffff;
}
.dxg-btn-outline {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: var(--dxg-slate-800);
}
.dxg-btn-outline:hover:not(:disabled) {
    border-color: var(--dxg-cyan-dark);
    color: var(--dxg-cyan-dark);
}

/* Bandeja de progreso asíncrono 24h */
.dxg-progress-panel {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}
.dxg-steps-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 14px 0;
}
@media (max-width: 640px) {
    .dxg-steps-track {
        grid-template-columns: 1fr 1fr;
    }
}
.dxg-step-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px;
    font-size: 0.76rem;
    color: #94a3b8;
}
.dxg-step-item.active {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.14);
    color: #ffffff;
}
.dxg-step-item.done {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.16);
    color: #a7f3d0;
}

/* --- SIDEBAR DE PRUEBA SOCIAL Y CALIFICACIONES --- */
.dxg-feed-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 290px;
    overflow-y: auto;
}
.dxg-feed-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 9px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.8rem;
}
.dxg-feed-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dxg-review-mini {
    border-bottom: 1px solid #f1f5f9;
    padding: 10px 0;
    font-size: 0.82rem;
}
.dxg-review-mini:last-child {
    border-bottom: none;
}
.dxg-stars {
    color: #f59e0b;
    letter-spacing: 1px;
}

/* --- WORKSPACE DE RESULTADOS (VISOR + TABLERO 360 + VALIDADOR) --- */
.dxg-workspace {
    display: none;
    margin-bottom: 36px;
}
.dxg-workspace.visible {
    display: block;
}
.dxg-download-bar {
    background: linear-gradient(135deg, #0d2c4e 0%, #0f172a 100%);
    color: #ffffff;
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}
.dxg-dl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.dxg-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.dxg-dl-btn-zip-all {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.dxg-dl-btn-pdfs {
    background: #dc2626;
    color: #ffffff;
}
.dxg-dl-btn-xmls {
    background: #0284c7;
    color: #ffffff;
}
.dxg-dl-btn-excel {
    background: #15803d;
    color: #ffffff;
}
.dxg-dl-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

/* Tabs del Workspace */
.dxg-ws-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #cbd5e1;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.dxg-ws-tab {
    padding: 12px 20px;
    border: none;
    background: #e2e8f0;
    color: #475569;
    font-weight: 800;
    font-size: 0.88rem;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.dxg-ws-tab.active {
    background: #ffffff;
    color: #0284c7;
    box-shadow: 0 -3px 0 #0284c7 inset;
}
.dxg-badge-count {
    background: #dc2626;
    color: #ffffff;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
}

/* Tabla Visor XML */
.dxg-visor-toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
    background: #f8fafc;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 14px;
}
.dxg-pills-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.dxg-pill {
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}
.dxg-pill.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.dxg-table-wrap {
    overflow-x: auto;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
}
.dxg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.81rem;
}
.dxg-table th {
    background: #e2e8f0;
    color: #1e293b;
    padding: 10px 10px;
    text-align: left;
    font-size: 0.73rem;
    text-transform: uppercase;
    font-weight: 900;
}
.dxg-table td {
    padding: 9px 10px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
}
.dxg-table tbody tr {
    cursor: pointer;
    transition: background 0.15s;
}
.dxg-table tbody tr:hover {
    background: #f0f9ff;
}

/* Tablero Fiscal 360° (idéntico en jerarquía a mod_auditor_xml_sat.js) */
.dxg-tf-section-hdr {
    background: #059669;
    color: #ffffff;
    padding: 9px 14px;
    font-weight: 900;
    text-align: center;
    font-size: 0.85rem;
    border-radius: 8px 8px 0 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 18px;
}
.dxg-tf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 12px;
}
@media (max-width: 960px) {
    .dxg-tf-grid {
        grid-template-columns: 1fr;
    }
}
.dxg-tf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.76rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
}
.dxg-tf-table th, .dxg-tf-table td {
    padding: 6px 8px;
    border: 1px solid #cbd5e1;
}
.dxg-tf-table th {
    background: #e2e8f0;
    font-size: 0.68rem;
    text-transform: uppercase;
    font-weight: 900;
    text-align: center;
}
.dxg-tf-table td.num {
    text-align: right;
    font-family: monospace;
}
.dxg-tf-table tr.sub-row td {
    background: #f1f5f9;
    font-weight: 900;
    border-top: 2px solid #94a3b8;
}

/* Star Rating Interactive Input */
.dxg-star-picker {
    display: inline-flex;
    gap: 6px;
    font-size: 1.55rem;
    cursor: pointer;
}
.dxg-star-picker i {
    color: #cbd5e1;
    transition: color 0.15s, transform 0.15s;
}
.dxg-star-picker i.selected, .dxg-star-picker i.hovered {
    color: #f59e0b;
    transform: scale(1.1);
}

/* --- SECCIONES DEL ECOSISTEMA (BLOG, PARTNERS, CURSOS, PRUEBA 7 DÍAS) --- */
.dxg-eco-section {
    margin: 40px 0;
}
.dxg-eco-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.dxg-eco-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 900px) {
    .dxg-eco-grid-3 {
        grid-template-columns: 1fr;
    }
}
.dxg-eco-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}
.dxg-eco-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.09);
    border-color: #7dd3fc;
}
.dxg-eco-tag {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    background: #e0f2fe;
    color: #0369a1;
    margin-bottom: 10px;
}

/* Modal Registro 7 Días */
.dxg-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.76);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.dxg-modal-backdrop.open {
    display: flex;
}
.dxg-modal-box {
    background: #ffffff;
    width: 100%;
    max-width: 860px;
    border-radius: 16px;
    padding: 28px;
    position: relative;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}
.dxg-modal-split {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 22px;
    margin-top: 16px;
}
@media (max-width: 768px) {
    .dxg-modal-split {
        grid-template-columns: 1fr;
    }
}
.dxg-modal-google-col {
    background: linear-gradient(145deg, #0f172a 0%, #0d2c4e 100%);
    color: #ffffff;
    padding: 22px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.dxg-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    color: #0f172a !important;
    font-weight: 800;
    padding: 12px 16px;
    border-radius: 9px;
    text-decoration: none;
    margin: 14px 0;
    transition: transform 0.15s;
}
.dxg-google-btn:hover {
    transform: scale(1.02);
}

/* --- NAVEGACIÓN PRINCIPAL POR PESTAÑAS (V2) --- */
.dxg-main-tabs-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    background: #ffffff;
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    padding: 10px;
    margin: 24px 0 24px 0;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
@media (max-width: 960px) {
    .dxg-main-tabs-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 520px) {
    .dxg-main-tabs-bar {
        grid-template-columns: 1fr;
    }
}

.dxg-main-tab-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1.5px solid transparent;
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.dxg-main-tab-btn:hover {
    background: #f0f9ff;
    border-color: #bae6fd;
    transform: translateY(-1px);
}
.dxg-main-tab-btn.active {
    background: linear-gradient(135deg, #0d2c4e 0%, #0284c7 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.28);
}

.dxg-main-tab-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #e0f2fe;
    color: #0284c7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.08rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.dxg-main-tab-btn.active .dxg-main-tab-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.dxg-main-tab-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.dxg-main-tab-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.94rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}
.dxg-main-tab-sub {
    font-size: 0.74rem;
    color: #64748b;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dxg-main-tab-btn.active .dxg-main-tab-sub {
    color: #e0f2fe;
}

.dxg-main-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 900;
    background: #10b981;
    color: #ffffff;
}
.dxg-main-tab-badge.dxg-badge-amber {
    background: #fef3c7;
    color: #92400e;
}
.dxg-main-tab-btn.active .dxg-main-tab-badge.dxg-badge-amber {
    background: rgba(251, 191, 36, 0.25);
    color: #fde68a;
}

.dxg-main-tab-pane {
    display: none;
    animation: dxgFadeTab 0.22s ease;
}
.dxg-main-tab-pane.active {
    display: block;
}
@keyframes dxgFadeTab {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Aviso superior en Solicitud cuando ya existen descargas listas o pendientes */
.dxg-solicitud-resume-banner {
    background: linear-gradient(135deg, #ecfdf5 0%, #e0f2fe 100%);
    border: 1.5px solid #38bdf8;
    border-radius: 12px;
    padding: 13px 18px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Estado vacío amigable en Mis Descargas */
.dxg-empty-downloads {
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 46px 24px;
    text-align: center;
    margin-bottom: 24px;
}
.dxg-empty-downloads-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0284c7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    margin-bottom: 14px;
}
.dxg-empty-downloads h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: #0f172a;
    margin: 0 0 8px 0;
}
.dxg-empty-downloads p {
    max-width: 620px;
    margin: 0 auto 18px auto;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
}

/* Cintilla y cuadrícula de la pestaña Comunidad */
.dxg-community-stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}
@media (max-width: 768px) {
    .dxg-community-stats-strip {
        grid-template-columns: 1fr;
    }
}
.dxg-community-stat-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}
.dxg-community-stat-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.85rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.1;
}
.dxg-community-stat-lbl {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 5px;
}

.dxg-community-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 22px;
    align-items: start;
}
@media (max-width: 960px) {
    .dxg-community-grid {
        grid-template-columns: 1fr;
    }
}

/* Portadas y contenedores reales de Blog, Foro Partners y Cursos */
.dxg-eco-cover {
    width: 100%;
    height: 148px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #f1f5f9;
    display: block;
}
.dxg-eco-meta-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
    margin-top: 4px;
}
.dxg-eco-empty-box {
    grid-column: 1 / -1;
    background: #ffffff;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    padding: 26px 22px;
    text-align: center;
}

/* Tarjetas interactivas de descargas múltiples en Mis Descargas */
.dxg-job-item {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 13px 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    transition: all 0.18s ease;
}
.dxg-job-item:last-child {
    margin-bottom: 0;
}
.dxg-job-item.is-clickable {
    cursor: pointer;
    background: #ffffff;
}
.dxg-job-item.is-clickable:hover {
    border-color: #0284c7;
    background: #f0f9ff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(2, 132, 199, 0.1);
}
.dxg-job-item.is-viewing {
    border-color: #059669;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0f9ff 100%);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.12);
}
.dxg-job-viewing-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #059669;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
}
.dxg-job-open-btn {
    padding: 7px 13px !important;
    font-size: 0.78rem !important;
    border-color: #0284c7 !important;
    color: #0284c7 !important;
    background: #ffffff !important;
}
.dxg-job-item.is-clickable:hover .dxg-job-open-btn {
    background: #0284c7 !important;
    color: #ffffff !important;
}
