/* ===== RESET Y VARIABLES ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Paleta de colores */
    --bg: #1a0a2e;
    --surface: #261540;
    --surface-hover: #342058;
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    
    /* Acentos vibrantes */
    --accent-primary: #ff3cac;
    --accent-secondary: #ff8c42;
    --accent-tertiary: #ffd166;
    
    /* Gradientes */
    --gradient-hero: linear-gradient(135deg, #ff3cac 0%, #ff8c42 50%, #ffd166 100%);
    --gradient-btn: linear-gradient(105deg, #ff3cac, #ff6b6b, #ff8c42);
    
    /* Bordes y sombras */
    --border-radius: 18px;
    --glow-pink: 0 0 25px rgba(255, 60, 172, 0.35);
    --glow-orange: 0 0 20px rgba(255, 140, 66, 0.3);
    
    /* Tipografía */
    --font-heading: 'Bebas Neue', 'Impact', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --max-width: 500px;
}

/* ===== ESTILOS BASE ===== */
body {
    /* Imagen de fondo en 4K - REEMPLAZA ESTA URL POR LA TUYA */
    background-image: url('../resources/nuevo_montaje.png');
    
    /* Configuración para que la imagen se vea correctamente */
    background-size: cover;            /* Cubre todo el viewport */
    background-position: center;       /* Centrada */
    background-repeat: no-repeat;      /* No se repite */
    background-attachment: fixed;      /* Efecto parallax - imagen fija al hacer scroll */
    
    /* Color de respaldo mientras carga la imagen */
    background-color: var(--bg);
    
    /* Capa oscura semitransparente para mejorar legibilidad */
    position: relative;
    
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem 4rem;
    min-height: 100vh;
}

/* Overlay oscuro para mejorar la legibilidad del texto sobre la imagen */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 10, 46, 0.75); /* Ajusta la opacidad (0.85 = 85% oscuridad) */
    z-index: 0;
    pointer-events: none; /* Permite interactuar con los elementos debajo */
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.linktree-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--max-width);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* ===== HEADER Y PERFIL ===== */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.logo-icon {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--gradient-hero);
    padding: 3px;
    box-shadow: var(--glow-pink), 0 10px 30px rgba(0,0,0,0.5);
    animation: floatMic 3s ease-in-out infinite;
    overflow: hidden;        /* Recorta lo que sobresalga */
    flex-shrink: 0;         /* Evita que se deforme */
}

@keyframes floatMic {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    background: var(--bg);
    display: block;
}

.logo-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

.profile h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-align: center;
    line-height: 1;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(255, 60, 172, 0.3));
    text-transform: uppercase;
}

.subtitle {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 3px;
    color: var(--accent-tertiary);
    text-transform: uppercase;
    margin-top: -0.25rem;
}

.bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: center;
    max-width: 350px;
    margin-top: 0.25rem;
}

.hosts {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

.host-badge {
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
    font-weight: 500;
}

.host-badge i {
    margin-right: 4px;
    color: var(--accent-primary);
}

/* ===== REPRODUCTOR DE VÍDEO ===== */
.video-player-section {
    width: 100%;
    background: var(--surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-now-info {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: var(--surface);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.video-now-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-primary);
    font-weight: 700;
    font-family: var(--font-heading);
}

.video-now-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-now-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.video-now-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Barra de progreso */
.progress-bar-container {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.1);
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-hero);
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    right: -5px;
    top: -4px;
    width: 11px;
    height: 11px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* ===== LISTA DE REPRODUCCIÓN (PLAYLIST) ===== */
.playlist-section {
    width: 100%;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--accent-secondary);
    margin-bottom: 0.85rem;
    text-align: center;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.playlist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--surface) transparent;
}

.playlist::-webkit-scrollbar {
    width: 5px;
}

.playlist::-webkit-scrollbar-track {
    background: transparent;
}

.playlist::-webkit-scrollbar-thumb {
    background: var(--surface);
    border-radius: 20px;
}

/* Items de la playlist */
.playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

.playlist-item:hover {
    background: var(--surface-hover);
    border-color: rgba(255,255,255,0.12);
    transform: translateX(4px);
}

.playlist-item.active {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(255, 60, 172, 0.25);
    background: var(--surface-hover);
}

.playlist-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--gradient-hero);
    border-radius: 0 4px 4px 0;
}

/* Miniatura del vídeo en la lista */
.playlist-thumb {
    width: 90px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: #000;
}

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

.playlist-item.active .playlist-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 60, 172, 0.4);
}

.playing-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 2;
    color: white;
    font-size: 1rem;
}

.playlist-item.active .playing-indicator {
    display: block;
}

.playlist-item.active .playlist-duration {
    display: none;
}

