/*
=================================================
DC Framework - components.css
Archivo completo limpio y actualizado
Generado desde components(3).css
=================================================
*/

/* Botones */
.dc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: var(--dc-radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--dc-speed) ease;
    border: 1px solid transparent;
    text-decoration: none;
}

.dc-btn-primary {
    background: var(--dc-primary);
    color: #fff !important;
}

.dc-btn-primary:hover {
    background: var(--dc-primary-hover);
    color: #fff !important;
    transform: translateY(-2px);
}

.dc-btn-outline {
    background: transparent;
    color: var(--dc-text);
    border-color: var(--dc-border);
}

.dc-btn-outline:hover {
    background: var(--dc-bg-soft);
    color: var(--dc-text);
}

/* Cards */
.dc-card {
    background: var(--dc-bg);
    border: 1px solid var(--dc-border);
    border-radius: var(--dc-radius-lg);
    box-shadow: var(--dc-shadow-sm);
    padding: 32px;
    transition: all var(--dc-speed) ease;
}

.dc-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--dc-shadow-md);
}

.dc-card h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 14px;
}

.dc-card p {
    color: var(--dc-text-light);
}

/* Badges */
.dc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.dc-badge-primary {
    background: #dbeafe;
    color: var(--dc-primary);
}

.dc-badge-light {
    background: rgba(255,255,255,.18);
    color: #fff;
}

/* Formularios */
.dc-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.dc-form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.dc-form-group label,
.dc-label {
    display: block;
    font-weight: 700;
    font-size: 15px;
    color: var(--dc-text);
}

.dc-input,
.dc-textarea,
.dc-select {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid var(--dc-border);
    border-radius: var(--dc-radius-md);
    background: var(--dc-bg);
    color: var(--dc-text);
    font-size: 16px;
    outline: none;
    transition: .3s ease;
}

.dc-input:focus,
.dc-textarea:focus,
.dc-select:focus {
    border-color: var(--dc-primary);
    box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

.dc-textarea {
    resize: vertical;
    min-height: 150px;
}

.dc-checkbox,
.dc-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.dc-checkbox input,
.dc-radio input {
    width: 18px;
    height: 18px;
}

.dc-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.dc-switch input {
    display: none;
}

.dc-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cbd5e1;
    border-radius: 50px;
    transition: .3s;
}

.dc-slider:before {
    content: "";
    position: absolute;
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background: #fff;
    border-radius: 50%;
    transition: .3s;
}

.dc-switch input:checked + .dc-slider {
    background: var(--dc-primary);
}

.dc-switch input:checked + .dc-slider:before {
    transform: translateX(26px);
}

/* Alertas */
.dc-alert {
    padding: 24px;
    border-radius: var(--dc-radius-lg);
    border-left: 6px solid;
    font-weight: 600;
}

.dc-alert h4 {
    margin-bottom: 10px;
    font-size: 22px;
}

.dc-alert-success {
    background: #dcfce7;
    border-color: #22c55e;
    color: #166534;
}

.dc-alert-warning {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.dc-alert-danger {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

.dc-alert-info {
    background: #dbeafe;
    border-color: #2563eb;
    color: #1e3a8a;
}

/* Navbar */
.dc-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    transition: .3s ease;
}

.dc-navbar-scrolled {
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--dc-border);
    box-shadow: 0 10px 30px rgba(15,23,42,.08);
}

.dc-navbar-inner {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.dc-navbar-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.dc-navbar-logo:hover {
    color: inherit;
}

.dc-navbar-logo-text {
    color: inherit;
    text-decoration: none;
    font-weight: 900;
}

.dc-navbar-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--dc-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.dc-navbar-logo h2 {
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    margin: 0;
}

.dc-navbar-logo p {
    font-size: 12px;
    color: var(--dc-text-light);
    margin: 0;
}

.dc-navbar-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 700;
}

.dc-navbar-menu-list {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dc-navbar-menu-list a,
.dc-mobile-menu-list a {
    text-decoration: none;
    color: inherit;
    font-weight: 700;
}

.dc-navbar-menu-list a:hover,
.dc-login-link:hover {
    color: var(--dc-primary);
}

.dc-navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dc-login-link {
    color: var(--dc-text);
    text-decoration: none;
    font-weight: 700;
}

.dc-icon-btn,
.dc-mobile-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--dc-border);
    background: var(--dc-bg);
    color: var(--dc-text);
    cursor: pointer;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dc-mobile-btn {
    display: none;
}

/* Mobile Menu */
.dc-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.55);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
}

.dc-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.dc-mobile-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(340px,90%);
    height: 100vh;
    background: var(--dc-bg);
    color: var(--dc-text);
    z-index: 1001;
    padding: 24px;
    transition: .3s ease;
    box-shadow: -20px 0 40px rgba(15,23,42,.15);
}

.dc-mobile-panel.active {
    right: 0;
}

.dc-mobile-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dc-mobile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dc-mobile-menu-list a {
    font-size: 18px;
}

.dc-mobile-login {
    margin-top: 30px;
    width: 100%;
    justify-content: center;
}

.dc-menu-open {
    overflow: hidden;
}

/* Hero */
.dc-hero {
    padding-top: 140px;
}

.dc-hero-grid {
    align-items: center;
    gap: 80px;
}

.dc-hero-title {
    font-size: clamp(42px,6vw,72px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 28px;
}

.dc-hero-text {
    font-size: 20px;
    color: var(--dc-text-light);
    max-width: 620px;
    margin-bottom: 36px;
}

.dc-hero-actions {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.dc-hero-stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 24px;
    margin-top: 56px;
}

.dc-hero-stats strong {
    display: block;
    font-size: 34px;
    color: var(--dc-primary);
    font-weight: 900;
}

.dc-hero-stats span {
    color: var(--dc-text-light);
}

.dc-hero-image img,
.dc-featured-image img,
.dc-post-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--dc-radius-xl);
    box-shadow: var(--dc-shadow-lg);
}

/* Section Title */
.dc-section-title {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.dc-section-title h1,
.dc-section-title h2 {
    font-size: clamp(36px,5vw,56px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.dc-section-title p {
    font-size: 20px;
    color: var(--dc-text-light);
}

/* Services */
.dc-service-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

/* Steps */
.dc-step {
    text-align: center;
    padding: 28px;
}

.dc-step-number {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--dc-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
}

.dc-step h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.dc-step p {
    color: var(--dc-text-light);
}

/* Benefits */
.dc-benefits {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}

.dc-benefit {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: var(--dc-bg);
    border: 1px solid var(--dc-border);
    border-radius: var(--dc-radius-lg);
    transition: all .3s ease;
}

.dc-benefit:hover {
    transform: translateX(8px);
    box-shadow: var(--dc-shadow-md);
}

.dc-benefit-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--dc-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.dc-benefit h3 {
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: 800;
}

.dc-benefit p {
    color: var(--dc-text-light);
}

/* Testimonials / use cases */
.dc-testimonial p {
    color: var(--dc-text-light);
    font-size: 17px;
    margin: 20px 0 28px;
}

.dc-stars {
    color: #f59e0b;
    font-size: 22px;
    letter-spacing: 2px;
}

.dc-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dc-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--dc-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.dc-user h4 {
    font-weight: 800;
}

.dc-user span {
    color: var(--dc-text-light);
    font-size: 14px;
}

/* Stats */
.dc-stats-section {
    background: var(--dc-primary);
    color: #fff;
}

.dc-stats-section .dc-section-title p {
    color: rgba(255,255,255,.8);
}

.dc-stat {
    text-align: center;
}

.dc-stat strong {
    display: block;
    font-size: clamp(36px,5vw,56px);
    font-weight: 900;
    line-height: 1;
}

.dc-stat span {
    display: block;
    margin-top: 14px;
    font-size: 18px;
    color: rgba(255,255,255,.85);
}

/* FAQ */
.dc-faq {
    max-width: 900px;
    margin: auto;
}

.dc-faq-item {
    border: 1px solid var(--dc-border);
    border-radius: var(--dc-radius-lg);
    margin-bottom: 20px;
    overflow: hidden;
    background: var(--dc-bg);
}

.dc-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--dc-text);
    font-size: 20px;
    font-weight: 700;
    text-align: left;
}

.dc-faq-icon {
    font-size: 32px;
    color: var(--dc-primary);
}

.dc-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
}

.dc-faq-answer p {
    padding: 0 24px 24px;
    color: var(--dc-text-light);
    line-height: 1.8;
}

