:root {
    --rojo: #e63946;
    --oscuro: #1a1a1a;
    --gris: #2d2d2d;
    --texto: #f1f1f1;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--oscuro);
    color: var(--texto);
    margin: 0;
    line-height: 1.6;
}

/* --- AJUSTE DE CAPAS (Para que el menú no se tape) --- */
header {
    background-color: #000;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 10000; /* Asegura que esté sobre TODO */
    width: 100%;
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.logo span {
    color: var(--rojo);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: 0.3s;
}

nav ul li a:hover {
    color: var(--rojo);
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1498038432885-c6f3f1b912ee?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

main {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 20px;
}

h2 {
    border-left: 5px solid var(--rojo);
    padding-left: 15px;
    margin-top: 3rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.news-card {
    background-color: var(--gris);
    padding: 20px;
    border-radius: 8px;
    border-bottom: 3px solid var(--rojo);
}

.bands-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.band-page {
    flex: 1;
    min-width: 300px;
    background: #252525;
    padding: 20px;
    border-radius: 10px;
}

footer {
    text-align: center;
    padding: 2rem;
    background: #000;
    margin-top: 4rem;
}

/* Estilos para el Dropdown */
.nav-links {
    display: flex;
    list-style: none;
    padding: 0;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1a1a1a;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.5);
    z-index: 10001;
    border-top: 2px solid var(--rojo);
    top: 100%; /* Se alinea justo debajo del texto */
    left: 0;
}

.dropdown-content li a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.category-title-container {
    text-align: center;
    padding: 60px 20px;
    background: var(--gris);
    margin-bottom: 40px;
    position: relative;
    z-index: 1; /* Prioridad baja */
}

.dropdown-content li a:hover {
    background-color: var(--gris);
    color: var(--rojo);
}
/* Este es el truco: un área sensible para que no se cierre al bajar el mouse */
.dropdown::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 20px;
    bottom: -20px;
    left: 0;
}
/* Mostrar al pasar el mouse */
.dropdown:hover .dropdown-content {
    display: block;
}

.dropbtn {
    cursor: pointer;
}

/* Contenedor principal de la cuadrícula */
.band-grid {
    display: grid;
    /* Crea columnas de al menos 280px, ajustándose automáticamente */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px; /* Espacio entre tarjetas */
    padding: 20px 0;
    /* Animación de entrada al cargar la página */
    animation: fadeInPage 0.8s ease-in-out;
}

/* Estilo base de la Tarjeta */
.band-card {
    background-color: var(--gris);
    border-radius: 12px;
    overflow: hidden; /* Mantiene la imagen dentro de los bordes redondeados */
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Animación suave y elástica */
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none; /* Si la tarjeta entera es un link */
    color: inherit;
}

/* --- EFECTO HOVER (Animación al pasar el mouse) --- */
.band-card:hover {
    transform: translateY(-10px) scale(1.02); /* Se eleva y agranda ligeramente */
    box-shadow: 0 15px 30px rgba(230, 57, 70, 0.4); /* Sombra roja brillante */
    border-color: var(--rojo);
}

/* Contenedor de la imagen de la banda */
.band-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.band-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la imagen sin deformarla */
    transition: transform 0.6s ease;
}

/* Efecto de zoom en la imagen al hacer hover en la tarjeta */
.band-card:hover .band-image-container img {
    transform: scale(1.1);
}

/* Etiqueta de género/estado sobre la imagen */
.band-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--rojo);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

/* Detalles del texto de la tarjeta */
.band-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.band-details h3 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #fff;
    letter-spacing: 1px;
}

.band-origin {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.band-key-song {
    background-color: rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    border-left: 3px solid var(--rojo);
    margin-top: auto; /* Empuja esto al final del contenedor */
}

.band-key-song strong {
    color: var(--rojo);
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Animación de entrada Keyframe */
@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajustes para encabezados de categoría */
.category-header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(180deg, rgba(230,57,70,0.1) 0%, rgba(26,26,26,0) 100%);
    border-radius: 12px;
    margin-bottom: 20px;
}

/* =========================================
   ESTILOS DE NOTICIAS (ESTILO MAGAZINE)
   ========================================= */

.news-container {
    max-width: 1100px;
    margin: 0 auto;
    animation: fadeInPage 0.8s ease;
}

/* Noticia Destacada */
.news-featured {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--gris);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease;
}

