:root {
    --bs-primary: #71b9c3;
    --bs-success: #8bcb9e;
    --brand-light-blue: #adbfdf;
    --brand-black: #000000;
}

/* AGENDA PSICOLÓGICA */

.clinical-page {
    max-width: 1500px;
}

.clinical-page .card {
    border-radius: 16px;
}

.clinical-timeline {
    position: relative;
    display: grid;
    gap: 1rem;
    padding-left: 1.25rem;
    border-left: 3px solid #dce8ea;
}

.clinical-timeline-item {
    position: relative;
    padding: 1rem 1.15rem;
    border: 1px solid #e2e8ea;
    border-radius: 12px;
    background: #fff;
}

.clinical-timeline-item::before {
    position: absolute;
    top: 1.2rem;
    left: -1.72rem;
    width: .8rem;
    height: .8rem;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--bs-primary);
    box-shadow: 0 0 0 1px var(--bs-primary);
    content: '';
}

.text-prewrap {
    white-space: pre-wrap;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
}

.group-item img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 35%;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: var(--bs-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* NAVBAR */

.navbar-chrome {
    background: var(--brand-black);
    border-bottom: 3px solid var(--bs-primary);
    padding: .8rem 0;
}

.navbar-chrome .navbar-brand{
    display:flex;
    align-items:center;
    gap:.75rem;
    color:#fff !important;
    font-size:1.55rem;
    font-weight:800;
    letter-spacing:2px;
    text-transform:uppercase;
}

.navbar-chrome .navbar-brand img{
    width:46px;
    height:46px;
    border-radius:10px;
    transition:.3s;
}

.navbar-chrome .navbar-brand:hover img{
    transform:rotate(-8deg) scale(1.05);
}

.navbar-chrome .navbar-brand span{
    color:var(--bs-primary);
}

@media (max-width:991px){
    .navbar-nav{
        margin-top:1rem;
    }
    .btn-navbar{
        margin-top:.5rem;
        display:inline-block;
    }
}

.navbar-chrome .nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: .6rem 1rem !important;
    border-radius: 8px;
    transition: .25s;
}

.navbar-chrome .nav-link:hover {

    color: var(--brand-light-blue) !important;
    background: rgba(255, 255, 255, .05);

}

.navbar-chrome .nav-link.active {

    color: var(--bs-primary) !important;

}

.dropdown-menu {

    border: none;
    border-radius: 12px;
    overflow: hidden;
    margin-top: .8rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .15);

}

.dropdown-item {

    padding: .75rem 1.2rem;

}

.dropdown-item:hover {

    background: var(--bs-primary);
    color: #000;

}

.user-name {

    color: var(--bs-primary) !important;
    font-weight: 600;

}
/*
.btn-navbar{

    background:var(--bs-primary);
    color:#000 !important;
    border-radius:30px;
    font-weight:600;
    padding:.55rem 1.3rem !important;
}

.btn-navbar:hover{

    background:#6ac48a;
    color:#000 !important;
    transform:translateY(-2px);

}
*/

.navbar-toggler {

    border: none;

}

.navbar-toggler:focus {

    box-shadow: none;

}

/* FORMULARIO REGISTRO */

.register-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.register-header {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-success));
    color: #fff;
    padding: 1.25rem;
}

.register-header h4 {
    margin: 0;
    font-weight: 600;
}

.form-label {
    font-weight: 600;
    color: #444;
}

.form-control,
.form-select {
    border-radius: 10px;
    padding: .70rem .85rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 .20rem rgba(113, 185, 195, .25);
}

.btn-register {
    background: var(--bs-primary);
    color: #000;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    transition: .3s;
}

.btn-register:hover {
    background: var(--bs-success);
    color: #000;
}

.info-box {
    background: #f8f9fa;
    border-left: 5px solid var(--bs-primary);
    padding: 18px;
    border-radius: 10px;
}

/* OPCIONES DE ANÁLISIS TRANSACCIONAL */

.analysis-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
    width: 100%;
    min-width: 210px;
}

.analysis-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 48px;
    margin: 0;
    padding: .65rem .9rem;
    border: 2px solid #d9dee3;
    border-radius: 12px;
    background: #fff;
    color: #495057;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background-color .2s, color .2s, transform .2s, box-shadow .2s;
}

.analysis-option:hover {
    border-color: var(--bs-primary);
    background: #f4fbfc;
    transform: translateY(-1px);
}

.analysis-option .form-check-input {
    flex: 0 0 auto;
    margin: 0;
    cursor: pointer;
}

.analysis-option:focus-within {
    outline: 3px solid rgba(113, 185, 195, .35);
    outline-offset: 2px;
}

.analysis-option-yes:has(.form-check-input:checked) {
    border-color: #438a58;
    background: #e8f6ec;
    color: #28663a;
    box-shadow: 0 0 0 3px rgba(67, 138, 88, .12);
}

.analysis-option-no:has(.form-check-input:checked) {
    border-color: #66717d;
    background: #eef1f4;
    color: #343a40;
    box-shadow: 0 0 0 3px rgba(102, 113, 125, .12);
}

/* LISTA DE PRUEBAS */

.profile-card{

    border:none;
    border-radius:16px;

}

