:root {
    --cecan-purple: #604080;
    --cecan-purple-light: #a6a3d1;
    --cecan-blue: #11206d;

    --cecan-bg-purple: #dcdff2;
    --cecan-bg-blue: #b4e1fa;
}

:root {
    --bg: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --line: #e5e7eb;
    --brand: #2563eb;
    --accent: #06b6d4;
}

.dark-mode #global-loader {
    background: #1a1a3c !important;
}

.logoportada {
    background-color: #fff !important;
    border-radius: 20px;
}

.btn-dashboard {
    width: 95px;
    height: 85px;
    border-radius: 8px;
    border-color: rgb(219, 223, 233);
    color: rgb(108, 95, 252);
}

.btn-dashboard:hover,
.btn-dashboard.active {
    border-bottom: 5px solid rgb(108, 95, 252);
    color: rgb(108, 95, 252);
    padding-bottom: 2px;
}

.btn-dashboard i {
    font-size: 24px;
}

.table-cecan thead tr th {
    /* color: #fff; */
    font-weight: 800 !important;
    vertical-align: middle;
}

.cursor-pointer {
    cursor: pointer !important;
}

.request-details li p {
    margin: 0;
}

.request-details li p.name-attribute {
    font-size: 0.7rem;
    letter-spacing: 2px;
}

.request-details a.btn.btn-default {
    color: #000 !important;
}

.request-details .options {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.badge-status {
    cursor: default !important;
    color: #fff;
}

.badge-status:hover {
    color: #777;
    /*black !important;*/
}

.chart-box {
    overflow: hidden !important;
    border-radius: 8px !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4) !important;
    background-color: rgba(255, 255, 255, 0.7) !important;
}

#donut_chart_gender {
    width: 100%;
}

#bar_chart_samples_type {
    /* height: 300px; */
    width: 125%;
}

#bar_chart_age_range {
    height: 400px;
    width: 108%;
}

.btn-url {
    cursor: pointer !important;
}

.btn-url:hover {
    box-shadow: 0 0 10px rgba(108, 95, 252, 0.4) !important;
}

.dark-mode .btn-url:hover {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4) !important;
}

table.table-cluster thead tr th,
table.table-cluster tbody tr td {
    vertical-align: middle;
}

table.table-cluster i.fa-check-square {
    color: #198754;
}

.filters-header {
    margin-bottom: 20px;
}

.filter-cecan div {
    height: 55px !important;
}

.badge-roles {
    color: black !important;
}

.dark-mode .badge-roles {
    color: gray !important;
}

table.table-custom-samples thead tr th {
    vertical-align: middle !important;
    font-size: 12px !important;
}

table.table-custom-samples tbody tr td {
    vertical-align: middle !important;
}

h2 button.accordion-button {
    font-size: 1.2rem !important;
}

.dark-mode h2 button.accordion-button {
    color: #fff !important;
}

.lkp-badge-status {
    font-size: 0.8rem;
}

.box-filter {
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    margin-bottom: 10px;
}

.dark-mode .div-landing {
    color: #fff;
}

.div-landing {
    aspect-ratio: 4/1;
    width: 100%;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    /* background-size: auto 100%; */
    background-size: contain;
}

.border-debbug {
    border: 0.5px dashed #1d2f4a;
}

.dark-mode .border-debbug {
    border: 0.5px dotted #ffffff;
}

/* .btn-primary {
    background-color: var(--cecan-blue);
    border-color: var(--cecan-blue);
    color: #fff;
}

.dark-mode .btn-primary {
    background-color: var(--cecan-purple-light);
    border-color: var(--cecan-purple-light);
    color: #222;
}

.btn-primary:hover {
    background-color: var(--cecan-blue);
} */


.image-reflection {
    position: relative;
    width: 300px;
    /* Adjust the width as needed */
    background-size: cover;
    background-position: center;
    width: 100%;
    border-radius: 40px;
}

/* .image-reflection img {
    display: block;
    width: 100%;
} */

/* .image-reflection::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    transform: scaleY(-1);
    opacity: 0.5;
    border-radius: 40px;
    filter: blur(2px);
    mask-image: linear-gradient(transparent 85%, white 100%);
} */

.accordion-item {
    border-top: 1px solid #e5e7eb !important;
}

.accordion-item:first-of-type .accordion-button {
    border-top: 1px solid #a7a4df !important;
}

@media (max-width: 991px) {
    .logo-horizontal {
        display: block;
        left: unset;
        position: absolute;
        right: unset;
        width: inherit
    }
}

