/* «Agrupaciones participantes» de la ficha de un evento: una tarjeta por banda con el
   video grande arriba (toca para verlo aquí mismo) y, debajo, su nombre y sus accesos
   (Instagram y lanzamiento) como botones tipo píldora. */

.seccion-agrupaciones .ap-subtitulo {
    margin: -2px 0 14px;
    color: var(--texto-tenue);
    font-size: 0.88rem;
    line-height: 1.45;
}
.ap-lista {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 640px) {
    .ap-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
.ap-card {
    display: flex;
    flex-direction: column;
    background: var(--fondo-tarjeta);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s var(--ease-suave), box-shadow 0.2s ease, border-color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
    .ap-card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.14); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55); }
}

/* Video (o inicial de la banda si no tiene video) */
.ap-medio { position: relative; aspect-ratio: 16 / 9; background: #0b0b0b; overflow: hidden; }
.ap-medio .miniatura-play {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: #0b0b0b;
}
.ap-medio .miniatura-play img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: opacity 0.2s ease, transform 0.35s var(--ease-suave); }
.ap-medio .miniatura-play::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
    .ap-medio .miniatura-play:hover img { opacity: 1; transform: scale(1.04); }
}
.ap-medio .icono-play {
    inset: auto;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    padding-left: 4px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    text-shadow: none;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: transform 0.2s var(--ease-suave), background-color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
    .ap-medio .miniatura-play:hover .icono-play { transform: scale(1.08); background: rgba(34, 197, 94, 0.85); border-color: #fff; }
}
.ap-etq {
    position: absolute;
    left: 12px;
    bottom: 10px;
    z-index: 1;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    pointer-events: none;
}
.ap-sin-video {
    display: grid;
    place-items: center;
    background:
        radial-gradient(120% 140% at 15% 0%, rgba(34, 197, 94, 0.16), transparent 55%),
        linear-gradient(135deg, #1d1d1d, #111);
}
.ap-sin-video span {
    font-family: var(--fuente-editorial);
    font-size: 3.4rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.28);
    line-height: 1;
}

/* Nombre y accesos */
.ap-cuerpo { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; flex: 1; }
.ap-nombre { margin: 0; font-size: 1.05rem; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.ap-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.ap-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-height: 40px;
    padding: 0 14px 0 6px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: var(--texto);
    font: inherit;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
@media (hover: hover) and (pointer: fine) {
    .ap-chip:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.3); }
}
.ap-chip:active { transform: scale(0.97); }
.ap-chip-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.ap-chip-txt small { font-size: 0.65rem; color: var(--texto-tenue); text-transform: uppercase; letter-spacing: 0.05em; }
.ap-chip-ico {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.ap-chip-ico svg { width: 15px; height: 15px; }
.ap-chip-portada { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; object-fit: cover; display: block; }
