/* ==========================================================
   PÁGINAS DE SELECCIÓN DE CENTROS — v2.14
   ========================================================== */

.cl-page,
.cl-page * {
    box-sizing: border-box;
}

.cl-page {
    width: min(1460px, calc(100% - 30px));
    margin: 0 auto;
    padding: 16px 0 32px;
    color: #0b1d3a;
    font-family: "Inter", "Open Sans", sans-serif;
}

.cl-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    min-height: 26px;
    margin: 0 6px 10px;
    color: #687b94;
    font-size: 12px;
}

.cl-breadcrumbs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1768c8;
    font-weight: 700;
    text-decoration: none;
}

.cl-breadcrumbs strong {
    color: #142846;
}

.cl-shell {
    padding: 18px;
    border: 1px solid #dce6f1;
    border-radius: 18px;
    background:
        radial-gradient(circle at 92% 7%, #edf5ff 0, transparent 25%),
        #fff;
    box-shadow: 0 12px 34px rgba(23, 54, 94, .09);
}

.cl-header {
    padding: 0 4px 14px;
}

.cl-kicker {
    display: block;
    margin-bottom: 4px;
    color: #1267d6;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.cl-header h1 {
    margin: 0;
    color: #071a39;
    font-size: clamp(25px, 2.4vw, 34px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.cl-header p {
    max-width: 770px;
    margin: 10px 0 0;
    color: #5c6f88;
    font-size: 13px;
    line-height: 1.55;
}

.cl-count {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: baseline;
    gap: 6px;
    padding: 10px 14px;
    border: 1px solid #d5e3f2;
    border-radius: 999px;
    background: #f7fbff;
    color: #637891;
    font-size: 11px;
}

.cl-count strong {
    color: #1267d6;
    font-size: 19px;
}

.cl-tabs {
    display: inline-flex;
    gap: 6px;
    margin: 0 4px 22px;
    padding: 5px;
    border: 1px solid #d9e5f2;
    border-radius: 10px;
    background: #f6f9fd;
}

.cl-tabs a {
    padding: 8px 15px;
    border-radius: 7px;
    color: #5b6f88;
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}

.cl-tabs a:hover,
.cl-tabs a.is-active {
    background: #0c2c57;
    color: #fff;
}

.cl-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 15px;
}

.cl-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 218px;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 16px 17px;
    border: 1px solid #dce4ec;
    border-radius: 13px;
    background: #fff;
    color: #6d7886;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(24, 55, 92, .055);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.cl-card-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #aeb5bd;
    transition: background .22s ease;
}

.cl-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

.cl-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border: 2px solid #cbd1d8;
    border-radius: 50%;
    background: #f1f3f5;
    color: #9299a2;
    filter: grayscale(1);
    transition: color .22s ease, background .22s ease, border-color .22s ease, filter .22s ease, transform .22s ease;
}

.cl-logo-mark i {
    font-size: 33px;
}

.cl-logo strong {
    color: #707a86;
    font-size: 14px;
    letter-spacing: .035em;
    transition: color .22s ease;
}

.cl-name {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 7px;
    color: #526071;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.35;
    transition: color .22s ease;
}

.cl-open {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    color: #8a939e;
    font-size: 10px;
    font-weight: 750;
    opacity: .78;
    transition: color .22s ease, opacity .22s ease;
}

.cl-card:hover,
.cl-card:focus-visible {
    border-color: color-mix(in srgb, var(--cl-accent) 38%, white);
    outline: 0;
    background: linear-gradient(155deg, #fff 58%, var(--cl-soft));
    box-shadow: 0 14px 29px color-mix(in srgb, var(--cl-accent) 15%, transparent);
    transform: translateY(-5px);
}

.cl-card:hover .cl-card-line,
.cl-card:focus-visible .cl-card-line {
    background: var(--cl-accent);
}

.cl-card:hover .cl-logo-mark,
.cl-card:focus-visible .cl-logo-mark {
    border-color: var(--cl-accent);
    background: var(--cl-soft);
    color: var(--cl-accent);
    filter: none;
    transform: scale(1.06);
}

.cl-card:hover .cl-logo strong,
.cl-card:hover .cl-name,
.cl-card:hover .cl-open,
.cl-card:focus-visible .cl-logo strong,
.cl-card:focus-visible .cl-name,
.cl-card:focus-visible .cl-open {
    color: var(--cl-accent);
    opacity: 1;
}

.cl-help {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 11px 14px;
    border-radius: 10px;
    background: #f6f9fd;
    color: #718299;
    font-size: 10px;
}

.cl-help i {
    color: #1267d6;
    font-size: 14px;
}

@media (max-width: 1199px) {
    .cl-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .cl-page {
        width: min(100% - 22px, 860px);
    }

    .cl-shell {
        padding: 17px;
    }

    .cl-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .cl-page {
        width: calc(100% - 14px);
        padding-top: 11px;
    }

    .cl-shell {
        padding: 17px;
        border-radius: 14px;
    }

    .cl-header {
        padding-bottom: 12px;
    }

    .cl-header h1 {
        font-size: 25px;
    }

    .cl-count {
        margin-top: 12px;
    }

    .cl-tabs {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        margin-right: 0;
        margin-left: 0;
        text-align: center;
    }

    .cl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .cl-card {
        min-height: 195px;
        padding: 17px 10px 13px;
    }

    .cl-logo-mark {
        width: 66px;
        height: 66px;
    }

    .cl-logo-mark i {
        font-size: 28px;
    }

    .cl-name {
        min-height: 51px;
        font-size: 10px;
    }
}

@media (max-width: 390px) {
    .cl-grid {
        grid-template-columns: 1fr;
    }

    .cl-card {
        min-height: 180px;
    }
}