/* Footer CTA */
.dc-footer-cta {
    background: linear-gradient(135deg,#2563eb,#1d4ed8);
}

.dc-footer-cta-box {
    color: #fff;
    max-width: 900px;
    margin: auto;
}

.dc-footer-cta-box h2 {
    font-size: clamp(40px,5vw,64px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.dc-footer-cta-box p {
    font-size: 20px;
    color: rgba(255,255,255,.88);
    max-width: 760px;
    margin: auto;
}

/* Footer */
.dc-footer {
    background: #020617;
    color: #fff;
    padding: 90px 0 40px;
}

.dc-footer-logo {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.dc-footer-logo h2 {
    font-size: 28px;
    font-weight: 900;
}

.dc-footer-logo span {
    color: #60a5fa;
}

.dc-footer-logo p {
    color: #94a3b8;
    font-size: 14px;
}

.dc-footer-text {
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 30px;
}

.dc-footer h3 {
    margin-bottom: 24px;
    font-size: 22px;
}

.dc-footer ul {
    list-style: none;
    padding: 0;
}

.dc-footer li {
    margin-bottom: 14px;
    color: #cbd5e1;
}

.dc-footer-social {
    display: flex;
    gap: 14px;
}

.dc-footer-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    color: #fff;
    border-radius: 12px;
    transition: .3s;
    text-decoration: none;
}

.dc-footer-social a:hover {
    background: var(--dc-primary);
    color: #fff;
}

.dc-footer hr {
    border: none;
    border-top: 1px solid #334155;
    margin: 60px 0 30px;
}

.dc-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.dc-footer-bottom div {
    display: flex;
    gap: 20px;
}

.dc-footer-bottom a {
    color: #cbd5e1;
    text-decoration: none;
}

.dc-footer-bottom a:hover {
    color: #fff;
}

/* Modal */
.dc-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.dc-modal.active {
    display: flex;
}

.dc-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(6px);
}

.dc-modal-box {
    position: relative;
    background: var(--dc-bg);
    color: var(--dc-text);
    width: min(650px,90%);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--dc-shadow-lg);
    animation: dcModal .35s ease;
    z-index: 2;
}

.dc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.dc-modal-close {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: #f1f5f9;
    font-size: 22px;
}

.dc-modal-close:hover {
    background: #e2e8f0;
}

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

/* Páginas internas */
.dc-page,
.dc-single,
.dc-archive,
.dc-search-page,
.dc-error-page {
    padding-top: 140px;
}

.dc-content {
    max-width: 980px;
    margin: 0 auto;
}

.dc-page-header {
    margin-bottom: 32px;
}

.dc-page-header h1,
.dc-error-box h1 {
    font-size: clamp(36px,5vw,56px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -1px;
}

.dc-entry-content {
    color: var(--dc-text);
    line-height: 1.8;
    font-size: 18px;
}

.dc-entry-content p,
.dc-entry-content ul,
.dc-entry-content ol {
    margin-bottom: 20px;
}

.dc-entry-content a,
.dc-post-card a {
    color: var(--dc-primary);
}

.dc-post-nav {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.dc-post-nav a {
    color: var(--dc-primary);
    font-weight: 700;
    text-decoration: none;
}

.dc-post-card h2 {
    font-size: 24px;
    line-height: 1.2;
}

.dc-post-card h2 a {
    color: var(--dc-text);
    text-decoration: none;
}

.dc-post-card h2 a:hover {
    color: var(--dc-primary);
}

.dc-pagination {
    text-align: center;
}

.dc-error-box {
    max-width: 760px;
    margin: 0 auto;
}

.dc-error-box p {
    font-size: 20px;
    color: var(--dc-text-light);
    max-width: 620px;
    margin: 20px auto 0;
}

/* Dark Mode */
body.dark .dc-navbar,
body.dark .dc-navbar-scrolled {
    background: rgba(15,23,42,.92);
    border-bottom-color: rgba(255,255,255,.08);
}

body.dark .dc-mobile-panel,
body.dark .dc-card,
body.dark .dc-benefit,
body.dark .dc-faq-item,
body.dark .dc-modal-box {
    background: var(--dc-bg);
    color: var(--dc-text);
}

body.dark .dc-icon-btn,
body.dark .dc-mobile-btn {
    background: var(--dc-bg-soft);
    color: var(--dc-text);
    border-color: var(--dc-border);
}

body.dark .dc-modal-close {
    background: var(--dc-bg-soft);
    color: var(--dc-text);
}

/* Responsive */
@media (max-width: 1024px) {
    .dc-navbar-menu,
    .dc-navbar-actions {
        display: none;
    }

    .dc-mobile-btn {
        display: inline-flex;
    }

    .dc-hero,
    .dc-page,
    .dc-single,
    .dc-archive,
    .dc-search-page,
    .dc-error-page {
        padding-top: 120px;
    }

    .dc-hero-grid {
        gap: 48px;
    }

    .dc-hero-stats {
        grid-template-columns: 1fr;
    }

    .dc-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .dc-footer-bottom div {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .dc-card {
        padding: 24px;
    }

    .dc-hero-title {
        font-size: clamp(38px,12vw,54px);
    }

    .dc-hero-text,
    .dc-section-title p,
    .dc-footer-cta-box p {
        font-size: 18px;
    }

    .dc-hero-actions {
        flex-direction: column;
    }

    .dc-hero-actions .dc-btn {
        width: 100%;
    }

    .dc-benefit {
        flex-direction: column;
    }

    .dc-faq-question {
        font-size: 18px;
        padding: 20px;
    }

    .dc-modal-box {
        padding: 28px;
    }

    .dc-footer {
        padding: 70px 0 34px;
    }

    .dc-post-nav {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .dc-navbar-inner {
        height: 74px;
    }

    .dc-navbar-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .dc-navbar-logo h2 {
        font-size: 20px;
    }

    .dc-navbar-logo p {
        display: none;
    }

    .dc-mobile-panel {
        width: 88%;
    }

    .dc-section-title h1,
    .dc-section-title h2,
    .dc-page-header h1,
    .dc-error-box h1 {
        font-size: 34px;
    }
}
/* ==========================================
Login / Registro Frontend
========================================== */

.login-username,
.login-password,
.login-remember,
.login-submit {
    margin-bottom: 20px;
}

.login-username label,
.login-password label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dc-text);
}

.login-username input,
.login-password input {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid var(--dc-border);
    border-radius: var(--dc-radius-md);
    background: var(--dc-bg);
    color: var(--dc-text);
    font-size: 16px;
    outline: none;
}

.login-username input:focus,
.login-password input:focus {
    border-color: var(--dc-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.login-submit input {
    width: 100%;
    border: none;
    background: var(--dc-primary);
    color: #fff !important;
    padding: 15px 24px;
    border-radius: var(--dc-radius-md);
    font-weight: 800;
    cursor: pointer;
}

.login-submit input:hover {
    background: var(--dc-primary-hover);
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================
Panel Navigation
========================================== */

.dc-panel-nav-section {
    padding: 110px 0 0;
    background: var(--dc-bg);
}

.dc-panel-nav {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 14px;
    border: 1px solid var(--dc-border);
    border-radius: var(--dc-radius-lg);
    background: var(--dc-bg-soft);
}

.dc-panel-nav a {
    white-space: nowrap;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--dc-bg);
    color: var(--dc-text);
    text-decoration: none;
    font-weight: 700;
    border: 1px solid var(--dc-border);
    transition: .3s ease;
}

.dc-panel-nav a:hover {
    background: var(--dc-primary);
    color: #fff;
    border-color: var(--dc-primary);
}

@media (max-width: 768px) {
    .dc-panel-nav-section {
        padding-top: 94px;
    }

    .dc-panel-nav {
        padding: 10px;
    }

    .dc-panel-nav a {
        font-size: 14px;
        padding: 9px 14px;
    }
}
/* ==========================================
DC Framework - SaaS App Layout Consolidado
Panel lateral claro + dashboard empresarial
========================================== */

:root {
    --dc-saas-card-bg: #ffffff;
    --dc-saas-card-border: #dbe3ef;
    --dc-saas-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    --dc-saas-shadow-hover: 0 8px 24px rgba(15, 23, 42, 0.08);
    --dc-saas-radius: 14px;
}

body.dc-saas-app {
    background: #f3f6fb !important;
}

body.dc-saas-app .dc-navbar,
body.dc-saas-app .dc-header,
body.dc-saas-app .site-header,
body.dc-saas-app header:not(.dc-saas-topbar),
body.dc-saas-app footer,
body.dc-saas-app .dc-footer,
body.dc-saas-app .site-footer,
body.dc-saas-app #colophon,
body.dc-saas-app .footer,
body.dc-saas-app .dc-site-footer {
    display: none !important;
}

body.dc-saas-app .dc-site-main {
    min-height: 100vh;
    margin-left: 260px;
    padding-top: 64px;
    background: #f3f6fb !important;
}

.dc-saas-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 260px;
    height: 100vh;
    z-index: 9999;
    padding: 0;
    background: #ffffff !important;
    color: #0f172a !important;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #dbe3ef;
    box-shadow: none;
}

.dc-saas-brand {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    margin: 0;
    border-bottom: 1px solid #dbe3ef;
}

.dc-saas-brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #1d4ed8;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 900;
    box-shadow: none;
}

.dc-saas-brand strong {
    display: block;
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
}

.dc-saas-brand span {
    display: none;
}

.dc-saas-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 14px;
    padding: 12px;
    background: #f1f5f9;
    border-radius: 14px;
}

.dc-saas-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    overflow: hidden;
    background: #dbeafe;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.dc-saas-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dc-saas-avatar span {
    color: #1d4ed8;
    font-weight: 900;
}

.dc-saas-user strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.2;
}

.dc-saas-user span {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-top: 3px;
}

.dc-saas-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    padding: 0 14px;
}

.dc-saas-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: .22s ease;
}

.dc-saas-menu a:hover {
    background: #eef2ff;
    color: #1d4ed8;
}

.dc-saas-menu a.is-active {
    background: #1d4ed8;
    color: #ffffff;
    box-shadow: none;
}

.dc-saas-menu a.is-active .dc-saas-menu-icon {
    color: #ffffff;
}

.dc-saas-menu-icon {
    width: 20px;
    display: inline-flex;
    justify-content: center;
    font-size: 15px;
}

.dc-saas-sidebar-footer {
    margin-top: auto;
    padding: 14px;
    border-top: 1px solid #dbe3ef;
}

.dc-saas-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #ef4444;
    background: transparent;
    font-size: 14px;
    font-weight: 800;
}

.dc-saas-logout:hover {
    background: #fee2e2;
    color: #dc2626;
}

.dc-saas-topbar {
    position: fixed;
    top: 0;
    left: 260px;
    right: 0;
    height: 64px;
    z-index: 9998;
    background: #ffffff !important;
    border-bottom: 1px solid #dbe3ef;
    box-shadow: none;
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
}

.dc-saas-topbar strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
}

.dc-saas-topbar span {
    display: none;
}

.dc-saas-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dc-saas-topbar-actions a {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    text-decoration: none;
    font-size: 15px;
    transition: .22s ease;
}

.dc-saas-topbar-actions a:hover {
    transform: translateY(-2px);
    border-color: var(--dc-primary);
}

.dc-saas-mobile-toggle {
    display: none;
    position: fixed;
    top: 10px;
    left: 14px;
    z-index: 10001;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(37, 99, 235, .28);
}

