@font-face {
    font-family: 'Shadows Into Light';
    font-style: normal;
    font-weight: 400;

    font-display: swap;
    src: url('../fonts/shadows-into-light-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                   U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
                   U+FFFD;
}

@font-face {
    font-family: 'Shadows Into Light';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/shadows-into-light-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                   U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
                   U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
                   U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --ciu-primario:   #2E7D32;
    --ciu-secundario: #1B5E20;
    --ciu-borde:      #e4e7ec;
    --ciu-texto-tenue:#6b7280;
    --ciu-fondo:      #f5f7fa;
}

body {
    background-color: var(--ciu-fondo);
    font-family: 'Poppins', 'Open Sans', -apple-system, system-ui, sans-serif;
}

.ciu-header {
    background: var(--ciu-primario);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}

.ciu-header .navbar-brand,
.ciu-header .nav-link {
    color: rgba(255, 255, 255, .92);
}

.ciu-header .nav-link:hover,
.ciu-header .nav-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, .12);
}

.ciu-header .nav-link.active {
    color: #fff;
    background: rgba(0, 0, 0, .18);
    font-weight: 600;
}

.ciu-header .nav-link {
    border-radius: .375rem;
    padding: .45rem .8rem;
    transition: background-color .15s ease;
}

.ciu-header .nav-link i {
    font-size: 1.05rem;
    vertical-align: -2px;
    margin-right: .35rem;
}

.ciu-tenant {
    font-size: .72rem;
    line-height: 1;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .75);
}

.ciu-logo {
    height: 34px;
    width: auto;
}

.ciu-main {
    padding: 0;
}

.ciu-titulo-pagina {
    font-size: 1.65rem;
    font-weight: 600;
    margin: 0;
}

.ciu-subtitulo {
    color: var(--ciu-texto-tenue);
    font-size: .875rem;
    margin: .15rem 0 0;
}

.card {
    border: 1px solid var(--ciu-borde);
    border-radius: .5rem;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid var(--ciu-borde);
    font-weight: 600;
    padding: .85rem 1.15rem;
}

.btn-ciu {
    background: var(--ciu-primario);
    border-color: var(--ciu-primario);
    color: #fff;
}

.btn-ciu:hover,
.btn-ciu:focus {
    background: var(--ciu-secundario);
    border-color: var(--ciu-secundario);
    color: #fff;
}

.btn-outline-ciu {
    border-color: var(--ciu-primario);
    color: var(--ciu-primario);
}

.btn-outline-ciu:hover {
    background: var(--ciu-primario);
    color: #fff;
}

.text-ciu { color: var(--ciu-primario) !important; }
.bg-ciu   { background-color: var(--ciu-primario) !important; }

.ciu-portada {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(1200px 500px at 50% -10%, rgba(255, 255, 255, .55), transparent),
        linear-gradient(160deg, #FFF, #132641);
}

.ciu-portada .logo {
    width: 100%;
}

.ciu-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(1200px 500px at 50% -10%, rgba(255, 255, 255, .55), transparent),
        linear-gradient(160deg, var(--ciu-primario), var(--ciu-secundario));
}

.ciu-login-card {
    width: 100%;
    max-width: 400px;
    border: 0;
    border-radius: .75rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
}

.ciu-login-card .card-body { padding: 2rem 1.85rem; }

.ciu-login-card {
    animation: ciuCaerDesdeArriba 1s cubic-bezier(.25, .46, .45, .94) both;
}

