
:root {
    --mp-primary: #14532d;
    --mp-primary-dark: #0f3d24;
    --mp-secondary: #64748b;
    --mp-success: #15803d;
    --mp-warning: #f59e0b;
    --mp-danger: #dc3545;
    --mp-info: #0dcaf0;
    --mp-bg: #f5f7fb;
    --mp-card: #ffffff;
    --mp-text: #172033;
    --mp-muted: #6b7280;
    --mp-border: #e5e7eb;
    --mp-sidebar: 270px;
}

* {
    box-sizing: border-box
}

body {
    min-height: 100vh;
    font-family: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--mp-text);
    background: var(--mp-bg);
}

a {
    text-decoration: none
}

.auth-body {
    background: radial-gradient(circle at top left, rgba(13, 110, 253, .16), transparent 35%),
    radial-gradient(circle at bottom right, rgba(25, 135, 84, .11), transparent 32%),
    #f7f9fc;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 24px 0
}

.auth-card {
    border: 0;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(15, 23, 42, .10);
    overflow: hidden;
}

.auth-brand-panel {
    min-height: 100%;
    background: linear-gradient(145deg, #0b5ed7, #083b86);
    color: #fff;
    padding: 44px;
}

.auth-brand-panel .brand-mark {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .15);
    display: grid;
    place-items: center;
    font-size: 30px;
    margin-bottom: 24px;
}

.auth-form-panel {
    padding: 42px
}

.form-control, .form-select {
    min-height: 48px;
    border-radius: 12px;
    border-color: #d9dee8;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .12);
}

.input-group .form-control {
    min-height: 48px
}

.btn {
    border-radius: 11px;
    font-weight: 600
}

.btn-lg {
    min-height: 48px
}

.section-title {
    font-weight: 700;
    letter-spacing: -.02em
}

.small-muted {
    color: var(--mp-muted);
    font-size: .9rem
}

.form-label {
    font-weight: 600;
    font-size: .92rem
}

label.error {
    color: #dc3545;
    font-size: .82rem;
    margin-top: .35rem;
    display: block
}

.form-control.error, .form-select.error {
    border-color: #dc3545
}

.form-control.valid, .form-select.valid {
    border-color: #198754
}

.otp-input {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: .55rem;
}

.stepper {
    display: flex;
    gap: 8px;
    margin-bottom: 28px
}

.stepper .step {
    height: 7px;
    border-radius: 10px;
    background: #e5e7eb;
    flex: 1
}

.stepper .step.active {
    background: var(--mp-primary)
}

.avatar-preview {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 7px 25px rgba(15, 23, 42, .12);
    background: #eef2f7;
}

.app-layout {
    display: flex;
    min-height: 100vh
}

.sidebar {
    width: var(--mp-sidebar);
    background: #101828;
    color: #cbd5e1;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1030;
    padding: 20px 14px;
    transition: transform .25s ease;
}

.sidebar-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #fff;
    padding: 8px 12px 24px;
}

.sidebar-brand .logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #0d6efd;
    display: grid;
    place-items: center;
    font-size: 21px;
}

.sidebar .nav-link {
    color: #cbd5e1;
    border-radius: 10px;
    padding: 11px 12px;
    margin: 3px 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background: #1d2939;
    color: #fff
}

.sidebar .nav-link i {
    font-size: 1.08rem
}

.sidebar-user {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 18px;
    border-top: 1px solid #344054;
    padding-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px
}

.sidebar-user img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover
}

.main-content {
    margin-left: var(--mp-sidebar);
    width: calc(100% - var(--mp-sidebar));
    min-height: 100vh
}

.topbar {
    height: 72px;
    background: #fff;
    border-bottom: 1px solid var(--mp-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.content-wrapper {
    padding: 28px
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px
}

.card-soft {
    border: 1px solid var(--mp-border);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .035)
}

.stat-card .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 21px
}

.icon-primary {
    background: rgba(13, 110, 253, .10);
    color: #0d6efd
}

.icon-success {
    background: rgba(25, 135, 84, .10);
    color: #198754
}