.profile-title{

    color:var(--brand-black);
    font-weight:700;

}

.profile-info{

    color:#666;
    margin-bottom:.4rem;

}

.test-card{

    border:none;
    border-radius:14px;
    transition:.25s;
    overflow:hidden;

}

.test-card:hover{

    transform:translateY(-5px);
    box-shadow:0 15px 30px rgba(0,0,0,.10);

}

.test-card .card-title{

    color:var(--brand-black);
    font-weight:600;

}

.test-footer{

    background:#fff;
    border-top:none;

}

/* BADGES */

.badge-pending{

    background:#fff4d6;
    color:#9b6b00;
    padding:.55rem .9rem;
    border-radius:30px;
    font-weight:600;

}

.badge-progress{

    background:#d9f5df;
    color:#1c7c37;
    padding:.55rem .9rem;
    border-radius:30px;
    font-weight:600;

}
.report-page {
    max-width: 1280px;
}

.report-cover {
    border-top: 6px solid #71b9c3 !important;
}

.report-meta,
.report-summary-card {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    height: 100%;
    padding: 1rem;
    border: 1px solid #dfe8ea;
    border-radius: .75rem;
    background: #f8fbfc;
}

.report-meta span,
.report-summary-card span {
    display: block;
    margin-bottom: 0;
    color: #68757a;
    font-size: .82rem;
}

.report-meta strong {
    display: block;
    color: #24383d;
    font-size: 1rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.report-summary-card strong {
    color: #245d66;
    font-size: 1.15rem;
}

.report-test {
    scroll-margin-top: 1rem;
    overflow: hidden;
}

.report-test > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    list-style: none;
    background: #fff;
}

.report-test > summary::-webkit-details-marker {
    display: none;
}

.report-test > summary small,
.report-test > summary strong {
    display: block;
}

.report-test > summary small {
    margin-bottom: .2rem;
    color: #6c757d;
}

.chart-container {
    position: relative;
    width: 100%;
    min-height: 340px;
}

.welcome-blank {
    min-height: 100vh;
}

.admin-access-trigger {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1030;
    opacity: .78;
}

.participant-register-trigger {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1030;
}

.admin-access-trigger:hover,
.admin-access-trigger:focus-visible {
    opacity: 1;
}

.admin-placeholder-card {
    max-width: 760px;
    margin-inline: auto;
}

.admin-progress-page {
    max-width: 1800px;
}

/* SISTEMA VISUAL ADMINISTRATIVO */
.admin-shell-header { min-height: 70px; background: #fff; border-bottom: 1px solid #e3e8eb; box-shadow: 0 2px 12px rgba(26,49,55,.05); }
.admin-shell-header .navbar-brand { display: block; margin: 0; color: #1f3035 !important; font-size: 1.05rem; font-weight: 700; letter-spacing: 0; line-height: 1.25; text-transform: none; }
.admin-shell-header small { display: block; margin-top: .15rem; color: #6c757d; }
.admin-shell-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.admin-shell-nav .btn { border-radius: .65rem; padding: .45rem .8rem; font-weight: 600; }
.admin-shell-nav .btn.active, .admin-shell-nav .btn[aria-current="page"] { border-color: #26383d; background: #26383d; color: #fff; }
.admin-progress-page > .card, .admin-progress-page > section.card { border-radius: 1rem; }
.admin-progress-page .card-body { padding: 1.25rem; }
.admin-progress-page h1 { color: #24383d; font-weight: 700; }
.admin-progress-page .table thead th { border-bottom-width: 1px; background: #f4f8f9; color: #43565c; font-size: .8rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.admin-progress-page .table tbody tr:last-child td { border-bottom: 0; }
.admin-progress-page .alert, .admin-progress-page .modal-content { border-radius: 1rem; }
@media (max-width: 767.98px) { .admin-shell-header { min-height: 64px; } .admin-shell-header .navbar-brand { font-size: .95rem; } .admin-progress-page { padding-top: 1rem !important; } .admin-progress-page .card-body { padding: 1rem; } }

.admin-progress-table-wrap {
    max-height: calc(100vh - 260px);
}

.admin-progress-table-wrap thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    min-width: 125px;
    background: #f8f9fa;
    vertical-align: middle;
}

.admin-progress-table-wrap thead th:first-child,
.admin-progress-table-wrap tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 230px;
    background: #fff;
}

.admin-progress-table-wrap thead th:first-child {
    z-index: 3;
    background: #f8f9fa;
}

.admin-overall-progress {
    width: 130px;
    height: .5rem;
}

.report-results-table small {
    display: block;
    color: #6c757d;
    font-size: .72rem;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 14mm;
    }

    body {
        background: #fff !important;
    }

    .report-actions,
    nav.navbar,
    .report-index {
        display: none !important;
    }

    .report-page {
        max-width: none;
        padding: 0 !important;
    }

    .report-cover,
    .report-page .card {
        box-shadow: none !important;
    }

    .report-test {
        break-before: page;
        break-inside: auto;
    }

    .report-test > summary {
        cursor: default;
    }

    .chart-container {
        min-height: 280px;
        break-inside: avoid;
    }

    .report-results-table tr {
        break-inside: avoid;
    }

    .report-vocational-matrix {
        break-before: page;
    }
}
