/* --- 1. IMPORTAR FUENTES --- */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400&display=swap');

@font-face {
    font-family: 'TangoSans';
    src: url('../fonts/TangoSans_Bold.ttf') format('ttf');
    font-weight: 700; 
    font-style: normal;
}

/* --- 2. VARIABLES DE COLOR --- */
:root {
    --naranja-atardecer: #E29E53;
    --marron-oscuro: #4C2D1F;
    --marron-medio: #7C4A34;
    --amarillo-sol: #F1BA6B;
    --blanco-hueso: #FDFBF7;
    --negro-suave: #1a1a1a;
    
    --spotify: #1DB954;
    --apple-music-start: #FA2D48;
    --apple-music-end: #D60017;
    --youtube: #c4302b;
    --amazon: #0077C1;
}

/* --- 3. ESTILOS GENERALES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Urbanist', sans-serif;
    color: var(--blanco-hueso);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 0;
    /* La imagen de fondo se aplica desde el HTML */
    background-size: cover;
    background-position: center center;
    position: relative;
    z-index: 1;
}

/* --- ESTA ES LA REGLA CORREGIDA --- */
body::before {
    content: '';
    position: fixed; /* 'fixed' asegura que cubra toda la pantalla */
    top: 0; left: 0;
    width: 100%; height: 100%;
    
    /* 1. Hereda la imagen de fondo del <body> */
    background: inherit;
    
    /* 2. USA 'filter' (NO 'backdrop-filter') */
    filter: blur(10px) brightness(0.7);

    /* 3. Se pone detrás del contenido */
    z-index: -1;
}
/* --- FIN DE LA CORRECCIÓN --- */


/* --- 4. CONTENEDOR DE LA PÁGINA --- */
.link-page-container {
    max-width: 500px; 
    width: 90%;
    margin: 0 auto;
    text-align: center;
    
    /* Fondo nítido, solo transparente */
    background-color: rgba(20, 20, 20, 0.7);
    
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- 5. CONTENIDO --- */
.artwork-main {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
}

.song-title {
    font-family: 'TangoSans', sans-serif;
    font-size: 2rem;
    color: var(--blanco-hueso);
    margin-bottom: 0.5rem;
}

.artist-name {
    font-family: 'Urbanist', sans-serif;
    font-size: 1.2rem;
    color: #fff; 
    margin-bottom: 2.5rem;
}

/* --- 6. LISTA DE ENLACES --- */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    padding: 0.5rem 0.75rem 0.5rem 1.5rem; 
    border-radius: 12px;
    
    font-family: 'TangoSans', sans-serif;
    font-weight: 0;
}

.platform-info {
    display: flex;
    align-items: center;
    gap: 1rem; 
    font-size: 1.2rem;
    color: var(--blanco-hueso); 
}

.platform-info svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.listen-button {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 50px; 
    text-decoration: none;
    font-family: 'TangoSans', sans-serif;
    font-weight: 200;
    font-size: 1rem;
    transition: all 0.2s ease;
    flex-shrink: 0; 
}

.listen-button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* --- REGLAS DE COLOR --- */
.link-item.spotify .platform-info svg { color: var(--spotify); }
.link-item.spotify .listen-button {
    background-color: var(--spotify);
    color: #FFF;
}

.link-item.apple-music .platform-info svg { color: var(--apple-music-start); }
.link-item.apple-music .listen-button {
    background-image: linear-gradient(to right, var(--apple-music-start), var(--apple-music-end));
    color: #FFF;
}

.link-item.youtube .platform-info svg { color: var(--youtube); }
.link-item.youtube .listen-button {
    background-color: var(--youtube);
    color: #FFF;
}

.link-item.amazon-music .platform-info svg { color: var(--amazon); }
.link-item.amazon-music .listen-button {
    background-color: var(--amazon);
    color: #FFF;
}

/* --- 7. FOOTER LINK --- */
.footer-link {
    display: inline-block;
    margin-top: 2rem;
    font-family: 'TangoSans', sans-serif;
    color: var(--amarillo-sol);
    text-decoration: none;
    font-size: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
}