.icon-warning {
    background: rgba(245, 158, 11, .12);
    color: #b97000
}

.icon-danger {
    background: rgba(220, 53, 69, .10);
    color: #dc3545
}

.badge-status {
    padding: .45rem .65rem;
    border-radius: 999px;
    font-weight: 600
}

.table-card .table > :not(caption) > * > * {
    padding: 1rem .85rem;
    vertical-align: middle
}

.table thead th {
    color: #667085;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
    background: #fafbfc;
}

.document-code {
    font-weight: 700;
    color: #0d6efd
}

.timeline {
    position: relative;
    padding-left: 28px
}

.timeline:before {
    content: "";
    position: absolute;
    left: 8px;
    top: 4px;
    bottom: 10px;
    width: 2px;
    background: #e5e7eb
}

.timeline-item {
    position: relative;
    padding-bottom: 22px
}

.timeline-item:before {
    content: "";
    position: absolute;
    left: -25px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0d6efd;
    box-shadow: 0 0 0 4px #eaf2ff;
}

.profile-cover {
    min-height: 150px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(120deg, #0d6efd, #123c82);
}

.profile-avatar-wrap {
    margin-top: -58px
}

.info-list {
    display: grid;
    grid-template-columns:160px 1fr;
    gap: 10px 18px
}

.dropzone-box {
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    padding: 28px;
    text-align: center;
    background: #fbfcfe
}

.hero {
    padding: 96px 0 72px;
    background: linear-gradient(135deg, rgba(13, 110, 253, .97), rgba(8, 66, 152, .96));
    color: #fff;
}

.hero .hero-card {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(10px)
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #eaf2ff;
    color: #0d6efd;
    font-size: 22px
}

.public-navbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb
}

.public-footer {
    background: #101828;
    color: #98a2b3
}

.mobile-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1025
}

.empty-state {
    padding: 48px 20px;
    text-align: center;
    color: #667085
}

.password-toggle {
    cursor: pointer
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%)
    }

    .sidebar.show {
        transform: translateX(0)
    }

    .mobile-sidebar-backdrop.show {
        display: block
    }

    .main-content {
        margin-left: 0;
        width: 100%
    }

    .auth-brand-panel {
        display: none
    }
}

@media (max-width: 767.98px) {
    .content-wrapper {
        padding: 18px 14px
    }

    .topbar {
        padding: 0 14px
    }

    .page-header {
        flex-direction: column
    }

    .auth-form-panel {
        padding: 28px 22px
    }

    .info-list {
        grid-template-columns:1fr;
        gap: 2px
    }

    .table-responsive {
        border-radius: 12px
    }
}


