/* ============================================================
   Ficha de agrupación (agrupacion.php) — rediseño oct/2026.
   Va DESPUÉS de estilo.css (y de tienda.css cuando hay merch).

   Principios:
   - La foto de la banda se ve ENTERA sobre su propio fondo desenfocado y el
     nombre va debajo, nunca encima de la foto.
   - Jerarquía clara: una portada con lo esencial, cifras, y luego bloques
     con un mismo ritmo (kicker dorado + título editorial).
   - Dorado = identifica (género, rótulos, números); verde = acción
     (Ver evento, Leer más). Nunca al revés.
   - Móvil primero: carruseles con scroll horizontal; en escritorio la
     portada pasa a dos columnas y el contenido gana ancho.
   ============================================================ */

.fa {
    --fa-oro: var(--acento-hazte-un-hit, #c9a24b);
    --fa-vidrio: rgba(28, 28, 28, 0.62);
    max-width: 720px;
    margin: 0 auto;
    padding: 4px 16px 56px;
}
@media (min-width: 900px) {
    .fa { max-width: 1080px; padding: 8px 32px 72px; }
}

/* ---------- Portada ---------- */
.fa-hero { display: block; }
.fa-hero-foto {
    position: relative; overflow: hidden; border-radius: 22px; isolation: isolate;
    background: #0d0d0d; border: 1px solid var(--borde);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    aspect-ratio: 16 / 11;
}
.fa-hero-foto.fa-vertical { aspect-ratio: auto; height: clamp(360px, 66vh, 560px); }
.fa-hero-fondo {
    position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px);
    object-fit: cover; filter: blur(28px) brightness(0.55) saturate(1.2); z-index: -1;
}
.fa .fa-hero-marco { display: flex; width: 100%; height: 100%; margin: 0; align-items: center; justify-content: center; padding: 14px; }
.fa .fa-hero-marco .item-galeria-completa { display: flex; max-width: 100%; max-height: 100%; cursor: zoom-in; }
.fa-hero-img {
    display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
    border-radius: 14px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.fa-hero-info { padding: 22px 2px 0; text-align: center; }
.fa-kicker {
    margin: 0 0 8px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--fa-oro);
}
.fa-nombre-fila { display: flex; flex-direction: column; align-items: center; gap: 18px; }
/* El logo va centrado y grande: es la marca de la banda. La caja se ajusta
   al tamaño real del logo (sin recortarlo). */
.fa-logo {
    display: flex; align-items: center; justify-content: center; max-width: 100%; padding: 16px 24px;
    background: var(--fa-vidrio); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--borde); border-radius: 20px;
}
.fa-logo img { display: block; width: auto; height: auto; max-width: min(300px, 100%); max-height: 150px; object-fit: contain; }
.fa-nombre {
    margin: 0; font-family: var(--fuente-editorial); font-weight: 600; font-size: clamp(2.1rem, 8.5vw, 3.6rem);
    line-height: 1.04; letter-spacing: -0.01em; color: var(--texto); text-wrap: balance; overflow-wrap: anywhere;
}

.fa-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.fa-chip {
    font-size: 0.8rem; font-weight: 600; line-height: 1; padding: 8px 13px; border-radius: 999px;
    color: var(--texto); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--borde);
}
.fa-chip.fa-chip-genero { color: var(--fa-oro); border-color: rgba(201, 162, 75, 0.55); background: rgba(201, 162, 75, 0.1); font-weight: 700; }

.fa-acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.fa-acciones .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 0; }
.fa-acciones .icono-linea { width: 18px; height: 18px; flex: none; }

.fa-redes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.fa-redes a {
    display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
    color: var(--texto); border: 1px solid var(--borde); background: var(--fa-vidrio);
    transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s var(--ease-suave);
}
.fa-redes svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
    .fa-redes a:hover { color: var(--accion); border-color: var(--accion); transform: translateY(-2px); }
}