.dc-saas-overlay {
    display: none;
}

body.dc-saas-app .dc-container {
    max-width: 1180px;
}

body.dc-saas-app .dc-section {
    padding-top: 34px;
    padding-bottom: 44px;
}

body.dc-saas-app .dc-section-title,
body.dc-saas-app .dc-dashboard-hero {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 24px;
    max-width: 860px;
}

body.dc-saas-app .dc-section-title.dc-text-center {
    text-align: left;
}

body.dc-saas-app .dc-section-title p,
body.dc-saas-app .dc-dashboard-hero p {
    margin-left: 0;
    margin-right: 0;
    color: #64748b;
    font-size: 15px;
}

body.dc-saas-app .dc-section-title h1,
body.dc-saas-app .dc-dashboard-hero h1 {
    font-size: 30px;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 6px;
}

body.dc-saas-app .dc-card,
body.dc-saas-app .dc-kpi-card {
    background: #ffffff !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    padding: 22px;
    backdrop-filter: none;
}

body.dc-saas-app .dc-card::before {
    display: none;
}

body.dc-saas-app .dc-card:hover,
body.dc-saas-app .dc-kpi-card:hover {
    transform: none;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
    border-color: #cbd5e1 !important;
}

body.dc-saas-app .dc-card h3 {
    font-size: 17px;
    letter-spacing: -0.3px;
    color: #0f172a;
}

body.dc-saas-app .dc-card p {
    color: #64748b;
    font-size: 14px;
}

body.dc-saas-app .dc-badge {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    margin-bottom: 10px;
}

body.dc-saas-app .dc-badge-primary {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

body.dc-saas-app .dc-btn {
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: none !important;
}

body.dc-saas-app .dc-btn:hover {
    transform: none;
}

body.dc-saas-app .dc-btn-primary {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
}

body.dc-saas-app .dc-btn-primary:hover {
    background: #1e40af !important;
}

body.dc-saas-app .dc-btn-outline {
    background: #ffffff !important;
    border: 1px solid #dbe3ef !important;
    color: #0f172a !important;
}

body.dc-saas-app .dc-btn-outline:hover {
    background: #f8fafc !important;
    color: #1d4ed8 !important;
}

body.dc-saas-app .dc-input,
body.dc-saas-app .dc-select,
body.dc-saas-app .dc-textarea,
body.dc-saas-app .dc-form input[type="text"],
body.dc-saas-app .dc-form input[type="email"],
body.dc-saas-app .dc-form input[type="password"],
body.dc-saas-app .dc-form input[type="number"],
body.dc-saas-app .dc-form input[type="date"],
body.dc-saas-app .dc-form select,
body.dc-saas-app .dc-form textarea {
    border-radius: 10px;
    min-height: 40px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 14px;
}

body.dc-saas-app .dc-form-group label {
    font-size: 13px;
    color: #0f172a;
}

body.dc-saas-app .dc-alert {
    border-radius: 12px;
    padding: 16px;
    box-shadow: none;
}

body.dc-dark-mode.dc-saas-app .dc-saas-topbar,
html.dc-dark-mode body.dc-saas-app .dc-saas-topbar {
    background: rgba(15, 23, 42, 0.82) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dc-dark-mode.dc-saas-app .dc-site-main,
html.dc-dark-mode body.dc-saas-app .dc-site-main {
    background: var(--dc-bg) !important;
}

@media (max-width: 1024px) {
    body.dc-saas-app .dc-site-main {
        margin-left: 0;
        padding-top: 64px;
    }

    body.dc-saas-app .dc-saas-topbar {
        left: 0;
        padding-left: 74px;
    }

    body.dc-saas-app .dc-saas-sidebar {
        transform: translateX(-100%);
        transition: transform .25s ease;
    }

    body.dc-saas-sidebar-open .dc-saas-sidebar {
        transform: translateX(0);
    }

    body.dc-saas-app .dc-saas-mobile-toggle {
        display: block;
    }

    body.dc-saas-app .dc-saas-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 9997;
        background: rgba(15, 23, 42, 0.55);
        opacity: 0;
        pointer-events: none;
        transition: .25s ease;
    }

    body.dc-saas-sidebar-open .dc-saas-overlay {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 768px) {
    body.dc-saas-app .dc-section {
        padding-top: 24px;
    }

    body.dc-saas-app .dc-section-title h1,
    body.dc-saas-app .dc-dashboard-hero h1 {
        font-size: 28px;
    }

    body.dc-saas-app .dc-dashboard-kpis {
        grid-template-columns: 1fr;
    }

    body.dc-saas-app .dc-grid-3,
    body.dc-saas-app .dc-grid {
        grid-template-columns: 1fr;
    }
}
/* ==========================================
Dashboard SaaS Profesional
========================================== */

.dc-dashboard-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.dc-dashboard-hero h1 {
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.05;
    letter-spacing: -1.7px;
    margin-bottom: 12px;
}

.dc-dashboard-hero p {
    color: var(--dc-text-muted);
    font-size: 17px;
    max-width: 650px;
}

.dc-dashboard-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dc-dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.dc-kpi-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border-radius: 24px;
    background: var(--dc-saas-card-bg);
    border: 1px solid var(--dc-saas-card-border);
    box-shadow: var(--dc-saas-shadow);
}

.dc-kpi-card > span {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(37, 99, 235, 0.10);
    font-size: 24px;
}

.dc-kpi-card strong {
    display: block;
    font-size: 34px;
    line-height: 1;
    color: var(--dc-text);
}

.dc-kpi-card p {
    margin: 6px 0 0;
    color: var(--dc-text-muted);
    font-weight: 700;
}

.dc-action-card {
    min-height: 245px;
}

.dc-action-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(37, 99, 235, 0.10);
    font-size: 24px;
    margin-bottom: 18px;
}

.dc-mini-stats {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.dc-mini-stats span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.04);
    color: var(--dc-text-muted);
    font-weight: 700;
}

.dc-mini-stats strong {
    color: var(--dc-text);
}

.dc-table-card {
    padding: 0;
    overflow: hidden;
}

.dc-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 26px;
    border-bottom: 1px solid var(--dc-border);
}

.dc-table-header h3 {
    margin-bottom: 4px;
}

.dc-table-header p {
    margin: 0;
}

.dc-case-list {
    display: grid;
}

.dc-case-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 26px;
    border-bottom: 1px solid var(--dc-border);
}

.dc-case-row:last-child {
    border-bottom: none;
}

.dc-case-row strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.dc-case-row span {
    color: var(--dc-text-muted);
    font-size: 14px;
}

.dc-case-row-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.dc-soft-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(15, 23, 42, 0.05);
    color: var(--dc-text-muted);
    font-weight: 800;
    font-size: 12px;
}

.dc-empty-state {
    text-align: center;
    padding: 42px 24px;
}

@media (max-width: 1100px) {
    .dc-dashboard-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dc-dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .dc-dashboard-kpis {
        grid-template-columns: 1fr;
    }

    .dc-dashboard-hero h1 {
        font-size: 36px;
    }

    .dc-dashboard-hero-actions,
    .dc-dashboard-hero-actions .dc-btn {
        width: 100%;
    }

    .dc-case-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .dc-case-row-meta {
        width: 100%;
        flex-wrap: wrap;
    }

    .dc-table-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* ==========================================
DC NeoSaaS UI - Gestión de Casos
========================================== */

.dc-neo-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.dc-neo-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 12px;
}

.dc-neo-page-header h1 {
    font-size: 34px;
    letter-spacing: -1.3px;
    line-height: 1;
    margin-bottom: 8px;
    color: #020617;
}

.dc-neo-page-header p {
    color: #64748b;
    font-size: 15px;
    max-width: 760px;
}

.dc-neo-page-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dc-neo-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.dc-neo-kpi {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dc-neo-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #eef2ff;
    font-size: 20px;
}

.dc-neo-kpi strong {
    display: block;
    color: #020617;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -1px;
}

.dc-neo-kpi p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.dc-neo-filter-card {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 20px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dc-neo-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px 190px 190px auto;
    gap: 10px;
    align-items: center;
}

.dc-neo-search {
    position: relative;
}

.dc-neo-search span {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-weight: 900;
}

.dc-neo-search input,
.dc-neo-filters select {
    width: 100%;
    height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    background: #ffffff;
    color: #020617;
    padding: 0 13px;
    outline: none;
    font-size: 14px;
}

.dc-neo-search input {
    padding-left: 38px;
}

.dc-neo-search input:focus,
.dc-neo-filters select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
}

.dc-neo-table-card {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dc-neo-table-header {
    padding: 20px 22px;
    border-bottom: 1px solid #dbe3ef;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dc-neo-table-header h3 {
    margin: 0 0 4px;
    color: #020617;
    font-size: 18px;
}

.dc-neo-table-header p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.dc-neo-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.dc-neo-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1180px;
}

.dc-neo-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 13px 16px;
    border-bottom: 1px solid #dbe3ef;
    white-space: nowrap;
}

.dc-neo-table td {
    padding: 15px 16px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.dc-neo-table tr:last-child td {
    border-bottom: none;
}

.dc-neo-table tr:hover td {
    background: #f8fafc;
}

.dc-neo-case-main strong {
    display: block;
    color: #020617;
    font-size: 14px;
    margin-bottom: 4px;
}

.dc-neo-case-main span {
    color: #64748b;
    font-size: 12px;
}

.dc-neo-user-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
}

.dc-neo-user-mini > span {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #e0e7ff;
    color: #1d4ed8;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 900;
    flex-shrink: 0;
}

.dc-neo-user-mini strong {
    display: block;
    color: #020617;
    font-size: 13px;
    line-height: 1.2;
}

.dc-neo-user-mini small {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-top: 2px;
}

.dc-neo-user-mini-small {
    min-width: 140px;
}

.dc-neo-user-mini-small > span {
    width: 28px;
    height: 28px;
    font-size: 11px;
}