/* Tipografía: todo el sistema usa Poppins, excepto el dashboard */
.dashboard-page {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Registro más compacto: reducción aproximada del 25% en espacios */
.register-compact .auth-wrapper {
    padding: 18px 0
}

.register-compact .auth-form-panel {
    padding: 31px
}

.register-compact .auth-brand-panel {
    padding: 33px
}

.register-compact .auth-brand-panel .brand-mark {
    margin-bottom: 18px
}

.register-compact .stepper {
    margin-bottom: 21px
}

.register-compact .mb-4 {
    margin-bottom: 1.125rem !important
}

.register-compact .mb-3 {
    margin-bottom: .75rem !important
}

.register-compact .mt-4 {
    margin-top: 1.125rem !important
}

.register-compact .py-3 {
    padding-top: .75rem !important;
    padding-bottom: .75rem !important
}

.register-compact .p-4 {
    padding: 1.125rem !important
}

.register-compact .g-3 {
    --bs-gutter-y: .75rem
}

.register-compact .auth-card {
    border-radius: 18px
}

/* Botones públicos a ancho completo en móvil */
@media (max-width: 991.98px) {
    .public-navbar .mobile-action {
        width: 100%
    }

    .public-navbar .mobile-action .btn {
        width: 100%;
        margin-top: .35rem
    }

    .register-compact .auth-form-panel {
        padding: 24px 18px
    }
}


/* Ajuste tipográfico más compacto */
body {
    font-size: .91rem
}

p, .form-control, .form-select, .input-group-text, .dropdown-item, .nav-link {
    font-size: .9rem
}

.form-label {
    font-size: .86rem
}

.small, .small-muted, .form-text {
    font-size: .79rem !important
}

.btn {
    font-size: .86rem;
    padding: .52rem .82rem
}

.btn-sm {
    font-size: .76rem;
    padding: .34rem .58rem
}

.btn-lg {
    font-size: .9rem;
    min-height: 44px;
    padding: .58rem 1rem
}

h1, .h1 {
    font-size: calc(1.45rem + 1.4vw)
}

h2, .h2 {
    font-size: calc(1.25rem + .8vw)
}

h3, .h3 {
    font-size: calc(1.1rem + .45vw)
}

h4, .h4 {
    font-size: 1.2rem
}

h5, .h5 {
    font-size: 1rem
}

h6, .h6 {
    font-size: .92rem
}

/* Registro aún más compacto */
.register-compact .auth-form-panel {
    padding: 22px 18px
}

.register-compact .auth-wrapper {
    padding: 12px 0
}

.register-compact .stepper {
    margin-bottom: 15px
}

.register-compact .mb-4 {
    margin-bottom: .85rem !important
}

.register-compact .mb-3 {
    margin-bottom: .6rem !important
}

.register-compact .mt-4 {
    margin-top: .85rem !important
}

.register-compact .g-3 {
    --bs-gutter-y: .55rem
}

.register-compact hr {
    margin: 1rem 0
}

.register-compact .form-control,
.register-compact .form-select {
    min-height: 42px
}

.register-compact .btn-lg {
    min-height: 42px
}

/* Bloque ambiental */
.eco-strip {
    background: linear-gradient(135deg, #ecfdf3, #f6fffa);
    border-top: 1px solid #d1fae5;
    border-bottom: 1px solid #d1fae5;
}

.eco-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #d1fae5;
    color: #198754;
    font-size: 1.55rem;
}


/* Registro sin panel lateral: aprovecha todo el ancho */
.register-compact .auth-card {
    max-width: 860px;
    margin: 0 auto;
}

.register-compact .register-full-panel {
    width: 100%;
    padding: 22px 26px;
}

@media (max-width: 767.98px) {
    .register-compact .register-full-panel {
        padding: 18px 15px;
    }
}


/* Paleta ambiental institucional */
:root {
    --eco-dark: #123d28;
    --eco-primary: #14532d;
    --eco-medium: #166534;
    --eco-light: #dcfce7;
    --eco-soft: #f0fdf4;
    --eco-accent: #65a30d;
}

.public-navbar .navbar-brand,
.public-navbar .nav-link:hover {
    color: var(--eco-dark);
}

.public-navbar .btn-primary,
.register-compact .btn-primary {
    background: var(--eco-primary);
    border-color: var(--eco-primary);
}

.public-navbar .btn-primary:hover,
.register-compact .btn-primary:hover {
    background: var(--eco-dark);
    border-color: var(--eco-dark);
}

.public-navbar .btn-outline-primary,
.register-compact .btn-outline-primary {
    color: var(--eco-primary);
    border-color: var(--eco-primary);
}

.public-navbar .btn-outline-primary:hover,
.register-compact .btn-outline-primary:hover {
    background: var(--eco-primary);
    border-color: var(--eco-primary);
    color: #fff;
}

.hero {
    background: linear-gradient(135deg, #123d28 0%, #14532d 54%, #166534 100%);
}

.feature-icon {
    background: var(--eco-light);
    color: var(--eco-primary);
}

.eco-strip {
    background: linear-gradient(135deg, #ecfdf3, #f0fdf4);
    border-color: #bbf7d0;
}

.eco-icon {
    background: #dcfce7;
    color: var(--eco-primary);
}

/* Encabezado y pie del flujo de registro */
.registration-header {
    background: #fff;
    border-bottom: 1px solid #dce8df;
}

.registration-header .brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--eco-primary);
    color: #fff;
    font-size: 1.15rem;
}

.registration-header .location-badge {
    background: var(--eco-soft);
    color: var(--eco-primary);
    border: 1px solid #bbf7d0;
}

.registration-footer {
    background: #f8faf9;
    border-top: 1px solid #dce8df;
    color: #64748b;
}

.register-compact {
    background: #f5f8f6;
}

.register-compact .auth-wrapper {
    min-height: calc(100vh - 138px);
}

.register-compact .auth-card {
    border: 1px solid #dce8df;
}

.register-compact .stepper .step.active {
    background: var(--eco-primary);
}

.register-compact a {
    color: var(--eco-primary);
}

.register-compact a:hover {
    color: var(--eco-dark);
}

/* Botones de acceso público realmente a ancho completo en móvil */
@media (max-width: 991.98px) {
    .public-navbar .navbar-collapse {
        padding-top: .75rem;
        padding-bottom: .75rem;
    }

    .public-navbar .navbar-nav {
        width: 100%;
    }

    .public-navbar .navbar-nav .nav-item {
        width: 100%;
    }

    .public-navbar .navbar-nav .nav-item .btn {
        display: block;
        width: 100%;
        margin: .25rem 0;
    }
}


/* Registro: paleta verde completa y mayor compactación */
.register-compact .auth-card {
    max-width: 820px;
    border-color: #cfe3d5;
    box-shadow: 0 12px 34px rgba(18, 61, 40, .08);
}

.register-compact .auth-form-panel {
    padding: 17px 20px;
}

.register-compact .section-title,
.register-compact h3,
.register-compact h4,
.register-compact h5,
.register-compact h6 {
    color: #123d28;
}

.register-compact .form-label {
    color: #214d35;
    margin-bottom: .25rem;
}

.register-compact .form-control,
.register-compact .form-select {
    min-height: 39px;
    padding: .42rem .68rem;
    border-color: #c9dbce;
    background-color: #fff;
    font-size: .86rem;
    border-radius: 10px;
}

.register-compact textarea.form-control {
    min-height: auto;
}

.register-compact .form-control:focus,
.register-compact .form-select:focus {
    border-color: #166534;
    box-shadow: 0 0 0 .16rem rgba(22, 101, 52, .12);
}

.register-compact .form-control.valid,
.register-compact .form-select.valid {
    border-color: #15803d;
}

.register-compact .form-control.error,
.register-compact .form-select.error {
    border-color: #dc3545;
}

.register-compact .input-group .btn-outline-secondary {
    border-color: #c9dbce;
    color: #166534;
}

.register-compact .input-group .btn-outline-secondary:hover {
    background: #ecfdf3;
    color: #123d28;
}

.register-compact .btn-check + .btn-outline-primary {
    border-color: #9fc5aa;
    color: #14532d;
    background: #fff;
}

.register-compact .btn-check:checked + .btn-outline-primary {
    background: #14532d;
    border-color: #14532d;
    color: #fff;
}

.register-compact .btn-check + .btn-outline-primary:hover {
    background: #ecfdf3;
    border-color: #166534;
    color: #123d28;
}

.register-compact .btn-primary {
    background: #14532d;
    border-color: #14532d;
}

.register-compact .btn-primary:hover,
.register-compact .btn-primary:focus {
    background: #123d28;
    border-color: #123d28;
}

.register-compact .form-check-input:checked {
    background-color: #14532d;
    border-color: #14532d;
}

.register-compact .form-check-input:focus {
    border-color: #166534;
    box-shadow: 0 0 0 .16rem rgba(22, 101, 52, .12);
}

.register-compact .stepper {
    margin-bottom: 11px;
    gap: 6px;
}

.register-compact .stepper .step {
    height: 5px;
    background: #dbe9df;
}

.register-compact .stepper .step.active {
    background: #14532d;
}

.register-compact .mb-4 {
    margin-bottom: .68rem !important;
}

.register-compact .mb-3 {
    margin-bottom: .48rem !important;
}

.register-compact .mt-4 {
    margin-top: .68rem !important;
}

.register-compact .mt-3 {
    margin-top: .55rem !important;
}

.register-compact .g-3 {
    --bs-gutter-x: .8rem;
    --bs-gutter-y: .42rem;
}

.register-compact .row.g-2 {
    --bs-gutter-x: .5rem;
    --bs-gutter-y: .4rem;
}

.register-compact hr {
    margin: .72rem 0;
    border-color: #dce8df;
}

.register-compact .form-text,
.register-compact label.error {
    margin-top: .22rem;
    font-size: .75rem !important;
}

.register-compact .btn-lg {
    min-height: 39px;
    padding: .45rem .8rem;
}

.register-compact .radio-validation {
    margin-bottom: .65rem !important;
}

.register-compact .radio-validation .btn {
    padding: .58rem .7rem !important;
}

.register-compact .card-soft {
    border-color: #d7e5db;
}

.register-compact .registration-header .container,
.register-compact .registration-footer .container {
    padding-top: .45rem !important;
    padding-bottom: .45rem !important;
}

@media (max-width: 767.98px) {
    .register-compact .auth-form-panel {
        padding: 14px 12px;
    }

    .register-compact .auth-wrapper {
        padding: 7px 0;
    }

    .register-compact .registration-header .brand-icon {
        width: 36px;
        height: 36px;
    }
}


/* Login: paleta verde ambiental y diseño compacto */
.login-green {
    background: #f5f8f6;
}

.login-green .auth-card {
    border: 1px solid #cfe3d5;
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(18, 61, 40, .08);
}

.login-green .auth-brand-panel {
    background: linear-gradient(145deg, #123d28, #14532d);
    padding: 30px;
}

.login-green .auth-brand-panel .brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    font-size: 24px;
    margin-bottom: 17px;
    background: rgba(255, 255, 255, .14);
}

.login-green .auth-form-panel {
    padding: 26px 24px;
}

.login-green .section-title {
    color: #123d28;
    font-size: 1.28rem;
}

.login-green .form-label {
    color: #214d35;
    font-size: .84rem;
    margin-bottom: .25rem;
}

.login-green .form-control {
    min-height: 40px;
    padding: .42rem .68rem;
    border-radius: 10px;
    border-color: #c9dbce;
    font-size: .86rem;
}

.login-green .form-control:focus {
    border-color: #166534;
    box-shadow: 0 0 0 .16rem rgba(22, 101, 52, .12);
}

.login-green .input-group .btn-outline-secondary {
    border-color: #c9dbce;
    color: #166534;
    font-size: .82rem;
}

.login-green .input-group .btn-outline-secondary:hover {
    background: #ecfdf3;
    color: #123d28;
}

.login-green .btn-primary {
    background: #14532d;
    border-color: #14532d;
    min-height: 40px;
    font-size: .87rem;
    padding: .48rem .8rem;
}

.login-green .btn-primary:hover,
.login-green .btn-primary:focus {
    background: #123d28;
    border-color: #123d28;
}

.login-green .form-check-input:checked {
    background-color: #14532d;
    border-color: #14532d;
}

.login-green a {
    color: #14532d;
}

.login-green a:hover {
    color: #123d28;
}

.login-green .mb-4 {
    margin-bottom: .9rem !important;
}

.login-green .mb-3 {
    margin-bottom: .6rem !important;
}

.login-green .mb-2 {
    margin-bottom: .45rem !important;
}

.login-green .mt-4 {
    margin-top: .9rem !important;
}

.login-green .small,
.login-green .form-check-label {
    font-size: .78rem !important;
}

@media (max-width: 991.98px) {
    .login-green .auth-wrapper {
        padding: 12px 0;
    }

    .login-green .auth-form-panel {
        padding: 22px 18px;
    }

    .login-green .auth-card {
        max-width: 520px;
        margin: 0 auto;
    }
}

@media (max-width: 575.98px) {
    .login-green .auth-form-panel {
        padding: 18px 14px;
    }

    .login-green .section-title {
        font-size: 1.18rem;
    }
}


/* Login más angosto */
.login-green .auth-card {
    max-width: 760px;
    margin: 0 auto;
}

.login-green .auth-card > .row {
    min-height: 420px;
}

@media (min-width: 992px) {
    .login-green .auth-wrapper .container {
        max-width: 900px;
    }

    .login-green .auth-brand-panel {
        padding: 26px 24px;
    }

    .login-green .auth-form-panel {
        padding: 24px 22px;
    }
}

@media (max-width: 991.98px) {
    .login-green .auth-card {
        max-width: 500px;
    }
}


/* Registro con el mismo ancho del login */
.register-compact .auth-card {
    max-width: 760px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .register-compact .auth-wrapper .container {
        max-width: 900px;
    }
}

@media (max-width: 991.98px) {
    .register-compact .auth-card {
        max-width: 500px;
    }
}


/* Carrusel de trámites */
.tramites-carousel-wrap {
    overflow: hidden;
    width: 100%;
}

.tramites-carousel {
    display: flex;
    gap: 16px;
    transition: transform .38s ease;
    will-change: transform;
}

.tramite-card {
    flex: 0 0 calc((100% - 32px) / 3);
    min-width: 0;
    border: 1px solid #dce8df;
    border-radius: 16px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 5px 18px rgba(18, 61, 40, .045);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tramite-card:hover {
    transform: translateY(-3px);
    border-color: #a9ccb4;
    box-shadow: 0 10px 26px rgba(18, 61, 40, .09);
}

.tramite-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #dcfce7;
    color: #14532d;
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.tramite-meta {
    color: #15803d;
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
}

.tramite-card h5 {
    color: #123d28;
    margin-bottom: 8px;
    line-height: 1.35;
}

.tramite-card p {
    color: #64748b;
    font-size: .84rem;
    line-height: 1.55;
    min-height: 62px;
    margin-bottom: 14px;
}

.tramite-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #14532d;
    font-size: .82rem;
    font-weight: 700;
}

.tramite-link:hover {
    color: #0f3d24;
}

.tramites-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.tramites-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #cbd5e1;
    transition: all .2s ease;
}

