/* Callejeros, mapas y test por comunidad */

.cll {
    background: var(--mo-fondo);
}

.cll [hidden],
.cll .mo-mapa[hidden] {
    display: none;
}

.cll-ccaa-n {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    font-size: 11px;
    font-weight: 800;
}

.mo-ccaa-item.is-active .cll-ccaa-n {
    background: rgba(255, 255, 255, .25);
}

.cll-cuerpo {
    padding-top: 30px;
    padding-bottom: 60px;
}

.cll-rotulo {
    margin: 0 0 12px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mo-gris);
}

.cll-cuerpo > .mo-vacio {
    margin-bottom: 24px;
}

.cll-cuerpo .mo-vacio a {
    font-weight: 700;
    color: var(--mo-rojo);
}

/* Las dos webs */

.cll-webs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.cll-web {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--mo-borde);
    border-radius: 18px;
    background: #fff;
    color: var(--mo-oscuro);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.cll-web:hover {
    border-color: var(--mo-rojo);
    box-shadow: 0 14px 30px rgba(37, 32, 52, .1);
    color: var(--mo-oscuro);
    transform: translateY(-3px);
}

.cll-web__imagen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 12px;
    background: var(--mo-suave);
}

.cll-web__imagen img {
    width: 100%;
    height: 100%;
    max-height: 170px;
    object-fit: contain;
}

.cll-web__imagen b {
    font-family: 'Anton', sans-serif;
    font-size: 24px;
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
}

.cll-web__texto {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 22px;
}

.cll-web__texto b {
    font-size: 18px;
    font-weight: 800;
}

.cll-web__texto > span {
    font-size: 13px;
    line-height: 1.5;
    color: var(--mo-texto);
}

.cll-web__texto small {
    margin-top: auto;
    font-size: 12px;
    font-weight: 800;
    color: var(--mo-rojo);
}

/* Comunidad elegida */

.cll-origen {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px 24px;
    margin-bottom: 18px;
}

.cll-origen__titulo {
    margin: 0;
    font-family: 'Anton', sans-serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    color: var(--mo-oscuro);
}

.cll-origen__titulo span {
    color: var(--mo-rojo);
}

.cll-origen__texto {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--mo-texto);
}

.cll-origen__texto a {
    font-weight: 700;
    color: var(--mo-rojo);
}

.cll-filtro {
    position: relative;
    width: 100%;
    max-width: 360px;
}

.cll-filtro i {
    position: absolute;
    left: 16px;
    top: 50%;
    font-size: 13px;
    color: var(--mo-gris);
    transform: translateY(-50%);
}

.cll-filtro input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 40px;
    border: 2px solid var(--mo-borde-2);
    border-radius: 999px;
    background: #fff;
    color: var(--mo-oscuro);
    font-family: inherit;
    font-size: 14px;
}

.cll-filtro input:focus {
    border-color: var(--mo-oscuro);
    outline: none;
}

.cll-resultados {
    overflow: hidden;
    border: 1px solid var(--mo-borde);
    border-radius: 16px;
    background: #fff;
}

.cll-resultados__cuenta {
    margin: 0;
    padding: 16px 20px 0;
    font-size: 14px;
    font-weight: 700;
}

.cll-ambito {
    font-size: 11px;
    font-weight: 700;
    color: var(--mo-gris);
}

.cll-pcdiez {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-top: 28px;
    padding: 20px 24px;
    border-radius: 18px;
    background: linear-gradient(110deg, var(--mo-oscuro-2), var(--mo-oscuro-3));
    color: #fff;
}

.cll-pcdiez:hover {
    color: #fff;
}

.cll-pcdiez b {
    display: block;
    font-size: 16px;
    font-weight: 800;
}

.cll-pcdiez > span > span {
    font-size: 13px;
    color: #C9C4D6;
}

.cll-pcdiez__ir {
    flex-shrink: 0;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--mo-rojo);
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    transition: background .2s ease;
}

.cll-pcdiez:hover .cll-pcdiez__ir {
    background: var(--mo-rojo-osc);
}