.news-featured:hover {
    transform: scale(1.01);
}

.news-image {
    flex: 1 1 500px;
    height: 400px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    flex: 1 1 400px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-date {
    color: var(--rojo);
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.news-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.2;
    border-left: none; /* Quitamos el borde lateral del h2 general */
}

.read-more {
    margin-top: 20px;
    color: var(--rojo);
    text-decoration: none;
    font-weight: bold;
}

/* Grilla de noticias secundarias */
.news-secondary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.news-item {
    background-color: #222;
    padding: 25px;
    border-radius: 10px;
    border-top: 4px solid var(--rojo);
    transition: 0.3s;
}

.news-item:hover {
    background-color: #282828;
    transform: translateY(-5px);
}

.news-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.news-tag {
    display: inline-block;
    margin-top: 15px;
    background: #444;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.history-page {
    max-width: 800px;
    margin: 40px auto;
    background: var(--gris);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.history-content h1 {
    color: var(--rojo);
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.history-content h2 {
    margin-top: 30px;
    color: #fff;
    border-left: 4px solid var(--rojo);
    padding-left: 15px;
}

.history-content p {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.8;
}

/* =========================================
   ESTILOS DEL BANNER DE COOKIES
   ========================================= */

.cookie-container {
    position: fixed;
    bottom: -100%; /* Oculto por defecto abajo */
    left: 0;
    right: 0;
    background: #111;
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.5);
    z-index: 9999;
    transition: 0.5s ease-in-out;
    border-top: 2px solid var(--rojo);
}

.cookie-container.active {
    bottom: 0; /* Se desliza hacia arriba */
}

.cookie-container p {
    margin: 0;
    font-size: 0.9rem;
    max-width: 80%;
}

.cookie-container a {
    color: var(--rojo);
    text-decoration: underline;
}

.cookie-btn {
    background: var(--rojo);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s;
}

.cookie-btn:hover {
    background: #b92b36;
    transform: scale(1.05);
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    .cookie-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .cookie-container p {
        max-width: 100%;
    }
}


/* --- DISEÑO RESPONSIVO (PC, Tablet y Celular) --- */
@media (max-width: 768px) {
    nav {
        flex-direction: column; /* Apila logo y menú en celulares */
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        font-size: 0.9rem;
    }

    .band-grid {
        grid-template-columns: 1fr; /* Una sola columna en celulares */
        padding: 10px;
    }

    .news-featured {
        flex-direction: column;
    }

    .news-image {
        height: 250px;
    }
}

/* --- ESTILOS SISTEMA DE SUSCRIPCIÓN --- */
.subscription-section {
    background: linear-gradient(145deg, #222, #000);
    padding: 40px 20px;
    text-align: center;
    border-top: 3px solid var(--rojo);
    margin-top: 50px;
}

.premium-card {
    max-width: 400px;
    margin: 0 auto;
    border: 1px solid var(--rojo);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.2);
}

.btn-pay {
    display: inline-block;
    background-color: var(--rojo);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: 0.3s;
}

.btn-pay:hover {
    background-color: #ff4d5a;
    transform: translateY(-3px);
}

.logo img {
    height: 45px; /* Ajusta el tamaño según prefieras */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: rotate(10deg) scale(1.1); /* Un pequeño efecto rockero al pasar el mouse */
}

[id^="paypal-button-container"] {
    margin-top: 20px;
    min-height: 150px; /* Evita que la tarjeta salte mientras carga el botón */
}

/* --- MEJORA DE NAVEGACIÓN PIE DE PÁGINA --- */
footer {
    background-color: #000;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 2px solid var(--rojo);
}

footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

footer a {
    color: var(--texto);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

footer a:hover {
    color: var(--rojo);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}