.tramites-dots button.active {
    width: 22px;
    background: #14532d;
}

@media (max-width: 991.98px) {
    .tramite-card {
        flex-basis: calc((100% - 16px) / 2);
    }
}

@media (max-width: 575.98px) {
    .tramite-card {
        flex-basis: 100%;
        padding: 17px;
    }

    .tramite-card p {
        min-height: auto;
    }
}

/* =========================================================
   SIDEBAR - SUBMENÚ
========================================================= */

.sidebar-parent .submenu-arrow {
    font-size: .75rem;
    transition: transform .2s ease;
}

/* Girar flecha cuando el submenú está abierto */
.sidebar-parent[aria-expanded="true"] .submenu-arrow {
    transform: rotate(180deg);
}

/* Contenedor del submenú */
.sidebar-submenu {
    margin: 2px 0 7px 14px;
    padding-left: 10px;
    border-left: 1px solid #344054;
}

/* Enlaces internos */
.sidebar-submenu .submenu-link {
    padding: 8px 10px;
    font-size: .82rem;
    margin: 2px 0;
}

.sidebar-submenu .submenu-link i {
    font-size: .92rem;
}

/* Opción activa */
.sidebar-submenu .submenu-link.active {
    background: #1d2939;
    color: #fff;
}


/* =========================================================
   DATATABLES + BOOTSTRAP 5
========================================================= */

