/* =========================================
   1. BASES Y FUENTES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Montserrat:wght@300;600&display=swap');



:root {
    --gold: #d4af37;
    --dark-overlay: rgba(0, 0, 0, 0.82);
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: linear-gradient(var(--dark-overlay), var(--dark-overlay)), 
                url('../assets/img/fondo.jpg') no-repeat center center fixed;
    background-size: cover;
    color: white;
    font-family: 'Montserrat', sans-serif;
}

/* =========================================
   2. NAVBAR Y LOGOS
   ========================================= */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(0, 0, 0, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #222;
}

.logo-group { display: flex; align-items: center; gap: 15px; }

.social-nav a {
    color: #fff;
    font-size: 16px;
    margin-right: 10px;
    transition: 0.3s;
    opacity: 0.7;
}

.social-nav a:hover { color: var(--gold); opacity: 1; }

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links a:hover { color: var(--gold); }

/* =========================================
   3. ESTILOS DE TÍTULOS (ESTRICTO)
   ========================================= */
.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--gold);
    margin: 0;
    text-align: center;
}

.section-title {
    text-align: center;
    font-family: 'Cinzel', serif !important;
    letter-spacing: 10px;
    color: var(--gold);
    margin: 80px 0 40px;
    text-transform: uppercase;
}

/* =========================================
   4. TARJETAS DEL INDEX (CHOOSE YOUR ERA)
   ========================================= */
.main-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 10% 80px;
}

.cat-card {
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid #333;
    transition: 0.4s ease-in-out;
    display: block;
    text-decoration: none;
}

.cat-card:hover { transform: scale(1.03); border-color: var(--gold); }

.cat-card img {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.4); transition: 0.5s;
}

.cat-card:hover img { filter: brightness(0.2); }

.card-content {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 30px; box-sizing: border-box;
}

.cat-card h2 { font-size: 20px; font-family: 'Cinzel', serif; color: var(--gold); margin: 0; }

.cat-card p {
    font-size: 13px; color: #ccc; margin-top: 15px; line-height: 1.5;
    opacity: 0; transform: translateY(20px); transition: 0.4s;
}

.cat-card:hover p { opacity: 1; transform: translateY(0); }

/* =========================================
   5. BOTONES DIRECTOS (VIDEOS/AVANCES)
   ========================================= */
.two-column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    padding: 0 5%;
}

.direct-content {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center; width: 100%;
}

.direct-content h2 {
    font-family: 'Cinzel', serif; color: var(--gold);
    font-size: 28px; letter-spacing: 5px; margin: 0;
}

.view-more {
    display: block; color: white; font-size: 11px;
    letter-spacing: 2px; margin-top: 10px; opacity: 0.8;
}

/* =========================================
   6. SECCIÓN DE ÁLBUMES (ALBUMS.HTML)
   ========================================= */
.album-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 400px));
    gap: 40px;
    padding: 60px 10% 100px;
    justify-content: center;
}

.album-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #222;
    border-radius: 12px;
    padding: 25px;
    transition: 0.4s;
    text-decoration: none;
    text-align: left;
}

