/*
=================================================
DC Legal Agent Fase 1
=================================================
*/

.dc-la-page {
    padding: 38px 18px 60px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .08), transparent 34%),
        radial-gradient(circle at bottom right, rgba(14, 165, 233, .08), transparent 30%),
        #f3f6fb;
}

.dc-la-shell {
    width: min(1240px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.dc-la-side,
.dc-la-card,
.dc-la-denied {
    background: #ffffff;
    border: 1px solid #d8e4f5;
    border-radius: 26px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .07);
}

.dc-la-side {
    position: sticky;
    top: 88px;
    padding: 24px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, .16), transparent 36%),
        linear-gradient(145deg, #ffffff 0%, #f8fbff 58%, #eff6ff 100%);
}

.dc-la-badge {
    display: inline-flex;
    width: fit-content;
    padding: 7px 11px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 10px;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .35px;
}

.dc-la-side h1 {
    margin: 16px 0 10px;
    color: #071225;
    font-size: 35px;
    line-height: 1.02;
    letter-spacing: -1.3px;
    font-weight: 950;
}

.dc-la-side p {
    margin: 0 0 18px;
    color: #53657d;
    font-size: 13px;
    line-height: 1.65;
}

.dc-la-side-card {
    padding: 14px;
    border-radius: 17px;
    background: rgba(255,255,255,.88);
    border: 1px solid #d9e6f7;
    margin-top: 10px;
}

.dc-la-side-card.is-on {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.dc-la-side-card strong {
    display: block;
    color: #071225;
    font-size: 14px;
    font-weight: 950;
    margin-bottom: 5px;
}

.dc-la-side-card span {
    color: #53657d;
    font-size: 12px;
    line-height: 1.5;
}

.dc-la-main {
    min-width: 0;
    display: grid;
    gap: 16px;
}

.dc-la-card {
    padding: 24px;
}

.dc-la-card-head {
    margin-bottom: 18px;
}

.dc-la-card-head h2 {
    margin: 12px 0 6px;
    color: #071225;
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: -.8px;
    font-weight: 950;
}

.dc-la-card-head p {
    margin: 0;
    color: #53657d;
    font-size: 13px;
    line-height: 1.55;
}

.dc-la-form {
    display: grid;
    gap: 14px;
}

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

.dc-la-form label {
    display: grid;
    gap: 7px;
}

.dc-la-form label span {
    color: #071225;
    font-size: 12px;
    font-weight: 950;
}

.dc-la-form label small {
    color: #64748b;
    font-size: 11px;
    line-height: 1.45;
}

.dc-la-form input,
.dc-la-form select,
.dc-la-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cbd8ea;
    border-radius: 13px;
    background: #fff;
    color: #071225;
    font-size: 13px;
    outline: none;
}

.dc-la-form textarea {
    min-height: 120px;
    resize: vertical;
}

.dc-la-form input:focus,
.dc-la-form select:focus,
.dc-la-form textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.11);
}

.dc-la-primary,
.dc-la-secondary {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.dc-la-primary {
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #ffffff !important;
}

.dc-la-secondary {
    border: 1px solid #cbd8ea;
    background: #ffffff;
    color: #071225 !important;
}

.dc-la-guardrails,
.dc-la-warning {
    padding: 13px 14px;
    border-radius: 15px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 12px;
    line-height: 1.45;
}

.dc-la-guardrails strong {
    display: block;
    color: #071225;
    font-size: 12px;
    font-weight: 950;
    margin-bottom: 4px;
}

.dc-la-alert {
    padding: 13px 15px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 950;
}

.dc-la-alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.dc-la-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.dc-la-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.dc-la-summary-grid div {
    padding: 13px 14px;
    border-radius: 15px;
    background: #f8fafc;
    border: 1px solid #dbe4ef;
}

.dc-la-summary-grid span {
    display: block;
    color: #64748b;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.dc-la-summary-grid strong {
    display: block;
    color: #071225;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.dc-la-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.dc-la-generated-content {
    max-height: 720px;
    overflow: auto;
    padding: 18px;
    border: 1px solid #dbe4ef;
    background: #f8fafc;
    border-radius: 18px;
    color: #071225;
    font-size: 14px;
    line-height: 1.75;
}

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

.dc-la-doc-list article,
.dc-la-empty {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 13px 14px;
    border-radius: 15px;
    background: #f8fafc;
    border: 1px solid #dbe4ef;
}

.dc-la-doc-list strong,
.dc-la-empty strong {
    display: block;
    color: #071225;
    font-size: 13px;
    font-weight: 950;
}

.dc-la-doc-list span,
.dc-la-empty span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 11px;
    font-weight: 750;
}