.dc-neo-status,
.dc-neo-priority {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.dc-status-recibido {
    background: #e0f2fe;
    color: #0369a1;
}

.dc-status-revision {
    background: #fef3c7;
    color: #92400e;
}

.dc-status-documentacion {
    background: #f5f3ff;
    color: #6d28d9;
}

.dc-status-proceso {
    background: #dcfce7;
    color: #166534;
}

.dc-status-finalizado {
    background: #e2e8f0;
    color: #334155;
}

.dc-priority-normal {
    background: #f1f5f9;
    color: #475569;
}

.dc-priority-media {
    background: #e0f2fe;
    color: #0369a1;
}

.dc-priority-alta {
    background: #ffedd5;
    color: #c2410c;
}

.dc-priority-urgente {
    background: #fee2e2;
    color: #b91c1c;
}

.dc-neo-muted {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
}

.dc-neo-date {
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.dc-neo-inline-form {
    display: grid;
    grid-template-columns: 130px 110px 150px auto;
    gap: 7px;
    align-items: center;
    min-width: 470px;
}

.dc-neo-inline-form select {
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #ffffff;
    color: #0f172a;
    padding: 0 9px;
    font-size: 12px;
    outline: none;
}

.dc-neo-inline-form button {
    height: 34px;
    border: none;
    border-radius: 9px;
    background: #1d4ed8;
    color: #ffffff;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.dc-neo-inline-form button:hover {
    background: #1e40af;
}

.dc-neo-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 12px;
    border-radius: 9px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.dc-neo-open-btn:hover {
    background: #eef2ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.dc-neo-empty {
    text-align: center;
    padding: 54px 24px;
}

.dc-neo-empty div {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 18px;
    background: #eef2ff;
    display: grid;
    place-items: center;
    font-size: 28px;
}

.dc-neo-empty h3 {
    color: #020617;
    font-size: 20px;
    margin-bottom: 6px;
}

.dc-neo-empty p {
    color: #64748b;
}

/* Responsive */
@media (max-width: 1200px) {
    .dc-neo-filters {
        grid-template-columns: 1fr 1fr;
    }

    .dc-neo-filters .dc-btn {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .dc-neo-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dc-neo-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dc-neo-filters {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dc-neo-page-header h1 {
        font-size: 28px;
    }

    .dc-neo-kpi-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
DC NeoSaaS UI - Responsive Fix Global
Gestión de Casos
========================================== */

/* Evitar que el contenido se salga del panel */
body.dc-saas-app .dc-site-main {
    overflow-x: hidden;
}

body.dc-saas-app .dc-container {
    width: 100%;
    max-width: 1280px;
    padding-left: 24px;
    padding-right: 24px;
}

/* El módulo no debe quedar comprimido */
.dc-neo-cases-page .dc-container {
    max-width: 1320px;
}

/* Header responsive */
.dc-neo-page-header {
    width: 100%;
}

.dc-neo-page-actions {
    flex-shrink: 0;
}

/* KPIs responsive */
.dc-neo-kpi-grid {
    width: 100%;
}

/* Filtros corregidos */
.dc-neo-filter-card {
    width: 100%;
    overflow: visible;
}

.dc-neo-filters {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.dc-neo-search {
    flex: 1 1 280px;
    min-width: 220px;
}

.dc-neo-filters select {
    flex: 1 1 180px;
    min-width: 160px;
}

.dc-neo-filters .dc-btn,
.dc-neo-filters button {
    flex: 0 0 auto;
    min-width: 110px;
    white-space: nowrap;
}

/* Tabla: escritorio */
.dc-neo-table-card {
    width: 100%;
    overflow: hidden;
}

.dc-neo-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dc-neo-table {
    min-width: 1120px;
}

/* Scroll más limpio */
.dc-neo-table-wrap::-webkit-scrollbar {
    height: 8px;
}

.dc-neo-table-wrap::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 999px;
}

.dc-neo-table-wrap::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 999px;
}

.dc-neo-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Formularios dentro de tabla */
.dc-neo-inline-form {
    min-width: 440px;
}

.dc-neo-inline-form select {
    max-width: 100%;
}

/* ==========================================
Table to Cards - Tablet/Mobile
========================================== */

@media (max-width: 1100px) {

    .dc-neo-table {
        min-width: 980px;
    }

    .dc-neo-inline-form {
        grid-template-columns: 1fr 1fr;
        min-width: 300px;
    }

    .dc-neo-inline-form button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {

    body.dc-saas-app .dc-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .dc-neo-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dc-neo-page-actions,
    .dc-neo-page-actions .dc-btn {
        width: 100%;
    }

    .dc-neo-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dc-neo-filters {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
    }

    .dc-neo-search {
        grid-column: 1 / -1;
        min-width: 0;
    }

    .dc-neo-filters select {
        min-width: 0;
        width: 100%;
    }

    .dc-neo-filters .dc-btn,
    .dc-neo-filters button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* En móvil la tabla se convierte en tarjetas */
@media (max-width: 768px) {

    body.dc-saas-app .dc-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .dc-neo-page-header h1 {
        font-size: 28px;
    }

    .dc-neo-page-header p {
        font-size: 14px;
    }

    .dc-neo-kpi-grid {
        grid-template-columns: 1fr;
    }

    .dc-neo-filters {
        grid-template-columns: 1fr;
    }

    .dc-neo-table-wrap {
        overflow-x: visible;
    }

    .dc-neo-table {
        min-width: 0;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 14px;
    }

    .dc-neo-table thead {
        display: none;
    }

    .dc-neo-table tbody,
    .dc-neo-table tr,
    .dc-neo-table td {
        display: block;
        width: 100%;
    }

    .dc-neo-table tr {
        background: #ffffff;
        border: 1px solid #dbe3ef;
        border-radius: 16px;
        padding: 14px;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    }

    .dc-neo-table td {
        border-bottom: none;
        padding: 10px 0;
    }

    .dc-neo-table td::before {
        content: attr(data-label);
        display: block;
        color: #64748b;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .4px;
        margin-bottom: 6px;
    }

    .dc-neo-table tr:hover td {
        background: transparent;
    }

    .dc-neo-user-mini {
        min-width: 0;
    }

    .dc-neo-user-mini small {
        word-break: break-word;
    }

    .dc-neo-inline-form {
        display: grid;
        grid-template-columns: 1fr;
        min-width: 0;
        width: 100%;
    }

    .dc-neo-inline-form select,
    .dc-neo-inline-form button {
        width: 100%;
        height: 38px;
    }

    .dc-neo-open-btn {
        width: 100%;
        height: 40px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {

    .dc-neo-kpi {
        padding: 15px;
    }

    .dc-neo-kpi strong {
        font-size: 24px;
    }

    .dc-neo-table-header {
        padding: 16px;
    }

    .dc-neo-filter-card {
        padding: 12px;
    }

    .dc-neo-search input,
    .dc-neo-filters select {
        height: 40px;
        font-size: 13px;
    }
}

/* ==========================================
DC Mobile App Mode
Plataforma 100% usable en celular
========================================== */

.dc-mobile-app-nav {
    display: none;
}

/* Mejor experiencia táctil general */
body.dc-saas-app button,
body.dc-saas-app a,
body.dc-saas-app input,
body.dc-saas-app select,
body.dc-saas-app textarea {
    -webkit-tap-highlight-color: transparent;
}

/* Celular: convertir plataforma en experiencia tipo app */
@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
    }

    body.dc-saas-app {
        background: #f3f6fb !important;
        min-height: 100vh;
    }

    body.dc-saas-app .dc-site-main {
        margin-left: 0 !important;
        padding-top: 58px !important;
        padding-bottom: 92px !important;
        min-height: 100vh;
        overflow-x: hidden;
    }

    /* Topbar móvil compacta */
    body.dc-saas-app .dc-saas-topbar {
        left: 0 !important;
        height: 58px !important;
        padding-left: 68px !important;
        padding-right: 14px !important;
        background: rgba(255, 255, 255, 0.94) !important;
        backdrop-filter: blur(16px);
        border-bottom: 1px solid #dbe3ef;
    }

    body.dc-saas-app .dc-saas-topbar strong {
        font-size: 14px !important;
    }

    body.dc-saas-app .dc-saas-topbar-actions a {
        width: 36px !important;
        height: 36px !important;
    }

    /* Botón hamburguesa móvil */
    body.dc-saas-app .dc-saas-mobile-toggle {
        display: grid !important;
        place-items: center;
        top: 9px !important;
        left: 14px !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 12px !important;
        background: #1d4ed8 !important;
        color: #fff !important;
        z-index: 10001;
    }

    /* Sidebar como drawer de app */
    body.dc-saas-app .dc-saas-sidebar {
        width: 86vw !important;
        max-width: 320px !important;
        transform: translateX(-100%);
        transition: transform .25s ease;
        z-index: 10000;
        border-right: 1px solid #dbe3ef;
    }

    body.dc-saas-sidebar-open .dc-saas-sidebar {
        transform: translateX(0);
    }

    body.dc-saas-app .dc-saas-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .55);
        opacity: 0;
        pointer-events: none;
        transition: .25s ease;
        z-index: 9999;
    }

    body.dc-saas-sidebar-open .dc-saas-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    /* Contenido */
    body.dc-saas-app .dc-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    body.dc-saas-app .dc-section {
        padding-top: 22px !important;
        padding-bottom: 34px !important;
    }

    body.dc-saas-app .dc-section-title,
    body.dc-saas-app .dc-dashboard-hero,
    body.dc-saas-app .dc-neo-page-header {
        text-align: left !important;
        align-items: flex-start !important;
        margin-bottom: 18px !important;
    }

    body.dc-saas-app .dc-section-title h1,
    body.dc-saas-app .dc-dashboard-hero h1,
    body.dc-saas-app .dc-neo-page-header h1 {
        font-size: 26px !important;
        line-height: 1.12 !important;
        letter-spacing: -0.8px !important;
    }

    body.dc-saas-app .dc-section-title p,
    body.dc-saas-app .dc-dashboard-hero p,
    body.dc-saas-app .dc-neo-page-header p {
        font-size: 14px !important;
        line-height: 1.45 !important;
    }

    /* Cards full móvil */
    body.dc-saas-app .dc-card,
    body.dc-saas-app .dc-kpi-card,
    body.dc-saas-app .dc-neo-kpi,
    body.dc-saas-app .dc-neo-filter-card,
    body.dc-saas-app .dc-neo-table-card {
        border-radius: 16px !important;
        padding: 16px !important;
        width: 100% !important;
    }

    body.dc-saas-app .dc-grid,
    body.dc-saas-app .dc-grid-3,
    body.dc-saas-app .dc-dashboard-kpis,
    body.dc-saas-app .dc-neo-kpi-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* Botones y campos grandes para dedo */
    body.dc-saas-app .dc-btn,
    body.dc-saas-app button,
    body.dc-saas-app input,
    body.dc-saas-app select,
    body.dc-saas-app textarea {
        min-height: 44px;
        font-size: 15px;
    }

    body.dc-saas-app .dc-btn {
        width: 100%;
        justify-content: center;
    }

    body.dc-saas-app .dc-form-group {
        margin-bottom: 14px;
    }

    /* Filtros móviles */
    .dc-neo-filters {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .dc-neo-search,
    .dc-neo-filters select,
    .dc-neo-filters button {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Tabla convertida en tarjetas */
    .dc-neo-table-wrap {
        overflow-x: visible !important;
    }

    .dc-neo-table {
        min-width: 0 !important;
        width: 100% !important;
        border-collapse: separate !important;
        border-spacing: 0 12px !important;
    }

    .dc-neo-table thead {
        display: none !important;
    }

    .dc-neo-table tbody,
    .dc-neo-table tr,
    .dc-neo-table td {
        display: block !important;
        width: 100% !important;
    }

    .dc-neo-table tr {
        background: #ffffff;
        border: 1px solid #dbe3ef;
        border-radius: 16px;
        padding: 14px;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    }

    .dc-neo-table td {
        border: none !important;
        padding: 9px 0 !important;
    }

    .dc-neo-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 5px;
        color: #64748b;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .4px;
    }

    .dc-neo-inline-form {
        display: grid !important;
        grid-template-columns: 1fr !important;
        min-width: 0 !important;
        width: 100% !important;
        gap: 8px !important;
    }

    .dc-neo-inline-form select,
    .dc-neo-inline-form button,
    .dc-neo-open-btn {
        width: 100% !important;
        min-height: 42px !important;
    }

    /* Barra inferior tipo app */
    .dc-mobile-app-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9998;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 2px;
        min-height: 68px;
        padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .96);
        backdrop-filter: blur(18px);
        border-top: 1px solid #dbe3ef;
        box-shadow: 0 -8px 24px rgba(15, 23, 42, .08);
    }

    .dc-mobile-app-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        text-decoration: none;
        color: #64748b;
        border-radius: 14px;
        font-weight: 800;
        min-width: 0;
    }

    .dc-mobile-app-nav a span {
        font-size: 18px;
        line-height: 1;
    }

    .dc-mobile-app-nav a small {
        font-size: 10px;
        line-height: 1;
        white-space: nowrap;
    }

    .dc-mobile-app-nav a.is-active {
        background: #e0e7ff;
        color: #1d4ed8;
    }

    /* Evitar que Ask AI tape navegación si aparece */
    iframe,
    .ask-ai,
    [class*="ask"] {
        max-width: 100vw;
    }
}

/* Celulares muy pequeños */
@media (max-width: 420px) {

    body.dc-saas-app .dc-section-title h1,
    body.dc-saas-app .dc-dashboard-hero h1,
    body.dc-saas-app .dc-neo-page-header h1 {
        font-size: 24px !important;
    }

    .dc-mobile-app-nav a small {
        font-size: 9px;
    }

    .dc-mobile-app-nav a span {
        font-size: 17px;
    }
}
/* ==========================================
DC NeoSaaS UI - Expediente Profesional
========================================== */

.dc-neo-expedient-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 24px;
}

.dc-neo-back-link {
    display: inline-flex;
    margin-bottom: 14px;
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 900;
    font-size: 14px;
}

.dc-neo-expedient-header h1 {
    color: #020617;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -1.4px;
    margin-bottom: 8px;
}

.dc-neo-expedient-header p {
    color: #64748b;
    font-size: 15px;
}

.dc-neo-expedient-status {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.dc-neo-expedient-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
}

.dc-neo-expedient-main {
    display: grid;
    gap: 18px;
}

.dc-neo-expedient-sidebar {
    display: grid;
    align-content: start;
    gap: 18px;
}

.dc-neo-panel-card,
.dc-neo-side-card {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dc-neo-panel-card {
    padding: 22px;
}

.dc-neo-side-card {
    padding: 18px;
}

.dc-neo-card-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.dc-neo-card-header h3,
.dc-neo-side-card h3 {
    color: #020617;
    font-size: 18px;
    margin-bottom: 4px;
}

.dc-neo-card-header p {
    color: #64748b;
    font-size: 13px;
    margin: 0;
}

.dc-neo-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}

.dc-neo-summary-grid div {
    padding: 16px;
    border-right: 1px solid #e2e8f0;
    background: #f8fafc;
}

.dc-neo-summary-grid div:last-child {
    border-right: none;
}

.dc-neo-summary-grid span,
.dc-neo-side-info span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 6px;
}