@keyframes ciuCaerDesdeArriba {
    from { opacity: 0; transform: translate3d(0, -100%, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .ciu-login-card { animation: none; }
}

.ciu-login-marca {
    text-align: center;
    margin-bottom: 1.5rem;
}

.ciu-login-marca img { max-height: 56px; max-width: 190px; }

.ciu-login-marca h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: .65rem 0 .1rem;
    color: #1f2937;
}

.ciu-login-marca p {
    font-size: .8rem;
    color: var(--ciu-texto-tenue);
    margin: 0;
}

.ciu-pie {
    text-align: center;
    font-size: .75rem;
    color: rgba(255, 255, 255, .8);
    margin-top: 1.15rem;
}

.ciu-pie a { color: rgba(255, 255, 255, .95); }

.modal-header .btn-close.btn-close-white {
    filter: none !important;
}

.modal-header .btn-close {
    align-items: center !important;
    background-color: rgba(0, 0, 0, .28) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 12px !important;
    border: 2px solid rgba(255, 255, 255, .28) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .24) !important;
    color: transparent !important;
    display: flex !important;
    flex: 0 0 28px;
    font-size: 0 !important;
    height: 28px !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin: calc(-.5 * var(--bs-modal-header-padding-y, 1rem)) 0 calc(-.5 * var(--bs-modal-header-padding-y, 1rem)) auto !important;
    opacity: 1 !important;
    padding: 0 !important;
    text-indent: -9999px !important;
    transform-origin: center center !important;
    transition: transform .3s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease !important;
    width: 28px !important;
}

.modal-header .btn-close:hover {
    background-color: rgba(0, 0, 0, .42) !important;
    border-color: rgba(255, 255, 255, .5) !important;
    transform: rotate(90deg) !important;
}

.modal-header .btn-close:focus-visible {
    box-shadow: 0 0 0 .2rem rgba(255, 255, 255, .45) !important;
}

.modal-header:not([class*="bg-"]) .btn-close {
    background-color: rgba(0, 0, 0, .12) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23111827'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") !important;
    border-color: rgba(0, 0, 0, .12) !important;
}

.ciu-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 .5rem;
    margin-bottom: 1.5rem;
}

.ciu-paso {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    text-align: center;
}

.ciu-paso-circulo {
    align-items: center;
    background: #e9ecef;
    border-radius: 50%;
    color: #6c757d;
    display: flex;
    font-weight: 700;
    height: 34px;
    justify-content: center;
    transition: background-color .2s ease, color .2s ease;
    width: 34px;
}

.ciu-paso.activo .ciu-paso-circulo {
    background: var(--ciu-primario);
    color: #fff;
}

.ciu-paso.completo .ciu-paso-circulo {
    background: #16a34a;
    color: #fff;
    font-size: 0;
}

.ciu-paso.completo .ciu-paso-circulo::before {
    content: '\2713';
    font-size: 1rem;
}

.ciu-paso-etiqueta {
    color: var(--ciu-texto-tenue);
    font-size: .78rem;
    margin-top: .3rem;
    max-width: 7rem;
}

.ciu-paso.activo .ciu-paso-etiqueta {
    color: #111827;
    font-weight: 600;
}

.ciu-paso-linea {
    background: #e9ecef;
    flex: 1 1 auto;
    height: 2px;
    margin: 0 .5rem;
    margin-bottom: 1.4rem;
}

.ciu-paso-linea.completa { background: #16a34a; }

.ciu-panel-paso { display: none; }
.ciu-panel-paso.activo { display: block; }

@media (max-width: 575.98px) {
    .ciu-paso-etiqueta { font-size: .68rem; max-width: 5rem; }
    .ciu-paso-circulo  { height: 28px; width: 28px; font-size: .85rem; }
}

.ciu-guia .modal-content { overflow: hidden; }

.ciu-guia .modal-header {
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--ciu-primario);
    color: #fff;
}

