/* ================================
   RESET Y GENERALES
================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #121212;
    color: white;
    font-family: 'Montserrat', Arial, sans-serif;
    scroll-behavior: smooth;
}

section {
    color: #e0e0e0;
}

h1,
h2 {
    text-align: center;
}

/* ================================
   HEADER / NAVBAR
================================ */
header {
    background-color: black;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;

    position: sticky;
    top: 0;
    z-index: 1000;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

header h1 {
    color: #1DB954;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: #1DB954;
}

/* ================================
   MAIN
================================ */
main {
    padding: 30px;
    max-width: 1200px;
    margin: auto;
}

#inicio p {
    max-width: 800px;
    margin: auto;
    text-align: center;
}

/* ================================
   ARTISTAS (FLEXBOX)
================================ */
.contenedor-artistas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

#artistas article {
    width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background-color: #181818;
    padding: 20px;
    border-radius: 10px;

    transition: 0.3s;
}

#artistas article:hover {
    background-color: #282828;
    transform: translateY(-5px);
}

article h3 {
    color: #1DB954;
}

#artistas p {
    min-height: 100px;
}

/* VIDEO */
iframe {
    width: 100%;
    height: 170px;
    border-radius: 10px;
    margin: 10px 0;
    border: none;
}

/* ================================
   BOTONES
================================ */
button {
    background-color: #1DB954;
    border: none;
    padding: 10px 20px;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

button:hover {
    background-color: #1ed760;
}

#inicio button {
    display: block;
    margin: 25px auto;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 30px;
    background: #1DB954;
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

#inicio button:hover {
    transform: scale(1.05);
    background: #1ed760;
}

/* ================================
   IMAGEN
================================ */
.imagen-centro {
    display: block;
    margin: 40px auto;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(30, 215, 96, 0.4);
}

/* ================================
   PLAYLIST
================================ */
.playlist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cancion {
    display: flex;
    align-items: center;
    gap: 15px;

    background: #181818;
    padding: 15px;
    border-radius: 10px;

    transition: 0.3s;
}

.cancion:hover {
    background: #282828;
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(29, 185, 84, 0.3);
}

.cancion img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
}

.info {
    flex: 1;
}

/* ================================
   ESTRELLAS
================================ */
.stars {
    font-size: 30px;
    cursor: pointer;
}

.star {
    color: gray;
    transition: 0.2s;
}

.star.selected {
    color: #1DB954;
}

.star:hover {
    transform: scale(1.2);
}

/* ================================
   MENSAJES
================================ */
.mensaje-playlist,
.mensaje-formulario {
    background: #1DB954;
    color: white;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    opacity: 0;
    transition: 0.4s;
    text-align: center;
    font-weight: bold;
}

.mostrar {
    opacity: 1;
}

/* ================================
   FORMULARIO
================================ */
#formulario form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;

    background: #181818;
    padding: 20px;
    border-radius: 10px;
}

input {
    padding: 8px;
    border-radius: 6px;
    border: none;
    background: #333;
    color: white;
}

/* ================================
   FOOTER
================================ */
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    padding: 40px 20px;

    background-color: #000;
    border-top: 2px solid #1DB954;
}

.footer-info,
.footer-redes {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

/* REDES */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.social-links a {
    color: white;
    text-decoration: none;
    background: #181818;
    padding: 10px 18px;
    border-radius: 25px;
    transition: 0.3s;
    font-weight: bold;
}

.social-links a:hover {
    background: #1DB954;
    transform: scale(1.05);
}

/* ================================
   COOKIES
================================ */
.cookies {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);

    background: #1DB954;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;

    z-index: 2000;

    display: flex;
    align-items: center;
    gap: 20px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    width: 80%;
    max-width: 600px;
}

.cookies button {
    background: white;
    color: black;
}

/* ================================
   RESPONSIVE
================================ */
/* TABLET */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    nav {
        margin-top: 10px;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
    }
}

/* MOBILE */
@media (max-width: 480px) {
    .cancion {
        flex-direction: column;
        text-align: center;
    }

    #formulario form {
        flex-direction: column;
        align-items: stretch;
    }
}