.dc-neo-summary-grid strong,
.dc-neo-side-info strong {
    display: block;
    color: #020617;
    font-size: 15px;
}

.dc-neo-description-box {
    border-radius: 16px;
    background: #ffffff;
}

.dc-neo-description-box h4 {
    color: #020617;
    font-size: 15px;
    margin-bottom: 8px;
}

.dc-neo-description-box p {
    color: #475569;
    line-height: 1.7;
}

.dc-neo-doc-list {
    display: grid;
    gap: 10px;
}

.dc-neo-doc-item {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background: #f8fafc;
}

.dc-neo-doc-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #e0e7ff;
    display: grid;
    place-items: center;
    font-size: 20px;
}

.dc-neo-doc-item strong {
    display: block;
    color: #020617;
    font-size: 14px;
}

.dc-neo-doc-item span {
    color: #64748b;
    font-size: 12px;
}

.dc-neo-timeline {
    position: relative;
    display: grid;
    gap: 16px;
}

.dc-neo-timeline-item {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 14px;
}

.dc-neo-timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #1d4ed8;
    margin-top: 4px;
    box-shadow: 0 0 0 5px #dbeafe;
}

.dc-neo-timeline-content {
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.dc-neo-timeline-content > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.dc-neo-timeline-content strong {
    color: #020617;
    font-size: 14px;
}

.dc-neo-timeline-content span {
    color: #64748b;
    font-size: 12px;
}

.dc-neo-timeline-content p {
    color: #475569;
    margin-top: 10px;
    line-height: 1.6;
}

.dc-neo-profile-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0 18px;
}

.dc-neo-profile-mini > span {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #e0e7ff;
    color: #1d4ed8;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.dc-neo-profile-mini strong {
    display: block;
    color: #020617;
    font-size: 14px;
}

.dc-neo-profile-mini small {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-top: 3px;
    word-break: break-word;
}

.dc-neo-side-info {
    padding: 12px 0;
    border-top: 1px solid #e2e8f0;
}

.dc-neo-payment-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.dc-neo-payment-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.dc-neo-payment-item strong,
.dc-neo-payment-item b {
    display: block;
    color: #020617;
    font-size: 14px;
}

.dc-neo-payment-item span,
.dc-neo-payment-item small {
    color: #64748b;
    font-size: 12px;
}

.dc-neo-empty-small {
    padding: 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    text-align: center;
}

.dc-neo-empty-small strong {
    color: #020617;
}

.dc-neo-empty-small p {
    color: #64748b;
    font-size: 13px;
    margin: 6px 0 0;
}

/* Responsive expediente */
@media (max-width: 1100px) {
    .dc-neo-expedient-layout {
        grid-template-columns: 1fr;
    }

    .dc-neo-expedient-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dc-neo-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dc-neo-summary-grid div:nth-child(2) {
        border-right: none;
    }

    .dc-neo-summary-grid div:nth-child(1),
    .dc-neo-summary-grid div:nth-child(2) {
        border-bottom: 1px solid #e2e8f0;
    }
}