/* Buscador y selector de cantidad */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid #d7e2da;
    border-radius: 8px;
    padding: .35rem .55rem;
    font-size: .82rem;
    background: #fff;
}

/* Focus con los colores verdes del sistema */
.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    border-color: #166534;
    box-shadow: 0 0 0 .14rem rgba(22, 101, 52, .10);
    outline: none;
}

/* Textos */
.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_info {
    font-size: .8rem;
    color: #667085;
}


/* =========================================================
   PAGINACIÓN
========================================================= */

.dataTables_wrapper .pagination {
    --bs-pagination-color: #14532d;
    --bs-pagination-hover-color: #123d28;

    --bs-pagination-active-bg: #14532d;
    --bs-pagination-active-border-color: #14532d;
}

.dataTables_wrapper .page-link {
    font-size: .78rem;
    padding: .34rem .58rem;
}


/* =========================================================
   DATATABLES RESPONSIVE
========================================================= */

/* Botón + para mostrar columnas ocultas */
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
    background-color: #14532d;
}

/* Detalle responsive */
table.dataTable > tbody > tr.child ul.dtr-details {
    width: 100%;
}

/* Títulos de columnas dentro del detalle */
table.dataTable > tbody > tr.child span.dtr-title {
    min-width: 120px;
    color: #123d28;
    font-weight: 600;
}


