/* ===========================================================
   custom.css — Bierzo, tierra mía
   Estilos propios sobre la plantilla Massively:
   - barra de plataformas de escucha
   - rejilla de tarjetas de canciones (portada)
   - cabecera de las páginas de canción
   =========================================================== */

/* ---- Barra de plataformas (Spotify / YouTube / Amazon / Apple) ---- */
.platforms {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin: 1.5rem 0 0 0;
	padding: 0;
	list-style: none;
}
.platforms li { padding: 0; }
.platforms a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 1.1rem;
	border-radius: 8px;
	border: solid 2px rgba(255, 255, 255, 0.2);
	font-family: "Source Sans Pro", Helvetica, sans-serif;
	font-weight: 600;
	font-size: 0.8rem;
	letter-spacing: 0.05rem;
	text-transform: uppercase;
	text-decoration: none;
	color: #ffffff;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
.platforms a:hover { background-color: rgba(255, 255, 255, 0.075); }
.platforms a i, .platforms a svg { font-size: 1.1rem; line-height: 1; }
.platforms a.spotify:hover { border-color: #1DB954; }
.platforms a.youtube:hover { border-color: #FF0000; }
.platforms a.amazon:hover  { border-color: #00A8E1; }
.platforms a.apple:hover   { border-color: #FA243C; }

/* ---- Rejilla de canciones en la portada ---- */
.song-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 2rem;
	margin: 0 0 2rem 0;
}
.song-card {
	display: flex;
	flex-direction: column;
	background: rgba(255, 255, 255, 0.03);
	border: solid 1px rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	overflow: hidden;
	transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.song-card:hover {
	transform: translateY(-4px);
	border-color: rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.06);
}
.song-card a.card-link {
	display: block;
	color: inherit;
	text-decoration: none;
	border: 0;
}
.song-card .card-image {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
}
.song-card .card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}
.song-card:hover .card-image img { transform: scale(1.05); }
.song-card .card-image .play-badge {
	position: absolute;
	right: 0.75rem;
	bottom: 0.75rem;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	backdrop-filter: blur(2px);
}
.song-card .card-body {
	padding: 1.25rem 1.5rem 1.5rem 1.5rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.song-card .card-body h3 { margin: 0 0 0.5rem 0; font-size: 1.1rem; }
.song-card .card-body p {
	font-size: 0.85rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.65);
	margin: 0 0 1rem 0;
	flex: 1;
}
.song-card .card-platforms {
	display: flex;
	gap: 0.9rem;
	font-size: 1.05rem;
	color: rgba(255, 255, 255, 0.5);
	margin-top: auto;
}
.song-card .card-platforms i { transition: color 0.2s ease; }

/* ---- Botón "Escuchar canción" dentro de la tarjeta ---- */
.card-cta {
	margin-top: 1rem;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1rem;
	text-transform: uppercase;
	color: #ffffff;
}

/* ---- Cabecera de la página de canción ---- */
.song-hero { margin-bottom: 1.5rem; }
.song-hero .back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1rem;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 1rem;
}
.song-hero .back-link:hover { color: #ffffff; }

.player-wrap { margin: 1.5rem 0; }

/* ---- Banner de cookies (RGPD) ---- */
.cookie-banner {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 9999;
	background: rgba(24, 24, 26, 0.97);
	border-top: solid 1px rgba(255, 255, 255, 0.18);
	padding: 1rem 1.5rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}
.cookie-banner p {
	margin: 0;
	font-size: 0.8rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.8);
	max-width: 640px;
}
.cookie-banner a { color: #ffffff; }
.cookie-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.cookie-banner .button.small { margin: 0; }

/* ---- Texto legal ---- */
.legal h2 { margin-top: 2.5rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { font-size: 0.95rem; line-height: 1.7; }
.legal .updated { font-size: 0.8rem; color: rgba(255,255,255,0.55); }

/* ---- Responsive ---- */
@media screen and (max-width: 480px) {
	.song-grid { grid-template-columns: 1fr; gap: 1.5rem; }
	.platforms a { font-size: 0.7rem; padding: 0.55rem 0.9rem; }
	.cookie-banner { flex-direction: column; text-align: center; }
}