@media (max-width: 768px) {
    .dc-neo-expedient-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dc-neo-expedient-header h1 {
        font-size: 28px;
    }

    .dc-neo-expedient-status {
        width: 100%;
    }

    .dc-neo-expedient-sidebar {
        grid-template-columns: 1fr;
    }

    .dc-neo-panel-card,
    .dc-neo-side-card {
        padding: 16px;
        border-radius: 16px;
    }

    .dc-neo-summary-grid {
        grid-template-columns: 1fr;
    }

    .dc-neo-summary-grid div {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .dc-neo-summary-grid div:last-child {
        border-bottom: none;
    }

    .dc-neo-doc-item {
        grid-template-columns: 40px 1fr;
    }

    .dc-neo-doc-item .dc-neo-open-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .dc-neo-timeline-content > div {
        flex-direction: column;
    }
}

/* ==========================================
DC Modern Upload Input - FIX FORZADO
========================================== */

.dc-modern-upload {
    display: grid !important;
    gap: 12px !important;
    width: 100% !important;
}

.dc-modern-upload input[type="file"],
.dc-modern-upload-input {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.dc-modern-upload-label {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
    min-height: 96px !important;
    padding: 20px !important;
    border: 2px dashed #bfdbfe !important;
    border-radius: 20px !important;
    background: linear-gradient(180deg, #f8fbff, #ffffff) !important;
    cursor: pointer !important;
    transition: all .22s ease !important;
}

.dc-modern-upload-label:hover {
    border-color: #2563eb !important;
    background: #eff6ff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 16px 36px rgba(37, 99, 235, .14) !important;
}

.dc-modern-upload-icon {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    border-radius: 18px !important;
    display: grid !important;
    place-items: center !important;
    background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
    color: #ffffff !important;
    font-size: 26px !important;
    box-shadow: 0 14px 28px rgba(37, 99, 235, .28) !important;
}

.dc-modern-upload-text {
    display: grid !important;
    gap: 5px !important;
}

.dc-modern-upload-text strong {
    display: block !important;
    color: #020617 !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
}

.dc-modern-upload-text small {
    display: block !important;
    color: #64748b !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
}

.dc-modern-upload-name {
    display: block !important;
    width: 100% !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    background: #f8fafc !important;
    color: #64748b !important;
    font-size: 13px !important;
    border: 1px solid #e2e8f0 !important;
}

.dc-modern-upload-name.has-file {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border-color: #a7f3d0 !important;
    font-weight: 900 !important;
}

@media (max-width: 640px) {
    .dc-modern-upload-label {
        min-height: 88px !important;
        padding: 16px !important;
        border-radius: 18px !important;
    }

    .dc-modern-upload-icon {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        border-radius: 16px !important;
        font-size: 22px !important;
    }

    .dc-modern-upload-text strong {
        font-size: 15px !important;
    }

    .dc-modern-upload-text small {
        font-size: 12px !important;
    }
}

/* ==========================================
DC Case Messages / Chat
========================================== */

.dc-case-messages-card {
    overflow: hidden;
}

.dc-case-messages-list {
    display: grid;
    gap: 16px;
    margin-bottom: 22px;
}

.dc-case-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.dc-case-message.is-mine {
    flex-direction: row-reverse;
}

.dc-case-message-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 999px;
    overflow: hidden;
    background: #e0e7ff;
    border: 1px solid #dbe3ef;
}

.dc-case-message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dc-case-message-bubble {
    max-width: 78%;
    padding: 14px 15px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.dc-case-message.is-mine .dc-case-message-bubble {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.dc-case-message-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.dc-case-message-meta strong {
    color: #020617;
    font-size: 13px;
    font-weight: 900;
}

.dc-case-message-meta span {
    padding: 3px 8px;
    border-radius: 999px;
    background: #e0e7ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 900;
}

.dc-case-message-meta small {
    color: #64748b;
    font-size: 11px;
}

.dc-case-message-content {
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
}

.dc-case-message-content p {
    margin: 0 0 8px;
}

.dc-case-message-content p:last-child {
    margin-bottom: 0;
}

.dc-case-message-form {
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 640px) {
    .dc-case-message-bubble {
        max-width: 86%;
    }

    .dc-case-message-avatar {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .dc-case-message-meta {
        gap: 5px;
    }
}

/* ==========================================
DC Case Tasks
========================================== */

.dc-case-tasks-card {
    overflow: hidden;
}

.dc-case-task-form {
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 22px;
}

.dc-task-form-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr .8fr 1fr;
    gap: 14px;
}

.dc-case-tasks-list {
    display: grid;
    gap: 14px;
}

.dc-case-task-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 16px;
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.dc-case-task-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 8px;
}

.dc-case-task-title-row h4 {
    color: #020617;
    font-size: 16px;
    margin: 0;
}

.dc-case-task-badges {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dc-task-status-pill,
.dc-task-priority-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.dc-task-status-pill {
    background: #e0e7ff;
    color: #1d4ed8;
}

.dc-task-status-pill.dc-status-completada {
    background: #dcfce7;
    color: #15803d;
}

.dc-task-status-pill.dc-status-en_proceso {
    background: #dbeafe;
    color: #1d4ed8;
}

.dc-task-status-pill.dc-status-cancelada {
    background: #fee2e2;
    color: #b91c1c;
}

.dc-task-priority-pill {
    background: #f1f5f9;
    color: #475569;
}

.dc-task-priority-pill.dc-priority-alta {
    background: #ffedd5;
    color: #c2410c;
}

.dc-task-priority-pill.dc-priority-urgente {
    background: #fee2e2;
    color: #b91c1c;
}

.dc-case-task-content {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.dc-case-task-content p {
    margin: 0 0 8px;
}

.dc-case-task-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.dc-case-task-meta span {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.dc-case-task-update-form {
    display: grid;
    align-content: start;
    gap: 10px;
}

.dc-task-status-completada {
    opacity: .78;
}

.dc-task-status-completada .dc-case-task-title-row h4 {
    text-decoration: line-through;
}

@media (max-width: 1100px) {
    .dc-task-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dc-case-task-item {
        grid-template-columns: 1fr;
    }

    .dc-case-task-update-form {
        grid-template-columns: 1fr auto;
    }
}

@media (max-width: 640px) {
    .dc-task-form-grid {
        grid-template-columns: 1fr;
    }

    .dc-case-task-title-row {
        flex-direction: column;
    }

    .dc-case-task-badges {
        justify-content: flex-start;
    }

    .dc-case-task-update-form {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
DC Notifications Center
========================================== */

.dc-notifications-page .dc-container {
    max-width: 1120px;
}

.dc-notifications-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dc-notifications-count {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 900;
    border: 1px solid #bfdbfe;
}

.dc-notifications-list {
    display: grid;
    gap: 14px;
}

.dc-notification-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.dc-notification-item.is-unread {
    border-color: #93c5fd;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
    box-shadow: 0 14px 34px rgba(37, 99, 235, .08);
}

.dc-notification-item.is-read {
    opacity: .78;
}

.dc-notification-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #eff6ff;
    font-size: 25px;
    border: 1px solid #bfdbfe;
}

.dc-notification-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.dc-notification-meta span {
    padding: 4px 9px;
    border-radius: 999px;
    background: #e0e7ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 900;
}

.dc-notification-meta small {
    color: #64748b;
    font-size: 12px;
}

.dc-notification-meta b {
    padding: 4px 9px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 900;
}

.dc-notification-content h3 {
    color: #020617;
    font-size: 17px;
    margin: 0 0 7px;
}

.dc-notification-message {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.dc-notification-message p {
    margin: 0 0 8px;
}

.dc-notification-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.dc-notification-actions form {
    margin: 0;
}

@media (max-width: 640px) {
    .dc-notification-item {
        grid-template-columns: 44px minmax(0, 1fr);
        padding: 15px;
        border-radius: 18px;
    }

    .dc-notification-icon {
        width: 44px;
        height: 44px;
        border-radius: 15px;
        font-size: 21px;
    }

    .dc-notification-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dc-notification-actions .dc-btn,
    .dc-notification-actions button {
        width: 100%;
    }
}

/* ==========================================
DC Animated Notification Signal
========================================== */

.dc-notification-signal {
    position: fixed;
    right: 24px;
    top: 92px;
    z-index: 10030;
}

.dc-notification-floating-bell {
    position: relative;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .14);
    text-decoration: none;
    transition: .22s ease;
}

.dc-notification-floating-bell span {
    position: relative;
    z-index: 2;
    font-size: 24px;
}

.dc-notification-signal.has-unread .dc-notification-floating-bell {
    background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
    border-color: #60a5fa;
    box-shadow: 0 20px 48px rgba(37, 99, 235, .34);
    animation: dcBellFloat 2.8s ease-in-out infinite;
}

.dc-notification-signal.has-unread .dc-notification-floating-bell span {
    animation: dcBellShake 1.6s ease-in-out infinite;
}

.dc-notification-floating-bell b {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    border: 2px solid #ffffff;
    z-index: 3;
}

.dc-notification-floating-bell i {
    position: absolute;
    inset: -7px;
    border-radius: 23px;
    border: 2px solid rgba(37, 99, 235, .32);
    animation: dcNotificationPulse 1.6s ease-out infinite;
}

.dc-notification-floating-bell:hover {
    transform: translateY(-2px) scale(1.03);
}

/* Badge dentro de la barra lateral */
.dc-sidebar-notification-badge {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(239, 68, 68, .28);
    animation: dcNotificationBadgePulse 1.4s ease-in-out infinite;
}

/* Para enlaces del sidebar, topbar o mobile nav */
a.dc-has-notification-pulse {
    position: relative;
}

.dc-saas-sidebar a.dc-has-notification-pulse,
.dc-mobile-app-nav a.dc-has-notification-pulse,
.dc-saas-topbar a.dc-has-notification-pulse {
    animation: dcSidebarNoticeGlow 2.2s ease-in-out infinite;
}

/* Si el enlace usa flex, acomoda el badge */
.dc-saas-sidebar a.dc-has-notification-pulse {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Animaciones */
@keyframes dcNotificationPulse {
    0% {
        transform: scale(.88);
        opacity: .9;
    }

    70% {
        transform: scale(1.22);
        opacity: 0;
    }

    100% {
        transform: scale(1.22);
        opacity: 0;
    }
}

@keyframes dcBellShake {
    0%, 100% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(-12deg);
    }

    20% {
        transform: rotate(10deg);
    }

    30% {
        transform: rotate(-8deg);
    }

    40% {
        transform: rotate(6deg);
    }

    50% {
        transform: rotate(0deg);
    }
}

@keyframes dcBellFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@keyframes dcNotificationBadgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 18px rgba(239, 68, 68, .28);
    }

    50% {
        transform: scale(1.12);
        box-shadow: 0 10px 26px rgba(239, 68, 68, .42);
    }
}

@keyframes dcSidebarNoticeGlow {
    0%, 100% {
        box-shadow: none;
    }

    50% {
        box-shadow: inset 3px 0 0 #ef4444;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .dc-notification-signal {
        top: auto;
        right: 14px;
        bottom: 88px;
    }

    .dc-notification-floating-bell {
        width: 50px;
        height: 50px;
        border-radius: 17px;
    }

    .dc-notification-floating-bell span {
        font-size: 22px;
    }

    .dc-sidebar-notification-badge {
        min-width: 20px;
        height: 20px;
        font-size: 10px;
    }
}

/* ==========================================
DC PWA Install - Sidebar Card
Sin botón flotante
========================================== */

/* Por si quedó CSS viejo, ocultamos cualquier botón flotante anterior */
.dc-pwa-floating-button,
.dc-pwa-install-card {
    display: none !important;
}

.dc-pwa-sidebar-install-card {
    margin: 18px 14px 12px;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, #eff6ff, #ffffff);
    border: 1px solid #bfdbfe;
    box-shadow: 0 14px 30px rgba(37, 99, 235, .10);
}

.dc-pwa-sidebar-install-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
    color: #ffffff;
    font-size: 21px;
    margin-bottom: 10px;
    box-shadow: 0 10px 22px rgba(37, 99, 235, .24);
}

.dc-pwa-sidebar-install-content strong {
    display: block;
    color: #020617;
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 5px;
}

.dc-pwa-sidebar-install-content p {
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
    margin: 0 0 12px;
}

.dc-pwa-sidebar-install-btn {
    width: 100%;
    min-height: 38px;
    border: none;
    border-radius: 12px;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: .2s ease;
}

.dc-pwa-sidebar-install-btn:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

.dc-pwa-sidebar-install-card.is-ready .dc-pwa-sidebar-install-btn {
    animation: dcPwaSidebarPulse 1.8s ease-in-out infinite;
}

.dc-pwa-sidebar-help {
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 12px;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    line-height: 1.45;
}

@keyframes dcPwaSidebarPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, .32);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(37, 99, 235, 0);
    }
}

/* En móvil no necesitamos la tarjeta en la barra inferior */
@media (max-width: 768px) {
    .dc-pwa-sidebar-install-card {
        margin: 14px 12px 90px;
    }
}

/* ==========================================
DC PWA Install - Versión compacta móvil
========================================== */

.dc-pwa-sidebar-install-card {
    margin: 12px 10px 10px !important;
    padding: 10px !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.dc-pwa-sidebar-install-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 11px !important;
    font-size: 17px !important;
    margin-bottom: 0 !important;
}

.dc-pwa-sidebar-install-content {
    width: 100% !important;
    min-width: 0 !important;
}

.dc-pwa-sidebar-install-content strong {
    font-size: 12px !important;
    margin-bottom: 2px !important;
}

.dc-pwa-sidebar-install-content p {
    font-size: 10.5px !important;
    line-height: 1.3 !important;
    margin: 0 0 7px !important;
}

.dc-pwa-sidebar-install-btn {
    min-height: 30px !important;
    border-radius: 9px !important;
    font-size: 11px !important;
    padding: 0 10px !important;
}

.dc-pwa-sidebar-help {
    margin-bottom: 8px !important;
    padding: 8px !important;
    border-radius: 10px !important;
    font-size: 10.5px !important;
    line-height: 1.35 !important;
}

/* Más compacto en celular */
@media (max-width: 768px) {
    .dc-pwa-sidebar-install-card {
        margin: 8px 8px 76px !important;
        padding: 9px !important;
        gap: 8px !important;
        border-radius: 13px !important;
    }

    .dc-pwa-sidebar-install-icon {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        font-size: 15px !important;
        border-radius: 10px !important;
    }

    .dc-pwa-sidebar-install-content strong {
        font-size: 11.5px !important;
    }

    .dc-pwa-sidebar-install-content p {
        font-size: 10px !important;
        margin-bottom: 6px !important;
    }

    .dc-pwa-sidebar-install-btn {
        min-height: 28px !important;
        font-size: 10.5px !important;
        border-radius: 8px !important;
    }
}

/* Quitar ícono/celular de Instalar App */
.dc-pwa-sidebar-install-icon {
    display: none !important;
}

/* Ajustar tarjeta después de quitar el ícono */
.dc-pwa-sidebar-install-card {
    display: block !important;
    text-align: center !important;
}

.dc-pwa-sidebar-install-content {
    width: 100% !important;
}

.dc-pwa-sidebar-install-content strong {
    text-align: center !important;
}

.dc-pwa-sidebar-install-content p {
    text-align: center !important;
}

.dc-pwa-sidebar-install-btn {
    width: 100% !important;
}

/* ==========================================
DC Client Dashboard
========================================== */

.dc-client-dashboard-page .dc-container {
    max-width: 1320px;
}

.dc-client-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 24px;
    padding: 28px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, .16), transparent 34%),
        linear-gradient(135deg, #ffffff, #eff6ff);
    border: 1px solid #bfdbfe;
    box-shadow: 0 18px 48px rgba(37, 99, 235, .08);
}

