/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Variables CSS */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #b9b9b9;
    --accent-color: #4ecdc4;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #0a0a0a;
    --bg-light: #f8f9fa;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

body {
    background-color: #000;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 100px;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0; 
    position: relative;
    z-index: 1; 
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

/*.platform-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(200, 0, 0, 0.8);
    color: white;
    padding: 8px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    font-size: 14px;
    height: 30px;
    cursor: pointer; 
    transition: background-color 0.3s ease;
}

.platform-bar:hover {
    background-color: rgba(220, 0, 0, 0.9); 
}

.platform-bar-text {
    margin: 0;
    text-align: center;
    flex: 1;
    pointer-events: none; 
}

.close-bar {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3001; 
    pointer-events: auto; 
}

.close-bar:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}*/

/* HEADER TRANSPARENTE Y CENTRADO */
#header {
    position: fixed;
    top: 30px;
    left: 0;
    width: 100%;
    padding: 25px 5%;
    background: transparent; 
    backdrop-filter: none; 
    z-index: 2000;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo más grande */
.logo-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    margin-top: -20px; 
}

.logo-img {
    height:400px; 
    width: 200px;
    max-width: 300px;
    object-fit: contain;
    transition: all 0.4s ease; 
    filter: brightness(0) invert(1); 
}

#header.scrolled .logo-wrapper {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-20px); 
}

#header.scrolled .nav-left,
#header.scrolled .nav-right {
    margin: 0;
    flex: none; 
    width: auto;
}

#header.scrolled .nav-left {
    justify-content: center;
    margin-right: 0;
}

#header.scrolled .nav-right {
    justify-content: center;
    margin-left: 0;
}

#header.scrolled .header-inner {
    justify-content: center;
    gap: 30px; 
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    margin-top: -30px;
    flex: 1;
}

.nav-left {
    justify-content: flex-end; 
    margin-right: 120px; 
}

.nav-right {
    justify-content: flex-start; 
    margin-left: 120px; 
}

.header-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: white;
    transition: var(--transition);
    position: relative;
    padding: 15px 0;
    white-space: nowrap;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8); /* Mejor legibilidad */
}

.nav-link:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Header al hacer scroll - se vuelve sólido */
#header.scrolled {
    top: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#header.scrolled .logo-img {
    height: 300px 
}

/* Menú móvil - solo visible en móviles */
.mobile-nav-toggle-label {
    display: none;
    flex-direction: column;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 3000;
}

.mobile-nav-toggle-label div {
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Sección inicio mejorada */
#inicio {
    padding-top: 0;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -100px; /* Compensa el padding del body */
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent 100%; 
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

/* Marquee Group Styles */
.marquee-group {
    position: absolute;
    top: 20%;
    left: 0;
    height: 120px;
    width: 100%;
    transform: translateY(13.4px);
    overflow: visible;
    z-index: 2;
}

.marquee-track {
    display: flex;
    animation: marquee-scroll 20s linear infinite;
    white-space: nowrap;
}

.marquee-item {
    font-size: 7rem; 
    font-weight: 900;
    color: rgba(255, 255, 255, 0.493);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 0 2rem;
    white-space: nowrap;
    flex-shrink: 0;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    color: #fff; 
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* Redes sociales */
.hero-social-links {
    position: absolute;
    bottom: 40px; 
    left: 400px;   
    transform: none; 
    display: flex;
    flex-direction: row; 
    gap: 15px;
    z-index: 10;
}

.hero-social-links .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px; 
    border-radius: 50%;
    transition: var(--transition);
    border: 2px solid var(--text-light);
    background: transparent;
    color: white;
}

.hero-social-links .social-link:hover {
    background: var(--text-light);
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow);
    border-color: var(--text-light);
}

.hero-social-links .social-link:hover .social-icon {
    color: var(--primary-color);
}

.hero-social-links .social-link:nth-child(1):hover { background: #1DB954; border-color: #1DB954; } /* Spotify */
.hero-social-links .social-link:nth-child(2):hover { background: #FF0000; border-color: #FF0000; } /* YouTube */
.hero-social-links .social-link:nth-child(3):hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: transparent; } /* Instagram */
.hero-social-links .social-link:nth-child(4):hover { background: #1877F2; border-color: #1877F2; } /* Facebook */
.hero-social-links .social-link:nth-child(5):hover { background: #000000; border-color: #000000; } /* TikTok */

.cta-buttons {
    position: absolute;
    bottom: 300px; 
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 60px; 
    z-index: 10;
    width: 100%;
    justify-content: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-light);
    padding: 18px 45px;
    border-radius: 0px; 
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 2px solid rgb(255, 255, 255);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    backdrop-filter: blur(10px);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000000; 
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.8);
}


.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button i {
    margin-right: 12px;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.cta-button:hover i {
    color: #000000; 
}

.spotify-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    border-color: rgba(255, 255, 255, 0.8);
}

.youtube-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    border-color: rgba(255, 255, 255, 0.8);
}