/* =========================================================
   RESPONSIVE - MÓVIL
========================================================= */

@media (max-width: 767.98px) {

    .dataTables_wrapper .row:first-child,
    .dataTables_wrapper .row:last-child {
        row-gap: .5rem;
    }

    /* Buscador alineado a la izquierda */
    .dataTables_wrapper .dataTables_filter {
        text-align: left !important;
    }

    /* Buscador a ancho completo */
    .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: .25rem;
    }
}

.sidebar-submenu .submenu-link {
    position: relative;
    color: #98a2b3;
    border-radius: 8px;
}

.sidebar-submenu .submenu-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.sidebar-submenu .submenu-link.active {
    color: #fff;
    background: #1d2939;
}

/* Punto indicador */
.sidebar-submenu .submenu-link::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #667085;
    flex-shrink: 0;
}

.sidebar-submenu .submenu-link:hover::before,
.sidebar-submenu .submenu-link.active::before {
    background: #4ade80;
}

/* =========================================================
   FOOTER DASHBOARD
========================================================= */

.main-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrapper {
    flex: 1;
}

.app-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 14px 28px;
    color: #667085;
    font-size: .78rem;
}

.app-footer strong {
    color: #123d28;
    font-weight: 600;
}

.app-footer i {
    color: #15803d;
}