.dc-client-hero h1 {
    color: #020617;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -1.4px;
    margin-bottom: 10px;
}

.dc-client-hero p {
    max-width: 720px;
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
}

.dc-client-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.dc-client-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.dc-client-kpi {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 104px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: .22s ease;
}

.dc-client-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
}

.dc-client-kpi > span {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    font-size: 24px;
}

.dc-client-kpi strong {
    display: block;
    color: #020617;
    font-size: 28px;
    line-height: 1;
}

.dc-client-kpi small {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    margin-top: 5px;
}

.dc-client-kpi.has-alert {
    border-color: #93c5fd;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.dc-client-kpi.has-alert > span {
    animation: dcClientNoticePulse 1.6s ease-in-out infinite;
}

.dc-client-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
}

.dc-client-main {
    display: grid;
    gap: 18px;
}

.dc-client-sidebar {
    display: grid;
    align-content: start;
    gap: 18px;
}

.dc-client-case-list {
    display: grid;
    gap: 12px;
}

.dc-client-case-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 15px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.dc-client-case-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: #e0e7ff;
    font-size: 24px;
}

.dc-client-case-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.dc-client-case-top h4 {
    color: #020617;
    font-size: 16px;
    margin: 0;
}

.dc-client-case-content p {
    color: #64748b;
    font-size: 13px;
    margin: 0 0 8px;
}

.dc-client-doc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dc-client-doc-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.dc-client-doc-icon {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    font-size: 21px;
}

.dc-client-doc-item strong {
    display: block;
    color: #020617;
    font-size: 14px;
    margin-bottom: 3px;
}

.dc-client-doc-item span {
    display: block;
    color: #64748b;
    font-size: 12px;
}

.dc-client-doc-item a {
    grid-column: 2;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    margin-top: 8px;
}

.dc-client-quick-actions {
    display: grid;
    gap: 9px;
    margin-top: 12px;
}

.dc-client-quick-actions a {
    position: relative;
    min-height: 44px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 14px;
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
}

.dc-client-quick-actions a:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.dc-client-quick-actions a span {
    font-size: 18px;
}

.dc-client-quick-actions a b {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
}

.dc-client-payment-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.dc-client-payment-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-radius: 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.dc-client-payment-item strong,
.dc-client-payment-item b {
    display: block;
    color: #020617;
    font-size: 13px;
}

.dc-client-payment-item span {
    color: #64748b;
    font-size: 12px;
}

.dc-client-summary-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.dc-client-summary-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.dc-client-summary-list span {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.dc-client-summary-list strong {
    color: #020617;
    font-size: 15px;
}

.dc-client-empty {
    padding: 24px;
    text-align: center;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}

.dc-client-empty.small {
    padding: 16px;
}

.dc-client-empty strong {
    display: block;
    color: #020617;
    margin-bottom: 6px;
}

.dc-client-empty p {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 14px;
}

@keyframes dcClientNoticePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, .24);
    }

    50% {
        transform: scale(1.06);
        box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
    }
}

@media (max-width: 1100px) {
    .dc-client-layout {
        grid-template-columns: 1fr;
    }

    .dc-client-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dc-client-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .dc-client-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        border-radius: 22px;
    }

    .dc-client-hero h1 {
        font-size: 30px;
    }

    .dc-client-hero-actions {
        width: 100%;
    }

    .dc-client-hero-actions .dc-btn {
        width: 100%;
    }

    .dc-client-kpi-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dc-client-kpi {
        min-height: 86px;
        padding: 14px;
        border-radius: 18px;
    }

    .dc-client-kpi > span {
        width: 44px;
        height: 44px;
        border-radius: 15px;
        font-size: 21px;
    }

    .dc-client-kpi strong {
        font-size: 24px;
    }

    .dc-client-sidebar {
        grid-template-columns: 1fr;
    }

    .dc-client-case-item {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .dc-client-case-item .dc-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .dc-client-case-icon {
        width: 44px;
        height: 44px;
        border-radius: 15px;
        font-size: 21px;
    }

    .dc-client-doc-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   DC Framework - Paneles Modernos Restantes
   Empresa / Abogado / Admin / Super Admin
   Pegar al final de assets/css/components.css
========================================== */

.dc-modern-panel {
    --dc-modern-bg: #f3f6fb;
    --dc-modern-card: #ffffff;
    --dc-modern-border: #dbe3ef;
    --dc-modern-text: #0f172a;
    --dc-modern-muted: #64748b;
    --dc-modern-primary: #1d4ed8;
    --dc-modern-primary-hover: #1e40af;
    --dc-modern-soft: #eef2ff;
    --dc-modern-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    --dc-modern-shadow-hover: 0 8px 24px rgba(15, 23, 42, 0.08);
}

body.dc-saas-app .dc-modern-panel,
.dc-modern-panel {
    background: var(--dc-modern-bg);
}

.dc-modern-panel .dc-container {
    max-width: 1180px;
}

.dc-modern-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.dc-modern-hero h1 {
    color: var(--dc-modern-text);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
    letter-spacing: -1.4px;
    margin: 0 0 8px;
}

.dc-modern-hero p {
    color: var(--dc-modern-muted);
    font-size: 15px;
    max-width: 720px;
    margin: 0;
}

.dc-modern-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.dc-modern-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.dc-modern-kpi-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dc-modern-kpi-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dc-modern-secondary-kpis {
    margin-bottom: 22px;
}

.dc-modern-kpi,
.dc-modern-system-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--dc-modern-card);
    border: 1px solid var(--dc-modern-border);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--dc-modern-shadow);
    transition: box-shadow .22s ease, border-color .22s ease, transform .22s ease;
}