.playlist-duration {
    position: absolute;
    bottom: 4px;
    right: 6px;
    background: rgba(0,0,0,0.75);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    z-index: 2;
}

.playlist-info {
    flex: 1;
    min-width: 0;
}

.playlist-episode {
    font-size: 0.65rem;
    color: var(--accent-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
}

.playlist-title {
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
    margin: 2px 0;
}

.playlist-meta {
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: flex;
    gap: 8px;
}

.playlist-status {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-secondary);
    font-size: 0.7rem;
    transition: all 0.2s;
}

.playlist-item.active .playlist-status {
    background: var(--accent-primary);
    color: white;
}

.playlist-item:hover .playlist-status {
    background: rgba(255,255,255,0.12);
}

/* Onda de sonido animada (activo) */
.sound-wave {
    display: none;
    align-items: center;
    gap: 2px;
    height: 16px;
}

.playlist-item.active .sound-wave {
    display: flex;
}

.playlist-item.active .playlist-status i {
    display: none;
}

.sound-wave span {
    width: 2.5px;
    background: white;
    border-radius: 3px;
    animation: waveAnim 0.9s ease-in-out infinite;
}

.sound-wave span:nth-child(1) { height: 10px; animation-delay: 0s; }
.sound-wave span:nth-child(2) { height: 16px; animation-delay: 0.15s; }
.sound-wave span:nth-child(3) { height: 6px; animation-delay: 0.3s; }
.sound-wave span:nth-child(4) { height: 14px; animation-delay: 0.45s; }

@keyframes waveAnim {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.4); }
}

/* ===== PLATAFORMAS DE ESCUCHA ===== */
.listen-section {
    width: 100%;
}

.listen-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.btn-listen {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--surface);
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.85rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.25s ease;
    text-align: center;
}

.btn-listen i {
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.btn-listen:hover {
    background: var(--surface-hover);
    transform: scale(1.03);
    border-color: rgba(255,255,255,0.15);
}

.btn-listen:hover i {
    transform: scale(1.1);
}

.btn-spotify:hover { color: #1DB954; }
.btn-apple:hover { color: #FC3C44; }
.btn-ivoox:hover { color: #FF9900; }
.btn-youtube-music:hover { color: #FF0000; }

/* ===== ENLACES DE REDES SOCIALES ===== */
.links-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.25rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--surface);
    color: var(--text-primary);
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}

.btn-social i {
    font-size: 1.2rem;
    width: 26px;
    text-align: center;
    color: var(--text-secondary);
    transition: all 0.25s;
}

.btn-social:hover {
    background: var(--surface-hover);
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.btn-social:hover i {
    color: var(--accent-primary);
    transform: scale(1.15);
}

.btn-instagram:hover { --accent-primary: #ff3cac; color: #ff3cac; }
.btn-threads:hover {  --accent-primary: #000000; color: #000000; }
.btn-tiktok:hover { --accent-primary: #000000; color: #000000; }
.btn-x:hover:hover { --accent-primary: #000000; color: #000000; }
.btn-youtube:hover { --accent-primary: #FF0000; color: #FF0000; }
.btn-twitch:hover { --accent-primary: #6441A5; color: #6441A5; }

/* Botón principal destacado */
.btn-primary {
    background: var(--gradient-btn);
    border: none;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: var(--glow-pink);
    animation: pulseGlow 2.5s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 60, 172, 0.3), 0 8px 25px rgba(0,0,0,0.4); }
    50% { box-shadow: 0 0 35px rgba(255, 60, 172, 0.55), 0 8px 30px rgba(0,0,0,0.5); }
}

.btn-primary i,
.btn-primary:hover i {
    color: white;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
}

/* Botón con borde gradiente */
.btn-outline {
    background: transparent;
    border: 2px solid transparent;
    background-image: linear-gradient(var(--bg), var(--bg)), var(--gradient-hero);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.btn-outline:hover {
    background-image: linear-gradient(var(--surface-hover), var(--surface-hover)), var(--gradient-hero);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

/* ===== FOOTER ===== */
.footer {
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    opacity: 0.6;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer .hashtag {
    color: var(--accent-primary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer .credit {
    font-size: 0.7rem;
    opacity: 0.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 400px) {
    .profile h1 {
        font-size: 2.2rem;
    }
    
    .listen-grid {
        grid-template-columns: 1fr;
    }

    .playlist-thumb {
        width: 70px;
        height: 40px;
    }

    .playlist-item {
        padding: 0.6rem 0.7rem;
        gap: 8px;
    }

    /* Enlace de la playlist */
.playlist-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.playlist-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Efecto hover en el enlace */
.playlist-link:hover .playlist-title {
    color: var(--accent-primary);
}

.playlist-link:hover .playlist-thumb img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}
}