.album-item:hover {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.album-cover {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.album-info .era-tag {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 5px;
}

.album-info h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 24px;
    margin: 0 0 15px 0;
}

.album-info p {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
    margin: 0;
}
.hero-mini {
    padding: 100px 5% 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-mini h1 {
    font-family: 'Cinzel', serif !important;
    font-size: 3rem;
    color: var(--gold);
    letter-spacing: 10px;
    text-transform: uppercase;
    margin: 0;
}

/* =========================================
   7. DIVISORES Y FOOTER
   ========================================= */
.divider-container {
    display: flex; align-items: center; justify-content: center;
    padding: 60px 10% 20px; gap: 20px;
}

.line {
    height: 1px; flex-grow: 1; opacity: 0.5;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.divider-text { font-family: 'Cinzel', serif; color: var(--gold); letter-spacing: 5px; }

footer { text-align: center; padding: 40px; }

/* =========================================
   ESTILO SPOTIFY PARA ÁLBUMES
   ========================================= */
.spotify-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 32px;
}

.album-hero {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    padding-bottom: 24px;
}

.album-art {
    width: 232px;
    height: 232px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.album-art img { width: 100%; height: 100%; object-fit: cover; }

.album-info-header .type { font-size: 12px; font-weight: 700; }

.album-info-header h1 {
    font-size: 72px;
    font-weight: 900;
    margin: 8px 0;
    font-family: 'Montserrat', sans-serif;
}

.album-meta { font-size: 14px; font-weight: 600; }
.album-meta .author { color: white; }

/* ACCIONES */
.album-actions {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 24px 0;
}

.play-main {
    width: 56px;
    height: 56px;
    background: var(--gold);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    color: black;
    cursor: pointer;
    transition: 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.play-main:hover {
    transform: scale(1.08);
    background: white;
}

.action-icon.active {
    color: #ff0000 !important;
    filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.5));
}

.action-icon {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 28px;
    cursor: pointer;
    transition: 0.3s;
}

.action-icon:hover {
    color: white;
}

.track-row.playing {
    background: rgba(212, 175, 55, 0.15);
}

.track-row.playing .track-name {
    color: var(--gold);
}

.track-row.playing .track-num {
    color: var(--gold);
    font-size: 0;
}

.track-row.playing .track-num::before {
    content: "\f028";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 14px;
}

/* =========================================
   SISTEMA DE TABLA DE CANCIONES (TRACKLIST)
   ========================================= */

.tracklist-container {
    width: 100%;
    margin-top: 20px;
    padding-bottom: 50px;
}

.tracklist-header {
    display: grid;
    grid-template-columns: 50px 1fr 100px;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #b3b3b3;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.track-row {
    display: grid;
    grid-template-columns: 50px 1fr 100px;
    padding: 12px 20px;
    align-items: center;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.track-row:hover {
    background: rgba(255, 255, 255, 0.1);
}

.track-num {
    color: #b3b3b3;
    font-size: 16px;
}

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

.track-name {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.track-artist {
    color: #b3b3b3;
    font-size: 14px;
}

.track-time {
    color: #b3b3b3;
    text-align: right;
    font-size: 14px;
}

/* =========================================
   BARRA DE REPRODUCCIÓN (NUEVO)
   ========================================= */
/* CONTENEDOR FLOTANTE (ESTILO SPOTIFY) */
.player-bar {
    position: fixed;
    bottom: -100px; /* Oculto por defecto */
    left: 10px;
    right: 10px;
    background: #41161a; /* Tono rojizo oscuro de tu captura */
    border-radius: 8px;
    z-index: 2000;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    overflow: hidden;
}

.player-bar.active {
    bottom: 80px; /* Se eleva para no tapar el menú de navegación */
}

.mini-player-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
}

.song-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-album-art {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.text-details {
    display: flex;
    flex-direction: column;
}

.mini-track-name {
    font-size: 13px;
    font-weight: 700;
    color: white;
}

.mini-track-artist {
    font-size: 12px;
    color: #b3b3b3;
}

.mini-controls {
    display: flex;
    align-items: center;
}

.mini-play-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

/* BARRA DE PROGRESO INTEGRADA */
.mini-progress-wrapper {
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.1);
    position: absolute;
    bottom: 0;
}

.mini-progress-fill {
    width: 0%;
    height: 100%;
    background: white; /* En Spotify la barra de la mini card suele ser blanca */
}


/* =========================================
   8. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .album-hero { flex-direction: column; align-items: center; text-align: center; }
    .album-info-header h1 { font-size: 32px; }
}

@media (max-width: 600px) {
    .nav-links { display: none; }
    .cat-card p { opacity: 1; transform: none; font-size: 12px; }
    .two-column-grid { grid-template-columns: 1fr; }
    .album-container { grid-template-columns: 1fr; }
    .tracklist-header, .track-row {
        grid-template-columns: 40px 1fr 60px;
        padding: 10px;
    }
    .track-name { font-size: 14px; }
    .track-artist { font-size: 12px; }
}
