/* Listado de canciones (s_canciones.php). Rejilla de tarjetas con miniatura 3:2 y filtros en el navegador. */

.titulo-portada.canciones {
    color: #045b82;
    border-bottom: 2px solid #045b82;
}

/* ---------- filtros ---------- */
.cn-filtros {
    background: #f3f7fa;
    border: 1px solid #dbe6ee;
    border-radius: 16px;
    padding: 14px 16px 6px;
    margin: 6px 0 16px;
}

.cn-buscar {
    position: relative;
    max-width: 460px;
    margin: 0 auto 12px;
}

.cn-buscar input {
    width: 100%;
    height: 46px;
    padding: 0 16px 0 46px;
    border: 2px solid #c9d6ef;
    border-radius: 23px;
    background: #fff url("/imagen/icon_menu/icon_lupa.png") no-repeat 14px center / 22px 22px;
    font-size: 1.05rem;
    color: #2a2018;
    outline: none;
}

.cn-buscar input:focus {
    border-color: #045b82;
}

.cn-grupo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.cn-grupo-et {
    font-size: .85rem;
    font-weight: 700;
    color: #6b7b88;
    margin-right: 4px;
}

.cn-chip {
    height: 34px;
    padding: 0 14px;
    border: 2px solid #c9d6ef;
    border-radius: 17px;
    background: #eef2fa;
    color: #2a4a8f;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
}

.cn-chip:hover {
    border-color: #045b82;
}

.cn-chip.on {
    background: #045b82;
    border-color: #045b82;
    color: #fff;
}

.cn-cuenta {
    text-align: center;
    font-size: .95rem;
    color: #6b7b88;
    margin: 0 0 10px;
}

/* ---------- tarjetas ---------- */
.cn-rejilla > [class*="col"] {
    margin-bottom: 18px;
}

.cn-card {
    display: block;
    height: 100%;
    background: #fff;
    border: 3px solid #045b82;
    border-radius: 16px;
    overflow: hidden;
    color: inherit;
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease;
}

.cn-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(4, 91, 130, .22);
    color: inherit;
}

.cn-img {
    display: block;
    width: 100%;
    height: auto; /* anula el height="400" del atributo, que estiraba la imagen y la recortaba */
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: #d8eff7;
}

.cn-cuerpo {
    display: block;
    padding: 10px 12px 12px;
    text-align: center;
}

.cn-titulo {
    display: block;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1f2d3d;
}

.cn-sub {
    display: block;
    margin-top: 2px;
    font-size: .85rem;
    color: #6b7b88;
    line-height: 1.3;
}

.cn-pastillas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.cn-pastilla {
    padding: 2px 10px;
    border-radius: 12px;
    background: #eef2fa;
    border: 1px solid #c9d6ef;
    color: #2a4a8f;
    font-size: .78rem;
    font-weight: 700;
}

.cn-pastilla.flauta {
    background: #fff5cc;
    border-color: #f0d56a;
    color: #7a5b00;
}

.cn-vacio {
    text-align: center;
    padding: 30px 10px;
    color: #6b7b88;
    font-size: 1.05rem;
}

@media (max-width: 575.98px) {
    .cn-titulo { font-size: 1.02rem; }
}
