/* ==========================================================================
   ESTILOS ESPECÍFICOS: LANZAMIENTOS
   ========================================================================== */

/* --- Hero Interno Premium --- */
.page-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center; /* Centrado absoluto */
    text-align: center;
    padding-top: 80px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Efecto viñeta oscura más dramático */
    background: radial-gradient(circle at center, rgba(5,5,5,0.4) 0%, rgba(5,5,5,0.95) 100%);
}
.releases-hero {
    /* Sugerencia de imagen: Una bandeja de vinilos, o luces de estudio detalladas */
    background: url('/assets/img/backgrounds/hero-lanzamientos.jpg') center/cover no-repeat;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra la línea dorada */
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 5rem); /* Título mucho más grande */
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 700px;
    line-height: 1.8;
}

/* Línea decorativa dorada brillante */
.hero-content::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent);
    margin-top: 2.5rem;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.6);
}

.accent-label {
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

/* --- Lanzamiento Destacado --- */
.featured-release {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.featured-cover {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1/1;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.featured-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-release:hover .featured-cover img {
    transform: scale(1.03);
}

.release-date {
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1rem;
}

.featured-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 0.2rem;
    line-height: 1.1;
}

.featured-artist {
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.featured-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.featured-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Grilla del Catálogo (Estilo Pro) --- */
.releases-grid-pro {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem 1.5rem;
}

.release-card-pro {
    display: flex;
    flex-direction: column;
}

.card-pro-cover {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.card-pro-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
}

/* Overlay animado para la grilla */
.card-pro-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none; /* Previene el bug en móviles cuando está invisible */
    backdrop-filter: blur(3px);
}

.release-card-pro:hover .card-pro-cover img {
    transform: scale(1.05);
    filter: brightness(0.8);
}

.release-card-pro:hover .card-pro-overlay {
    opacity: 1;
    pointer-events: auto;
}

.btn-play-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--bg-base);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s;
}

.release-card-pro:hover .btn-play-circle {
    transform: translateY(0);
}

.btn-play-circle:hover {
    background-color: var(--accent-hover);
    transform: scale(1.1) !important;
}

.overlay-text {
    color: var(--text-primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.release-card-pro:hover .overlay-text {
    transform: translateY(0);
}

/* Info debajo de la portada */
.card-pro-info h4 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pro-artist {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
}

.pro-year {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.5rem;
    display: block;
}


/* ==========================================================================
   RESPONSIVE Y SOLUCIÓN TÁCTIL (MÓVILES)
   ========================================================================== */
@media (max-width: 1024px) {
    .featured-release {
        gap: 2rem;
        padding: 2rem;
    }
    .releases-grid-pro {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* Ajustes para el Hero en Móvil (Títulos más controlados) */
    .hero-content h1 {
        font-size: 1.8rem; /* Reducido de 2.5rem a 1.8rem para que no invada la pantalla */
        letter-spacing: 2px;
    }
    .page-hero {
        min-height: 40vh;
        padding: 80px 20px 0;
    }

    .featured-release {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    .featured-actions {
        flex-direction: column;
    }
    .featured-actions .btn {
        width: 100%;
    }
    
    .releases-grid-pro {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
    }

    /* En celulares forzamos que el overlay esté visible abajo para poder tocarlo sin hover */
    .card-pro-overlay {
        opacity: 1;
        pointer-events: auto;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
        justify-content: flex-end;
        padding-bottom: 1rem;
        backdrop-filter: none;
    }
    .btn-play-circle {
        width: 45px;
        height: 45px;
        transform: translateY(0);
    }
    .btn-play-circle i {
        width: 20px;
        height: 20px;
    }
    .overlay-text {
        display: none; /* Ocultamos el texto extra en celular para no tapar la foto */
    }
}

@media (max-width: 480px) {
    .releases-grid-pro {
        grid-template-columns: 1fr;
    }
}