.cll a:focus-visible {
    outline: 2px solid var(--mo-rojo);
    outline-offset: 3px;
}

/* Plano animado sobre el círculo de la cabecera */

/* Círculo y plano, más pequeños que en el resto de cabeceras y con el mismo centro. */
.cll .mo-cab:not(.mo-cab--elegida) .mo-cab__circulo,
.cll .mo-cab .mo-cab__dentro > .cll-plano {
    right: 95px;
    top: 65px;
    width: 270px;
    height: 270px;
}

.cll .mo-cab .mo-cab__dentro > .cll-plano {
    position: absolute;
    z-index: 1;
    animation: cll-aparece .8s ease-out both;
}

.cll-plano svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.cll-plano__manzanas rect {
    fill: rgba(255, 255, 255, .12);
}

.cll-plano__calles path {
    fill: none;
    stroke: rgba(255, 255, 255, .32);
    stroke-width: 3;
}

.cll-plano__calles .cll-plano__avenida {
    stroke: rgba(255, 255, 255, .45);
    stroke-width: 7;
    stroke-linecap: round;
}

.cll-plano__ruta-fondo,
.cll-plano__ruta {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cll-plano__ruta-fondo {
    stroke: rgba(37, 32, 52, .25);
    stroke-width: 9;
}

.cll-plano__ruta {
    stroke: #fff;
    stroke-width: 6;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: cll-ruta 6s ease-in-out infinite;
}

.cll-plano__salida {
    fill: #252034;
    stroke: #fff;
    stroke-width: 3;
}

.cll-plano__coche {
    fill: #252034;
    stroke: #fff;
    stroke-width: 2.5;
}

.cll-plano__pin {
    fill: #fff;
    filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .35));
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: cll-pin 6s ease-in-out infinite;
}

.cll-plano__pin circle {
    fill: #EA1621;
}

.cll-plano__onda {
    fill: none;
    stroke: #fff;
    stroke-width: 2.5;
    transform-box: fill-box;
    transform-origin: center;
    animation: cll-onda 6s ease-out infinite;
}

@keyframes cll-aparece {
    from {
        opacity: 0;
        transform: scale(.85);
    }
}

@keyframes cll-ruta {
    0% {
        stroke-dashoffset: 1;
        opacity: 1;
    }
    45%,
    85% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

@keyframes cll-pin {
    0%,
    42% {
        opacity: 0;
        transform: translateY(-40px);
    }
    52% {
        opacity: 1;
        transform: translateY(0) scaleY(.85);
    }
    58% {
        transform: translateY(-8px);
    }
    64%,
    88% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(0);
    }
}

@keyframes cll-onda {
    0%,
    50% {
        opacity: 0;
        transform: scale(.4);
    }
    52%,
    70% {
        opacity: .9;
        transform: scale(.4);
    }
    69%,
    88% {
        opacity: 0;
        transform: scale(2.6);
    }
    100% {
        opacity: 0;
    }
}

@media (max-width: 991.98px) {
    .cll-webs {
        grid-template-columns: 1fr;
    }

    .cll-plano {
        opacity: .35;
    }
}

@media (max-width: 767.98px) {
    .cll-cuerpo {
        padding-top: 20px;
        padding-bottom: 90px;
    }

    .cll-web {
        grid-template-columns: 1fr;
    }

    .cll-web__imagen {
        min-height: 120px;
    }

    .cll-filtro {
        max-width: none;
    }

    .cll-origen__titulo {
        font-size: 24px;
    }

    .cll-plano {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cll-plano,
    .cll-plano__onda {
        animation: none;
    }

    .cll-plano__ruta {
        stroke-dashoffset: 0;
        animation: none;
    }

    .cll-plano__pin {
        opacity: 1;
        animation: none;
    }

    .cll-plano__coche {
        display: none;
    }

    .cll-web,
    .cll-pcdiez__ir {
        transition: none;
    }

    .cll-web:hover {
        transform: none;
    }
}