.ciu-guia .modal-body { background: #fff; padding: 1.25rem 1.5rem; }

.guia-contexto {
    color: rgba(255, 255, 255, .76);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: .15rem;
}

.guia-avance {
    align-items: center;
    color: var(--ciu-texto-tenue);
    display: flex;
    font-size: .78rem;
    font-weight: 800;
    gap: 1rem;
    margin-bottom: .5rem;
}

.guia-avance .progress { height: 6px; }
.guia-avance .progress-bar { transition: width .24s ease; background: var(--ciu-primario); }

.guia-paso {
    align-items: center;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 300px;
    padding: 1.25rem .5rem .5rem;
}

.guia-paso-icono {
    align-items: center;
    background: rgba(0, 0, 0, .04);
    border-radius: 50%;
    color: var(--ciu-primario);
    display: flex;
    font-size: 2rem;
    height: 84px;
    justify-content: center;
    width: 84px;
}

.guia-paso-etiqueta {
    color: var(--ciu-primario);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.guia-paso-cuerpo h3,
.guia-centro-encabezado h3 {
    color: #111827;
    font-size: 1.45rem;
    font-weight: 800;
    margin: .35rem 0 .65rem;
    outline: 0;
}

.guia-paso-bajada { color: #111827; font-size: 1rem; margin-bottom: 1rem; }

.guia-puntos {
    display: grid;
    gap: .55rem;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.guia-puntos li { align-items: flex-start; display: flex; gap: .6rem; }
.guia-puntos i { color: var(--ciu-primario); margin-top: .2rem; }

.guia-destacado {
    align-items: flex-start;
    background: rgba(0, 0, 0, .035);
    border-left: 3px solid var(--ciu-primario);
    border-radius: .4rem;
    display: flex;
    font-size: .9rem;
    gap: .6rem;
    padding: .7rem .85rem;
}

.guia-destacado i { color: var(--ciu-primario); margin-top: .15rem; }

.guia-flujo {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin: 1rem 0;
}

.guia-flujo-item {
    background: #fff;
    border: 1px solid var(--ciu-borde);
    border-radius: .55rem;
    padding: .85rem;
    position: relative;
}

.guia-flujo-item > span {
    background: var(--ciu-primario);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 800;
    height: 22px;
    width: 22px;
}

.guia-flujo-item > i { color: var(--ciu-primario); font-size: 1.2rem; margin-left: .4rem; }
.guia-flujo-item h4 { font-size: .95rem; font-weight: 700; margin: .5rem 0 .2rem; }
.guia-flujo-item p { color: var(--ciu-texto-tenue); font-size: .82rem; margin: 0; }

.guia-acordeon .accordion-button { font-weight: 600; font-size: .95rem; }
.guia-acordeon .accordion-body { font-size: .9rem; }

.guia-enlaces h4 { font-size: .9rem; font-weight: 700; margin: 1rem 0 .5rem; }

.guia-aviso {
    align-items: flex-start;
    background: #fff8e6;
    border: 1px solid #f5d68a;
    border-radius: .5rem;
    display: flex;
    gap: .75rem;
    padding: .85rem 1rem;
    margin-bottom: 1rem;
}

.guia-aviso i { color: #b45309; font-size: 1.2rem; margin-top: .1rem; }

.ciu-ayuda-flotante {
    align-items: center;
    background: var(--ciu-primario);
    border: 0;
    border-radius: 50%;
    bottom: 1.25rem;
    box-shadow: 0 6px 18px rgba(16, 24, 40, .24);
    color: #fff;
    display: flex;
    font-size: 1.35rem;
    height: 48px;
    justify-content: center;
    position: fixed;
    right: 1.25rem;
    width: 48px;
    z-index: 1035;
}

.ciu-ayuda-flotante:hover { background: var(--ciu-secundario); color: #fff; }

@media (max-width: 575.98px) {
    .guia-paso { grid-template-columns: 1fr; min-height: 0; text-align: left; }
    .guia-paso-icono { height: 60px; width: 60px; font-size: 1.5rem; }
}

.ciu-indicador {
    background: #fff;
    border: 1px solid var(--ciu-borde);
    border-radius: .5rem;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.ciu-indicador:hover {
    border-color: var(--ciu-primario);
    box-shadow: 0 2px 8px rgba(16, 24, 40, .09);
}

.ciu-indicador:focus-visible {
    outline: 2px solid var(--ciu-primario);
    outline-offset: 2px;
}

.ciu-vacio {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--ciu-texto-tenue);
}

.ciu-vacio i {
    font-size: 2.75rem;
    opacity: .35;
    display: block;
    margin-bottom: .65rem;
}

.ciu-chip-externo {
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    font-size: .7rem;
    padding: .18rem .55rem;
    border-radius: 1rem;
    letter-spacing: .02em;
}

.select2-container--bootstrap-5 .select2-selection {
    width: 100%;
    min-height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: transparent;
    border: none;
    border-radius: 0;
    transition: none;
    appearance: none;
}

.form-select-sm ~ .select2-container--bootstrap-5 .select2-selection {
    min-height: calc(1.5em + .5rem + 2px);
    padding: 0;
    font-size: .875rem;
    border-radius: 0;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border: none;
    box-shadow: none;
    outline: none;
    border-bottom: 1px solid var(--ciu-primario, #86b7fe);
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-search--inline {
    display: inline-flex;
    flex: 1 1 4em;
    margin: 0;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-search__field {
    width: 100% !important;
    min-height: 1.5rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: inherit;
    line-height: 1.5;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    margin: 0;
    padding: .05rem .4rem;
    font-size: .8125rem;
    line-height: 1.4;
}

.ciu-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.ciu-shell > .ciu-main { flex: 1 0 auto; }
.ciu-shell > #footer {
    flex: 0 0 auto;
    margin-top: auto;
    position: sticky;
    bottom: 0;
    z-index: 1020;
}

#estadoFlota .card-body {
    padding: .5rem .75rem !important;
    gap: .6rem !important;
}

#estadoFlota .card-body > i { font-size: 1.1rem !important; }
#estadoFlota .h5 { font-size: 1rem; margin-bottom: 0; }
#estadoFlota .small { font-size: .72rem; line-height: 1.1; }

.ciu-shell.ciu-fijo {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

.ciu-fijo > .ciu-main {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ciu-fijo > .ciu-main > .container-fluid {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.ciu-fijo .ciu-alto {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.ciu-fijo .ciu-alto > .tab-content {
    flex: 1 1 auto;
    min-height: 0;
}

.ciu-fijo .ciu-alto > .tab-content > .tab-pane.active {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ciu-fijo .ciu-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.ciu-fijo .card { min-height: 0; }

#mapa.ciu-mapa-alto { height: min(70vh, 640px); }

.ciu-fijo #tabMapa > .row,
.ciu-fijo #tabMapa > .row > [class^="col"] {
    min-height: 0;
}

.ciu-fijo #tabMapa > .row { flex: 1 1 auto; }

.ciu-fijo #tabMapa > .row > .col-xl-9 > .card { height: 100%; }

.ciu-fijo #mapa.ciu-mapa-alto {
    height: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.ciu-fijo #tabMapa > .row > .col-xl-9 > .card { display: flex; flex-direction: column; }

.ciu-fijo #tabMapa > .row > .col-xl-3 {
    overflow-y: auto;
    align-self: start;
    max-height: 100%;
}

@media (max-width: 1199.98px) {
    .ciu-fijo #tabMapa > .row {
        overflow-y: auto;
        display: block;
    }

    .ciu-fijo #tabMapa > .row > .col-xl-9 > .card { height: auto; }

    .ciu-fijo #mapa.ciu-mapa-alto {
        flex: none;
        height: 55vh;
        min-height: 280px;
    }

    .ciu-fijo #tabMapa > .row > .col-xl-3 {
        overflow: visible;
        max-height: none;
        margin-top: .75rem;
    }
}

@media (max-width: 991.98px) {
    .ciu-shell.ciu-fijo {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
    }

    .ciu-fijo > .ciu-main,
    .ciu-fijo > .ciu-main > .container-fluid,
    .ciu-fijo .ciu-alto,
    .ciu-fijo .ciu-alto > .tab-content > .tab-pane.active {
        overflow: visible;
        min-height: 0;
        height: auto;
    }

    .ciu-fijo .ciu-scroll {
        overflow-y: visible;
        max-height: none;
        flex: 0 0 auto;
    }

    .ciu-fijo #mapa.ciu-mapa-alto,
    .ciu-fijo #mapaZonas.ciu-mapa-alto,
    .ciu-fijo #mapaFlota.ciu-mapa-alto {
        flex: none;
        height: 60vh;
        min-height: 300px;
    }

    .ciu-fijo #tabZonas > .card { height: auto; }
}

.ciu-estilo { position: relative; }
.ciu-estilo > summary { list-style: none; cursor: pointer; }
.ciu-estilo > summary::-webkit-details-marker { display: none; }

.ciu-estilo-panel {
    position: absolute;
    right: 0;
    top: calc(100% + .35rem);
    z-index: 1030;
    background: #fff;
    border: 1px solid var(--ciu-borde);
    border-radius: .5rem;
    box-shadow: 0 6px 18px rgba(16, 24, 40, .14);
    padding: .5rem;
    min-width: 22rem;
}

.ciu-estilo-panel > div { border-bottom: 0 !important; }

.ciu-fijo #tabZonas > .card { height: 100%; display: flex; flex-direction: column; }
.ciu-fijo #tabZonas .card-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.ciu-fijo #mapaZonas.ciu-mapa-alto { flex: 1 1 auto; min-height: 0; height: auto; }
#mapaZonas.ciu-mapa-alto { height: min(60vh, 520px); }

.ciu-callejero {
    display: grid;
    grid-template-columns: minmax(18rem, 23rem) minmax(0, 1fr);
    height: min(75vh, 720px);
    overflow: hidden;
}

.ciu-fijo #tabCallejero > .ciu-callejero {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
}

.ciu-callejero-lista {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-right: 1px solid var(--ciu-borde);
}

.ciu-callejero-items {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.ciu-callejero-mapa {
    position: relative;
    min-height: 0;
}

#mapaCallejero {
    position: absolute;
    inset: 0;
}

.ciu-cj-cuenta {
    opacity: .7;
    font-variant-numeric: tabular-nums;
}

.ciu-cj-item {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    padding: .45rem .75rem;
    border-bottom: 1px solid #f0f2f5;
    cursor: pointer;
}

.ciu-cj-item > div { min-width: 0; }
.ciu-cj-item:hover { background: #f5f8fc; }
.ciu-cj-item.activo { background: #e8f0fe; }

.ciu-cj-nombre {
    font-size: .875rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.ciu-cj-meta {
    font-size: .75rem;
    color: var(--ciu-texto-tenue);
}

.ciu-cj-sin {
    color: #c2410c;
    font-weight: 500;
    font-style: italic;
}

.ciu-callejero-leyenda {
    position: absolute;
    top: .5rem;
    left: .5rem;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .9rem;
    padding: .3rem .6rem;
    border-radius: .375rem;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 1px 4px rgba(16, 24, 40, .15);
}

.ciu-callejero-leyenda i {
    display: inline-block;
    width: 1.1rem;
    height: .25rem;
    margin-right: .35rem;
    border-radius: 2px;
    vertical-align: middle;
}

.ciu-cj-l-nombre    { background: #475569; }
.ciu-cj-l-sin       { background: #ea580c; }
.ciu-cj-l-corregida { background: #16a34a; }
.ciu-cj-l-elegido   { background: #2563eb; }

.ciu-tipo-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    max-width: 100%;
    padding: .25rem .65rem;
    border-radius: 1rem;
    font-size: .8rem;
    font-weight: 500;
}

.ciu-tipo-chip .bx {
    font-size: 1.2rem;
    line-height: 1;
}

.ciu-cita {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

#tablaComentarios .tabulator-row {
    cursor: pointer;
}

@media (max-width: 991.98px) {
    .ciu-callejero,
    .ciu-fijo #tabCallejero > .ciu-callejero {
        grid-template-columns: minmax(0, 1fr);
        height: auto;
    }

    .ciu-callejero-lista {
        border-right: 0;
        border-bottom: 1px solid var(--ciu-borde);
    }

    .ciu-callejero-items { max-height: 45vh; }
    .ciu-callejero-mapa { height: 60vh; min-height: 300px; }
}

.ciu-logo-previo {
    width: 4.5rem;
    height: 4.5rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid var(--ciu-borde);
    border-radius: .5rem;
    background: #fff;
    overflow: hidden;
}

.ciu-logo-previo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ciu-logo-previo > i { font-size: 2rem; color: var(--ciu-texto-tenue); }

.ciu-icono-previo {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 4.5rem;
}

.ciu-icono-previo .ciu-icono-inicio {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 22%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}

.ciu-icono-previo .ciu-icono-pestana {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    max-width: 11rem;
    padding: .3rem .6rem;
    border: 1px solid var(--ciu-borde);
    border-bottom: 0;
    border-radius: .5rem .5rem 0 0;
    background: #f1f3f5;
    font-size: .75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ciu-icono-previo .ciu-icono-pestana img { width: 16px; height: 16px; flex: 0 0 auto; }

.ciu-previa-publica {
    --pub-encabezado: var(--ciu-primario);
    --pub-encabezado-texto: #fff;
    --pub-pie: #fff;
    --pub-pie-texto: var(--ciu-texto-tenue);
    max-width: 22rem;
    border: 1px solid var(--ciu-borde);
    border-radius: .75rem;
    overflow: hidden;
    background: #f7f8fa;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.ciu-previa-publica .cpp-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
    background:
        radial-gradient(120% 160% at var(--pub-degrade-x, 0%) 0%,
            rgba(255, 255, 255, var(--pub-degrade-brillo, .10)), transparent 60%),
        linear-gradient(var(--pub-degrade-angulo, 135deg),
            color-mix(in srgb, var(--pub-encabezado), #fff var(--pub-degrade-claro, 12%)) 0%,
            var(--pub-encabezado) 45%,
            color-mix(in srgb, var(--pub-encabezado), #000 var(--pub-degrade-oscuro, 28%)) 100%);
    color: var(--pub-encabezado-texto);
}

.ciu-previa-publica .cpp-logo {
    display: grid;
    place-items: center;
    background: var(--pub-logo-fondo, rgba(255, 255, 255, .95));
    border-radius: .4rem;
    padding: var(--pub-logo-relleno, .15rem .3rem);
}

.ciu-previa-publica .cpp-logo img { display: block; height: 26px; width: auto; }

.ciu-previa-publica.cpp-sin-logo .cpp-logo {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--pub-encabezado-texto) 12%, transparent);
    color: var(--pub-encabezado-texto);
    font-size: 1.05rem;
}

.ciu-previa-publica .cpp-titulo { font-weight: 600; font-size: .85rem; }

.ciu-previa-publica .cpp-municipio {
    display: block;
    margin-top: .12rem;
    font-size: .56rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    opacity: .8;
}

.ciu-previa-publica .cpp-franja {
    height: var(--pub-franja-alto, 0);
    background: var(--pub-franja, none);
}

.ciu-previa-publica .cpp-tabs {
    display: flex;
    background: #fff;
    border-bottom: 1px solid var(--ciu-borde);
    font-size: .68rem;
    font-weight: 600;
    color: var(--ciu-texto-tenue);
}

.ciu-previa-publica .cpp-tabs span {
    flex: 1 1 0;
    text-align: center;
    padding: .35rem 0;
    border-bottom: 2px solid transparent;
}

.ciu-previa-publica .cpp-tabs .activa {
    color: var(--ciu-primario);
    border-bottom-color: var(--ciu-primario);
}

.ciu-previa-publica .cpp-mapa {
    height: 5.5rem;
    background: repeating-linear-gradient(135deg, #eef1f3 0 12px, #e7ebee 12px 24px);
}

.ciu-previa-publica .cpp-pie {
    padding: .35rem .5rem;
    text-align: center;
    font-size: .62rem;
    border-top: 1px solid var(--ciu-borde);
    background: linear-gradient(180deg, var(--pub-pie) 0%,
                color-mix(in srgb, var(--pub-pie) 92%, #000) 100%);
    color: var(--pub-pie-texto);
}

.ciu-main > .container-fluid { padding-top: .5rem; }

#mapaFlota.ciu-mapa-alto { height: min(65vh, 600px); }

.ciu-fijo #tabMapaFlota { min-height: 0; }
.ciu-fijo #tabMapaFlota > .row { flex: 1 1 auto; min-height: 0; }
.ciu-fijo #tabMapaFlota > .row > [class^="col"] { min-height: 0; }
.ciu-fijo #tabMapaFlota > .row > .col-lg-8 > .card,
.ciu-fijo #tabMapaFlota > .row > .col-xl-9 > .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ciu-fijo #mapaFlota.ciu-mapa-alto { height: auto; flex: 1 1 auto; min-height: 0; }

.ciu-fijo #tabCobertura,
.ciu-fijo #tabPadron { overflow-y: auto; }

@media (max-width: 991.98px) {
    .ciu-fijo #tabMapaFlota > .row { overflow-y: auto; display: block; }
    .ciu-fijo #mapaFlota.ciu-mapa-alto { flex: none; height: 55vh; min-height: 280px; }
}

.ciu-contadores { margin: 0 0 .75rem; }

.ciu-contadores .counter {

    padding: .75rem .5rem;
    cursor: help;
    text-align: center;
    color: #fff;
}

.ciu-contadores .counter > i {
    display: block;
    font-size: 2.6rem;
    line-height: 1;
    margin-bottom: .45rem;
    opacity: .9;

    text-shadow: 0 2px 6px rgba(0, 0, 0, .28);
}

.ciu-contadores .counter .ciu-contador-nota {
    display: block;
    font-size: .72rem;
    line-height: 1.2;
    margin-top: .2rem;
    opacity: .7;
    font-variant-numeric: tabular-nums;
}

.ciu-contadores .counter strong {
    display: block;
    font-weight: 700;
    font-size: 2.2rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .22);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.ciu-contadores .counter label {
    display: block;
    font-weight: 300;
    font-size: .85rem;
    line-height: 1.2;
    margin: 0;
    opacity: .9;
}

.ciu-tooltip-ancho .tooltip-inner {
    max-width: 320px;
    text-align: left;
    font-size: .8rem;
    line-height: 1.35;
}

.ciu-contadores {
    background: linear-gradient(135deg, var(--ciu-primario), var(--ciu-secundario));
}

.ciu-aparece {
    opacity: 0;
    transform: scale(.85);
}

.ciu-aparece.visible {
    animation: ciuRebote .6s cubic-bezier(.215, .61, .355, 1) forwards;
}

@keyframes ciuRebote {
    0%   { opacity: 0; transform: scale(.3); }
    50%  { opacity: 1; transform: scale(1.05); }
    70%  { transform: scale(.95); }
    100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .ciu-aparece { opacity: 1; transform: none; }
    .ciu-aparece.visible { animation: none; }
}

@keyframes ciuLapiz {
    to { transform: scaleX(1); }
}

.ciu-subrayado {

    font-family: "Shadows Into Light", "Segoe Script", "Bradley Hand",
                 "Apple Chancery", cursive;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
}

.ciu-subrayado::after {
    content: '';
    position: absolute;
    left: -.35em;
    right: -.35em;
    bottom: -.4rem;
    height: 10px;
    background: url(../img/porto/pencil-blue-line.png) no-repeat center;
    background-size: 100% 100%;
    transform: scaleX(0);
    transform-origin: left center;
    animation-name: ciuLapiz;
    animation-duration: 500ms;
    animation-delay: 1s;
    animation-fill-mode: forwards;
}

.ciu-subrayado-claro::after { filter: brightness(0) invert(1); }

@media (prefers-reduced-motion: reduce) {
    .ciu-subrayado::after { animation-duration: 0ms; animation-delay: 0ms; }
}

.ciu-cortina {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transition: visibility 0s linear .35s, opacity .35s ease-in-out;
}

.ciu-cortina.activa {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.ciu-cortina > div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ciu-cortina .cssload-pulse-loader {
    margin: 0;
    background: var(--ciu-primario);
}

.ciu-contadores .counter { transition: transform .2s ease; }
.ciu-contadores a.counter:hover { transform: translateY(-3px); }

#tablaComentarios .tabulator { border: 0; background: transparent; }
#tablaComentarios .tabulator .tabulator-header { border-top: 0; }

.ciu-fijo .ciu-panel-cuerpo {
    flex: 1 1 auto;
    min-height: 0;
}

.ciu-fijo .ciu-panel-cuerpo > [class*="col-"] { min-height: 0; }

.ciu-fijo .ciu-panel-cuerpo .card { overflow: hidden; }

.ciu-fijo .ciu-panel-cuerpo .list-group.ciu-scroll { overflow-y: auto; }

.ciu-fijo .ciu-contadores { flex: 0 0 auto; }

@media (max-width: 991.98px) {
    .ciu-fijo .ciu-panel-cuerpo {
        overflow-y: auto;
        display: block;
    }

    .ciu-fijo .ciu-panel-cuerpo .card { overflow: visible; }
    .ciu-fijo .ciu-panel-cuerpo > [class*="col-"] { margin-bottom: .75rem; }
}
