/* --- Estilos específicos para la banda dannbug --- */

/* Ajustes de navegación */
.back-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color var(--transition-smooth);
    font-family: var(--font-heading);
}

.back-link:hover {
    color: var(--text-secondary);
}

/* CARGADOR INICIAL */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    background: var(--bg-color);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid var(--border-color);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: page-loader-spin 0.8s linear infinite;
}

@keyframes page-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

/* HERO BAND */
.hero-band {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
    padding: 6rem 1.25rem 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.hero-band.is-three-ready {
    opacity: 1;
    visibility: visible;
}

.band-logo {
    width: min(72vw, 900px);
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 1.25rem;
}

.band-name {
    font-size: clamp(4rem, 12vw, 10rem);
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    background: linear-gradient(to bottom, var(--hero-title-grad-start), var(--hero-title-grad-end));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.band-subtitle {
    font-size: clamp(0.75rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    line-height: 1.7;
    padding: 0 0.75rem;
}

/* SECCIONES COMUNES */
.band-section {
    padding: 8rem 3rem;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-family: var(--font-heading);
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    text-transform: uppercase;
}

/* BIO */
.bio-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.bio-header .section-title {
    margin-bottom: 0;
    flex: 1 1 auto;
}

.bio-language-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.28rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.bio-language-btn {
    appearance: none;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.65rem 1rem;
    min-width: 4.25rem;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.bio-language-btn:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.bio-language-btn.is-active {
    background: linear-gradient(135deg, var(--text-primary) 0%, rgba(255, 255, 255, 0.82) 100%);
    color: var(--bg-color);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.bio-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.bio-content[hidden] {
    display: none !important;
}

.bio-content p {
    margin-bottom: 1.5rem;
}

/* INTEGRANTES */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.member-card {
    text-align: center;
}

.member-img-wrapper {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 2px solid var(--border-color);
    transition: border-color var(--transition-smooth);
}

.member-card:hover .member-img-wrapper {
    border-color: var(--text-primary);
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.member-card:hover .member-img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.member-name {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--text-secondary);
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* GALERÍA DE VIDEOS */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.video-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
    width: 100%;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.play-button svg {
    fill: #fff;
    width: 24px;
    height: 24px;
    margin-left: 5px;
}

.video-card:hover .play-button {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card:hover .play-button svg {
    fill: #000;
}

.video-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    text-align: center;
    margin-top: 1rem;
    width: 100%;
}

/* GALERÍA DE IMÁGENES */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    gap: 1.5rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.gallery-item:nth-child(2) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

/* ==========================================================================
   BIBLIOTECA MUSICAL - 3D FLIP CARDS & TRACKLISTS
   ========================================================================== */
.biblioteca {
    position: relative;
    z-index: 10;
}

.section-header-wrap {
    margin-bottom: 3.5rem;
}

.section-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    line-height: 1.6;
    margin-top: -1.5rem;
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* 3D FLIP CARD CONTAINER */
.album-card-wrapper {
    perspective: 1400px;
    width: 100%;
}

.album-card {
    position: relative;
    width: 100%;
    height: 540px;
    transform-style: preserve-3d;
    transition: transform 0.75s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.3s ease;
    border-radius: 20px;
    cursor: pointer;
    outline: none;
}

.album-card:focus-visible {
    box-shadow: 0 0 0 3px var(--text-primary);
}

.album-card.is-flipped {
    transform: rotateY(180deg);
}

/* CARD FACES */
.album-card-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.album-card:hover .album-card-face {
    border-color: var(--card-border-hover);
    box-shadow: 0 24px 50px var(--card-shadow-hover);
}

/* FRONT FACE STYLING */
.album-card-front {
    transform: rotateY(0deg);
    justify-content: space-between;
}

.album-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.album-badge {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.album-year {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: var(--font-heading);
}

/* SLEEVE & VINYL INTERACTION */
.album-sleeve-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-height: 310px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem 0;
}

.album-vinyl-disc {
    position: absolute;
    width: 85%;
    height: 85%;
    border-radius: 50%;
    /* Tema oscuro (por defecto): vinilo claro */
    background: radial-gradient(circle at center, #d8dbe2 0%, #f4f5f8 25%, #c8cdd7 45%, #eceef3 65%, #b2b8c5 100%);
    /*right: 5%;*/
    top: 5%;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 255, 255, 0.08);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.25, 1), background 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.vinyl-groove {
    position: absolute;
    border-radius: 50%;
    /* Tema oscuro (por defecto): ranuras para vinilo claro */
    border: 1px dashed rgba(0, 0, 0, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Tema claro: vinilo oscuro */
[data-theme="light"] .album-vinyl-disc {
    background: radial-gradient(circle at center, #111116 0%, #1f1f26 25%, #0d0d12 45%, #22222a 65%, #08080c 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .vinyl-groove {
    border: 1px dashed rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.vinyl-groove-1 {
    width: 75%;
    height: 75%;
}

.vinyl-groove-2 {
    width: 52%;
    height: 52%;
}

.vinyl-center-label {
    width: 32%;
    height: 32%;
    border-radius: 50%;
    background: linear-gradient(135deg, #3d1c47, #180903);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.7);
}

.vinyl-center-colour {
    background: linear-gradient(135deg, #3b0764, #0284c7);
}

.vinyl-center-jewels {
    background: linear-gradient(135deg, #022c22, #4c1d95);
}

.vinyl-label-text {
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Vinyl slide out on card hover */
.album-card:hover:not(.is-flipped) .album-vinyl-disc {
    transform: translateX(42px) rotate(45deg);
}

/* SLEEVE COVER ART */
.album-cover-art {
    position: relative;
    z-index: 2;
    width: 86%;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.4rem;
    transition: transform 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cover-art-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.5s ease;
}

.album-card:hover .cover-art-img {
    transform: scale(1.05);
}

.cover-ramble {
    background: #1a0822 url('../imgs/portada-ramble.png') center/cover no-repeat;
}

.cover-colour {
    background: radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.4), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.35), transparent 50%),
        linear-gradient(145deg, #110d2c 0%, #3b0764 45%, #18092a 100%);
}

.cover-jewels {
    background: radial-gradient(circle at 50% 10%, rgba(16, 185, 129, 0.35), transparent 55%),
        radial-gradient(circle at 80% 90%, rgba(139, 92, 246, 0.35), transparent 55%),
        linear-gradient(145deg, #021a14 0%, #071728 50%, #200d3d 100%);
}

.cover-art-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
    pointer-events: none;
}

.cover-art-content {
    position: relative;
    z-index: 3;
}

.cover-band-tag {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 0.2rem;
}

.cover-album-name {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 0.35rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.cover-meta-info {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.8);
    display: block;
}

/* ALBUM INFO & FLIP BUTTON */
.album-info-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.album-card-title {
    font-size: 1.35rem;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

.album-card-genre {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.album-flip-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--transition-smooth);
    flex-shrink: 0;
}

.album-flip-action-btn:hover,
.album-card:hover .album-flip-action-btn {
    background: var(--text-primary);
    color: var(--bg-color);
    border-color: var(--text-primary);
}

.flip-svg-icon {
    transition: transform 0.4s ease;
}

.album-card:hover .flip-svg-icon {
    transform: rotate(180deg);
}

/* BACK FACE STYLING & TRACKLIST */
.album-card-back {
    transform: rotateY(180deg);
    background: var(--artwork-bg);
    justify-content: space-between;
}

.card-back-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-color);
}

.back-type-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.15rem;
}

.back-main-title {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.15;
}

.album-flip-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-smooth);
    flex-shrink: 0;
}

.album-flip-back-btn:hover {
    background: var(--text-primary);
    color: var(--bg-color);
    border-color: var(--text-primary);
}

/* TRACKLIST */
.tracklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0.75rem 0;
    overflow-y: auto;
    max-height: 330px;
    padding-right: 0.25rem;
}

.tracklist::-webkit-scrollbar {
    width: 4px;
}

.tracklist::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.track-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--border-color);
    transform: translateX(3px);
}

.track-num {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 1.4rem;
    font-variant-numeric: tabular-nums;
}

.track-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.track-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.track-badge-play {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.track-time {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

/* PLAYABLE TRACK ITEM */
.track-item--playable {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-color);
}

.track-play-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--text-primary);
    color: var(--bg-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: transform var(--transition-smooth), background var(--transition-smooth);
    flex-shrink: 0;
}

.track-play-btn:hover {
    transform: scale(1.12);
}

.track-item--playable.is-playing {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.12);
}

.track-item--playable.is-playing .track-play-btn {
    animation: vinyl-spin 3s linear infinite;
}

.card-back-footer {
    padding-top: 0.6rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.back-hint {
    font-size: 0.72rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

/* MERCH */
.merch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.merch-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: center;
    padding-bottom: 2rem;
}

.merch-card:hover {
    transform: translateY(-10px);
    border-color: var(--card-border-hover);
    box-shadow: 0 20px 40px var(--card-shadow-hover);
}

.merch-img-wrapper {
    width: 100%;
    aspect-ratio: 1;
    background: var(--artwork-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.merch-img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.merch-title {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    padding: 0 1rem;
}

.merch-price {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.buy-btn {
    background: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    padding: 0.75rem 2rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.buy-btn:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}

/* RESPONSIVE */
/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-band {
        min-height: 88vh;
        padding-top: 7rem;
        padding-bottom: 2.5rem;
    }

    .band-logo {
        width: min(82vw, 520px);
        margin-bottom: 0.9rem;
    }

    .band-subtitle {
        letter-spacing: 0.12em;
        font-size: 0.75rem;
    }

    .gallery-item:nth-child(2) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .albums-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .album-card {
        height: 520px;
    }

    .album-card-face {
        padding: 1.25rem;
    }

    .album-cover-name {
        font-size: 1.3rem;
    }

    .tracklist {
        max-height: 310px;
    }
}