.dc-la-doc-list a {
    color: #2563eb;
    text-decoration: none;
    font-size: 12px;
    font-weight: 950;
}

.dc-la-denied {
    width: min(640px, 100%);
    margin: 0 auto;
    padding: 42px 24px;
    text-align: center;
}

.dc-la-denied h2 {
    margin: 0 0 10px;
    color: #071225;
    font-size: 30px;
    font-weight: 950;
}

.dc-la-denied p {
    color: #53657d;
    margin: 0;
}

@media (max-width: 1080px) {
    .dc-la-shell {
        grid-template-columns: 1fr;
    }

    .dc-la-side {
        position: relative;
        top: auto;
    }
}

@media (max-width: 780px) {
    .dc-la-page {
        padding: 22px 12px 42px;
    }

    .dc-la-card,
    .dc-la-side {
        padding: 18px;
        border-radius: 20px;
    }

    .dc-la-grid-2,
    .dc-la-summary-grid {
        grid-template-columns: 1fr;
    }

    .dc-la-primary,
    .dc-la-secondary {
        width: 100%;
    }

    .dc-la-result-actions,
    .dc-la-doc-list article,
    .dc-la-empty {
        display: grid;
    }
}

/* Ajuste 04 — instantánea normativa usada por la IA */
.dc-la-basis-snapshot {
    margin: 0 0 16px;
    padding: 14px;
    border: 1px solid #d7e4f3;
    border-radius: 16px;
    background: #fbfdff;
}

.dc-la-basis-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.dc-la-basis-head span {
    display: block;
    margin-bottom: 3px;
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .35px;
    text-transform: uppercase;
}

.dc-la-basis-head strong {
    display: block;
    color: #0f2743;
    font-size: 13px;
    font-weight: 750;
}

.dc-la-basis-head code {
    padding: 5px 7px;
    border: 1px solid #dbe6f2;
    border-radius: 8px;
    background: #fff;
    color: #48627e;
    font-size: 9px;
}

.dc-la-basis-snapshot ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dc-la-basis-snapshot li {
    padding: 9px 10px;
    border: 1px solid #e3ebf4;
    border-radius: 11px;
    background: #fff;
}

.dc-la-basis-snapshot li strong,
.dc-la-basis-snapshot li span {
    display: block;
}

.dc-la-basis-snapshot li strong {
    color: #162a43;
    font-size: 11px;
    font-weight: 700;
}

.dc-la-basis-snapshot li span,
.dc-la-basis-snapshot p {
    margin: 3px 0 0;
    color: #66788d;
    font-size: 10px;
    line-height: 1.45;
}

.dc-la-basis-warning {
    margin-top: 9px;
    padding: 9px 10px;
    border: 1px solid #fde68a;
    border-radius: 10px;
    background: #fffbeb;
    color: #92400e;
    font-size: 10px;
    line-height: 1.45;
}

body.dark .dc-la-basis-snapshot,
body.dark-mode .dc-la-basis-snapshot,
body.dc-dark-mode .dc-la-basis-snapshot,
html.dark .dc-la-basis-snapshot {
    border-color: #334155;
    background: #111c2d;
}

body.dark .dc-la-basis-snapshot li,
body.dark-mode .dc-la-basis-snapshot li,
body.dc-dark-mode .dc-la-basis-snapshot li,
html.dark .dc-la-basis-snapshot li,
body.dark .dc-la-basis-head code,
body.dark-mode .dc-la-basis-head code,
body.dc-dark-mode .dc-la-basis-head code,
html.dark .dc-la-basis-head code {
    border-color: #334155;
    background: #172337;
}

body.dark .dc-la-basis-head strong,
body.dark-mode .dc-la-basis-head strong,
body.dc-dark-mode .dc-la-basis-head strong,
html.dark .dc-la-basis-head strong,
body.dark .dc-la-basis-snapshot li strong,
body.dark-mode .dc-la-basis-snapshot li strong,
body.dc-dark-mode .dc-la-basis-snapshot li strong,
html.dark .dc-la-basis-snapshot li strong {
    color: #eef5ff;
}

body.dark .dc-la-basis-head span,
body.dark-mode .dc-la-basis-head span,
body.dc-dark-mode .dc-la-basis-head span,
html.dark .dc-la-basis-head span,
body.dark .dc-la-basis-snapshot li span,
body.dark-mode .dc-la-basis-snapshot li span,
body.dc-dark-mode .dc-la-basis-snapshot li span,
html.dark .dc-la-basis-snapshot li span {
    color: #9fb0c5;
}

@media (max-width: 560px) {
    .dc-la-basis-head {
        align-items: flex-start;
        flex-direction: column;
    }
}