.header-right-icons .nav-link.icon {
    padding-left: 3px !important;
    padding-right: 3px !important;
    margin-left: 3px;
    margin-right: 3px;
}

.donors-samples {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.donors-samples .pair {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Pantallas muuuy pequeñas -> cada pair en su propia fila */
@media (max-width: 480px) {
    .donors-samples {
        flex-direction: column;
        align-items: flex-start;
    }

    .donors-samples .pair {
        width: 100%;
    }
}

/* Colecciones  */

a.collection-link {
    text-decoration: none;
    color: inherit;
    /* width: 12rem; */
    aspect-ratio: 1/1;
    display: inline-block;
    /* height: 12rem; */
    margin-bottom: 4px;
}

a.collection-link .card {
    aspect-ratio: 1/1;
    /* height: 10rem; */
    width: 10rem;
    margin: 0.5rem;
}

a.collection-link .card h5 {
    height: 3.5rem;
}


@media (min-width: 992px) {
    a.collection-link .card {
        width: 15rem;
        margin: 1rem;
    }

    a.collection-link .card h5 {
        height: 4rem;
        font-size: 1.2rem;
    }
}

@media (min-width: 1200px) {
    a.collection-link .card {
        width: 15rem;
        margin: 1rem;
    }

    a.collection-link .card h5 {
        height: 5rem;
        font-size: 1.5rem;
    }
}

a:hover.collection-link {
    text-decoration: none;
    color: inherit;
}

.collection-image {
    height: 7rem;
}

.d-flex-center {
    justify-self: center;
    text-align: center;
}

/* Pantalla de bienvenida */
.hero {
    position: relative;
    /* height: 72vh; */
    /* min-height: 520px; */
    display: grid;
    place-items: center;
    overflow: hidden;
    width: 100%;
}

/* .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background: url('vision.jpg') center/cover no-repeat;
      transform: scale(1.02);
    } */

.portada {
    /* max-width: 880px; */
    margin: auto;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, .50), rgba(2, 132, 199, .30));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 0 16px;
    max-width: 880px;
}

.hero h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4.6vw, 54px);
    line-height: 1.08;
    font-weight: 800;
    font-family: ui-sans-serif, system-ui, Segoe UI, Roboto, Helvetica, Arial;
}

.hero p {
    margin: 0 auto 18px;
    max-width: 70ch;
    opacity: .95;
    font-size: clamp(14px, 1.6vw, 18px)
}

.kpis {
    max-width: 1100px;
    margin: -46px auto 22px;
    position: relative;
    z-index: 2;
    display: flex;
    gap: 10px;
    padding: 0 12px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.kpi {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 10px 22px rgba(2, 6, 23, .08);
    min-width: 20ch;
}

.kpi strong {
    display: block;
    font-size: 24px;
    font-feature-settings: "tnum" 1
}

.kpi small {
    color: #64748b;
    font-weight: bold;
}

.searchbox {
    position: relative;
    margin-top: 16px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 14px;
    padding: 8px
}

.tabs {
    display: inline-flex;
    gap: 6px;
    background: rgba(255, 255, 255, .15);
    padding: 4px;
    border-radius: 999px;
    flex-wrap: wrap;
    justify-content: center;
}

.tab {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    /* color: #fff; */
    font-weight: 600;
    cursor: pointer;
    height: 4rem;
    width: 25ch;
}

.tab.active {
    /* background: #fff; */
    color: #0f172a
}

.search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 10px
}

.section {
    max-width: 1100px;
    width: 100%;
    margin: 24px auto;
    padding: 0 16px
}

.section h2,
.section h3 {
    font-weight: bold;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.chip {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 14px;
    background: #fff;
    height: 2rem;
    line-height: 2rem;
    box-sizing: content-box;
    text-align: center;
    flex: 1;
}

.chips>.dropdown {
    flex: 1;
    min-width: 17ch;
    display: flex;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px
}

@media(min-width:900px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr
    }
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    /* min-height: 220px; */
    box-shadow: 0 6px 16px rgba(2, 6, 23, .04)
}

.timelinePortada {
    border-left: 3px solid var(--brand);
    margin-left: 8px;
    padding-left: 14px;
    display: grid;
    gap: 10px
}

.largetable:has(>table) {
    overflow: scroll;
    max-height: 70vh;
    scrollbar-width: thin;
}

.largetable>table {
    table-layout: auto;
    text-wrap-mode: nowrap;
}

.largetable>table>thead {
    position: sticky;
    top: 0;
    background-color: var(--pico-background-color);
    z-index: 2;
}