.dc-modern-kpi:hover,
.dc-modern-system-card:hover {
    border-color: #cbd5e1;
    box-shadow: var(--dc-modern-shadow-hover);
}

.dc-modern-kpi > span,
.dc-modern-system-card > span {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--dc-modern-soft);
    font-size: 20px;
    flex: 0 0 auto;
}

.dc-modern-kpi strong,
.dc-modern-system-card strong {
    display: block;
    color: var(--dc-modern-text);
    font-size: 28px;
    line-height: 1;
    letter-spacing: -1px;
}

.dc-modern-kpi p,
.dc-modern-system-card p {
    margin: 5px 0 0;
    color: var(--dc-modern-muted);
    font-size: 13px;
    font-weight: 700;
}

.dc-modern-system-card {
    justify-content: flex-start;
}

.dc-modern-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 22px;
}

.dc-modern-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dc-modern-action-card {
    min-height: 230px;
    display: flex;
    flex-direction: column;
}

.dc-modern-action-card h3 {
    color: var(--dc-modern-text);
    font-size: 17px;
    letter-spacing: -0.3px;
    margin-bottom: 10px;
}

.dc-modern-action-card p {
    color: var(--dc-modern-muted);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 18px;
}

.dc-modern-action-card .dc-btn {
    margin-top: auto;
    width: fit-content;
}

.dc-modern-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--dc-modern-soft);
    font-size: 20px;
    margin-bottom: 16px;
}

.dc-modern-table-card {
    padding: 0 !important;
    overflow: hidden;
}

.dc-modern-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--dc-modern-border);
}

.dc-modern-table-header h3 {
    color: var(--dc-modern-text);
    margin: 0 0 4px;
    font-size: 18px;
}

.dc-modern-table-header p {
    color: var(--dc-modern-muted);
    margin: 0;
    font-size: 13px;
}

.dc-modern-list {
    display: grid;
}

.dc-modern-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 16px 22px;
    border-bottom: 1px solid #e2e8f0;
    color: inherit;
    text-decoration: none;
    transition: background .2s ease;
}

.dc-modern-row:last-child {
    border-bottom: 0;
}

.dc-modern-row:hover {
    background: #f8fafc;
}

.dc-modern-row strong {
    display: block;
    color: var(--dc-modern-text);
    font-size: 15px;
    margin-bottom: 4px;
}

.dc-modern-row span {
    display: block;
    color: var(--dc-modern-muted);
    font-size: 13px;
}

.dc-modern-row em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 12px;
    background: #f1f5f9;
    color: #475569;
    font-style: normal;
    font-weight: 800;
    font-size: 11px;
    white-space: nowrap;
}

.dc-modern-panel .dc-empty-state {
    text-align: center;
    padding: 34px 22px;
}

.dc-modern-panel .dc-empty-state h3 {
    color: var(--dc-modern-text);
    margin-bottom: 8px;
}

.dc-modern-panel .dc-empty-state p {
    color: var(--dc-modern-muted);
    margin-bottom: 18px;
}

/* Ajustes visuales por rol */
.dc-company-dashboard .dc-modern-kpi > span,
.dc-company-dashboard .dc-modern-action-icon {
    background: #ecfdf5;
}

.dc-lawyer-dashboard .dc-modern-kpi > span,
.dc-lawyer-dashboard .dc-modern-action-icon {
    background: #fef3c7;
}

.dc-admin-dashboard .dc-modern-kpi > span,
.dc-admin-dashboard .dc-modern-action-icon {
    background: #eef2ff;
}

.dc-super-admin-dashboard .dc-modern-kpi > span,
.dc-super-admin-dashboard .dc-modern-action-icon,
.dc-super-admin-dashboard .dc-modern-system-card > span {
    background: #f3e8ff;
}

/* Compatibilidad con modo app claro */
body.dc-saas-app .dc-modern-panel .dc-card,
body.dc-saas-app .dc-modern-panel .dc-modern-kpi,
body.dc-saas-app .dc-modern-panel .dc-modern-system-card {
    background: #ffffff !important;
    border-color: #dbe3ef !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

body.dc-saas-app .dc-modern-panel .dc-card:hover,
body.dc-saas-app .dc-modern-panel .dc-modern-kpi:hover,
body.dc-saas-app .dc-modern-panel .dc-modern-system-card:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

body.dc-saas-app .dc-modern-panel .dc-btn {
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1100px) {
    .dc-modern-kpi-grid,
    .dc-modern-kpi-grid-4,
    .dc-modern-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dc-modern-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .dc-modern-hero-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .dc-modern-hero h1 {
        font-size: 28px;
    }

    .dc-modern-kpi-grid,
    .dc-modern-kpi-grid-3,
    .dc-modern-kpi-grid-4,
    .dc-modern-grid,
    .dc-modern-grid-3 {
        grid-template-columns: 1fr;
    }

    .dc-modern-hero-actions,
    .dc-modern-hero-actions .dc-btn,
    .dc-modern-action-card .dc-btn,
    .dc-modern-table-header .dc-btn {
        width: 100%;
    }

    .dc-modern-action-card {
        min-height: auto;
    }

    .dc-modern-table-header,
    .dc-modern-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .dc-modern-row em {
        white-space: normal;
    }
}

/*
==========================================
DC Framework - Iconos SVG y navegación limpia
Archivo sugerido: assets/css/dc-icons-ui.css
==========================================
*/

.dc-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: currentColor;
}

.dc-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.dc-tabs-pro {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dc-tab-pro {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 9px 13px;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: .2s ease;
}

.dc-tab-pro:hover {
    background: #f1f5f9;
    color: #1d4ed8;
}

.dc-tab-pro.is-active {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.dc-tab-pro.is-active .dc-icon {
    color: #ffffff;
}

.dc-tab-pro .dc-icon {
    color: #64748b;
}

.dc-tab-pro:hover .dc-icon {
    color: #1d4ed8;
}

/* Compatible con el panel SaaS actual */
body.dc-saas-app .dc-tabs-pro {
    background: #ffffff;
    border-color: #dbe3ef;
}

body.dc-saas-app .dc-tab-pro {
    color: #475569;
}

body.dc-saas-app .dc-tab-pro.is-active {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .dc-tabs-pro {
        gap: 8px;
        padding: 10px;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .dc-tab-pro {
        white-space: nowrap;
        font-size: 12px;
        padding: 9px 11px;
    }

    .dc-icon {
        width: 17px;
        height: 17px;
    }
}

/*
==========================================
DC Framework - Ajustes iconos SVG en sidebar
Pegar al final de assets/css/components.css
==========================================
*/

.dc-saas-menu-icon,
.dc-saas-topbar-icon,
.dc-saas-toggle-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: currentColor;
}

.dc-saas-menu-icon svg,
.dc-saas-topbar-icon svg,
.dc-saas-toggle-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dc-saas-menu a {
    gap: 11px;
}

.dc-saas-menu a .dc-saas-menu-icon {
    color: #64748b;
}

.dc-saas-menu a:hover .dc-saas-menu-icon {
    color: #1d4ed8;
}

.dc-saas-menu a.is-active .dc-saas-menu-icon {
    color: #ffffff;
}

.dc-saas-logout .dc-saas-menu-icon {
    color: currentColor;
}

.dc-saas-topbar-actions a {
    color: #475569;
}

.dc-saas-topbar-actions a:hover {
    color: #1d4ed8;
}

.dc-saas-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1024px) {
    .dc-saas-mobile-toggle {
        display: inline-flex;
    }
}

/*
==========================================
DC Framework - Iconos SVG internos en dashboards
Pegar al final de assets/css/components.css
==========================================
*/

.dc-dashboard-svg-icon,
.dc-kpi-svg-icon,
.dc-card-svg-icon,
.dc-quick-svg-icon,
.dc-client-case-svg-icon,
.dc-client-doc-svg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: currentColor;
}

.dc-dashboard-svg-icon svg,
.dc-kpi-svg-icon svg,
.dc-card-svg-icon svg,
.dc-quick-svg-icon svg,
.dc-client-case-svg-icon svg,
.dc-client-doc-svg-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dc-kpi-svg-icon {
    width: 22px;
    height: 22px;
}

.dc-card-svg-icon {
    width: 24px;
    height: 24px;
}

.dc-quick-svg-icon {
    width: 18px;
    height: 18px;
}

.dc-client-case-svg-icon,
.dc-client-doc-svg-icon {
    width: 22px;
    height: 22px;
}

.dc-modern-kpi > .dc-kpi-svg-icon,
.dc-client-kpi > .dc-kpi-svg-icon {
    width: 46px;
    height: 46px;
    padding: 12px;
    border-radius: 14px;
    background: #eef2ff;
    color: #1d4ed8;
}

.dc-modern-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #eef2ff;
    color: #1d4ed8;
    margin-bottom: 16px;
}

.dc-client-case-icon,
.dc-client-doc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1d4ed8;
}

.dc-client-quick-actions a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dc-client-quick-actions a .dc-quick-svg-icon,
.dc-client-quick-actions a .dc-kpi-svg-icon {
    width: 18px;
    height: 18px;
    padding: 0;
    background: transparent;
    color: currentColor;
}

.dc-btn-full {
    width: 100%;
}

.dc-mt-14 {
    margin-top: 14px;
}

body.dc-saas-app .dc-modern-kpi > .dc-kpi-svg-icon,
body.dc-saas-app .dc-client-kpi > .dc-kpi-svg-icon,
body.dc-saas-app .dc-modern-action-icon {
    background: #eef2ff;
    color: #1d4ed8;
}

body.dc-saas-app .dc-modern-kpi:hover > .dc-kpi-svg-icon,
body.dc-saas-app .dc-client-kpi:hover > .dc-kpi-svg-icon,
body.dc-saas-app .dc-modern-action-card:hover .dc-modern-action-icon {
    background: #dbeafe;
    color: #1e40af;
}