@media (min-width: 900px) {
    .fa-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; padding-top: 12px; }
    .fa-hero:not(:has(.fa-hero-foto)) { grid-template-columns: minmax(0, 1fr); }
    .fa-hero-foto, .fa-hero-foto.fa-vertical { aspect-ratio: auto; height: min(640px, 76vh); }
    .fa-hero-info { padding: 0; }
    .fa-nombre { font-size: clamp(2.8rem, 4.6vw, 4.2rem); }
    .fa-logo img { max-width: min(340px, 100%); max-height: 180px; }
}

/* ---------- Cifras ---------- */
.fa-cifras {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px;
    margin: 28px 0 0; padding: 0; list-style: none;
}
.fa-cifras li {
    display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 14px; border-radius: 16px;
    background: var(--fa-vidrio); border: 1px solid var(--borde); border-top: 2px solid var(--fa-oro);
}
.fa-cifras strong { font-family: var(--fuente-editorial); font-weight: 600; font-size: 2.1rem; line-height: 1; color: var(--texto); }
.fa-cifras span { font-size: 0.8rem; color: var(--texto-tenue); line-height: 1.3; }

/* ---------- Menú de secciones ---------- */
.fa-nav {
    position: sticky; top: 0; z-index: 30; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
    margin: 22px -16px 0; padding: 10px 16px;
    background: rgba(18, 18, 18, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--borde);
}
.fa-nav::-webkit-scrollbar { display: none; }
.fa-nav a {
    flex: none; font-size: 0.86rem; font-weight: 700; color: var(--texto); padding: 9px 15px; min-height: 40px;
    display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--borde); background: var(--fondo-tarjeta);
    text-decoration: none; transition: border-color 0.15s ease;
}
@media (hover: hover) and (pointer: fine) { .fa-nav a:hover { border-color: var(--fa-oro); } }
@media (min-width: 900px) { .fa-nav { margin-left: -32px; margin-right: -32px; padding-left: 32px; padding-right: 32px; } }

/* ---------- Secciones ---------- */
.fa-seccion { margin-top: 48px; scroll-margin-top: 72px; }
.fa-titulo {
    margin: 0 0 18px; font-family: var(--fuente-editorial); font-weight: 600; font-size: clamp(1.6rem, 5.5vw, 2.1rem);
    line-height: 1.1; color: var(--texto); text-align: left;
}
.fa-titulo-k {
    display: block; margin-bottom: 6px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 0.7rem; font-weight: 800;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--fa-oro);
}
.fa-subtitulo { margin: 28px 0 14px; font-size: 1.05rem; font-weight: 800; color: var(--texto); display: flex; align-items: center; gap: 8px; text-align: left; }
.fa-contador { font-size: 0.75rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; color: var(--fa-oro); border: 1px solid rgba(201, 162, 75, 0.5); }