/* Responsive */
@media (max-width: 767.98px) {

    .app-footer {
        padding: 12px 14px;
        text-align: center;
        font-size: .75rem;
    }

    .app-footer .d-flex {
        justify-content: center;
    }
}

/* =========================================================
   LOGIN SIGITEC
========================================================= */

.login-green .auth-brand-panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #123d28 0%, #14532d 55%, #166534 100%);
    padding: 38px 32px;
}

/* Luz decorativa sutil */
.login-green .auth-brand-panel::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .045);
    top: -110px;
    left: -100px;
}

.login-green .auth-brand-panel::after {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .035);
    bottom: -100px;
    right: -100px;
}

.login-green .login-brand-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 330px;
    margin: auto;
}

.login-green .login-brand-logo {
    display: block;
    width: 100%;
    max-width: 290px;
    height: auto;
    margin: 0 auto 24px;
}

.login-green .login-brand-divider {
    width: 44px;
    height: 3px;
    margin: 0 auto 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .65);
}

.login-green .login-brand-title {
    margin: 0 auto 12px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
}

.login-green .login-brand-description {
    margin: 0 auto;
    max-width: 300px;
    color: rgba(255, 255, 255, .72);
    font-size: .84rem;
    line-height: 1.7;
}

/* PANEL DERECHO */
.login-green .auth-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 30px;
}

.login-green .section-title {
    font-size: 1.45rem;
    font-weight: 700;
}

.login-green .auth-form-panel > p {
    font-size: .86rem;
}

/* Responsive */
@media (max-width: 991.98px) {
    .login-green .auth-brand-panel {
        display: none !important;
    }

    .login-green .auth-card {
        max-width: 500px;
        margin: auto;
    }
}

@media (min-width: 992px) {
    .login-green .auth-card > .row {
        min-height: 445px;
    }
}
