:root {
    --bg-color: #000000;
    --text-color: #f2f2f2;
    --primary-color: #c00000;
    --secondary-color: #800000;
    --acento: #111111;
    --border-color: #333333;
    --breakpoint-mobile: 768px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    letter-spacing: 0.5px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo,
.nav-menu a,
.btn,
.btn-small {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

/* Header & Nav */
header {
    background-color: var(--bg-color);
    padding: 3rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 55px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(255, 0, 0, 0.4));
}

.logo-hero {
    padding-top: 30rem;
    height: 280px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(255, 0, 0, 0.4));
}

.separator {
    padding-top: 30rem;
}

/* --- Menú Hamburguesa (Mobile) --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 100%;
    height: 4px;
    background-color: var(--text-color);
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Animación del botón a 'X' */
.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg);
}

/* Focus visible para accesibilidad */
.menu-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

nav.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
}

nav.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

nav.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav.nav-menu a:hover,
nav.nav-menu a:focus {
    color: var(--primary-color);
}

nav.nav-menu a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Redes Sociales en NavBar */
.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover,
.social-icons a:focus {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.social-icons a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Selector de Idiomas */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #555;
}

.lang-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    text-transform: uppercase;
    transition: color 0.3s, transform 0.3s;
}

.lang-btn:hover,
.lang-btn:focus {
    color: var(--text-color);
}

.lang-btn.active {
    color: var(--primary-color);
}

.lang-btn:focus-visible {
    outline: 1px solid var(--primary-color);
    outline-offset: 2px;
}

.language-switcher .sep {
    color: var(--border-color);
    user-select: none;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 5rem;
}

h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    font-weight: 900;
    letter-spacing: 2px;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 1rem auto 0;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('img/Battlerage_foto2.JPG') top center/cover no-repeat;
    position: relative;
    padding: 0 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero>* {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(1rem, 3vw, 4rem);
    font-weight: 900;
    padding-bottom: 4rem;
    margin: 0;
    color: #fff;
    line-height: 1;
    letter-spacing: 5px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 1.5rem 0 3rem 0;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 2px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-small {
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-small:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-small:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Botón deshabilitado para álbumes no disponibles */
.btn-disabled {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Enlace deshabilitado para álbumes no disponibles */
.btn-link-disabled {
    text-decoration: none;
    display: block;
    pointer-events: none;
}

/* Biografía */
#biografia {
    background-color: var(--acento);
}

.content-box {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: #ccc;
}

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

.content-box strong,
.content-box em {
    color: #fff;
}

/* Galería Miembros */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.member-card {
    background-color: var(--acento);
    border: 1px solid var(--border-color);
    transition: border-color 0.3s;
}

.member-card:hover,
.member-card:focus-within {
    border-color: var(--primary-color);
}

.member-photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    background-color: #222;
}

.member-photo.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-card h3 {
    margin: 1.5rem 0 0.2rem 0;
    font-size: 1.5rem;
}

.role {
    color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

/* Música (Spotify) */
.music-section {
    background-color: #000;
}

.spotify-container {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    background: var(--acento);
}

/* Noticias */
#noticias {
    background-color: var(--acento);
}

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

.news-card {
    background-color: #000;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s;
}

.news-card:hover {
    border-color: var(--primary-color);
}

.news-card h3 {
    margin-top: 0;
    font-size: 1.8rem;
    line-height: 1.2;
}

.date {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Tienda */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.product {
    background-color: var(--acento);
    border: 1px solid var(--border-color);
    transition: border-color 0.3s;
}

.card {
    width: 100%;
    text-align: center;
}

.product:hover {
    border-color: var(--primary-color);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.product h3 {
    font-size: 1.25rem;
    line-height: 1.2rem;
    margin: 0 0 0.5rem 0;
}

.year {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #888;
    margin: 0.5rem 0 1.5rem 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #000;
    border-top: 4px solid var(--border-color);
    color: #888;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }

    .separator {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    nav.nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--bg-color);
        border-left: 4px solid var(--primary-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.3s ease-in-out;
    }

    nav.nav-menu.active {
        right: 0;
    }

    nav.nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    nav.nav-menu a {
        font-size: 1.8rem;
    }

    .social-icons {
        margin-top: 1rem;
        gap: 2.5rem;
    }

    .language-switcher {
        margin-top: 2rem;
        font-size: 1.5rem;
        gap: 1rem;
    }

    .lang-btn {
        padding: 0.5rem 1rem;
    }

    .social-icons a {
        font-size: 2rem;
    }

    .container {
        padding: 6rem 1.5rem 4rem;
    }

    h2 {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }

    footer {
        padding: 2rem 1rem;
    }
}