.ds-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, #f9fafb, #f3f4f6);
}

.ds-stripes {
    display: flex;
    width: 100%;
    height: 80px;
}

.ds-stripes__band {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.ds-stripes__band--red { background: linear-gradient(to bottom right, #dc2626, #ef4444); }
.ds-stripes__band--yellow { background: linear-gradient(to bottom right, #facc15, #fde047); }
.ds-stripes__band--blue { background: linear-gradient(to bottom right, #60a5fa, #93c5fd); }
.ds-stripes__band--green { background: linear-gradient(to bottom right, #22c55e, #4ade80); }
.ds-stripes__band--green2 { background: linear-gradient(to bottom right, #16a34a, #22c55e); }
.ds-stripes__band--red2 { background: linear-gradient(to bottom right, #ef4444, #f87171); }
.ds-stripes__band--amber-dark { background: #FAAE05; }
.ds-stripes__band--amber-light { background: #FACD05; }

.ds-navbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ds-navbar__inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ds-navbar__logo {
    height: 56px;
    width: auto;
    max-width: min(280px, 45vw);
    object-fit: contain;
    object-position: left center;
}

.ds-navbar__actions {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-left: auto;
}

.ds-breadcrumb {
    font-size: 0.875rem;
    color: #4b5563;
    text-align: right;
    padding-right: 1.75rem;
    border-right: 1px solid #e5e7eb;
}

.ds-user-menu {
    flex-shrink: 0;
}

.ds-breadcrumb a {
    color: #4b5563;
    text-decoration: none;
}

.ds-breadcrumb a:hover {
    color: #111827;
    text-decoration: underline;
}

.ds-main {
    flex: 1;
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.ds-footer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

.ds-footer__inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
}

.ds-page-title {
    text-align: center;
    margin-bottom: 2rem;
}

.ds-page-title h1 {
    font-size: 1.875rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.ds-page-title p {
    color: #4b5563;
    margin: 0.25rem 0 0;
}

.ds-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.ds-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ds-btn:hover {
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ds-btn--gray { background: #4b5563; color: #fff; }
.ds-btn--gray:hover { background: #374151; color: #fff; }
.ds-btn--blue { background: #2563eb; color: #fff; }
.ds-btn--blue:hover { background: #1d4ed8; color: #fff; }
.ds-btn--teal { background: #0d9488; color: #fff; }
.ds-btn--teal:hover { background: #0f766e; color: #fff; }
.ds-btn--yellow { background: #ca8a04; color: #fff; }
.ds-btn--yellow:hover { background: #a16207; color: #fff; }
.ds-btn--green { background: #16a34a; color: #fff; }
.ds-btn--green:hover { background: #15803d; color: #fff; }
.ds-btn--cyan { background: #06b6d4; color: #fff; }
.ds-btn--cyan:hover { background: #0891b2; color: #fff; }
.ds-btn--warning { background: #eab308; color: #fff; }
.ds-btn--warning:hover { background: #ca8a04; color: #fff; }
.ds-btn--danger { background: #ef4444; color: #fff; }
.ds-btn--danger:hover { background: #dc2626; color: #fff; }

.ds-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 992px) {
    .ds-actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 576px) {
    .ds-actions-grid { grid-template-columns: 1fr; }
}

.ds-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border: none;
    width: 100%;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ds-action-btn:hover {
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ds-search-wrap {
    max-width: 42rem;
    margin: 0 auto 2rem;
    position: relative;
}

.ds-search-wrap i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.ds-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ds-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.ds-panel {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.ds-panel__header {
    padding: 1rem 1.5rem;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ds-panel__header--yellow { background: #ca8a04; }
.ds-panel__header--blue { background: #1d4ed8; }
.ds-panel__header--teal { background: #0f766e; }
.ds-panel__header--green { background: #15803d; }
.ds-panel__header--purple { background: #7e22ce; }
.ds-panel__header--slate { background: #334155; }
.ds-panel__header--gray { background: #374151; }
.ds-panel__header--orange { background: #c2410c; }
.ds-panel__header--indigo { background: #4338ca; }
.ds-panel__header--red { background: #b91c1c; }

.ds-panel__subheader {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ds-panel__body {
    padding: 1.5rem;
}

.ds-section {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.ds-section__header {
    padding: 1rem 1.5rem;
    background: #FAAE0580;
    color: #000000;
    font-size: 1.25rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ds-section__header--blue { background: #1d4ed8; }
.ds-section__header--teal { background: #0f766e; }
.ds-section__header--yellow { background: #ca8a04; }
.ds-section__header--green { background: #15803d; }
.ds-section__header--purple { background: #7e22ce; }
.ds-section__header--slate { background: #334155; }
.ds-section__header--gray { background: #374151; }
.ds-section__header--orange { background: #c2410c; }
.ds-section__header--indigo { background: #4338ca; }
.ds-section__header--red { background: #b91c1c; }

.ds-section__body {
    padding: 1.5rem;
}

.ds-table-wrap {
    overflow-x: auto;
}

.ds-table {
    width: 100%;
    margin-bottom: 0;
}

.ds-table thead {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.ds-table th {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #374151;
    white-space: nowrap;
}

.ds-table td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #111827;
    vertical-align: middle;
}

.ds-table tbody tr:hover {
    background: #f9fafb;
}

.ds-table tbody tr + tr {
    border-top: 1px solid #e5e7eb;
}

.ds-link-person {
    color: #2563eb;
    font-weight: 500;
}

.ds-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ds-badge--area { background: #dbeafe; color: #1e40af; }
.ds-badge--progress { background: #fef9c3; color: #854d0e; }
.ds-badge--done { background: #dcfce7; color: #166534; }
.ds-badge--auto { background: #cffafe; color: #155e75; }
.ds-badge--manual { background: #fef9c3; color: #854d0e; }
.ds-badge--count { background: #06b6d4; color: #fff; }

.ds-badge--pendiente     { background: #ffedd5; color: #9a3412; }
.ds-badge--en-evaluacion { background: #fef9c3; color: #854d0e; }
.ds-badge--en-gestion    { background: #e0f2fe; color: #075985; }
.ds-badge--finalizado    { background: #dcfce7; color: #166534; }

.ds-icon-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ds-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.25rem;
    border: none;
    color: #fff;
    text-decoration: none;
}

.ds-icon-btn--cyan { background: #06b6d4; }
.ds-icon-btn--yellow { background: #eab308; }
.ds-icon-btn--green { background: #22c55e; }
.ds-icon-btn--red { background: #ef4444; }

.ds-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ds-filter-tab {
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
}

.ds-filter-tab.is-active,
.ds-filter-tab--all.is-active { background: #374151; color: #fff; }
.ds-filter-tab--progress.is-active { background: #ca8a04; color: #fff; }
.ds-filter-tab--done.is-active { background: #16a34a; color: #fff; }

.ds-filter-tab--pendiente.is-active     { background: #ea580c; color: #fff; }
.ds-filter-tab--en-evaluacion.is-active { background: #ca8a04; color: #fff; }
.ds-filter-tab--en-gestion.is-active    { background: #0284c7; color: #fff; }
.ds-filter-tab--finalizado.is-active    { background: #16a34a; color: #fff; }

.ds-filter-tab:hover {
    text-decoration: none;
    color: inherit;
}

.ds-search-panel {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.ds-search-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ds-search-row .form-control {
    flex: 1;
    min-width: 200px;
}

.ds-alert-warning-box {
    background: #fefce8;
    border-left: 4px solid #facc15;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.ds-alert-success-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.5rem;
    padding: 1rem;
}

.ds-form-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.ds-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
}

@media (max-width: 768px) {
    .ds-form-grid {
        grid-template-columns: 1fr;
    }
}

.ds-form-field--full {
    grid-column: 1 / -1;
}

.ds-form-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
}

.ds-field-readonly {
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    min-height: calc(1.5em + 1rem + 2px);
    display: flex;
    align-items: center;
}

.ds-dni-hint {
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    background: #fffbeb;
    border-left: 4px solid #facc15;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: #854d0e;
}

.ds-note-required {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    padding: 1rem 1.25rem;
    border-radius: 0.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #1e40af;
}

.ds-btn--warning { background: #eab308; color: #fff; }
.ds-btn--warning:hover { background: #ca8a04; color: #fff; }

.ds-field-locked:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
}

.ds-user-menu .dropdown-toggle,
.ds-user-menu button.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background: #fff;
    cursor: pointer;
}

.ds-user-menu .dropdown-toggle:hover,
.ds-user-menu button.dropdown-toggle:hover {
    background: #f9fafb;
    text-decoration: none;
    color: #111;
}

.ds-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .ds-info-grid { grid-template-columns: 1fr; }
}

.ds-info-item label {
    display: block;
    font-size: 0.875rem;
    color: #4b5563;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.ds-description-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 1rem;
}

.ds-area-group {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.ds-area-group__header {
    background: #f3f4f6;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.ds-shell .alert .close {
    padding: 0.5rem;
}

.ds-shell .card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.ds-shell .card-header {
    padding: 1rem 1.5rem;
    border-bottom: none;
}

.ds-shell .card-header h5 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.ds-shell .card-header.bg-primary { background: #1d4ed8 !important; color: #fff !important; }
.ds-shell .card-header.bg-info { background: #0f766e !important; color: #fff !important; }
.ds-shell .card-header.bg-success { background: #7e22ce !important; color: #fff !important; }
.ds-shell .card-header.bg-warning { background: #c2410c !important; color: #fff !important; }
.ds-shell .card-header.bg-secondary { background: #374151 !important; color: #fff !important; }
.ds-shell .card-header.bg-dark { background: #334155 !important; color: #fff !important; }

.ds-toolbar .d-flex.flex-wrap > * {
    margin: 0.25rem;
}

.ds-login-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.ds-login-intro h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem;
}

@media (min-width: 768px) {
    .ds-login-intro h1 {
        font-size: 1.875rem;
    }
}

.ds-login-intro p {
    font-size: 1.125rem;
    color: #4b5563;
    margin: 0;
    font-weight: 500;
}

/* ============================================================
   Login — inputs y botón con colores del design system
   ============================================================ */
.ds-login-input {
    display: block;
    width: 100%;
    height: 3rem;
    padding: 0 0.75rem;
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #D1D5DB !important;
    border-radius: 0.5rem;
    box-shadow: none !important;
    font-size: 1rem;
}
.ds-login-input::placeholder {
    color: #9CA3AF;
    opacity: 1;
}
.ds-login-input:focus {
    border-color: #FAAE05 !important;
    box-shadow: 0 0 0 3px rgba(250, 174, 5, 0.25) !important;
    outline: none;
}
.ds-login-btn {
    background: #FAAE05 !important;
    color: #000000 !important;
    border: none !important;
    width: 100%;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
}
.ds-login-btn:hover:not(:disabled) {
    background: #E09C00 !important;
}
.ds-login-btn:disabled {
    opacity: 0.4;
}