/* ---------- Próximos eventos ---------- */
.fa-proximos-lista { display: grid; gap: 12px; }
@media (min-width: 720px) { .fa-proximos-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fa-proximo {
    display: flex; gap: 14px; align-items: stretch; padding: 12px; border-radius: 18px; text-decoration: none; color: inherit;
    background: var(--fa-vidrio); border: 1px solid rgba(201, 162, 75, 0.45); box-shadow: 0 0 0 1px rgba(201, 162, 75, 0.06) inset;
    transition: border-color 0.15s ease, transform 0.15s var(--ease-suave);
}
@media (hover: hover) and (pointer: fine) { .fa-proximo:hover { border-color: var(--fa-oro); transform: translateY(-2px); } }
.fa-proximo-flyer { flex: none; width: 92px; display: flex; align-items: center; justify-content: center; background: #0d0d0d; border-radius: 12px; overflow: hidden; min-height: 112px; }
.fa-proximo-flyer img { display: block; width: 100%; height: 100%; object-fit: contain; }
.fa-proximo-vacio { font-size: 1.8rem; }
.fa-proximo-info { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.fa-proximo-info strong { font-size: 1.02rem; line-height: 1.25; }
.fa-proximo-fecha { font-size: 0.86rem; color: var(--texto-tenue); }
.fa-proximo-cta { margin-top: 6px; font-size: 0.86rem; font-weight: 800; color: var(--accion); }

/* ---------- Historia ---------- */
.fa-bio-texto { font-size: 1.02rem; line-height: 1.75; color: #e8e8e8; max-width: 68ch; text-align: left; margin: 0; }
.fa-bio-texto p { margin: 0 0 1em; }
.fa-bio-texto strong { color: var(--texto); }
.fa-bio.fa-colapsada .fa-bio-texto {
    max-height: 17em; overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
}
.fa-leer-mas {
    margin-top: 10px; cursor: pointer; font: inherit; font-weight: 800; font-size: 0.9rem; color: var(--accion);
    background: transparent; border: 1px solid var(--accion); border-radius: 999px; padding: 10px 20px; min-height: 44px;
}
.fa-leer-mas[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .fa-leer-mas:hover { background: rgba(34, 197, 94, 0.1); } }

.fa-cita { margin: 28px 0 0; padding: 22px 22px 20px 24px; border-left: 3px solid var(--fa-oro); background: var(--fa-vidrio); border-radius: 0 18px 18px 0; }
.fa-cita blockquote {
    margin: 0; font-family: var(--fuente-editorial); font-style: italic; font-weight: 500;
    font-size: clamp(1.25rem, 4.6vw, 1.7rem); line-height: 1.4; color: var(--texto); text-wrap: pretty;
}
.fa-cita figcaption { margin-top: 12px; font-size: 0.86rem; font-weight: 700; color: var(--fa-oro); }

/* ---------- Integrantes ---------- */
.fa-integrantes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .fa-integrantes { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; } }
.fa-integrante {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 20px 12px 16px;
    background: var(--fa-vidrio); border: 1px solid var(--borde); border-radius: 18px;
}
.fa-integrante strong { font-size: 0.98rem; line-height: 1.25; }
.fa-integrante-foto { padding-top: 12px; }
.fa-integrante-img {
    display: block; width: 100%; aspect-ratio: 4 / 5; margin-bottom: 8px; overflow: hidden; border-radius: 12px; background: #0d0d0d;
}
.fa-integrante-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.fa-integrante > span:not(.fa-integrante-img) { font-size: 0.82rem; color: var(--texto-tenue); line-height: 1.3; }

/* ---------- Música ---------- */
.fa-video { border-radius: 18px; overflow: hidden; border: 1px solid var(--borde); background: #0d0d0d; box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4); }
.fa-video .video-embed-lanzamiento { margin: 0; border-radius: 0; }
.fa-video-pie { margin: 0; padding: 12px 16px; font-size: 0.92rem; font-weight: 600; color: var(--texto); text-align: left; background: var(--fa-vidrio); }
.fa-video-pie span { margin-right: 6px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fa-oro); }
.fa-musica-fila { display: grid; gap: 16px; }
.fa-musica-fila .fa-spotify { margin: 0; }
/* Spotify solo dibuja el reproductor completo (cabecera + lista) si el
   iframe mide 352px de alto o más; con 350 se pinta en modo compacto y el
   resto de la caja quedaba en blanco. Acá la caja se ajusta al iframe (sin
   padding ni alto fijo): 352px para artista/álbum/playlist y 152px para un
   tema suelto. */
.fa .spotify-embed-agrupacion.fa-spotify { height: auto; padding: 0; border: 0; background: transparent; border-radius: 14px; overflow: hidden; }
.fa .spotify-embed-agrupacion.fa-spotify iframe { height: 352px; border-radius: 14px; }
.fa .spotify-embed-agrupacion.fa-spotify.spotify-embed-agrupacion--track iframe { height: 152px; }
@media (min-width: 900px) {
    .fa-musica-fila { max-width: 860px; }
    .fa-musica-fila.fa-dos { max-width: none; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
}

/* ---------- Carruseles ---------- */
.fa-carrusel-wrap { position: relative; }
.fa-carrusel {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain;
    margin: 0 -16px; padding: 4px 16px 14px; scroll-padding-left: 16px;
}
.fa-carrusel::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .fa-carrusel { margin: 0 -32px; padding-left: 32px; padding-right: 32px; scroll-padding-left: 32px; } }
.fa-flecha {
    display: none; position: absolute; top: 38%; z-index: 5; width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
    align-items: center; justify-content: center; font-size: 1.5rem; line-height: 1; color: var(--texto);
    background: rgba(12, 12, 12, 0.85); border: 1px solid var(--borde); padding: 0 0 3px;
}
.fa-flecha-prev { left: -12px; }
.fa-flecha-next { right: -12px; }
@media (hover: hover) and (pointer: fine) {
    .fa-flecha:not([hidden]) { display: flex; }
    .fa-flecha:hover { border-color: var(--texto-tenue); }
}

/* Discografía */
.fa-disco-item {
    flex: 0 0 168px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; padding: 0; margin: 0;
    background: transparent; border: 0; font: inherit; color: inherit; text-align: left; text-decoration: none; min-width: 0;
}
button.fa-disco-item { cursor: pointer; }
@media (min-width: 640px) { .fa-disco-item { flex-basis: 196px; } }
.fa-portada {
    position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 16px; margin-bottom: 6px;
    background: #181818; border: 1px solid var(--borde); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.fa-portada img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease-suave); }
.fa-portada-vacia { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 2.6rem; color: var(--fa-oro); }
.fa-play {
    position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
    border-radius: 50%; font-size: 0.8rem; padding-left: 2px; color: #04170a; background: var(--accion); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
@media (hover: hover) and (pointer: fine) { button.fa-disco-item:hover .fa-portada img { transform: scale(1.06); } }
.fa-tipo {
    align-self: flex-start; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1;
    padding: 4px 8px; border-radius: 999px; color: var(--texto-tenue); border: 1px solid var(--borde);
}
.fa-tipo.tipo-album { color: var(--fa-oro); border-color: rgba(201, 162, 75, 0.6); }
.fa-tipo.tipo-rareza { color: #a78bfa; border-color: rgba(167, 139, 250, 0.55); }
.fa-tipo.tipo-video { color: #f08a8a; border-color: rgba(240, 138, 138, 0.5); }
.fa-disco-titulo { font-size: 0.96rem; font-weight: 700; line-height: 1.3; color: var(--texto); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fa-disco-meta { font-size: 0.8rem; color: var(--texto-tenue); }
.fa-disco-desc { font-size: 0.78rem; line-height: 1.4; color: var(--texto-tenue); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Eventos */
.fa-ev-item { flex: 0 0 150px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; min-width: 0; }
@media (min-width: 640px) { .fa-ev-item { flex-basis: 180px; } }
.fa-ev-flyer { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 14px; margin-bottom: 6px; background: #0d0d0d; border: 1px solid var(--borde); }
.fa-ev-flyer img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Merch (tarjetas de tienda.css dentro de un carrusel) */
.fa-mer .tarjeta-merch.producto { flex: 0 0 168px; scroll-snap-align: start; }
@media (min-width: 640px) { .fa-mer .tarjeta-merch.producto { flex-basis: 200px; } }
.fa-enlace-mas { display: inline-block; margin-top: 6px; font-weight: 800; font-size: 0.92rem; color: var(--accion); text-decoration: none; }

/* ---------- Noticias ---------- */
.fa-noticias { display: grid; gap: 14px; }
@media (min-width: 640px) { .fa-noticias { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.fa-noticia { display: flex; flex-direction: column; text-decoration: none; color: inherit; overflow: hidden; border-radius: 18px; background: var(--fa-vidrio); border: 1px solid var(--borde); }
.fa-noticia-img { display: block; aspect-ratio: 16 / 9; background: #0d0d0d; overflow: hidden; }
.fa-noticia-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fa-noticia-img img.fa-sin-imagen { object-fit: contain; padding: 22px; opacity: 0.6; }
.fa-noticia-txt { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.fa-noticia-txt strong { font-size: 1.02rem; line-height: 1.3; }

/* ---------- Fotos ---------- */
.fa-fotos { margin-top: 0; }
@media (min-width: 900px) { .fa-fotos { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