.cta-button {
    animation: subtle-pulse 3s infinite;
}

@keyframes subtle-pulse {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.8);
    }
    50% {
        border-color: rgba(255, 255, 255, 1);
    }
}

#bio {
    background: #000; 
    position: relative;
}

.bio-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.8;
}

.bio-content p {
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.bio-content p:nth-child(1) {
    animation-delay: 0.2s;
}

.bio-content p:nth-child(2) {
    animation-delay: 0.4s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

#musica {
    background: #000; 
    position: relative;
    padding-bottom: 120px;
}

.tops-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.top-card {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background: rgba(30, 30, 30, 0.8);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.top-card:nth-child(1) {
    animation-delay: 0.2s;
}

.top-card:nth-child(2) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
}

.top-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-header-content {
    display: flex;
    align-items: center;
}

.spotify-header {
    background: linear-gradient(135deg, #1DB954, #1ed760);
}

.youtube-header {
    background: linear-gradient(135deg, #FF0000, #ff4d4d);
}

.top-header i {
    font-size: 28px;
    margin-right: 15px;
}

.top-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
}

.top-list {
    list-style: none;
    padding: 0;
}

.top-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s, transform 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.top-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: width 0.6s;
}

.top-item:hover::before {
    width: 100%;
}

.top-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.top-item:last-child {
    border-bottom: none;
}

.rank {
    font-size: 1.5rem;
    font-weight: 700;
    width: 40px;
    text-align: center;
    margin-right: 15px;
    min-width: 40px;
}

.rank-1 { 
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}
.rank-2 { 
    color: #C0C0C0;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.3);
}
.rank-3 { 
    color: #CD7F32;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.3);
}
.rank-4, .rank-5 { 
    color: #1DB954;
}

.song-info {
    flex: 1;
    min-width: 0;
}

.song-title {
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-size: 0.9rem;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.play-count {
    font-size: 0.9rem;
    opacity: 0.7;
    font-weight: 600;
    min-width: 60px;
    text-align: right;
}

/* PLATAFORMAS */
#plataformas {
    background: #000; 
    padding: 80px 0;
    text-align: center;
}

#plataformas .section-title {
    font-size: 1.3rem !important; 
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-align: center;
}

.platforms-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: nowrap;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.platform-image-item {
    display: block;
    transition: all 0.3s ease;
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 0;
}

.platform-image-item:hover {
    transform: translateY(-5px);
}

.platform-logo {
    width: auto;
    height: 80px; 
    object-fit: contain;
    transition: all 0.3s ease;
    filter: grayscale(100%) brightness(0.8);
    border-radius: 0; 
    padding: 0;
    background: transparent;
}

.platform-image-item:hover .platform-logo {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.08);
    box-shadow: none; 
}

/* Efectos específicos para cada plataforma */
.platform-image-item:hover .platform-logo[alt*="Spotify"] {
    filter: grayscale(0%) brightness(1) drop-shadow(0 5px 15px rgba(29, 185, 84, 0.4));
}

.platform-image-item:hover .platform-logo[alt*="Apple"] {
    filter: grayscale(0%) brightness(1) drop-shadow(0 5px 15px rgba(255, 52, 89, 0.466));
}

.platform-image-item:hover .platform-logo[alt*="Napster"] {
    filter: grayscale(0%) brightness(1) drop-shadow(0 5px 15px rgba(79, 51, 238, 0.4));
}

.platform-image-item:hover .platform-logo[alt*="Deezer"] {
    filter: grayscale(0%) brightness(1) drop-shadow(0 5px 15px rgba(168, 10, 189, 0.4));
}

footer {
    text-align: center;
    padding: 30px;
    background-color: #000000;
    color: #666;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s, transform 0.3s;
}

.social-link:hover {
    background: #1DB954;
    transform: translateY(-5px);
}

.social-links .social-link:nth-child(1):hover { background: #1DB954; border-color: #1DB954; } /* Spotify */
.social-links .social-link:nth-child(2):hover { background: #FF0000; border-color: #FF0000; } /* YouTube */
.social-links .social-link:nth-child(3):hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: transparent; } /* Instagram */
.social-links .social-link:nth-child(4):hover { background: #1877F2; border-color: #1877F2; } /* Facebook */
.social-links .social-link:nth-child(5):hover { background: #000000; border-color: #000000; } /* TikTok */

.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Animaciones adicionales */
.fade-in {
    animation: fadeIn 1s ease-in;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #888; 
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ccc; 
}