* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a2e 50%, #16213e 100%);
    color: #e0e0e0;
    overflow-x: hidden;
    position: relative;
}

/* ===== Loader ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #212121;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 5000;
    transition: opacity .5s ease-out, visibility .5s ease-out;
}

.container-loader {
    width: 175px;
    height: 175px;
    background-color: #ABC4AA;
    border-radius: 10px;
    position: relative;
    box-shadow: 5px 5px 0 0 #675D50;
}

.plate {
    width: fit-content;
}

.plate .black,
.plate .white,
.plate .center,
.plate .border {
    border-radius: 100%;
}

.container,
.plate .black,
.plate .white,
.plate .border {
    display: flex;
    align-items: center;
    justify-content: center;
}

.plate .black {
    width: 150px;
    height: 150px;
    background-color: #675D50;
    animation: rotation 2s infinite linear;
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(359deg);
    }
}

.plate .white {
    width: 70px;
    height: 70px;
    background-color: #F3DEBA;
}

.plate .center {
    width: 20px;
    height: 20px;
    background-color: #675D50;
}

.plate .border {
    width: 111px;
    height: 111px;
    border-top: 3px solid #F3DEBA;
    border-bottom: 3px solid #F3DEBA;
    border-left: 3px solid #675D50;
    border-right: 3px solid #675D50;
}

.player {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: fit-content;
    position: absolute;
    bottom: 0;
    right: 0;
    margin-bottom: 8px;
    margin-right: 8px;
    rotate: -45deg;
}

.player .circ {
    width: 25px;
    height: 25px;
    background-color: #F3DEBA;
    border-radius: 100%;
    z-index: 1;
}

.player .rect {
    width: 10px;
    height: 55px;
    background-color: #F3DEBA;
    position: absolute;
    bottom: 0;
    margin-bottom: 5px;
}

.loader-text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    padding-left: .5em;
    color: purple;
    font-weight: bold;
    animation:
        gradiantColor 4s infinite;
}

@keyframes gradiantColor {

    0%,
    10% {
        color: blue;
    }

    45%,
    55% {
        color: violet;
    }

    90%,
    100% {
        color: purple;
    }
}

/* Clase que se añadirá cuando el loader termine */
.loader-hidden {
    opacity: 0;
    visibility: hidden;
    cursor: auto;
}


/* ScrollBar */
body {
    --sb-track-color: #536269;
    --sb-thumb-color: #26356b;
    --sb-size: 12px;
}

body::-webkit-scrollbar {
    width: var(--sb-size)
}

body::-webkit-scrollbar-track {
    background: var(--sb-track-color);
    border-radius: 1px;
}

body::-webkit-scrollbar-thumb {
    background: var(--sb-thumb-color);
    border-radius: 1px;

}

@supports not selector(::-webkit-scrollbar) {
    body {
        scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);
    }
}


/* Estrellas de fondo */
#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgb(0, 204, 255);
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
    animation: twinkle 3s infinite ease-in-out;
}

.star.small {
    width: 1px;
    height: 1px;
}

.star.medium {
    width: 2px;
    height: 2px;
}

.star.large {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.9);
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Partículas musicales flotantes */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    font-size: 20px;
    opacity: 0;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Cursor personalizado */
#cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #667eea;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.001s ease;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

#cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.10s ease;
    transform: translate(-50%, -50%);
}

/* Header y navegación */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 1rem 0;
    box-shadow: 0 5px 30px rgba(102, 126, 234, 0.2);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    animation: fadeInUp 1s ease 0.2s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Secciones */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Grid de contenido */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.content-grid-lanzamientos {
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.card-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    transition: all 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.play-button {
    text-decoration: none;
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #8a2be2, #4169e1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    /* cursor: pointer; */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
    z-index: 2000;
}

.play-button:hover {
    color: #1db954;
    box-shadow: 0 0 15px #1db954;
}

.play-button i {
    font-size: 26px;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #667eea;
}

.card p {
    opacity: 0.7;
    line-height: 1.6;
}

/* Demo cards buttons */
.demo-play-button {
    text-decoration: none;
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 35px;
    height: 35px;
    background: linear-gradient(45deg, #8a2be2, #4169e1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(138, 43, 226, 0.4);
}

.demo-play-button:hover {
    color: #ff5500;
    box-shadow: 0 0 15px #ff5500;
}

.demo-play-button i {
    font-size: 20px;
}

/* Acerca de mí */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    justify-content: center;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 400px;
    /* height: 30rem; */
    /* background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%); */
    filter: drop-shadow(0 0 20px rgba(118, 75, 162, 0.8));
    border-radius: 10px 20px 100px 20px;
}

.about-text {
    line-height: 1.8;
    opacity: 0.9;
}

.about-text h2 {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.about-text p em a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p em:hover {
    text-decoration: underline;
    filter: drop-shadow(0 0 15px #8a2be2);
}

.about-social-links {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 1rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    padding: 80px 0 50px;
    border-top: 2px solid rgba(138, 43, 226, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 40px;
}

.footer-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, #8a2be2, #4169e1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    border: 2px solid rgba(138, 43, 226, 0.5);
}

.footer-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-text h3 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: #b8b8ff;
    font-weight: 300;
}

.footer-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 30px;
}

.footer-text p a {
    color: #7492ee;
    transition: .3s ease;
}

.footer-text p a:hover {
    text-decoration: underline;
    filter: drop-shadow(0 0 15px #8a2be2);
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 40px 0;
    border-top: 1px solid rgba(138, 43, 226, 0.3);
}

.social-link {
    width: 60px;
    height: 60px;
    background: rgba(138, 43, 226, 0.2);
    border: 2px solid rgba(138, 43, 226, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(45deg, #8a2be2, #4169e1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.4);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.6);
    backdrop-filter: blur(20px);
    padding: 0.5rem 0;
    z-index: 1000;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.3);
}

.mobile-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem;
    color: rgba(224, 224, 224, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-item.active {
    color: #667eea;
}

.mobile-nav-icon {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.mobile-nav-item.active .mobile-nav-icon {
    transform: translateY(-5px) scale(1.2);
    filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.8));
}

.mobile-nav-label {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
}

.mobile-nav-item.active .mobile-nav-label {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-indicator {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 0 0 10px 10px;
    transition: transform 0.3s ease;
}

.mobile-nav-item.active .mobile-nav-indicator {
    transform: translateX(-50%) scaleX(1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    header nav {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image img {
        width: 320px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 4rem 1rem 6rem 1rem;
    }

    #cursor,
    #cursor-follower {
        display: none;
    }

    * {
        cursor: auto;
    }
}

/* Animaciones de scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}